.iyishop-panel {
    --iyishop-bg: #111827;
    --iyishop-surface: #171c2a;
    --iyishop-surface-2: #1f2435;
    --iyishop-surface-3: #0f1421;
    --iyishop-border: #2a3145;
    --iyishop-ink: #f8fafc;
    --iyishop-muted: #8a96b8;
    --iyishop-accent: #f15a45;
    --iyishop-accent-dark: #d94734;
    --iyishop-accent-rgb: 241, 90, 69;
    --iyishop-success: #22c55e;
    --iyishop-warning: #f59e0b;
    --iyishop-danger: #ef4444;
    --iyishop-radius: 14px;
    color: var(--iyishop-ink);
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.iyishop-panel.is-frontend {
    position: relative;
    left: 50%;
    width: min(1600px, calc(100vw - 48px));
    max-width: none;
    margin: 24px 0;
    transform: translateX(-50%);
}

body.iyishop-frontend-session #wpadminbar {
    display: none !important;
}

html:has(body.iyishop-frontend-session) {
    margin-top: 0 !important;
}

.iyishop-panel *,
.iyishop-panel *::before,
.iyishop-panel *::after {
    box-sizing: border-box;
}

.iyishop-panel [hidden] {
    display: none !important;
}

.iyishop-admin-page {
    max-width: none;
}

.iyishop-admin-page .iyishop-panel {
    margin: 18px 20px 0 0;
}

.iyishop-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 70px);
    overflow: hidden;
    border: 1px solid var(--iyishop-border);
    border-radius: 20px;
    background: var(--iyishop-bg);
    box-shadow: 0 24px 70px rgba(2, 6, 23, .22);
}

.iyishop-sidebar {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 24px 16px 18px;
    flex-direction: column;
    border-right: 1px solid var(--iyishop-border);
    background: #0d1320;
}

.iyishop-sidebar::before {
    position: absolute;
    top: -90px;
    left: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(var(--iyishop-accent-rgb), .1);
    filter: blur(20px);
    content: "";
    pointer-events: none;
}

.iyishop-brand {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 48px;
    margin: 0 6px 30px;
    gap: 12px;
    align-items: center;
}

.iyishop-brand strong,
.iyishop-brand small {
    display: block;
}

.iyishop-brand strong {
    margin-top: 1px;
    color: var(--iyishop-ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.iyishop-brand small {
    color: var(--iyishop-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.iyishop-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 11px;
    background: var(--iyishop-accent);
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    box-shadow: 0 0 30px rgba(var(--iyishop-accent-rgb), .3);
}

.iyishop-navigation {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.iyishop-nav-label {
    display: block;
    margin: 19px 12px 7px;
    color: #59657f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.iyishop-nav-label:first-child {
    margin-top: 0;
}

.iyishop-nav {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    margin: 2px 0;
    padding: 0 12px;
    gap: 11px;
    align-items: center;
    justify-content: flex-start !important;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--iyishop-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.iyishop-nav .dashicons {
    width: 20px;
    height: 20px;
    color: #67738e;
    font-size: 20px;
    transition: color .18s ease;
}

.iyishop-nav:hover,
.iyishop-nav:focus-visible {
    border-color: var(--iyishop-border);
    background: var(--iyishop-surface-2);
    color: var(--iyishop-ink);
    outline: none;
}

.iyishop-nav.is-active {
    border-color: rgba(var(--iyishop-accent-rgb), .28);
    background: rgba(var(--iyishop-accent-rgb), .13);
    color: #fff;
    box-shadow: inset 3px 0 var(--iyishop-accent);
}

.iyishop-nav.is-active .dashicons,
.iyishop-nav:hover .dashicons {
    color: var(--iyishop-accent);
}

.iyishop-sidebar-foot {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 8px 1fr auto;
    margin-top: 24px;
    padding: 13px 12px;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface);
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 700;
}

.iyishop-sidebar-foot small {
    color: #59657f;
    font-size: 10px;
}

.iyishop-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--iyishop-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.iyishop-status-dot.is-offline {
    background: var(--iyishop-warning);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.iyishop-main {
    min-width: 0;
    padding: 30px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--iyishop-accent-rgb), .06), transparent 27%),
        var(--iyishop-bg);
}

.iyishop-header,
.iyishop-toolbar,
.iyishop-bulkbar,
.iyishop-form-actions,
.iyishop-quick,
.iyishop-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.iyishop-header {
    justify-content: space-between;
    margin-bottom: 24px;
}

.iyishop-header h2 {
    margin: 3px 0 3px;
    color: var(--iyishop-ink);
    font-size: clamp(24px, 3vw, 31px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.iyishop-header p {
    margin: 0;
}

.iyishop-eyebrow,
.iyishop-card-kicker {
    color: var(--iyishop-accent) !important;
    font-size: 10px !important;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.iyishop-header-copy {
    color: var(--iyishop-muted);
    font-size: 13px;
}

.iyishop-view {
    display: none;
    animation: iyishop-view-in .22s ease-out;
}

.iyishop-view.is-active {
    display: block;
}

@keyframes iyishop-view-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.iyishop-card,
.iyishop-alert,
.iyishop-toolbar,
.iyishop-bulkbar,
.iyishop-table-wrap,
.iyishop-stat {
    border: 1px solid var(--iyishop-border);
    background: var(--iyishop-surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .14);
}

.iyishop-card,
.iyishop-alert {
    margin-bottom: 16px;
    padding: 21px;
    border-radius: var(--iyishop-radius);
}

.iyishop-card h3 {
    margin: 0 0 15px;
    color: var(--iyishop-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.iyishop-card-heading {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
}

.iyishop-card-heading h3 {
    margin: 2px 0 0;
}

.iyishop-card-heading > .dashicons {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(var(--iyishop-accent-rgb), .12);
    color: var(--iyishop-accent);
    font-size: 20px;
}

.iyishop-alert {
    position: sticky;
    z-index: 20;
    top: 10px;
    padding: 14px 16px 14px 44px;
    border-color: rgba(34, 197, 94, .28);
    background: rgba(34, 197, 94, .1);
    color: #bbf7d0;
    font-weight: 700;
    box-shadow: none;
}

.iyishop-alert::before {
    position: absolute;
    top: 14px;
    left: 17px;
    content: "✓";
    color: var(--iyishop-success);
    font-weight: 900;
}

.iyishop-alert.is-error {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
}

.iyishop-alert.is-error::before {
    content: "!";
    color: var(--iyishop-danger);
}

.iyishop-operation-status {
    position: fixed;
    z-index: 99999;
    right: 24px;
    bottom: 24px;
    display: flex;
    min-width: 230px;
    padding: 14px 18px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--iyishop-border);
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.iyishop-operation-status[hidden] { display: none !important; }
.iyishop-operation-status > span { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; }
.iyishop-operation-status.is-progress > span { border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: iyishop-spin .7s linear infinite; }
.iyishop-operation-status.is-success > span { display: grid; place-items: center; background: #22c55e; }
.iyishop-operation-status.is-success > span::before { content: "✓"; color: #fff; font-size: 12px; font-weight: 900; }
.iyishop-operation-status.is-error > span { display: grid; place-items: center; background: #ef4444; }
.iyishop-operation-status.is-error > span::before { content: "!"; color: #fff; font-size: 12px; font-weight: 900; }

.iyishop-active-sale-list { display: grid; gap: 10px; }
.iyishop-active-sale-item { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 15px; border: 1px solid var(--iyishop-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.iyishop-active-sale-percent { display: grid; min-height: 58px; place-items: center; border-radius: 12px; background: var(--iyishop-accent); color: #fff; font-size: 22px; font-weight: 900; }
.iyishop-active-sale-copy strong,.iyishop-active-sale-copy span,.iyishop-active-sale-copy small { display: block; }
.iyishop-active-sale-copy strong { color: var(--iyishop-ink); font-size: 15px; }
.iyishop-active-sale-copy span { margin-top: 3px; color: var(--iyishop-accent); font-size: 13px; font-weight: 800; }
.iyishop-active-sale-copy small { margin-top: 5px; overflow: hidden; color: var(--iyishop-muted); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
    .iyishop-operation-status { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
    .iyishop-active-sale-item { grid-template-columns: 70px minmax(0,1fr); }
    .iyishop-active-sale-item > .iyishop-pill { grid-column: 2; justify-self: start; }
}

.iyishop-stats {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.iyishop-stat-group {
    padding: 17px;
    border: 1px solid var(--iyishop-border);
    border-radius: var(--iyishop-radius);
    background: rgba(17, 24, 39, .44);
}

.iyishop-stat-group-heading {
    display: flex;
    margin-bottom: 13px;
    align-items: flex-end;
    justify-content: space-between;
}

.iyishop-stat-group-heading span {
    color: var(--iyishop-ink);
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.iyishop-stat-group-heading p {
    margin: 3px 0 0;
    color: var(--iyishop-muted);
    font-size: 11px;
}

.iyishop-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 11px;
}

.iyishop-stat {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    padding: 17px 18px;
    border-radius: 12px;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.iyishop-stat:hover {
    border-color: rgba(var(--iyishop-accent-rgb), .55);
    background: linear-gradient(145deg, rgba(var(--iyishop-accent-rgb), .15), var(--iyishop-surface) 68%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.iyishop-stat:focus-visible {
    outline: 2px solid var(--iyishop-accent);
    outline-offset: 3px;
}

.iyishop-stat::after {
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(138, 150, 184, .05);
    content: "";
}

.iyishop-stat::before {
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: rgba(var(--iyishop-accent-rgb), .34);
    content: "";
}

.iyishop-stat-grid .iyishop-stat:first-child {
    border-color: rgba(var(--iyishop-accent-rgb), .35);
    background: linear-gradient(145deg, rgba(var(--iyishop-accent-rgb), .15), var(--iyishop-surface) 64%);
}

.iyishop-stat span {
    display: block;
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.iyishop-stat strong {
    display: block;
    margin-top: 13px;
    color: var(--iyishop-ink);
    font-size: clamp(36px, 3vw, 46px);
    font-weight: 850;
    line-height: .95;
    letter-spacing: -.055em;
}

.iyishop-button {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 14px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface-2);
    color: var(--iyishop-ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.iyishop-button:hover,
.iyishop-button:focus-visible {
    border-color: #46516d;
    background: #262c3f;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.iyishop-button.is-primary {
    border-color: var(--iyishop-accent);
    background: var(--iyishop-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--iyishop-accent-rgb), .2);
}

.iyishop-button.is-primary:hover,
.iyishop-button.is-primary:focus-visible {
    border-color: var(--iyishop-accent-dark);
    background: var(--iyishop-accent-dark);
    box-shadow: 0 12px 28px rgba(var(--iyishop-accent-rgb), .3);
}

.iyishop-button.is-danger {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .1);
    color: #fca5a5;
    box-shadow: none;
}

.iyishop-button.is-danger:hover {
    border-color: var(--iyishop-danger);
    background: var(--iyishop-danger);
    color: #fff;
}

.iyishop-button:disabled,
.iyishop-button:disabled:hover {
    border-color: var(--iyishop-border);
    background: var(--iyishop-surface-2);
    color: #59657f;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.iyishop-toolbar,
.iyishop-bulkbar {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
}

.iyishop-toolbar input {
    max-width: 330px;
    flex: 1 1 220px;
}

.iyishop-toolbar select,
.iyishop-bulkbar select {
    max-width: 220px;
}

.iyishop-panel input,
.iyishop-panel select,
.iyishop-panel textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--iyishop-border);
    border-radius: 9px;
    background: var(--iyishop-surface-3);
    color: var(--iyishop-ink);
    font: inherit;
    box-shadow: none;
}

.iyishop-panel textarea {
    display: block;
    line-height: 1.55;
    resize: vertical;
}

.iyishop-panel input::placeholder,
.iyishop-panel textarea::placeholder {
    color: #59657f;
}

.iyishop-panel input:focus,
.iyishop-panel select:focus,
.iyishop-panel textarea:focus {
    border-color: var(--iyishop-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--iyishop-accent-rgb), .14);
}

.iyishop-panel input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--iyishop-accent);
}

.iyishop-panel input[type="file"] {
    padding: 8px;
}

.iyishop-panel input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--iyishop-surface-2);
    color: var(--iyishop-ink);
    cursor: pointer;
    font-weight: 700;
}

.iyishop-panel select[multiple] {
    padding: 6px;
    background: var(--iyishop-surface-3) !important;
    color: var(--iyishop-ink) !important;
}

.iyishop-panel select[multiple] option {
    margin: 2px 0;
    padding: 7px 9px;
    border-radius: 6px;
    background: var(--iyishop-surface-3);
    color: var(--iyishop-ink);
}

.iyishop-panel select[multiple] option:checked {
    background: var(--iyishop-accent) linear-gradient(0deg, var(--iyishop-accent), var(--iyishop-accent));
    color: #fff;
}

.iyishop-table-wrap {
    overflow: auto;
    border-radius: var(--iyishop-radius);
}

.iyishop-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    color: var(--iyishop-ink);
}

.iyishop-table th,
.iyishop-table td {
    padding: 12px;
    border-bottom: 1px solid var(--iyishop-border);
    text-align: left;
    vertical-align: middle;
}

.iyishop-table th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #141a27;
    color: var(--iyishop-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.iyishop-table tbody tr {
    transition: background .15s ease;
}

.iyishop-table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.iyishop-table tr:last-child td {
    border-bottom: 0;
}

.iyishop-table td .iyishop-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
}

.iyishop-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    object-fit: cover;
}

.iyishop-no-image {
    color: var(--iyishop-muted);
    font-size: 11px;
}

.iyishop-media-preview {
    display: grid;
    margin: 15px 0;
    padding: 14px;
    gap: 14px;
    grid-template-columns: minmax(120px, 180px) 1fr;
    border: 1px dashed #3b455f;
    border-radius: 11px;
    background: rgba(15, 20, 33, .55);
}

.iyishop-media-preview span {
    display: block;
    margin-bottom: 7px;
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.iyishop-media-preview img {
    width: 72px;
    height: 72px;
    aspect-ratio: 1;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    object-fit: cover;
}

.iyishop-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iyishop-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.iyishop-form-grid.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iyishop-section-heading {
    display: flex;
    margin-bottom: 18px;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
}

.iyishop-section-heading h3 {
    margin: 3px 0 4px;
    color: var(--iyishop-ink);
    font-size: 22px;
    letter-spacing: -.025em;
}

.iyishop-section-heading p {
    margin: 0;
    color: var(--iyishop-muted);
    font-size: 13px;
}

.iyishop-subsection-heading {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--iyishop-border);
}

.iyishop-popup-campaign-form {
    margin-bottom: 22px;
    border-color: rgba(var(--iyishop-accent-rgb), .32);
    background: linear-gradient(145deg, rgba(var(--iyishop-accent-rgb), .08), rgba(18, 24, 39, .96) 46%);
}

.iyishop-switch-label {
    display: inline-flex !important;
    min-height: 42px;
    padding: 9px 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .42);
    border-radius: 12px;
    background: rgba(var(--iyishop-accent-rgb), .11);
    color: #fff !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.iyishop-switch-label input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--iyishop-accent);
}

.iyishop-panel select[multiple] {
    min-height: 138px;
    padding: 6px;
}

.iyishop-panel select[multiple] option {
    padding: 7px 8px;
    border-radius: 6px;
}

.iyishop-module-grid {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr);
    gap: 16px;
    align-items: start;
}

.iyishop-module-grid > .iyishop-card {
    min-width: 0;
}

.iyishop-field-wide {
    grid-column: span 2;
}

.iyishop-check-label {
    display: flex !important;
    min-height: 42px;
    margin-top: 18px;
    gap: 9px;
    align-items: center;
    color: var(--iyishop-ink) !important;
}

.iyishop-check-label input {
    flex: 0 0 auto;
}

.iyishop-table-meta {
    display: block;
    margin-top: 3px;
    color: var(--iyishop-muted);
    font-size: 10px;
}

.iyishop-detail-card,
.iyishop-customer-editor {
    margin-top: 16px;
}

.iyishop-order-detail-grid {
    display: grid;
    margin-bottom: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.iyishop-order-detail-grid > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface-3);
}

.iyishop-order-detail-grid span,
.iyishop-order-detail-grid strong,
.iyishop-order-detail-grid small {
    display: block;
}

.iyishop-order-detail-grid span {
    margin-bottom: 5px;
    color: var(--iyishop-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.iyishop-order-detail-grid small {
    margin-top: 4px;
    color: var(--iyishop-muted);
}

.iyishop-table-wrap.is-compact {
    margin-bottom: 13px;
    box-shadow: none;
}

.iyishop-table-wrap.is-compact .iyishop-table {
    min-width: 520px;
}

.iyishop-order-update {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(260px, 1.3fr) auto;
    gap: 10px;
    align-items: end;
}

.iyishop-order-update > label,
.iyishop-shipping-fields label {
    display: grid;
    gap: 6px;
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 750;
}

.iyishop-shipping-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px;
    gap: 11px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .32);
    border-radius: 11px;
    background: rgba(var(--iyishop-accent-rgb), .06);
}

.iyishop-shipping-fields[hidden] {
    display: none;
}

.iyishop-shipping-heading {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iyishop-shipping-heading strong {
    color: var(--iyishop-ink);
}

.iyishop-shipping-heading span {
    color: var(--iyishop-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.iyishop-shipping-notice {
    grid-column: 1 / -1;
    color: var(--iyishop-muted);
    line-height: 1.45;
}

.iyishop-order-totals {
    display: flex;
    margin: 0 0 13px;
    padding: 11px 13px;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface-3);
    color: var(--iyishop-muted);
    font-size: 11px;
}

.iyishop-order-totals strong {
    margin-left: 4px;
    color: var(--iyishop-ink);
}

.iyishop-order-totals small {
    margin-left: auto;
}

.iyishop-order-note {
    margin-bottom: 13px;
    padding: 12px 13px;
    border-left: 3px solid var(--iyishop-accent);
    border-radius: 8px;
    background: rgba(var(--iyishop-accent-rgb), .07);
}

.iyishop-order-note p {
    margin: 4px 0 0;
    color: var(--iyishop-muted);
}

.iyishop-campaign-list {
    display: grid;
    gap: 9px;
}

.iyishop-sale-price-card {
    margin-bottom: 6px;
}

.iyishop-sale-price-card [data-campaign-sale-products] {
    min-height: 210px;
}

.iyishop-rule-help {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .22);
    border-radius: 9px;
    background: rgba(var(--iyishop-accent-rgb), .07);
    color: #cbd3e4;
    font-size: 12px;
    line-height: 1.55;
}

.iyishop-rule-list {
    display: grid;
    gap: 9px;
}

.iyishop-rule-presets {
    display: grid;
    margin-bottom: 16px;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
}

.iyishop-rule-preset {
    display: flex;
    min-width: 0;
    min-height: 150px;
    padding: 17px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid var(--iyishop-border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(var(--iyishop-accent-rgb), .08), var(--iyishop-surface) 55%);
    color: var(--iyishop-ink);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.iyishop-rule-preset strong,
.iyishop-rule-preset small {
    display: block;
}

.iyishop-rule-preset strong {
    margin: 5px 0;
    font-size: 14px;
}

.iyishop-rule-preset small {
    color: var(--iyishop-muted);
    font-size: 11px;
}

.iyishop-rule-preset .iyishop-button {
    width: 100%;
    min-height: 34px;
    margin-top: 15px;
    font-size: 11px;
}

.iyishop-category-list {
    display: grid;
    gap: 9px;
}

.iyishop-category-item {
    display: flex;
    padding: 12px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface-3);
}

.iyishop-category-item strong,
.iyishop-category-item small {
    display: block;
}

.iyishop-category-item small {
    margin-top: 3px;
    color: var(--iyishop-muted);
    font-size: 10px;
}

.iyishop-rule-item {
    display: grid;
    padding: 12px;
    grid-template-columns: minmax(165px, 1.25fr) minmax(135px, .9fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--iyishop-border);
    border-radius: 11px;
    background: var(--iyishop-surface-3);
}

.iyishop-rule-item.is-enabled {
    border-color: rgba(34, 197, 94, .25);
}

.iyishop-rule-main {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: center;
}

.iyishop-rule-main strong,
.iyishop-rule-main small,
.iyishop-rule-meta span,
.iyishop-rule-meta small {
    display: block;
}

.iyishop-rule-main strong,
.iyishop-rule-meta span,
.iyishop-rule-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.iyishop-rule-main small,
.iyishop-rule-meta small {
    margin-top: 3px;
    color: var(--iyishop-muted);
    font-size: 10px;
}

.iyishop-rule-meta {
    min-width: 0;
    color: #cbd3e4;
    font-size: 11px;
}

.iyishop-rule-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid var(--iyishop-border);
    border-radius: 9px;
    background: var(--iyishop-surface-2);
    color: var(--iyishop-muted);
    font-weight: 900;
}

.iyishop-rule-item.is-enabled .iyishop-rule-icon {
    border-color: rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
}

.iyishop-campaign-item {
    display: grid;
    padding: 12px;
    grid-template-columns: minmax(130px, 1.4fr) minmax(85px, .7fr) minmax(85px, .7fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--iyishop-border);
    border-radius: 11px;
    background: var(--iyishop-surface-3);
}

.iyishop-campaign-code span,
.iyishop-campaign-code small,
.iyishop-campaign-value strong,
.iyishop-campaign-value small,
.iyishop-campaign-usage span,
.iyishop-campaign-usage small {
    display: block;
}

.iyishop-campaign-code span {
    color: var(--iyishop-accent);
    font-weight: 850;
    letter-spacing: .04em;
}

.iyishop-campaign-item small {
    margin-top: 2px;
    color: var(--iyishop-muted);
    font-size: 10px;
}

.iyishop-inline-actions {
    display: flex;
    gap: 5px;
}

.iyishop-inline-actions .iyishop-button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 10px;
}

.iyishop-empty-card {
    padding: 35px 16px;
    border: 1px dashed var(--iyishop-border);
    border-radius: 10px;
    color: var(--iyishop-muted);
    text-align: center;
}

.iyishop-pill.is-status.is-order-completed,
.iyishop-pill.is-status.is-order-processing {
    border-color: rgba(34, 197, 94, .2);
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
}

.iyishop-pill.is-status.is-order-cancelled,
.iyishop-pill.is-status.is-order-failed,
.iyishop-pill.is-status.is-order-refunded {
    border-color: rgba(239, 68, 68, .2);
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

.iyishop-option-inputs {
    display: contents;
}

.iyishop-form label {
    display: block;
    margin-bottom: 13px;
    color: var(--iyishop-muted);
    font-size: 12px;
    font-weight: 750;
}

.iyishop-form label input,
.iyishop-form label select,
.iyishop-form label textarea {
    margin-top: 6px;
}

.iyishop-form-actions {
    margin-top: 4px;
}

.iyishop-file-field {
    display: block;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px dashed #46516d;
    border-radius: 11px;
    background: rgba(15, 20, 33, .7);
    color: var(--iyishop-muted);
    font-weight: 750;
}

.iyishop-file-field input {
    margin-top: 9px;
}

.iyishop-muted {
    color: var(--iyishop-muted);
}

.iyishop-bulk-result {
    margin-top: 14px;
}

.iyishop-bulk-operation-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.iyishop-bulk-operation-grid > .iyishop-card {
    min-width: 0;
    margin-bottom: 0;
}

.iyishop-bulk-operation-grid select[multiple] {
    min-height: 250px;
}

.iyishop-selection-summary {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .3);
    border-radius: 10px;
    background: rgba(var(--iyishop-accent-rgb), .09);
    color: var(--iyishop-muted);
}

.iyishop-selection-summary strong {
    color: var(--iyishop-ink);
}

.iyishop-bulk-result details {
    margin-top: 10px;
    color: var(--iyishop-muted);
}

.iyishop-bulk-result summary {
    cursor: pointer;
    color: var(--iyishop-warning);
    font-weight: 750;
}

.iyishop-bulk-result ul {
    max-height: 220px;
    overflow: auto;
    padding-left: 22px;
}

.iyishop-option-field-list {
    display: grid;
    gap: 9px;
}

.iyishop-option-field-row {
    display: flex;
    padding: 12px 13px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--iyishop-border);
    border-radius: 10px;
    background: var(--iyishop-surface-3);
}

.iyishop-option-field-row small {
    display: block;
    margin-top: 2px;
    color: var(--iyishop-muted);
}

.iyishop-pill {
    display: inline-flex;
    margin: 2px;
    padding: 5px 9px;
    align-items: center;
    border: 1px solid rgba(138, 150, 184, .14);
    border-radius: 999px;
    background: rgba(138, 150, 184, .1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.iyishop-pill.is-status {
    border-color: rgba(245, 158, 11, .2);
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
}

.iyishop-pill.is-status.is-publish {
    border-color: rgba(34, 197, 94, .2);
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
}

.iyishop-pill.is-status.is-private {
    border-color: rgba(138, 150, 184, .2);
    background: rgba(138, 150, 184, .12);
    color: #b5bfd9;
}

.iyishop-log-retention {
    display: flex;
    margin-bottom: 16px;
    padding: 15px 17px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .25);
    border-radius: 12px;
    background: rgba(var(--iyishop-accent-rgb), .08);
}

.iyishop-log-retention > .dashicons {
    width: 34px;
    height: 34px;
    color: var(--iyishop-accent);
    font-size: 34px;
}

.iyishop-log-retention strong,
.iyishop-log-retention small {
    display: block;
}

.iyishop-log-retention small {
    margin-top: 3px;
    color: var(--iyishop-muted);
}

.iyishop-log-stats {
    display: grid;
    margin-bottom: 16px;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
}

.iyishop-log-stats article {
    padding: 16px;
    border: 1px solid var(--iyishop-border);
    border-radius: 12px;
    background: var(--iyishop-surface-2);
}

.iyishop-log-stats span,
.iyishop-log-stats strong {
    display: block;
}

.iyishop-log-stats span {
    color: var(--iyishop-muted);
    font-size: 12px;
    font-weight: 700;
}

.iyishop-log-stats strong {
    margin-top: 6px;
    color: var(--iyishop-ink);
    font-size: 30px;
    line-height: 1;
}

.iyishop-log-stats article.is-error strong {
    color: #f87171;
}

.iyishop-log-toolbar {
    flex-wrap: wrap;
}

.iyishop-log-toolbar label {
    display: grid;
    min-width: 145px;
    gap: 4px;
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 700;
}

.iyishop-logs-table {
    min-width: 1120px;
}

.iyishop-log-date {
    white-space: nowrap;
}

.iyishop-log-description {
    min-width: 260px;
    line-height: 1.45;
}

.iyishop-log-target {
    white-space: nowrap;
}

.iyishop-logs-table code {
    color: #a5b4fc;
    font-size: 11px;
}

.iyishop-pill.is-status.is-log-success {
    border-color: rgba(34, 197, 94, .2);
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
}

.iyishop-pill.is-status.is-log-error {
    border-color: rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

.iyishop-empty-state {
    padding: 44px 20px !important;
    color: var(--iyishop-muted);
    text-align: center !important;
}

.iyishop-empty-state.is-loading {
    color: var(--iyishop-muted);
}

.iyishop-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(138, 150, 184, .28);
    border-top-color: var(--iyishop-accent);
    border-radius: 50%;
    animation: iyishop-spin .7s linear infinite;
}

.iyishop-pagination {
    display: flex;
    min-height: 48px;
    padding: 10px 2px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--iyishop-muted);
    font-size: 11px;
    font-weight: 700;
}

.iyishop-pagination:empty {
    display: none;
}

.iyishop-pagination > div {
    display: flex;
    gap: 7px;
}

.iyishop-pagination .iyishop-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
}

@keyframes iyishop-spin {
    to { transform: rotate(360deg); }
}

.iyishop-auth {
    min-height: min(760px, calc(100vh - 48px));
    display: grid;
    padding: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--iyishop-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 12%, rgba(var(--iyishop-accent-rgb), .16), transparent 30%),
        radial-gradient(circle at 90% 100%, rgba(138, 150, 184, .08), transparent 28%),
        var(--iyishop-bg);
    box-shadow: 0 30px 80px rgba(2, 6, 23, .24);
}

.iyishop-auth-shell {
    display: grid;
    width: min(1020px, 100%);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    overflow: hidden;
    border: 1px solid var(--iyishop-border);
    border-radius: 22px;
    background: rgba(13, 19, 32, .82);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}

.iyishop-auth-intro,
.iyishop-auth-card {
    min-width: 0;
    padding: clamp(34px, 5vw, 64px);
}

.iyishop-auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(var(--iyishop-accent-rgb), .14), transparent 54%),
        var(--iyishop-surface);
}

.iyishop-auth-intro::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(var(--iyishop-accent-rgb), .14);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(var(--iyishop-accent-rgb), .035), 0 0 0 76px rgba(var(--iyishop-accent-rgb), .025);
    content: "";
    pointer-events: none;
}

.iyishop-auth-brand {
    margin: 0 0 70px;
}

.iyishop-auth-copy,
.iyishop-auth-features {
    position: relative;
    z-index: 1;
}

.iyishop-auth-copy h1,
.iyishop-auth-card h2 {
    margin: 8px 0 12px;
    color: var(--iyishop-ink) !important;
    font-family: inherit;
    font-weight: 820;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.iyishop-auth-copy h1 {
    max-width: 520px;
    font-size: clamp(34px, 4vw, 52px);
}

.iyishop-auth-copy > p:last-child {
    max-width: 510px;
    margin: 0;
    color: var(--iyishop-muted) !important;
    font-size: 15px;
}

.iyishop-auth-features {
    display: grid;
    margin-top: 54px;
    gap: 12px;
    color: #dbe3f5;
    font-size: 13px;
    font-weight: 700;
}

.iyishop-auth-features span {
    display: flex;
    gap: 10px;
    align-items: center;
}

.iyishop-auth-features i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: rgba(34, 197, 94, .12);
    color: #86efac;
    font-style: normal;
}

.iyishop-auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--iyishop-surface-3);
}

.iyishop-auth-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 13px;
    background: rgba(var(--iyishop-accent-rgb), .12);
    color: var(--iyishop-accent);
    font-size: 22px;
}

.iyishop-auth-card h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.iyishop-auth-muted {
    margin: 0 0 25px !important;
    color: var(--iyishop-muted) !important;
    font-size: 13px;
}

.iyishop-auth-notice {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 9px;
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
}

.iyishop-auth-form {
    display: grid;
    gap: 16px;
}

.iyishop-auth-form > label {
    display: grid;
    margin: 0;
    gap: 7px;
    color: #dbe3f5 !important;
    font-size: 12px;
    font-weight: 750;
}

.iyishop-auth-form input:not([type="checkbox"]) {
    min-height: 48px;
    padding: 11px 13px;
}

.iyishop-auth-options {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--iyishop-muted);
    font-size: 12px;
}

.iyishop-auth-options a {
    color: #fda497;
    font-weight: 700;
    text-decoration: none;
}

.iyishop-auth-remember {
    display: flex !important;
    gap: 7px !important;
    align-items: center;
    color: var(--iyishop-muted) !important;
    cursor: pointer;
}

.iyishop-auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.iyishop-auth-security {
    display: flex;
    margin: 25px 0 0 !important;
    gap: 9px;
    align-items: center;
    justify-content: center;
    color: #59657f !important;
    font-size: 11px;
    font-weight: 700;
}

/* Mağaza ürün sayfasındaki müşteri seçenekleri panel kabuğundan bağımsızdır. */
.iyishop-product-options {
    display: grid;
    margin: 14px 0;
    padding: 14px;
    gap: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
}

.iyishop-product-options label {
    display: grid;
    gap: 5px;
    color: inherit;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .iyishop-rule-presets {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .iyishop-stat-grid {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }

    .iyishop-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iyishop-module-grid {
        grid-template-columns: 1fr;
    }

    .iyishop-campaign-item {
        grid-template-columns: minmax(130px, 1.4fr) repeat(3, auto);
    }

    .iyishop-campaign-usage {
        display: none;
    }
}

@media (max-width: 900px) {
    .iyishop-panel.is-frontend {
        width: calc(100vw - 24px);
        margin: 12px 0;
    }

    .iyishop-auth {
        min-height: calc(100vh - 24px);
        padding: 22px;
    }

    .iyishop-auth-shell {
        grid-template-columns: 1fr;
    }

    .iyishop-auth-intro {
        display: none;
    }

    .iyishop-admin-page .iyishop-panel {
        margin-right: 10px;
    }

    .iyishop-shell {
        grid-template-columns: 1fr;
        border-radius: 15px;
    }

    .iyishop-sidebar {
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid var(--iyishop-border);
    }

    .iyishop-brand {
        margin: 0 4px 13px;
    }

    .iyishop-navigation {
        display: flex;
        padding-bottom: 3px;
        flex-direction: row;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .iyishop-nav-label,
    .iyishop-sidebar-foot {
        display: none;
    }

    .iyishop-nav {
        width: auto;
        min-width: max-content;
        padding: 0 12px;
    }

    .iyishop-nav.is-active {
        box-shadow: inset 0 -3px var(--iyishop-accent);
    }

    .iyishop-main {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .iyishop-log-stats {
        grid-template-columns: 1fr;
    }

    .iyishop-log-retention {
        align-items: flex-start;
    }
    .iyishop-rule-presets {
        grid-template-columns: 1fr;
    }

    .iyishop-panel.is-frontend {
        width: 100vw;
        margin: 0;
    }

    .iyishop-auth {
        min-height: 100vh;
        padding: 16px;
        border: 0;
        border-radius: 0;
    }

    .iyishop-auth-shell {
        border-radius: 17px;
    }

    .iyishop-auth-card {
        padding: 30px 22px;
    }

    .iyishop-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .iyishop-main {
        padding: 16px;
        overflow-x: hidden;
    }

    .iyishop-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .iyishop-card,
    .iyishop-card-heading,
    .iyishop-bulk-operation-grid {
        min-width: 0;
        max-width: 100%;
    }

    .iyishop-card-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .iyishop-card-heading > .iyishop-button {
        width: 100%;
    }

    .iyishop-header-copy,
    .iyishop-muted,
    .iyishop-selection-summary {
        overflow-wrap: anywhere;
    }

    .iyishop-actions,
    .iyishop-header .iyishop-button {
        width: 100%;
    }

    .iyishop-actions .iyishop-button {
        flex: 1;
    }

    .iyishop-stat-grid,
    .iyishop-form-grid,
    .iyishop-form-grid.is-two,
    .iyishop-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .iyishop-field-wide {
        grid-column: auto;
    }

    .iyishop-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .iyishop-order-update {
        grid-template-columns: 1fr;
    }

    .iyishop-shipping-fields {
        grid-template-columns: 1fr;
    }

    .iyishop-order-totals {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .iyishop-order-totals small {
        margin-left: 0;
    }

    .iyishop-category-item {
        align-items: stretch;
        flex-direction: column;
    }

    .iyishop-campaign-item {
        grid-template-columns: 1fr auto;
    }

    .iyishop-rule-item {
        grid-template-columns: 1fr auto;
    }

    .iyishop-rule-meta,
    .iyishop-rule-item .iyishop-inline-actions {
        grid-column: 1 / -1;
    }

    .iyishop-campaign-value,
    .iyishop-campaign-usage {
        display: block;
    }

    .iyishop-campaign-value,
    .iyishop-campaign-usage,
    .iyishop-inline-actions {
        grid-column: 1 / -1;
    }

    .iyishop-stat {
        min-height: 100px;
    }

    .iyishop-stat-group {
        padding: 13px;
    }

    .iyishop-stat strong {
        font-size: 38px;
    }

    .iyishop-toolbar,
    .iyishop-bulkbar {
        align-items: stretch;
        flex-direction: column;
    }

    .iyishop-toolbar input,
    .iyishop-toolbar select,
    .iyishop-bulkbar select,
    .iyishop-toolbar .iyishop-button,
    .iyishop-bulkbar .iyishop-button {
        width: 100%;
        max-width: none;
    }

    .iyishop-toolbar input {
        flex: 0 0 auto;
    }

    .iyishop-campaign-item > .iyishop-pill {
        justify-self: start;
    }

    .iyishop-media-preview {
        grid-template-columns: 1fr;
    }

    .iyishop-bulk-operation-grid {
        grid-template-columns: 1fr;
    }

    .iyishop-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .iyishop-pagination > div .iyishop-button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iyishop-view,
    .iyishop-nav,
    .iyishop-button,
    .iyishop-spinner {
        animation: none;
        transition: none;
    }
}

.iyishop-smart-media-preview:empty {
    display: none;
}

.iyishop-nebim-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 14px;
}

.iyishop-nebim-fullpage {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

.iyishop-nebim-fullpage > .iyishop-card {
    width: 100%;
}

.iyishop-nebim-progress-track {
    position: relative;
    height: 28px;
    margin: 12px 0 20px;
    overflow: hidden;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 999px;
    background: #0f1420;
}

.iyishop-nebim-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--iyishop-accent), #fb923c);
    transition: width .35s ease;
}

.iyishop-nebim-progress-track > strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    text-shadow: 0 1px 2px #000;
}

.iyishop-nebim-comparison {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.iyishop-nebim-comparison details {
    padding: 13px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.iyishop-nebim-comparison summary {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 9px;
}

.iyishop-nebim-comparison summary strong {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #2a3145;
}

.iyishop-nebim-comparison .is-new summary strong { background:#166534; }
.iyishop-nebim-comparison .is-update summary strong { background:#9a3412; }
.iyishop-nebim-comparison .is-same summary strong { background:#334155; }
.iyishop-nebim-comparison .is-remove summary strong { background:#991b1b; }
.iyishop-nebim-comparison ul { max-height:260px; margin:12px 0 0; padding-left:18px; overflow:auto; }
.iyishop-nebim-comparison li { margin:7px 0; }
.iyishop-nebim-comparison li small { display:block; color:var(--iyishop-muted); }

.iyishop-nebim-unmatched { margin-top:18px; }
.iyishop-unmatched-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.iyishop-unmatched-grid article { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px; border:1px solid var(--iyishop-border,#2A3145); border-radius:12px; background:rgba(255,255,255,.025); }
.iyishop-unmatched-grid article small { display:block; margin-top:4px; color:var(--iyishop-muted); }

.iyishop-media-picker { margin-top:18px; padding:16px; border:1px solid var(--iyishop-border,#2A3145); border-radius:14px; background:#111827; }
.iyishop-media-picker[data-media-assignment-picker] {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: block;
    width: min(760px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(760px, calc(100vh - 48px));
    margin: auto;
    padding: 20px;
    overflow: auto;
    border-color: rgba(var(--iyishop-accent-rgb), .55);
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 0 0 100vmax rgba(2, 6, 23, .78), 0 28px 80px rgba(0, 0, 0, .5);
}
.iyishop-media-picker-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.iyishop-media-choice { display:flex; min-width:0; padding:10px; border:1px solid var(--iyishop-border,#2A3145); border-radius:12px; background:rgba(255,255,255,.025); color:#fff; cursor:pointer; flex-direction:column; gap:7px; text-align:left; }
.iyishop-media-choice:hover { border-color:var(--iyishop-accent); }
.iyishop-media-choice img { width:100%; aspect-ratio:1; border-radius:9px; object-fit:cover; }
.iyishop-media-choice strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.iyishop-existing-media-scan {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
    align-items: center;
}

.iyishop-existing-media-scan small { display: block; margin-top: 4px; color: var(--iyishop-muted); }

.iyishop-nebim-publish-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.iyishop-nebim-publish-summary > div {
    display: flex;
    min-height: 76px;
    padding: 13px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    flex-direction: column;
    justify-content: center;
}

.iyishop-nebim-publish-summary strong { color: #fff; font-size: 22px; }
.iyishop-nebim-publish-summary span { margin-top: 4px; color: var(--iyishop-muted); font-size: 12px; }

.iyishop-nebim-workflow > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.iyishop-nebim-workflow > div > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #46516d;
    border-radius: 50%;
    color: var(--iyishop-muted);
    font-weight: 900;
}

.iyishop-nebim-workflow strong,
.iyishop-nebim-workflow small {
    display: block;
}

.iyishop-nebim-workflow small {
    margin-top: 3px;
    color: var(--iyishop-muted);
}

.iyishop-nebim-workflow > .is-active {
    border-color: rgba(var(--iyishop-accent-rgb, 241,90,69), .65);
    background: rgba(var(--iyishop-accent-rgb, 241,90,69), .1);
}

.iyishop-nebim-workflow > .is-active > span {
    border-color: var(--iyishop-accent);
    background: var(--iyishop-accent);
    color: #fff;
}

.iyishop-nebim-workflow > .is-complete > span {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.iyishop-nebim-workflow > .is-complete > span::after {
    content: "✓";
}

.iyishop-nebim-workflow > .is-complete > span {
    font-size: 0;
}

.iyishop-nebim-workflow > .is-complete > span::after {
    font-size: 14px;
}

.iyishop-nebim-workflow > .is-locked,
.iyishop-nebim-stage.is-locked {
    opacity: .5;
}

.iyishop-nebim-stage {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 14px;
    background: rgba(15, 20, 33, .55);
    scroll-margin-top: 24px;
}

.iyishop-stage-heading {
    margin-bottom: 12px;
}

.iyishop-stage-heading > span {
    color: var(--iyishop-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.iyishop-stage-heading h3,
.iyishop-stage-heading h4 {
    margin: 5px 0 0;
}

.iyishop-smart-media-card [data-smart-media-apply-wrap] {
    position: sticky;
    z-index: 6;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    padding: 13px 14px;
    border: 1px solid rgba(var(--iyishop-accent-rgb, 241,90,69), .45);
    border-radius: 12px;
    background: rgba(23, 28, 42, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
}

.iyishop-smart-media-card [data-smart-media-apply-wrap][hidden] {
    display: none !important;
}

.iyishop-smart-media-card [data-smart-media-apply-summary] {
    color: #f8fafc;
}

.iyishop-result-card {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, .45);
    border-radius: 12px;
    background: rgba(34, 197, 94, .09);
    color: #dcfce7;
}

.iyishop-result-card.is-warning {
    border-color: rgba(245, 158, 11, .5);
    background: rgba(245, 158, 11, .1);
    color: #fef3c7;
}

.iyishop-result-card p {
    margin: 6px 0 0;
}

.iyishop-smart-media-table td {
    min-width: 150px;
    vertical-align: top;
}

.iyishop-smart-media-table td:first-child {
    min-width: 84px;
    width: 84px;
}

.iyishop-smart-media-table td:last-child {
    min-width: 230px;
}

.iyishop-smart-media-table select {
    min-width: 220px;
    width: 100%;
}

.iyishop-smart-media-table small,
.iyishop-smart-media-item small,
.iyishop-smart-media-table strong {
    display: block;
    margin-top: 6px;
}

.iyishop-smart-media-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 10px;
    object-fit: cover;
}

.iyishop-smart-media-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.iyishop-smart-media-item {
    display: flex;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    flex-direction: column;
    gap: 8px;
}

.iyishop-smart-media-item > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.iyishop-smart-media-item > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #0f1420;
    object-fit: cover;
}

.iyishop-smart-media-item > strong,
.iyishop-smart-media-item > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iyishop-smart-media-item .iyishop-inline-actions {
    margin-top: auto;
}

.iyishop-button.is-danger {
    border-color: rgba(239,68,68,.55);
    color: #fecaca;
}

.iyishop-product-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.iyishop-product-media-card {
    display: grid;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
}

.iyishop-product-media-card.is-unmatched {
    border-color: rgba(245, 158, 11, .5);
    background: rgba(245, 158, 11, .055);
}

.iyishop-product-media-visual {
    position: relative;
    display: grid;
    width: 76px;
    height: 86px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 11px;
    background: #0f1420;
    color: var(--iyishop-muted);
    text-align: center;
}

.iyishop-product-media-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iyishop-product-media-visual > span:not(.dashicons) {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(22, 163, 74, .92);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.iyishop-product-media-visual .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.iyishop-product-media-visual > strong {
    font-size: 10px;
}

.iyishop-product-media-copy {
    min-width: 0;
}

.iyishop-product-media-copy strong,
.iyishop-product-media-copy small,
.iyishop-product-media-copy code {
    display: block;
}

.iyishop-product-media-copy small {
    margin-top: 5px;
    color: var(--iyishop-muted);
}

.iyishop-product-media-copy code {
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iyishop-product-media-card > .iyishop-inline-actions {
    grid-column: 1 / -1;
}

.iyishop-uploaded-file-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.iyishop-uploaded-file-strip article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.iyishop-uploaded-file-strip article.is-unmatched {
    border-color: rgba(245, 158, 11, .5);
}

.iyishop-uploaded-file-strip img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    object-fit: cover;
}

.iyishop-uploaded-file-strip div,
.iyishop-uploaded-file-strip strong {
    min-width: 0;
}

.iyishop-uploaded-file-strip strong,
.iyishop-uploaded-file-strip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iyishop-uploaded-file-strip small {
    margin-top: 4px;
    color: var(--iyishop-muted);
}

.iyishop-media-manager-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.iyishop-media-manager-tabs .iyishop-button.is-active {
    border-color: var(--iyishop-accent);
    background: rgba(var(--iyishop-accent-rgb, 241,90,69), .14);
    color: #fff;
}

.iyishop-media-manager-tabs span {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    margin-left: 5px;
    padding: 2px 6px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 11px;
}

.iyishop-managed-media-item.is-matched {
    border-color: rgba(34, 197, 94, .42);
}

.iyishop-managed-media-item.is-unmatched {
    border-color: rgba(245, 158, 11, .46);
}

.iyishop-media-assignment-labels {
    display: grid;
    gap: 5px;
}

.iyishop-media-assignment-labels span {
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(34, 197, 94, .1);
    color: #bbf7d0;
    font-size: 11px;
}

.iyishop-media-assignment-labels span.is-unmatched {
    background: rgba(245, 158, 11, .1);
    color: #fde68a;
}

.iyishop-media-target-list {
    display: grid;
    gap: 8px;
    max-height: 420px;
    margin-top: 14px;
    overflow: auto;
}

.iyishop-media-target-choice {
    display: flex;
    width: 100%;
    padding: 12px 13px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--iyishop-border, #2A3145);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.iyishop-media-target-choice:hover,
.iyishop-media-target-choice:focus-visible {
    border-color: var(--iyishop-accent);
    outline: none;
}

.iyishop-media-target-choice span {
    color: var(--iyishop-muted);
    font-size: 11px;
}

@media (max-width: 760px) {
    .iyishop-nebim-comparison,
    .iyishop-unmatched-grid,
    .iyishop-nebim-publish-summary {
        grid-template-columns: 1fr 1fr;
    }
    .iyishop-nebim-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iyishop-smart-media-card [data-smart-media-apply-wrap] {
        align-items: stretch;
        flex-direction: column;
    }

    .iyishop-existing-media-scan {
        grid-template-columns: 1fr;
    }

    .iyishop-smart-media-library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iyishop-smart-media-table td,
    .iyishop-smart-media-table td:last-child {
        min-width: 190px;
    }

    .iyishop-product-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .iyishop-nebim-comparison,
    .iyishop-unmatched-grid,
    .iyishop-nebim-publish-summary {
        grid-template-columns: 1fr;
    }
    .iyishop-nebim-workflow {
        grid-template-columns: 1fr;
    }

    .iyishop-smart-media-library {
        grid-template-columns: 1fr;
    }
}
