:root {
    --page-bg: #f4f8fc;
    --panel-bg: #ffffff;
    --panel-soft: #eaf3fb;
    --line: #b9cee0;
    --line-strong: #7fa8c9;
    --text: #1d2d3a;
    --muted: #526b7d;
    --blue: #1f6fae;
    --blue-dark: #164e7c;
    --blue-light: #d8eafb;
    --warning-bg: #fff8df;
    --warning-line: #d8b645;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--line-strong);
}

.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--blue-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    padding: 8px 12px;
    background: var(--blue-light);
    border: 1px solid var(--line-strong);
    color: var(--blue-dark);
    font-weight: 600;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px;
}

.hero-panel,
.panel,
.card,
.auth-panel {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    padding: 24px;
    margin-bottom: 20px;
}

.hero-panel {
    background: linear-gradient(90deg, #ffffff 0%, var(--panel-soft) 100%);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

p:last-child {
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-stack {
    display: grid;
    gap: 16px;
    max-width: 420px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input,
button {
    font: inherit;
    border-radius: 0;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
}

button {
    padding: 10px 14px;
    border: 1px solid var(--blue-dark);
    background: var(--blue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
button:focus {
    background: var(--blue-dark);
}

.panel--warning {
    background: var(--warning-bg);
    border-left-color: var(--warning-line);
}

.panel--success {
    background: #eefaf3;
    border-left-color: #2d9b58;
}

@media (max-width: 760px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid--three {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.status-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    padding: 14px;
    display: grid;
    gap: 4px;
}

.status-card strong {
    color: var(--blue-dark);
}

.status-card span {
    color: var(--muted);
}

.status-card--ok {
    border-top-color: #2d8a57;
}

.status-card--bad {
    border-top-color: #b54b4b;
}

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

.card--success {
    border-left-color: #2d8a57;
}

.card--warning {
    border-left-color: var(--warning-line);
    background: var(--warning-bg);
}

.definition-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 14px;
    margin: 0;
}

.definition-list dt {
    color: var(--blue-dark);
    font-weight: 700;
}

.definition-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    background: #ffffff;
}

.data-table th,
.data-table td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.inline-form {
    margin-top: 14px;
}

.button-link {
    display: inline-block;
    border: 1px solid var(--blue-dark);
    background: var(--blue);
    color: #ffffff;
    padding: 8px 12px;
    font-weight: 700;
}

.button-link:hover,
.button-link:focus {
    background: var(--blue-dark);
    color: #ffffff;
    text-decoration: none;
}

.plain-list {
    margin: 0;
    padding-left: 20px;
}

.plain-list li + li {
    margin-top: 6px;
}

.code-block {
    background: #eef6fd;
    border: 1px solid var(--line);
    padding: 14px;
    overflow-x: auto;
    color: #17364f;
}

@media (max-width: 760px) {
    .status-strip,
    .grid--two {
        grid-template-columns: 1fr;
    }

    .definition-list {
        grid-template-columns: 1fr;
    }
}

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

.card--success,
.status-card--ok,
.flash--success {
    border-color: #7fb694;
    border-left-color: #2d8a57;
}

.card--warning,
.status-card--bad,
.flash--error {
    border-color: #d8b645;
    border-left-color: #b07900;
}

.flash {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.button-link {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--blue-dark);
    background: var(--blue-light);
    color: var(--blue-dark);
    font-weight: 700;
}

.button-link:hover,
.button-link:focus {
    background: #c2ddf4;
    text-decoration: none;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-form {
    margin-top: 16px;
}

.definition-list {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 8px 14px;
    margin: 0;
}

.definition-list dt {
    font-weight: 700;
    color: var(--blue-dark);
}

.definition-list dd {
    margin: 0;
    word-break: break-word;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin-top: 12px;
}

.data-table th,
.data-table td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.code-block {
    overflow-x: auto;
    background: #eef6fd;
    border: 1px solid var(--line);
    padding: 14px;
}

.plain-list {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .grid--two,
    .status-strip {
        grid-template-columns: 1fr;
    }

    .definition-list {
        grid-template-columns: 1fr;
    }
}

.notice-box {
    border: 1px solid var(--line);
    background: #eef6fd;
    padding: 14px;
    margin: 16px 0;
    display: grid;
    gap: 6px;
}

.notice-box--warning,
.status-card--warn {
    border-color: #d6a33a;
    background: #fff7df;
}

.notice-box code,
.panel code {
    background: #e7f1fb;
    border: 1px solid var(--line);
    padding: 2px 5px;
}

select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    border-radius: 0;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-sidebar {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.admin-sidebar h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--blue-dark);
}

.admin-sidebar a {
    display: block;
    padding: 8px 10px;
    background: var(--blue-light);
    border: 1px solid var(--line);
    font-weight: 700;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus {
    background: #c2ddf4;
    text-decoration: none;
}

.admin-content {
    min-width: 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    padding: 16px;
}

.metric-card strong {
    display: block;
    font-size: 30px;
    color: var(--blue-dark);
    line-height: 1;
}

.metric-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

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

.field-wide {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
}

@media (max-width: 900px) {
    .admin-layout,
    .metric-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-page-header {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    padding: 20px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.admin-page-header h1 {
    margin-bottom: 8px;
}

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid #a7c7e3;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
}

.admin-sidebar {
    gap: 14px;
}

.admin-sidebar__group {
    display: grid;
    gap: 7px;
}

.admin-sidebar a.is-active {
    background: var(--blue);
    color: #ffffff;
    border-color: var(--blue-dark);
}

.admin-sidebar a.is-active:hover,
.admin-sidebar a.is-active:focus {
    background: var(--blue-dark);
    color: #ffffff;
}

.admin-signout-form {
    margin-top: -8px;
    margin-bottom: 18px;
}

.collapsible-admin-form details {
    display: block;
}

.collapsible-admin-form summary {
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-dark);
}

.form-grid--inside-details {
    margin-top: 16px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h2 {
    margin: 0;
}

.result-count {
    border: 1px solid var(--line-strong);
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: 5px 8px;
    font-weight: 700;
}

.list-toolbar {
    background: #eef6fd;
    border: 1px solid var(--line);
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.list-toolbar__search {
    min-width: 0;
}

.admin-table th {
    white-space: nowrap;
}

.admin-table tbody tr:nth-child(even) {
    background: #f8fbfe;
}

.status-pill {
    display: inline-block;
    border: 1px solid var(--line-strong);
    padding: 3px 7px;
    font-weight: 700;
    background: #ffffff;
}

.status-pill--on {
    border-color: #7fb694;
    background: #e9f7ee;
    color: #1d6a3d;
}

.status-pill--off {
    border-color: #d8b645;
    background: #fff8df;
    color: #805f00;
}

.pagination-bar {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    font-weight: 700;
}

.pagination-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-links a {
    border: 1px solid var(--line-strong);
    background: var(--blue-light);
    padding: 5px 8px;
}

@media (max-width: 900px) {
    .admin-page-header,
    .pagination-bar,
    .section-title-row {
        display: grid;
    }

    .list-toolbar {
        grid-template-columns: 1fr;
    }
}

.settings-form {
    display: grid;
    gap: 12px;
}

.settings-form--compact {
    gap: 12px;
}

.settings-overview-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr) minmax(220px, .75fr);
    gap: 10px;
    margin-bottom: 12px;
}

.settings-overview-card {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-left: 4px solid #6f8799;
    background: #f7fafc;
    display: grid;
    gap: 4px;
}

.settings-overview-card--runtime { border-left-color: #347fa1; background: #f2f8fb; }
.settings-overview-card--good { border-left-color: #3d8d68; background: #f1f9f5; }
.settings-overview-card--warning { border-left-color: #c98732; background: #fff8ec; }
.settings-overview-card--registry { border-left-color: #7869af; background: #f7f4fb; }

.settings-overview-card strong { font-size: .96rem; }
.settings-overview-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.settings-overview-card dl { margin: 1px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; font-size: .75rem; }
.settings-overview-card dt { color: var(--muted); font-weight: 800; }
.settings-overview-card dd { margin: 0; overflow-wrap: anywhere; }

.settings-jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 7px 8px;
}

.settings-jump-list .settings-jump-link {
    --settings-accent: #477d99;
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--settings-accent) 28%, var(--line));
    border-left: 3px solid var(--settings-accent);
    background: color-mix(in srgb, var(--settings-accent) 7%, #fff);
    color: color-mix(in srgb, var(--settings-accent) 82%, #14283d);
    font-size: .76rem;
    font-weight: 800;
}

.settings-group-stack {
    display: grid;
    gap: 11px;
}

.settings-group {
    --settings-accent: #477d99;
    scroll-margin-top: 16px;
    padding: 12px;
    border-top: 3px solid var(--settings-accent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--settings-accent) 5%, #fff), #fff 80px);
}

:is(.settings-group--branding, .settings-jump-link--branding) { --settings-accent: #2e809e; }
:is(.settings-group--store, .settings-jump-link--store) { --settings-accent: #26788a; }
:is(.settings-group--catalogue, .settings-jump-link--catalogue) { --settings-accent: #5f70c7; }
:is(.settings-group--tax, .settings-jump-link--tax) { --settings-accent: #b78229; }
:is(.settings-group--shipping, .settings-jump-link--shipping) { --settings-accent: #35866a; }
:is(.settings-group--checkout, .settings-jump-link--checkout) { --settings-accent: #4175aa; }
:is(.settings-group--orders, .settings-jump-link--orders) { --settings-accent: #7460ad; }
:is(.settings-group--cms, .settings-jump-link--cms) { --settings-accent: #c46e3e; }
:is(.settings-group--seo, .settings-jump-link--seo) { --settings-accent: #9560a0; }
:is(.settings-group--email, .settings-jump-link--email) { --settings-accent: #357d9f; }
:is(.settings-group--integration-alerts, .settings-jump-link--integration-alerts) { --settings-accent: #bf5656; }
:is(.settings-group--integration-health, .settings-jump-link--integration-health) { --settings-accent: #4d827d; }
:is(.settings-group--ebay, .settings-jump-link--ebay) { --settings-accent: #c55b6c; }
:is(.settings-group--system, .settings-jump-link--system) { --settings-accent: #687783; }

.settings-group__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 9px;
    padding: 0 1px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--settings-accent) 20%, var(--line));
}

.settings-group__heading h2 { margin: 1px 0 0; font-size: 1.03rem; color: color-mix(in srgb, var(--settings-accent) 72%, #1a2d3d); }
.settings-group__heading p { margin: 2px 0 0; max-width: 760px; color: var(--muted); font-size: .77rem; line-height: 1.35; }
.settings-group__heading .eyebrow { color: var(--settings-accent); font-size: .66rem; }
.settings-group__heading .result-count { margin-top: 1px; white-space: nowrap; }

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

.setting-row {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--settings-accent) 16%, var(--line));
    border-left: 3px solid color-mix(in srgb, var(--settings-accent) 56%, var(--line));
    background: color-mix(in srgb, var(--settings-accent) 3.5%, #fff);
    padding: 8px 9px;
    display: grid;
    align-content: start;
    gap: 5px;
}

.setting-row--wide { grid-column: span 2; }
.setting-row--product_multiselect { grid-column: 1 / -1; }
.setting-row--readonly { background: #f0f3f5; border-left-color: #8b99a3; }

.setting-row__control { gap: 4px; }
.setting-row__control > span,
.setting-row__control > label { font-weight: 750; font-size: .78rem; }

.settings-form--compact .setting-row input:not([type="checkbox"]):not([type="radio"]),
.settings-form--compact .setting-row select,
.settings-form--compact .setting-row textarea {
    min-height: 34px;
    padding: 6px 8px;
    font-size: .82rem;
}

.settings-form--compact .setting-row textarea { min-height: 66px; }
.settings-form--compact .checkbox-row { gap: 6px; min-height: 30px; }

.setting-row__hint {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.3;
    margin: 0;
}

.setting-row__key {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 1px 4px;
    border: 0;
    background: transparent;
    color: #7b8790;
    font-size: .63rem;
    opacity: .82;
    overflow-wrap: anywhere;
}

.settings-save-bar {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
}
.settings-save-bar > span { color: var(--muted); font-size: .76rem; font-weight: 700; }

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-left: 5px solid var(--blue);
    padding: 12px;
    display: flex;
    justify-content: flex-end;
    z-index: 5;
}

select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    border-radius: 0;
    font: inherit;
}

textarea {
    resize: vertical;
}

@media (max-width: 1420px) {
    .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setting-row--wide { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .settings-overview-strip { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .setting-row--wide,
    .setting-row--product_multiselect { grid-column: auto; }
    .settings-group__heading { display: grid; }
    .settings-group__heading .result-count { justify-self: start; }
    .settings-save-bar { justify-content: flex-end; }
    .settings-save-bar > span { display: none; }
}

.media-upload-note {
    background: #eef6fd;
    border: 1px solid var(--line);
    padding: 12px;
    color: var(--muted);
    font-weight: 700;
}

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

.media-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    display: grid;
}

.media-card__preview {
    background: #eef6fd;
    border-bottom: 1px solid var(--line);
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 10px;
}

.media-card__preview img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.media-card__body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.media-card__body h3 {
    margin: 0;
    font-size: 17px;
    color: var(--blue-dark);
    overflow-wrap: anywhere;
}

.media-meta {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 5px 8px;
    margin: 0;
    font-size: 13px;
}

.media-meta dt {
    font-weight: 700;
    color: var(--blue-dark);
}

.media-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.copy-path-input {
    font-size: 12px;
}

.table-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    display: block;
}

@media (max-width: 1100px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-fieldset {
    border: 1px solid var(--line-strong);
    padding: 12px;
    background: #f7fbff;
    display: grid;
    gap: 8px;
}

.checkbox-fieldset legend {
    font-weight: 800;
    color: var(--blue-dark);
    padding: 0 6px;
}

.table-action {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid var(--blue);
    background: #eef6fd;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 800;
}

.product-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.product-edit-main,
.product-edit-side {
    display: grid;
    gap: 18px;
}

.product-edit-section h2 {
    margin-top: 0;
    color: var(--blue-dark);
}

.product-edit-preview {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    margin-bottom: 12px;
}

.sticky-panel {
    position: sticky;
    top: 16px;
}

.form-help {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0;
}

.status-pill--info {
    background: #e8f3fb;
    border-color: var(--blue);
    color: var(--blue-dark);
}

@media (max-width: 1000px) {
    .product-edit-grid {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

.muted-text {
    color: var(--muted);
    font-weight: 700;
}

.editor-shell {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    margin-bottom: 20px;
}

.editor-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(90deg, #ffffff 0%, var(--panel-soft) 100%);
    border-bottom: 1px solid var(--line);
}

.editor-topbar h2 {
    margin-bottom: 4px;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dirty-state {
    display: inline-block;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--muted);
    padding: 8px 10px;
    font-weight: 700;
}

.dirty-state.is-dirty {
    border-color: var(--warning-line);
    background: var(--warning-bg);
    color: #795d00;
}

.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #dcecf8;
    border-bottom: 1px solid var(--line-strong);
}

.editor-tab {
    background: #eaf3fb;
    border: 0;
    border-right: 1px solid var(--line-strong);
    color: var(--blue-dark);
    padding: 12px 14px;
}

.editor-tab.is-active {
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 -4px 0 var(--blue);
}

.editor-panel {
    display: none;
    padding: 22px;
}

.editor-panel.is-active {
    display: block;
}

.button-secondary {
    background: #ffffff;
    color: var(--blue-dark);
}

.button-danger {
    background: #ffffff;
    border-color: #a94442;
    color: #7a2927;
}

.button-danger:hover,
.button-danger:focus {
    background: #f9e4e2;
    color: #7a2927;
}

.spec-builder input {
    min-width: 180px;
}

.history-list {
    display: grid;
    gap: 12px;
}

.history-entry {
    border-left: 4px solid var(--blue);
    background: #f8fbfe;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px;
}

.history-entry span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.image-preview-block {
    margin-top: 16px;
    border: 1px solid var(--line);
    background: #f8fbfe;
    padding: 12px;
}

.mini-spec-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.spec-template-box {
    border: 1px solid var(--line);
    background: #f8fbfe;
    padding: 14px;
}

@media (max-width: 760px) {
    .editor-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mini-spec-template {
        grid-template-columns: 1fr;
    }
}

.editor-shell--with-sidebar .editor-panel {
    padding: 22px;
}

.editor-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.editor-main-area {
    min-width: 0;
}

.editor-side-panel {
    border-left: 1px solid var(--line);
    background: #f8fbfe;
    min-height: 100%;
    padding: 18px;
    display: grid;
    gap: 14px;
}

.editor-side-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    padding: 14px;
}

.editor-side-card h3 {
    margin: 0 0 12px;
    color: var(--blue-dark);
}

.editor-side-card--actions {
    display: grid;
    gap: 10px;
}

.editor-summary-list {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px 10px;
    margin: 0;
}

.editor-summary-list dt {
    color: var(--blue-dark);
    font-weight: 800;
}

.editor-summary-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.spec-builder--v2 th:first-child,
.spec-builder--v2 td:first-child,
.spec-builder--template th:first-child,
.spec-builder--template td:first-child {
    width: 90px;
}

.spec-builder--v2 th:last-child,
.spec-builder--v2 td:last-child,
.spec-builder--template th:last-child,
.spec-builder--template td:last-child {
    width: 110px;
}

.spec-builder--v2 input,
.spec-builder--template input {
    min-width: 0;
}

.seo-preview {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    background: #f8fbfe;
    padding: 14px;
    display: grid;
    gap: 5px;
}

.seo-preview strong {
    color: var(--blue-dark);
    font-size: 18px;
}

.seo-preview span {
    color: #2d6a3d;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.media-select-field {
    border: 1px solid var(--line);
    background: #f8fbfe;
    padding: 12px;
}

.media-select-field select {
    margin-top: 6px;
}

@media (max-width: 1050px) {
    .editor-body-grid {
        grid-template-columns: 1fr;
    }

    .editor-side-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .spec-builder--v2,
    .spec-builder--template {
        display: block;
        overflow-x: auto;
    }
}


/* RuneCart editor polish: responsive tables and compact specification inputs. */
.responsive-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-table-wrap .data-table {
    margin-top: 0;
}

.responsive-table-wrap--specs {
    border: 1px solid var(--line);
    background: #ffffff;
}

.responsive-table-wrap--specs .data-table {
    border: 0;
    margin: 0;
}

.button-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.section-title-row--spaced {
    margin-top: 22px;
}

.compact-table th,
.compact-table td {
    padding: 8px;
}

.inventory-movement-table th,
.inventory-movement-table td {
    white-space: nowrap;
}

.inventory-movement-table td:last-child {
    white-space: normal;
    min-width: 220px;
}

.spec-builder {
    table-layout: fixed;
}

.spec-builder input {
    width: 100%;
    min-width: 0;
}

.spec-builder .spec-input-sort,
.spec-builder--v2 td:first-child input,
.spec-builder--template td:first-child input {
    max-width: 72px;
}

.spec-builder .spec-input-unit,
.spec-builder--v2 td:nth-child(4) input,
.spec-builder--template td:nth-child(3) input {
    max-width: 90px;
}

.spec-builder--v2 th:first-child,
.spec-builder--v2 td:first-child,
.spec-builder--template th:first-child,
.spec-builder--template td:first-child {
    width: 78px;
}

.spec-builder--v2 th:nth-child(4),
.spec-builder--v2 td:nth-child(4),
.spec-builder--template th:nth-child(3),
.spec-builder--template td:nth-child(3) {
    width: 110px;
}

.spec-builder--v2 th:last-child,
.spec-builder--v2 td:last-child,
.spec-builder--template th:last-child,
.spec-builder--template td:last-child {
    width: 96px;
}

@media (max-width: 760px) {
    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .button-group-inline {
        justify-content: flex-start;
        width: 100%;
    }

    .button-group-inline button {
        width: 100%;
    }

    .spec-builder--v2,
    .spec-builder--template {
        min-width: 620px;
    }

    .inventory-movement-table {
        min-width: 720px;
    }
}


/* RuneCart broad editor polish pass */
.stock-adjust-panel {
    border: 1px solid var(--line);
    background: #f8fbfe;
    padding: 14px;
    margin: 18px 0;
}

.stock-adjust-panel h3 {
    margin-top: 0;
}

.stock-adjust-grid {
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.media-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.media-checkbox-card {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 10px;
    display: grid;
    gap: 8px;
    font-weight: 700;
    align-content: start;
}

.media-checkbox-card input {
    width: auto;
}

.media-checkbox-thumb {
    display: block;
    border: 1px solid var(--line);
    background: #eef6fd;
    height: 96px;
    overflow: hidden;
}

.media-checkbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep specification builders usable on narrower screens */
.spec-builder th:first-child,
.spec-builder td:first-child {
    width: 72px;
    max-width: 72px;
}

.spec-builder th:nth-child(4),
.spec-builder td:nth-child(4) {
    width: 92px;
    max-width: 92px;
}

.spec-builder .spec-input-sort {
    max-width: 62px;
    min-width: 58px;
    padding-left: 6px;
    padding-right: 6px;
}

.spec-builder .spec-input-unit {
    max-width: 78px;
    min-width: 64px;
}

.responsive-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.responsive-table-wrap--specs {
    border: 1px solid var(--line);
}

.responsive-table-wrap--specs .data-table {
    margin: 0;
}

@media (max-width: 760px) {
    .stock-adjust-grid {
        grid-template-columns: 1fr;
    }

    .spec-builder--v2,
    .spec-builder--v2 thead,
    .spec-builder--v2 tbody,
    .spec-builder--v2 th,
    .spec-builder--v2 td,
    .spec-builder--v2 tr {
        display: block;
    }

    .spec-builder--v2 thead {
        display: none;
    }

    .spec-builder--v2 tr {
        border-bottom: 2px solid var(--line-strong);
        padding: 10px;
    }

    .spec-builder--v2 td {
        border: 0;
        padding: 6px 0;
        width: 100%;
        max-width: none;
    }

    .spec-builder--v2 td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--blue-dark);
        margin-bottom: 4px;
    }

    .spec-builder--v2 .spec-input-sort,
    .spec-builder--v2 .spec-input-unit {
        max-width: 120px;
        min-width: 0;
    }
}

/* RuneCart product management broad pass */
.bulk-action-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    margin: 12px 0;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.bulk-action-bar label {
    min-width: 160px;
}

.bulk-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
    padding-bottom: 9px;
}

.bulk-select-all input,
.checkbox-column input {
    width: auto;
}

.checkbox-column {
    width: 74px;
    text-align: center;
}

.admin-table strong {
    color: var(--blue-dark);
}

.spec-template-box .responsive-table-wrap {
    margin-top: 10px;
}

.spec-template-box .spec-builder th:first-child,
.spec-template-box .spec-builder td:first-child {
    width: 88px;
    min-width: 88px;
}

.spec-template-box .spec-builder th:nth-child(4),
.spec-template-box .spec-builder td:nth-child(4) {
    width: 96px;
    min-width: 96px;
}

@media (max-width: 760px) {
    .bulk-action-bar {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .bulk-select-all {
        padding-bottom: 0;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        border: 1px solid var(--line);
        margin-bottom: 12px;
        background: #ffffff;
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 118px 1fr;
        gap: 8px;
        min-height: 38px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--blue-dark);
    }

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

    .checkbox-column {
        width: auto;
        text-align: left;
    }
}

/* RuneCart edit screens for catalogue/CMS entities */
.button-link--small {
    padding: 6px 10px;
    font-size: 13px;
}

.editor-form .editor-card {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .spec-builder--template,
    .spec-builder--template thead,
    .spec-builder--template tbody,
    .spec-builder--template th,
    .spec-builder--template td,
    .spec-builder--template tr {
        display: block;
    }

    .spec-builder--template thead {
        display: none;
    }

    .spec-builder--template tr {
        border-bottom: 2px solid var(--line-strong);
        padding: 10px;
    }

    .spec-builder--template td {
        border: 0;
        padding: 6px 0;
        width: 100%;
        max-width: none;
    }

    .spec-builder--template td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--blue-dark);
        margin-bottom: 4px;
    }
}

/* RuneCart broad admin polish pass - product editor and inventory movement refinements */
.editor-notice-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #c8d8e8;
    background: #f4f9ff;
}

.editor-notice {
    display: block;
    padding: 8px 10px;
    border-left: 4px solid #6c93bd;
    background: #ffffff;
    color: #31485f;
    font-size: 0.9rem;
}

.editor-notice--ready {
    border-left-color: #2f78b7;
}

.table-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.button-mini {
    padding: 5px 7px;
    border: 1px solid #b8cada;
    background: #eef6ff;
    color: #24445f;
    cursor: pointer;
    font-size: 0.78rem;
}

.button-mini:hover {
    background: #dcecff;
}

.spec-builder--v2 th:first-child,
.spec-builder--v2 td:first-child {
    width: 66px;
    min-width: 66px;
    max-width: 66px;
}

.spec-builder--v2 th:nth-child(2),
.spec-builder--v2 td:nth-child(2) {
    width: 130px;
    min-width: 110px;
}

.spec-input-sort {
    max-width: 54px;
    min-width: 54px;
    padding-left: 4px;
    padding-right: 4px;
}

.spec-input-unit {
    max-width: 82px;
}

.spec-input-group {
    min-width: 105px;
}

.small-inline-link {
    font-size: 0.85rem;
    color: #1b5d91;
    text-decoration: none;
    border-bottom: 1px solid #8fb9da;
}

.small-inline-link:hover {
    color: #0d3d64;
}

.stock-delta {
    display: inline-block;
    min-width: 42px;
    padding: 3px 6px;
    text-align: center;
    border: 1px solid #bfd0df;
    background: #f6fbff;
}

.stock-delta--up {
    border-color: #9fc7ad;
    background: #f1fff5;
}

.stock-delta--down {
    border-color: #d8aaa5;
    background: #fff5f3;
}

.muted-cell {
    display: block;
    color: #687d8f;
    font-size: 0.82rem;
    margin-top: 2px;
}

@media (max-width: 860px) {
    .spec-builder--v2,
    .spec-builder--v2 thead,
    .spec-builder--v2 tbody,
    .spec-builder--v2 tr,
    .spec-builder--v2 th,
    .spec-builder--v2 td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .spec-builder--v2 thead {
        display: none;
    }

    .spec-builder--v2 tr {
        border: 1px solid #c7d8e8;
        background: #fff;
        margin-bottom: 10px;
        padding: 10px;
    }

    .spec-builder--v2 td {
        border: 0;
        padding: 6px 0;
    }

    .spec-builder--v2 td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        font-size: 0.78rem;
        font-weight: 700;
        color: #476178;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .spec-builder--v2 input,
    .spec-input-sort,
    .spec-input-unit,
    .spec-input-group {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* RuneCart product editor: related products and editor quality pass */
.related-product-table .admin-thumb,
.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #ffffff;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.admin-thumb--empty {
    line-height: 52px;
    text-align: center;
}

.editor-summary-list dd:nth-of-type(8) {
    font-weight: 700;
}

[data-related-products] {
    min-height: 220px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
}

@media (max-width: 760px) {
    .related-product-table th:nth-child(1),
    .related-product-table td:nth-child(1),
    .related-product-table th:nth-child(5),
    .related-product-table td:nth-child(5) {
        display: none;
    }
}

/* RuneCart broad admin polish: global search, audit logs and developer panel */
.admin-global-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    background: #f3f8fd;
    border: 1px solid var(--line);
    padding: 10px;
    margin-bottom: 12px;
}

.admin-global-search label,
.list-toolbar--large-search label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.admin-global-search span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #476178;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-global-search input {
    width: 100%;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.search-result-section {
    min-height: 180px;
}

.search-result-row {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    margin-bottom: 8px;
}

.search-result-row:hover {
    background: #eaf4fc;
    border-color: var(--blue);
}

.search-result-row span,
.search-result-row small,
.muted-text {
    color: var(--muted);
}

.audit-log-table td {
    vertical-align: top;
}

.dev-panel {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    width: min(520px, calc(100vw - 24px));
    max-height: 70vh;
    overflow: auto;
    background: #eef7ff;
    border: 2px solid #256d9c;
    box-shadow: 0 10px 30px rgba(20, 70, 110, 0.22);
    font-size: 0.84rem;
}

.dev-panel summary {
    cursor: pointer;
    padding: 9px 12px;
    background: #d9edf9;
    font-weight: 800;
    color: #123f60;
}

.dev-panel dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px 12px;
    margin: 0;
}

.dev-panel dt {
    font-weight: 800;
    color: #30556f;
}

.dev-panel dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dev-panel h3 {
    padding: 0 12px;
    margin: 4px 0;
}

.dev-panel ol {
    margin: 0;
    padding: 0 12px 12px 34px;
}

.dev-panel code {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .admin-global-search {
        grid-template-columns: 1fr;
    }
}

/* Storefront catalogue */
.catalogue-hero {
    display: grid;
    gap: 8px;
}

.storefront-toolbar {
    margin-bottom: 18px;
}

.product-card-grid,
.entity-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.product-card,
.entity-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-light);
    display: grid;
    min-width: 0;
}

.product-card__image {
    min-height: 180px;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-card__image img,
.entity-card img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.product-card__body,
.entity-card {
    padding: 14px;
}

.product-card__body h2,
.entity-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.product-card__meta,
.muted-text {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 6px;
}

.product-card__footer,
.status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.product-card-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 20px;
}

.product-detail-media,
.product-detail-summary {
    align-self: start;
}

.product-detail-main-image,
.cms-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    display: block;
}

.empty-media-box {
    min-height: 300px;
    display: grid;
    place-items: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.product-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.product-gallery-strip img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}

.product-price-large {
    font-size: 30px;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 14px 0;
}

.product-detail-secondary {
    margin-top: 0;
}

.content-body {
    line-height: 1.7;
}

.spec-display-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-display-table th,
.spec-display-table td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.spec-display-table th {
    width: 35%;
    background: var(--panel-soft);
    color: var(--blue-dark);
}

.spec-display-table .spec-display-group th {
    width: auto;
    background: var(--blue-dark);
    color: #ffffff;
}

.entity-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.entity-card {
    gap: 8px;
}

.cms-page-detail {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 860px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-card-grid,
    .entity-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Basket foundation */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.cart-product-cell {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 240px;
}

.cart-product-cell .muted-text {
    display: block;
    margin-top: 3px;
}

.cart-quantity-input {
    max-width: 90px;
}

.cart-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
    flex-wrap: wrap;
}

.cart-summary-panel {
    position: sticky;
    top: 16px;
}

.cart-clear-form {
    margin-top: 12px;
}

.add-to-cart-panel,
.product-card-cart-form {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
    flex-wrap: wrap;
}

.add-to-cart-panel label {
    max-width: 120px;
}

.add-to-cart-panel input {
    width: 100%;
}

.product-card-cart-form button {
    width: 100%;
}

.button-disabled,
button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.empty-basket-panel {
    text-align: center;
}

@media (max-width: 860px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: static;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.checkout-form-panel {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

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

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-totals {
    margin-top: 14px;
}

.button-link--block {
    display: block;
    text-align: center;
}

.status-pill--pending { background: #fff8df; border-color: #d8b645; color: #624900; }
.status-pill--processing { background: #e7f1fb; border-color: var(--line-strong); color: var(--blue-dark); }
.status-pill--partially_shipped { background: #edf7fb; border-color: #79aebe; color: #24596b; }
.status-pill--shipped { background: #e7f8ee; border-color: #65a878; color: #15542b; }
.status-pill--partially_refunded { background: #fff6df; border-color: #d7ac50; color: #6b4b00; }
.status-pill--refunded { background: #fdecec; border-color: #c77b7b; color: #7b1f1f; }
.status-pill--in_dispute { background: #fff0df; border-color: #d28b4c; color: #7b3d0d; }

@media (max-width: 900px) {
    .checkout-layout,
    .form-grid--two {
        grid-template-columns: 1fr;
    }
}

.tax-breakdown {
    border: 1px solid #d8e7f5;
    background: #f7fbff;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.tax-breakdown h3 {
    margin-top: 0;
}

.tax-admin-note {
    border-left: 4px solid #4d91c8;
    background: #f4f9fd;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.shipping-method-list {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.shipping-method-option {
    align-items: center;
    background: #f6fbff;
    border: 1px solid #b8d7ee;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.85rem;
}

.shipping-method-option input {
    margin: 0;
    width: auto;
}

.shipping-method-option small {
    color: #55728a;
    display: block;
    margin-top: 0.2rem;
}

.muted-list {
    color: #55728a;
    line-height: 1.7;
    margin: 0;
    padding-left: 1.2rem;
}

@media (max-width: 640px) {
    .shipping-method-option {
        grid-template-columns: auto 1fr;
    }

    .shipping-method-option b {
        grid-column: 2;
    }
}

.panel-grid {
    display: grid;
    gap: 1rem;
}

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

@media (max-width: 960px) {
    .panel-grid--two {
        grid-template-columns: 1fr;
    }
}

.gateway-overview-panel {
    border-left: 4px solid #2f78bd;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.gateway-card {
    border: 1px solid #c9dff2;
    background: #f7fbff;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gateway-card strong {
    color: #174f84;
}

.gateway-card span,
.gateway-card small {
    color: #4f6680;
}

.gateway-config-panel {
    border: 1px solid #c9dff2;
    background: #f7fbff;
    padding: 1rem;
}

.gateway-config-panel h3 {
    margin-top: 0;
}

.gateway-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.8rem;
}

.payment-warning {
    color: #9a5b00;
    font-weight: 600;
}

.gateway-readiness-list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gateway-readiness-list li {
    align-items: center;
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 1.4rem 1fr;
    font-size: 0.88rem;
}

.gateway-readiness-list li span {
    border: 1px solid #9cb7cc;
    display: inline-block;
    font-weight: 700;
    line-height: 1.1rem;
    min-height: 1.1rem;
    text-align: center;
}

.gateway-readiness-list .is-ok span {
    background: #e7f8ee;
    border-color: #65a878;
    color: #15542b;
}

.gateway-readiness-list .is-missing span {
    background: #fff8df;
    border-color: #d8b645;
    color: #624900;
}

.gateway-config-summary {
    margin-top: 0.6rem;
}

.gateway-config-summary summary,
.compact-row-editor summary {
    color: var(--blue-dark);
    cursor: pointer;
    font-weight: 700;
}

.compact-row-editor {
    min-width: 220px;
}

.compact-form-stack {
    background: #f7fbff;
    border: 1px solid #c9dff2;
    margin-top: 0.5rem;
    padding: 0.75rem;
}

.status-pill--payment-pending_manual,
.status-pill--payment-pending_gateway {
    background: #fff8df;
    border-color: #d8b645;
    color: #624900;
}

.status-pill--payment-authorised,
.status-pill--payment-captured {
    background: #e7f8ee;
    border-color: #65a878;
    color: #15542b;
}

.status-pill--payment-failed,
.status-pill--payment-cancelled {
    background: #fdecec;
    border-color: #c77b7b;
    color: #7b1f1f;
}

.status-pill--payment-refunded {
    background: #e7f1fb;
    border-color: var(--line-strong);
    color: var(--blue-dark);
}

.customer-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.compact-card {
    padding: 1rem;
}

.order-timeline {
    border-left: 2px solid #c9dff2;
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
}

.order-timeline li {
    background: #f7fbff;
    border: 1px solid #d7e7f5;
    padding: 0.75rem;
    position: relative;
}

.order-timeline li::before {
    background: #2f78b7;
    border: 2px solid #ffffff;
    content: '';
    display: block;
    height: 0.7rem;
    left: -1.45rem;
    position: absolute;
    top: 0.9rem;
    width: 0.7rem;
}

.order-timeline small {
    color: #5f7186;
    display: block;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.order-timeline p {
    margin: 0.45rem 0 0;
}

.shipment-entry {
    margin-top: 1rem;
}

@media (max-width: 760px) {
    .order-timeline {
        border-left-width: 1px;
        padding-left: 0.75rem;
    }

    .order-timeline li::before {
        left: -1.1rem;
    }
}

/* Checkout reliability pass */
.checkout-error-summary {
    border-left: 4px solid #b91c1c;
    background: #fff7f7;
}

.checkout-error-summary h2 {
    margin-top: 0;
    color: #7f1d1d;
}

.checkout-error-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}

.field-error--block {
    border: 1px solid #fecaca;
    background: #fff7f7;
    padding: 0.75rem;
}

.input-error {
    border-color: #b91c1c !important;
    background: #fffafa;
}

.checkbox-row.checkout-copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

.checkbox-row.checkout-copy-row input {
    width: auto;
}

.shipping-method-option--selected {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.inline-action-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.editor-summary-list--compact {
    grid-template-columns: minmax(110px, 150px) 1fr;
}

.checkbox-line {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
}

.checkbox-line input[type="checkbox"] {
    width: auto;
}

.print-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.print-document {
    background: #ffffff;
}

.print-document-header {
    align-items: flex-start;
    border-bottom: 2px solid #b8d6ef;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

.print-document-header h1 {
    margin: 0.15rem 0;
}

.print-document-store {
    text-align: right;
}

.print-address-grid {
    margin-bottom: 1rem;
}

.print-totals-panel {
    margin-left: auto;
    max-width: 420px;
}

.packing-check-cell {
    font-size: 1.4rem;
    text-align: center;
    width: 70px;
}

@media print {
    body {
        background: #ffffff;
        color: #111827;
    }

    .site-header,
    .admin-sidebar,
    .admin-topbar,
    .admin-breadcrumbs,
    .flash-stack,
    .no-print,
    .dev-panel {
        display: none !important;
    }

    .admin-shell,
    .admin-main,
    .main-content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .panel {
        border: 1px solid #9ca3af;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .data-table th,
    .data-table td {
        border-color: #9ca3af;
    }

    a {
        color: #111827;
        text-decoration: none;
    }
}

.order-review-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.order-review-check {
    border-left: 4px solid #6c7a89;
    background: #f5f9fc;
    padding: 9px 10px;
}

.order-review-check strong,
.order-review-check span {
    display: block;
}

.order-review-check--ok {
    border-left-color: #2e7d4f;
}

.order-review-check--warn {
    border-left-color: #b7791f;
    background: #fff8e8;
}

.shipment-public-card,
.order-note-public {
    border-left: 4px solid #9bbad3;
    background: #f5f9fc;
    padding: 10px;
    margin-bottom: 10px;
}

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

.shipping-test-summary {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 4px solid var(--blue);
    background: #f5f9fc;
}

.compact-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

.compact-list li + li {
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .form-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .form-grid--four {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    background: linear-gradient(180deg, #2f3032 0%, #292a2c 100%);
    border-top: 1px solid #454649;
    margin-top: 18px;
    color: #eef0f2;
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.site-footer a {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2f4f5;
    font-weight: 500;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.home-products {
    margin-bottom: 20px;
}

.section-title-row--simple {
    margin-bottom: 16px;
}

.product-card-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card--home .product-card__body h2 {
    min-height: 44px;
}

.product-card--home .product-card__footer {
    margin-bottom: 10px;
}

.account-entry-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
    gap: 18px;
    align-items: stretch;
    margin: 0 auto 24px;
    max-width: 1080px;
}

.account-entry-shell__intro {
    background: linear-gradient(140deg, #15314a, #1b5874 62%, #2a7795);
    color: #eef7fb;
    border: 1px solid #1a546d;
    box-shadow: 0 20px 40px rgba(19, 43, 65, .14);
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
}

.account-entry-shell__intro h2 {
    margin: 0;
    color: #ffffff;
}

.account-entry-shell__intro p {
    margin: 0;
    color: rgba(238, 247, 251, .92);
}

.account-entry-shell__badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: #f3f8fb;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.account-entry-shell__features {
    margin: 4px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.account-entry-shell__features li {
    color: rgba(238, 247, 251, .96);
}

.account-panel {
    max-width: 560px;
    margin: 0 auto 24px;
}

.account-panel--themed {
    max-width: none;
    width: 100%;
    margin: 0;
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-form--themed {
    height: 100%;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--blue-dark) 12%, var(--line));
    box-shadow: 0 20px 40px rgba(20, 40, 61, .08);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.account-form--themed h2 {
    margin: 0 0 2px;
}

.account-form--themed .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-form--themed .button-secondary {
    padding-inline: 0;
    border: 0;
    background: transparent;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.panel-card {
    background: #ffffff;
    border: 2px solid var(--line);
    padding: 16px;
}

.detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 12px;
    margin: 0;
}

.detail-list dt {
    font-weight: 800;
    color: var(--blue-dark);
}

.detail-list dd {
    margin: 0;
}

.stack-list {
    display: grid;
    gap: 10px;
}

.stack-list__item {
    border-left: 4px solid var(--blue);
    background: var(--panel-soft);
    padding: 10px;
}

.stack-list__item p {
    margin: 6px 0 0;
}

@media (max-width: 820px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.account-grid--wide {
    align-items: start;
}

.account-address-book {
    margin-bottom: 18px;
}

.account-address-form,
.account-address-edit {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    padding: 14px;
}

.account-address-card summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.account-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.account-address-actions form {
    margin: 0;
}

.checkbox-row {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.checkbox-row input {
    width: auto;
}

@media (max-width: 860px) {
    .account-entry-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .account-entry-shell__intro,
    .account-form--themed {
        padding: 18px;
    }

    .account-form--themed .form-actions {
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .account-address-actions,
    .account-address-card summary {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.account-verification-warning {
    border-color: #f4b740;
    background: #fff9e8;
    margin-bottom: 18px;
}

.account-verification-warning form {
    margin-top: 10px;
}

.page-hero .form-actions {
    margin-top: 12px;
}

.page-hero .form-actions form {
    margin: 0;
}

/* eBay marketplace administration */
.marketplace-metrics {
    margin-bottom: 18px;
}

.marketplace-overview,
.marketplace-forms {
    align-items: start;
    margin-bottom: 18px;
}

.marketplace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.marketplace-actions form {
    margin: 0;
}

.marketplace-error-cell {
    max-width: 300px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.muted-text {
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 820px) {
    .marketplace-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .marketplace-actions form,
    .marketplace-actions button {
        width: 100%;
    }
}

/* Web updater */
.updater-status-strip {
    margin-bottom: 20px;
}

.updater-overview-grid,
.updater-package-details {
    align-items: start;
}

.updater-package-list {
    display: grid;
    gap: 16px;
}

.updater-package-card {
    margin-bottom: 0;
}

.updater-package-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.updater-package-heading h3 {
    margin: 0;
}

.updater-package-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.updater-confirm-form {
    max-width: 760px;
}

.updater-confirm-form .checkbox-row {
    align-items: flex-start;
}

.updater-hash {
    display: inline-block;
    max-width: 420px;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.updater-flow-list {
    display: grid;
    gap: 8px;
}

.table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    max-width: 420px;
    white-space: normal;
}

@media (max-width: 760px) {
    .updater-package-heading {
        display: grid;
        grid-template-columns: 1fr;
    }

    .updater-hash {
        max-width: 100%;
    }
}

.site-footer__inner--stacked {
    display: grid;
    gap: 16px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.site-footer__column {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 4px 2px;
}

.site-footer__column h2 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.site-footer__column p {
    margin: 0;
    color: #e0e3e7;
    line-height: 1.6;
}

.site-footer__menu {
    display: grid;
    gap: 8px;
}

.site-footer__menu a {
    width: fit-content;
    color: #f2f4f5;
}

.site-footer__legal {
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #f0f2f4;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__credits {
    display: grid;
    width: 100%;
    gap: 4px;
    text-align: center;
    color: #c8cdd2;
    font-size: 13px;
    padding-top: 12px;
}

@media (max-width: 980px) {
    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-footer__columns {
        grid-template-columns: 1fr;
    }
}

.store-status-banner {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--orange, #d97706);
    background: #fff8eb;
}

.store-status-banner--maintenance {
    border-left-color: var(--blue);
    background: #f2f7fb;
}

.store-maintenance-page {
    min-height: calc(100vh - 150px);
    display: grid;
    align-items: center;
}

.store-maintenance-panel {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}


/* RuneCart advanced shipping administration */
.form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.button-cluster form {
    margin: 0;
}

.shipping-condition-builder input,
.shipping-condition-builder select {
    min-width: 120px;
    width: 100%;
}

.shipping-condition-builder input[type=number] {
    min-width: 72px;
}

@media (max-width: 900px) {
    .form-grid--three {
        grid-template-columns: 1fr;
    }
}

/* RuneCart shipping workflow + fulfilment */
.panel-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.panel-heading-row h2,
.panel-heading-row p {
    margin-bottom: 6px;
}

.shipping-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.shipping-flow-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.shipping-flow-step > span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--line-strong);
    background: #ffffff;
    font-weight: 800;
}

.shipping-flow-step strong {
    color: var(--blue-dark);
}

.shipping-flow-step small {
    color: var(--muted);
    line-height: 1.35;
}

.info-callout {
    display: grid;
    grid-template-columns: minmax(150px, auto) 1fr;
    gap: 12px;
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--blue);
    background: #f5f9fc;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 34, 49, .62);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--panel-bg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 18px 60px rgba(16, 34, 49, .28);
}

.admin-modal--wide .admin-modal__dialog {
    width: min(1240px, 100%);
}

.admin-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.admin-modal__header h2,
.admin-modal__header p,
.admin-modal__header .eyebrow {
    margin-bottom: 5px;
}

.admin-modal__close {
    flex: 0 0 auto;
    min-width: 42px;
    min-height: 42px;
    padding: 4px 12px;
    font-size: 25px;
    line-height: 1;
}

.admin-modal__body {
    overflow: auto;
    padding: 22px;
}

.admin-modal__body > .form-stack,
.admin-modal__body form.form-stack {
    max-width: none;
}

.admin-modal--wide .admin-modal__body h3 {
    margin: 26px 0 8px;
    padding: 10px 12px;
    border-left: 4px solid var(--blue);
    background: var(--panel-soft);
    color: var(--blue-dark);
}

.admin-modal--wide .admin-modal__body h3:first-of-type {
    margin-top: 0;
}

body.modal-open {
    overflow: hidden;
}

.shipping-condition-builder td {
    vertical-align: top;
}

.shipping-condition-builder input,
.shipping-condition-builder select {
    min-width: 145px;
}

.shipping-condition-builder td:first-child input {
    min-width: 72px;
}

.shipment-card-list {
    display: grid;
    gap: 12px;
}

.shipment-card {
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    background: #ffffff;
    padding: 14px;
}

.shipment-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.shipment-card__head h3,
.shipment-card__head p {
    margin: 0 0 4px;
}

.shipment-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
}

.shipment-card__label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.shipment-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.shipment-line-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    font-size: 13px;
}

.marketplace-sync-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.shipment-note {
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 3px solid var(--line-strong);
    background: #f5f9fc;
}

@media (max-width: 1050px) {
    .shipping-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .panel-heading-row,
    .shipment-card__head,
    .info-callout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shipping-flow-grid,
    .shipment-card__grid {
        grid-template-columns: 1fr;
    }

    .admin-modal {
        padding: 0;
        place-items: stretch;
    }

    .admin-modal__dialog,
    .admin-modal--wide .admin-modal__dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border: 0;
    }

    .admin-modal__header,
    .admin-modal__body {
        padding: 16px;
    }
}

.status-pill--active,
.status-pill--synced {
    background: #e7f8ee;
    border-color: #65a878;
    color: #15542b;
}

/* Royal Mail Click & Drop */
.royal-mail-config-panel,
.royal-mail-order-panel {
    border-top: 4px solid var(--blue);
}

.royal-mail-config-panel .form-grid,
.royal-mail-create-form .form-grid {
    align-items: end;
}

.royal-mail-label-list {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
}

.royal-mail-label-card {
    border-left-color: var(--blue-dark);
}

.royal-mail-create-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.royal-mail-create-summary > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.royal-mail-create-summary strong,
.royal-mail-create-summary small {
    display: block;
}

.royal-mail-create-summary small {
    margin-bottom: 3px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.royal-mail-create-form details {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.royal-mail-create-form details > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--blue-dark);
}

@media (max-width: 900px) {
    .royal-mail-create-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .royal-mail-create-summary {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RuneCart Administration theme
   ========================================================================== */
.is-admin {
    --admin-navy: #14283d;
    --admin-navy-deep: #0c1b2a;
    --admin-blue: #236b9b;
    --admin-teal: #16867a;
    --admin-gold: #d79a28;
    --admin-red: #b74848;
    --admin-ink: #203247;
    --admin-muted: #66788a;
    --admin-canvas: #edf2f6;
    --admin-card: #ffffff;
    --admin-line: #d5e0e8;
    background: var(--admin-canvas);
    color: var(--admin-ink);
}

.is-admin .site-header--admin {
    background: linear-gradient(112deg, var(--admin-navy-deep), var(--admin-navy) 62%, #174a62);
    border-bottom: 4px solid #1f8f86;
    box-shadow: 0 8px 28px rgba(8, 25, 40, .18);
}

.is-admin .site-header--admin .site-header__inner {
    max-width: 1660px;
}

.is-admin .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.is-admin .admin-brand__mark,
.is-admin .admin-sidebar__mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: linear-gradient(145deg, #23a99a, #277eb0);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
}

.is-admin .admin-brand > span:last-child {
    display: grid;
    gap: 1px;
}

.is-admin .admin-brand strong {
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.is-admin .admin-brand small {
    color: #a9c2d2;
    font-size: .72rem;
    font-weight: 600;
}

.is-admin .main-nav--admin a {
    color: #dce9f1;
    border: 1px solid transparent;
    padding: 8px 10px;
}

.is-admin .main-nav--admin a:hover,
.is-admin .main-nav--admin a:focus {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

.page-shell--admin {
    width: min(100% - 28px, 1660px);
    max-width: 1660px;
    margin-inline: auto;
    padding-top: 22px;
}

.is-admin .admin-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.is-admin .admin-sidebar {
    position: sticky;
    top: 18px;
    padding: 0 0 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #152b40, #102337);
    border: 0;
    box-shadow: 0 12px 32px rgba(17, 43, 64, .14);
    color: #dce9f1;
}

.is-admin .admin-sidebar__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,.045);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.is-admin .admin-sidebar__identity > div {
    display: grid;
    gap: 2px;
}

.is-admin .admin-sidebar__identity strong {
    color: #fff;
}

.is-admin .admin-sidebar__identity small {
    color: #9db3c3;
    font-size: .74rem;
}

.is-admin .admin-sidebar__group {
    padding: 13px 12px 0;
    border: 0;
}

.is-admin .admin-sidebar h2 {
    margin: 0 8px 6px;
    color: #75c9c0;
    font-size: .68rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.is-admin .admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 35px;
    margin: 2px 0;
    padding: 8px 10px;
    border-left: 3px solid transparent;
    color: #d5e1e9;
    background: transparent;
    font-size: .88rem;
    text-decoration: none;
}

.is-admin .admin-sidebar a:hover,
.is-admin .admin-sidebar a:focus {
    color: #fff;
    background: rgba(255,255,255,.065);
}

.is-admin .admin-sidebar a.is-active,
.is-admin .admin-sidebar a.is-active:hover,
.is-admin .admin-sidebar a.is-active:focus {
    color: #fff;
    border-left-color: #36bdb0;
    background: linear-gradient(90deg, rgba(54,189,176,.23), rgba(54,189,176,.05));
    font-weight: 800;
}

.is-admin .admin-content {
    min-width: 0;
}

.is-admin .admin-global-search {
    background: #fff;
    border: 1px solid var(--admin-line);
    border-left: 4px solid var(--admin-teal);
    box-shadow: 0 4px 15px rgba(31, 54, 76, .055);
}

.is-admin .breadcrumbs {
    color: var(--admin-muted);
    font-size: .82rem;
}

.is-admin .breadcrumbs a {
    color: var(--admin-blue);
}

.is-admin .admin-page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 25px 28px;
    background: linear-gradient(120deg, #153650 0%, #1d5672 72%, #16867a 140%);
    border: 0;
    box-shadow: 0 10px 28px rgba(29, 72, 104, .13);
    color: #fff;
}

.is-admin .admin-page-header::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 240px;
    height: 240px;
    border: 35px solid rgba(255,255,255,.045);
    border-radius: 50%;
    pointer-events: none;
}

.is-admin .admin-page-header .eyebrow {
    color: #83d9d0;
}

.is-admin .admin-page-header h1 {
    color: #fff;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    margin-bottom: 5px;
}

.is-admin .admin-page-header p:not(.eyebrow) {
    max-width: 880px;
    margin: 0;
    color: #d7e6ee;
}

.is-admin .panel,
.is-admin .admin-section-card {
    border: 1px solid var(--admin-line);
    border-top: 3px solid #91adbf;
    background: var(--admin-card);
    box-shadow: 0 5px 18px rgba(32, 62, 84, .06);
}

.is-admin .panel h2,
.is-admin .panel h3 {
    color: #1b3d58;
}

.is-admin .panel-heading-row {
    align-items: flex-start;
    gap: 16px;
}

.is-admin input,
.is-admin select,
.is-admin textarea {
    border-color: #bdccd7;
    background: #fbfdfe;
}

.is-admin input:focus,
.is-admin select:focus,
.is-admin textarea:focus {
    border-color: #278c9f;
    box-shadow: 0 0 0 3px rgba(39, 140, 159, .13);
    outline: none;
}

.is-admin button:not(.admin-modal__close),
.is-admin .button-link {
    background: linear-gradient(180deg, #267da7, #1d668f);
    border-color: #1a5d83;
    color: #fff;
    box-shadow: 0 2px 5px rgba(18, 72, 104, .12);
}

.is-admin .button-secondary {
    background: #f7fafc;
    border-color: #afc2cf;
    color: #234a64;
    box-shadow: none;
}

.is-admin .button-secondary:hover,
.is-admin .button-secondary:focus {
    background: #eaf3f7;
    border-color: #6e9fb6;
    color: #163e56;
}

.is-admin .button-danger {
    background: #fff4f3 !important;
    border-color: #d4948f !important;
    color: #9d3630 !important;
    box-shadow: none !important;
}

.is-admin .data-table {
    border-color: var(--admin-line);
}

.is-admin .data-table th {
    background: #e9f0f4;
    color: #27475d;
    border-color: #cad8e1;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.is-admin .data-table tbody tr:nth-child(even) {
    background: #fbfdfe;
}

.is-admin .data-table tbody tr:hover {
    background: #f0f7fa;
}

.is-admin .eyebrow {
    color: #267f8c;
    font-weight: 900;
    letter-spacing: .09em;
}

.is-admin .info-callout {
    border-left: 4px solid #278c9f;
    background: #edf8fa;
}

.is-admin .status-pill--active,
.is-admin .status-pill--synced {
    background: #e2f5ef;
    border-color: #69aa91;
    color: #145947;
}

/* Admin dashboard/control cards shared by richer admin screens. */
.admin-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-control-card {
    position: relative;
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--admin-line, #d5e0e8);
    border-top: 4px solid #317fa5;
    background: #fff;
    box-shadow: 0 5px 18px rgba(32,62,84,.07);
}

.admin-control-card--success { border-top-color: #2b9a79; }
.admin-control-card--royalmail { border-top-color: #c42435; }
.admin-control-card--primary { border-top-color: #277ea6; }

.admin-control-card__icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 30px;
    background: #edf5f9;
    color: #286d90;
    font-size: .72rem;
    font-weight: 900;
}

.admin-control-card--success .admin-control-card__icon { background: #e8f6f1; color: #26775f; }
.admin-control-card--royalmail .admin-control-card__icon { background: #fff0f1; color: #a32936; }

.admin-control-card h2 {
    margin: 3px 0 6px;
    font-size: 1.13rem;
}

.admin-control-card p {
    margin: 0;
    color: #65798a;
    line-height: 1.48;
}

.admin-control-card__metric {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid #e2e9ee;
}

.admin-control-card__metric strong { font-size: 1.55rem; color: #1f5472; }
.admin-control-card__metric span { color: #728392; font-size: .8rem; }

.admin-inline-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    border-top: 1px solid #e2e9ee;
}

.switch-row {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.switch-row input { width: auto !important; }

/* Advanced Shipping admin */
.shipping-sequence-card { border-top-color: #2c83a6 !important; }
.shipping-rules-section { border-top-color: #16867a !important; }
.royal-mail-config-panel { border-top-color: #c52637 !important; }

.shipping-flow-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shipping-flow-step {
    min-height: 122px;
    padding: 16px;
    border: 1px solid #d5e1e8;
    background: linear-gradient(180deg, #fbfdfe, #f4f8fa);
}

.shipping-flow-step > span {
    background: #1d698e;
    color: #fff;
}

.shipping-rule-list {
    display: grid;
    gap: 14px;
}

.shipping-rule-card {
    border: 1px solid #ccdbe4;
    border-left: 5px solid #278c81;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31,69,91,.055);
}

.shipping-rule-card.is-inactive {
    border-left-color: #9aa8b3;
    opacity: .82;
}

.shipping-rule-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 13px;
    border-bottom: 1px solid #e0e8ed;
    background: linear-gradient(90deg, #f8fbfc, #fff);
}

.shipping-rule-card__head h3 { margin: 3px 0 2px; }
.shipping-rule-card__head p { margin: 0; color: #6b7c88; }
.shipping-rule-card__status { display: grid; align-content: start; justify-items: end; gap: 5px; white-space: nowrap; }
.shipping-rule-card__status small { color: #748490; }

.shipping-rule-card__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.shipping-rule-card__facts > div {
    min-width: 0;
    padding: 14px 18px;
    border-right: 1px solid #e3eaef;
}
.shipping-rule-card__facts > div:last-child { border-right: 0; }
.shipping-rule-card__facts span,
.shipping-rule-card__facts small { display: block; }
.shipping-rule-card__facts span { margin-bottom: 4px; color: #6c7d89; font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.shipping-rule-card__facts strong { display: block; margin-bottom: 2px; color: #264a62; }
.shipping-rule-card__facts small { color: #72828e; line-height: 1.35; }

.shipping-rule-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 18px;
    border-top: 1px solid #e3eaef;
    background: #fbfcfd;
}
.shipping-rule-card__actions form { margin: 0; }

.admin-empty-state {
    display: grid;
    place-items: start;
    gap: 7px;
    padding: 28px;
    border: 1px dashed #a8bdca;
    background: #f6fafc;
    color: #536b7b;
}
.admin-empty-state strong { color: #244e68; font-size: 1.05rem; }

.admin-split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.admin-split-layout--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.admin-subcard {
    min-width: 0;
    padding: 17px;
    border: 1px solid #d8e2e8;
    background: #f9fbfc;
}
.admin-subcard > h3:first-child { margin-top: 0; }

.royal-mail-test-card {
    border-top: 4px solid #c52637;
    background: #fffafa;
}

.diagnostic-summary {
    display: grid;
    gap: 2px;
    margin: 15px 0 9px;
    padding: 11px 13px;
    border-left: 4px solid #278b70;
    background: #edf8f3;
}
.diagnostic-summary.has-errors { border-left-color: #b64b4b; background: #fff2f1; }
.diagnostic-summary span { color: #687b87; font-size: .75rem; }

.diagnostic-check-list { display: grid; gap: 7px; }
.diagnostic-check {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px 10px;
    border: 1px solid #dce5ea;
    background: #fff;
}
.diagnostic-check__mark {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: #eef3f5;
    color: #596b77;
    font-weight: 900;
}
.diagnostic-check--pass .diagnostic-check__mark { background: #dff4ea; color: #187052; }
.diagnostic-check--fail .diagnostic-check__mark { background: #fde3e1; color: #a33b36; }
.diagnostic-check--warn .diagnostic-check__mark { background: #fff0c9; color: #8b6410; }
.diagnostic-check strong { color: #294d64; }
.diagnostic-check p { margin: 2px 0 0; color: #687a86; font-size: .8rem; line-height: 1.4; }

/* Rule editor is deliberately spacious and sequential. */
.is-admin .admin-modal--wide .admin-modal__dialog {
    width: min(1380px, calc(100vw - 50px));
    max-width: 1380px;
    max-height: calc(100vh - 34px);
}

.is-admin .admin-modal__header {
    background: linear-gradient(110deg, #153650, #1d6578);
    color: #fff;
    border-bottom: 0;
}
.is-admin .admin-modal__header h2 { color: #fff; }
.is-admin .admin-modal__header p { color: #d7e7ee; }
.is-admin .admin-modal__header .eyebrow { color: #88ddd4; }
.is-admin .admin-modal__close { color: #fff; background: rgba(255,255,255,.09); }

.shipping-rule-workflow { gap: 14px !important; }
.rule-editor-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0;
    border: 1px solid #d6e1e8;
    background: #fff;
}
.rule-editor-section__number {
    display: grid;
    place-items: start center;
    padding-top: 20px;
    background: #e8f2f5;
    border-right: 1px solid #d6e1e8;
    color: #236c8d;
    font-weight: 950;
    font-size: 1.05rem;
}
.rule-editor-section--service .rule-editor-section__number { background: #e2f5f1; color: #157466; }
.rule-editor-section--price .rule-editor-section__number { background: #fff2d9; color: #8b6315; }
.rule-editor-section__content { min-width: 0; padding: 18px 20px 20px; }
.rule-editor-section__heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e1e8ed;
}
.rule-editor-section__heading h3 { margin: 2px 0 0 !important; padding: 0 !important; border: 0 !important; }
.rule-editor-section__heading p { max-width: 520px; margin: 0; color: #6a7c89; font-size: .82rem; }
.checkout-service-editor {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid #c6ddd9;
    border-left: 4px solid #269384;
    background: #f3faf8;
}
.checkout-service-editor[hidden] { display: none !important; }
.checkbox-row--standalone { align-self: end; min-height: 42px; }
.rule-editor-footer {
    position: sticky;
    bottom: -1px;
    z-index: 3;
    justify-content: flex-end;
    padding: 13px 16px;
    border-top: 1px solid #c8d6df;
    background: rgba(249,252,253,.97);
    backdrop-filter: blur(8px);
}

/* Give existing admin pages breathing room without requiring page-by-page rewrites. */
.is-admin .panel-grid {
    gap: 18px;
}
.is-admin .form-grid {
    gap: 14px 16px;
}
.is-admin .form-stack {
    gap: 14px;
}
.is-admin .collapsible-admin-form details > summary,
.is-admin details.compact-row-editor > summary {
    padding: 12px 14px;
    background: #eef4f7;
    color: #244d67;
    font-weight: 850;
}
.is-admin fieldset {
    border-color: #cfdae2;
    background: #fafcfd;
}

@media (max-width: 1250px) {
    .admin-control-grid { grid-template-columns: 1fr 1fr; }
    .admin-control-card--royalmail { grid-column: 1 / -1; }
    .shipping-rule-card__facts { grid-template-columns: 1fr 1fr; }
    .shipping-rule-card__facts > div:nth-child(2) { border-right: 0; }
    .shipping-rule-card__facts > div:nth-child(-n+2) { border-bottom: 1px solid #e3eaef; }
    .admin-split-layout--wide-left { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .is-admin .admin-layout { grid-template-columns: 1fr; }
    .is-admin .admin-sidebar { position: static; }
    .is-admin .admin-sidebar__group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .is-admin .admin-sidebar h2 { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .page-shell--admin { width: min(100% - 16px, 1660px); }
    .is-admin .site-header--admin .site-header__inner { align-items: flex-start; }
    .is-admin .main-nav--admin { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .is-admin .admin-sidebar__group { grid-template-columns: 1fr 1fr; }
    .admin-control-grid,
    .shipping-flow-grid--three,
    .shipping-rule-card__facts,
    .admin-split-layout { grid-template-columns: 1fr; }
    .admin-control-card--royalmail { grid-column: auto; }
    .shipping-rule-card__facts > div { border-right: 0; border-bottom: 1px solid #e3eaef; }
    .shipping-rule-card__facts > div:last-child { border-bottom: 0; }
    .shipping-rule-card__head,
    .rule-editor-section__heading { flex-direction: column; align-items: flex-start; }
    .shipping-rule-card__status { justify-items: start; }
    .rule-editor-section { grid-template-columns: 36px minmax(0, 1fr); }
    .rule-editor-section__content { padding: 14px; }
    .is-admin .admin-modal--wide .admin-modal__dialog { width: 100vw; max-width: none; max-height: 100vh; height: 100vh; }
}

@media (max-width: 520px) {
    .is-admin .admin-sidebar__group { grid-template-columns: 1fr; }
    .is-admin .admin-page-header { padding: 20px; }
    .admin-control-card { padding: 16px; }
}

.is-admin .site-footer {
    margin-top: 34px;
    background: #0f2234;
    border-top: 3px solid #1d7e7a;
    color: #b8cad6;
}
.is-admin .site-footer a {
    color: #d9e7ee;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    font-weight: 700;
}
.is-admin .site-footer__credits { color: #8fa8b8; }

.diagnostic-order-preview {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e3e9;
    background: #f7fafb;
}
.diagnostic-order-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.diagnostic-order-preview__grid > div {
    padding: 8px 9px;
    border-left: 3px solid #76aabd;
    background: #fff;
}
.diagnostic-order-preview__grid span,
.diagnostic-order-preview__grid strong { display: block; }
.diagnostic-order-preview__grid span { color: #738592; font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.diagnostic-order-preview__grid strong { margin-top: 2px; color: #244c65; }
@media (max-width: 760px) { .diagnostic-order-preview__grid { grid-template-columns: 1fr 1fr; } }

/* Colour hierarchy for existing dashboard and admin summary cards. */
.is-admin .metric-grid {
    gap: 12px;
}
.is-admin .metric-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #d4e0e7;
    border-top: 4px solid #2c7da3;
    background: linear-gradient(180deg, #fff, #f8fbfc);
    box-shadow: 0 4px 14px rgba(31,64,85,.055);
}
.is-admin .metric-card:nth-child(3n+2) { border-top-color: #218d7b; }
.is-admin .metric-card:nth-child(3n) { border-top-color: #d0942b; }
.is-admin .metric-card strong { color: #1c5373; }
.is-admin .metric-card span { color: #687c8b; font-weight: 750; }
.is-admin .card {
    border: 1px solid #d4e0e7;
    border-top: 3px solid #628ca5;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31,64,85,.05);
}
.is-admin .card--success { border-top-color: #2b9a79; background: #f8fdfb; }
.is-admin .card--warning,
.is-admin .panel--warning { border-top-color: #d29328 !important; background: #fffaf0; }


/* Advanced shipping delivery-day editor */
.is-admin .weekday-picker {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(24, 65, 86, .14);
    background: rgba(240, 248, 250, .72);
}
.is-admin .weekday-picker__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #17394a;
}
.is-admin .weekday-picker__days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.is-admin .weekday-chip {
    position: relative;
    cursor: pointer;
}
.is-admin .weekday-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.is-admin .weekday-chip span {
    display: inline-flex;
    min-width: 48px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #b9ccd4;
    background: #fff;
    font-weight: 700;
    color: #385969;
}
.is-admin .weekday-chip input:checked + span {
    border-color: #0b7f83;
    background: #0b7f83;
    color: #fff;
}
.is-admin .weekday-chip input:focus-visible + span {
    outline: 3px solid rgba(14, 151, 157, .22);
    outline-offset: 2px;
}

/* RuneCart Shipping / Geo Zone / Tax workflow -------------------------------- */
.is-admin .admin-workflow-nav,
.is-admin .shipping-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 18px;
    border: 1px solid #c9d8df;
    background: #eef4f6;
}
.is-admin .admin-workflow-nav a,
.is-admin .shipping-admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border-right: 1px solid #c9d8df;
    color: #315568;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}
.is-admin .admin-workflow-nav a:hover,
.is-admin .shipping-admin-tabs a:hover { background: #fff; color: #126c7b; }
.is-admin .shipping-admin-tabs a.is-active {
    background: #176b82;
    color: #fff;
}

.is-admin .shipping-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
    gap: 18px;
    align-items: start;
}
.is-admin .shipping-settings-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.is-admin .shipping-settings-links .admin-control-card { min-height: 150px; }
.is-admin .admin-inline-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #d4e0e6;
    background: #f8fbfc;
}
.is-admin .checkbox-row--boxed {
    padding: 10px 12px;
    border: 1px solid #d4e0e6;
    background: #f8fbfc;
}
.is-admin .weekday-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    padding: 10px 0 2px;
}
.is-admin .weekday-selector label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: auto;
    font-weight: 700;
}
.is-admin .weekday-selector input { width: auto; }

.is-admin .shipping-charge-table-wrap,
.is-admin .geo-zone-rule-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d2dee4;
    background: #fff;
}
.is-admin .shipping-charge-table,
.is-admin .shipping-rule-set-table,
.is-admin .admin-clean-table,
.is-admin .geo-zone-rule-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.is-admin .shipping-charge-table th,
.is-admin .shipping-charge-table td,
.is-admin .shipping-rule-set-table th,
.is-admin .shipping-rule-set-table td,
.is-admin .admin-clean-table th,
.is-admin .admin-clean-table td,
.is-admin .geo-zone-rule-table th,
.is-admin .geo-zone-rule-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #d9e2e7;
    vertical-align: top;
    text-align: left;
}
.is-admin .shipping-charge-table th,
.is-admin .shipping-rule-set-table th,
.is-admin .admin-clean-table th,
.is-admin .geo-zone-rule-table th {
    background: #edf3f6;
    color: #385667;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}
.is-admin .shipping-charge-table tbody tr:nth-child(even),
.is-admin .shipping-rule-set-table tbody tr:nth-child(even),
.is-admin .admin-clean-table tbody tr:nth-child(even) { background: #fbfcfd; }
.is-admin .shipping-charge-table tbody tr:hover,
.is-admin .shipping-rule-set-table tbody tr:hover,
.is-admin .admin-clean-table tbody tr:hover { background: #f2f8fa; }
.is-admin .shipping-charge-actions,
.is-admin .button-cluster--compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.is-admin .shipping-charge-actions form,
.is-admin .button-cluster--compact form { margin: 0; }
.is-admin .icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #9cb8c5;
    background: #fff;
    color: #22566e;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.is-admin .icon-action:hover { background: #e9f4f6; border-color: #5795a5; }
.is-admin .icon-action--copy { background: #fff8e8; border-color: #e4ba57; color: #956400; }
.is-admin .icon-action--danger,
.is-admin .button-danger { background: #fff1f0; border-color: #d99a95; color: #aa3028; }
.is-admin .button-danger:hover,
.is-admin .icon-action--danger:hover { background: #ba4037; border-color: #ba4037; color: #fff; }
.is-admin .shipping-group-badge {
    display: inline-flex;
    min-width: 34px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid #b9cbd4;
    background: #f4f8fa;
    color: #355b6e;
    font-weight: 900;
}
.is-admin .shipping-rule-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 420px;
}
.is-admin .shipping-rule-badges .badge,
.is-admin .rule-set-condition-list .badge { white-space: normal; }

.is-admin .rule-set-condition-list {
    display: grid;
    gap: 5px;
    min-width: 300px;
}
.is-admin .rule-set-condition-list > span {
    display: grid;
    grid-template-columns: minmax(105px, .7fr) minmax(80px, .5fr) minmax(130px, 1fr);
    gap: 7px;
    align-items: center;
    padding: 5px 7px;
    border-left: 3px solid #72a9b8;
    background: #f5f9fa;
    font-size: .78rem;
}
.is-admin .rule-set-editor {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d0dde4;
    background: #f5f9fa;
}
.is-admin .rule-set-editor-row {
    display: grid;
    grid-template-columns: 34px 60px minmax(150px, .9fr) minmax(120px, .7fr) minmax(180px, 1fr) minmax(110px, .6fr);
    gap: 7px;
    align-items: center;
}
.is-admin .rule-set-value-wrap { min-width: 0; }
.is-admin .rule-set-value-wrap input,
.is-admin .rule-set-value-wrap select { width: 100%; }
.is-admin .rule-set-delete-glyph { font-weight: 900; }
.is-admin .input-short { width: 78px !important; min-width: 0 !important; }

.is-admin .shipping-editor-section {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border: 1px solid #d0dde4;
    border-bottom: 0;
    background: #fff;
}
.is-admin .shipping-editor-section:last-of-type { border-bottom: 1px solid #d0dde4; }
.is-admin .shipping-editor-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 17px 8px;
    background: #1b6078;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}
.is-admin .shipping-editor-section > div:last-child { padding: 16px 18px 18px; }
.is-admin .shipping-editor-section h3 { margin: 0 0 4px; color: #1d5169; }
.is-admin .admin-fieldset {
    margin: 12px 0 0;
    padding: 12px 14px 14px;
    border: 1px solid #d5e0e5;
    background: #f9fbfc;
}
.is-admin .admin-fieldset legend {
    padding: 0 7px;
    color: #315b6f;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.is-admin .diagnostic-list { display: grid; gap: 7px; }
.is-admin .diagnostic-list__row {
    display: grid;
    grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border-left: 4px solid #7896a6;
    background: #f5f8fa;
}
.is-admin .diagnostic-list__row--pass,
.is-admin .diagnostic-list__row--ok,
.is-admin .diagnostic-list__row--success { border-left-color: #278a68; background: #f3fbf8; }
.is-admin .diagnostic-list__row--warning { border-left-color: #ce8f24; background: #fff9ed; }
.is-admin .diagnostic-list__row--fail,
.is-admin .diagnostic-list__row--error { border-left-color: #bc4b42; background: #fff5f4; }
.is-admin .shipping-test-results { display: grid; gap: 10px; margin-top: 16px; }

.is-admin .admin-mini-list { display: grid; gap: 8px; }
.is-admin .admin-mini-list > * {
    padding: 9px 10px;
    border-left: 3px solid #6fa2b3;
    background: #f5f9fa;
}
.is-admin .admin-inline-details { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #637b89; font-size: .8rem; }

@media (max-width: 1050px) {
    .is-admin .shipping-settings-grid { grid-template-columns: 1fr; }
    .is-admin .rule-set-editor-row { grid-template-columns: 34px 55px 1fr 1fr; }
    .is-admin .rule-set-editor-row .rule-set-value-wrap { grid-column: 3 / 5; }
    .is-admin .rule-set-editor-row > input:last-child { grid-column: 3 / 5; }
}
@media (max-width: 720px) {
    .is-admin .shipping-settings-links { grid-template-columns: 1fr; }
    .is-admin .admin-workflow-nav,
    .is-admin .shipping-admin-tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .is-admin .admin-workflow-nav a,
    .is-admin .shipping-admin-tabs a { border-right: 0; border-bottom: 1px solid #c9d8df; }
    .is-admin .shipping-editor-section { grid-template-columns: 36px minmax(0, 1fr); }
    .is-admin .shipping-editor-section > div:last-child { padding: 13px; }
    .is-admin .rule-set-editor-row { grid-template-columns: 34px 50px minmax(0, 1fr); }
    .is-admin .rule-set-editor-row select:nth-of-type(2),
    .is-admin .rule-set-editor-row .rule-set-value-wrap,
    .is-admin .rule-set-editor-row > input:last-child { grid-column: 3 / 4; }
    .is-admin .rule-set-condition-list { min-width: 220px; }
    .is-admin .rule-set-condition-list > span { grid-template-columns: 1fr; gap: 2px; }
}
.is-admin .shipping-admin-tabs a { flex-direction: column; align-items: flex-start; justify-content: center; min-width: 150px; }
.is-admin .shipping-admin-tabs a strong { display: block; font-size: .84rem; }
.is-admin .shipping-admin-tabs a span { display: block; margin-top: 1px; font-size: .68rem; font-weight: 650; opacity: .78; }
.is-admin .shipping-charge-table td > strong,
.is-admin .shipping-charge-table td > span,
.is-admin .shipping-charge-table td > small { display: block; }
.is-admin .shipping-charge-table td > span,
.is-admin .shipping-charge-table td > small { margin-top: 3px; color: #6c808d; }
.is-admin .shipping-charge-table th:nth-child(1) { width: 112px; }
.is-admin .shipping-charge-table th:nth-child(2) { width: 72px; }
.is-admin .shipping-charge-table th:nth-child(3) { min-width: 220px; }
.is-admin .shipping-charge-table th:nth-child(4) { min-width: 170px; }
.is-admin .shipping-charge-table th:nth-child(5) { min-width: 300px; }
.is-admin .shipping-charge-table th:nth-child(6) { min-width: 140px; }
.is-admin .shipping-rule-set-table th:nth-child(1) { width: 100px; }
.is-admin .shipping-rule-set-table th:nth-child(2) { min-width: 230px; width: 28%; }


/* RuneCart shipping forms: full-width, aligned and intentionally uncluttered. */
.is-admin .shipping-admin-form,
.is-admin .geo-zone-editor-form,
.is-admin .tax-rule-editor-form {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.is-admin .shipping-admin-form input,
.is-admin .shipping-admin-form select,
.is-admin .shipping-admin-form textarea,
.is-admin .geo-zone-editor-form input,
.is-admin .geo-zone-editor-form select,
.is-admin .geo-zone-editor-form textarea,
.is-admin .tax-rule-editor-form input,
.is-admin .tax-rule-editor-form select,
.is-admin .tax-rule-editor-form textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.is-admin .shipping-editor-section > div:last-child {
    min-width: 0;
    width: 100%;
}

.is-admin .shipping-editor-section .form-grid,
.is-admin .shipping-admin-form .form-grid,
.is-admin .tax-rule-editor-form .form-grid {
    align-items: start;
}

.is-admin .shipping-admin-form .form-grid--two {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.is-admin .shipping-admin-form .form-grid--three,
.is-admin .tax-rule-editor-form .form-grid--three {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.is-admin .shipping-admin-form .form-grid--four {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.is-admin .shipping-editor-section .form-grid--three {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.is-admin .shipping-editor-section .form-grid--four {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.is-admin .shipping-editor-section .form-grid > label,
.is-admin .shipping-settings-grid > label,
.is-admin .geo-zone-summary-grid > label {
    min-width: 0;
    align-content: start;
}

.is-admin .shipping-editor-section input:not([type="checkbox"]),
.is-admin .shipping-editor-section select,
.is-admin .shipping-editor-section textarea {
    width: 100%;
}

.is-admin .shipping-section-help {
    max-width: 980px;
    margin: 0 0 14px;
    color: #627987;
    line-height: 1.5;
}

.is-admin .shipping-eligibility-grid > label,
.is-admin .shipping-pricing-grid > label {
    padding: 12px;
    border: 1px solid #d7e2e7;
    background: #f9fbfc;
}

.is-admin .shipping-eligibility-grid select[multiple],
.is-admin .shipping-eligibility-grid textarea {
    min-height: 136px;
}

.is-admin .shipping-rate-table {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #cadbe3;
    background: #f4f9fb;
}

.is-admin .shipping-rate-table textarea {
    width: 100%;
    min-height: 145px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.5;
}

.is-admin [data-price-field][hidden] { display: none !important; }

.is-admin .shipping-price-options {
    margin-top: 14px;
    border: 1px solid #d4e0e6;
    background: #fbfcfd;
}

.is-admin .shipping-price-options > summary {
    cursor: pointer;
    padding: 11px 13px;
    color: #31586b;
    font-weight: 800;
}

.is-admin .shipping-price-options[open] > summary {
    border-bottom: 1px solid #d4e0e6;
    background: #eef5f7;
}

.is-admin .shipping-price-options > .form-grid {
    padding: 14px;
}

/* Geo Zones need the whole panel width; only genuinely narrow screens should scroll. */
.is-admin .geo-zone-summary-grid {
    grid-template-columns: minmax(260px, 1.2fr) minmax(150px, .45fr) minmax(220px, .7fr);
    max-width: 900px;
    align-items: end;
}

.is-admin .geo-zone-editor-form > label {
    max-width: 900px;
}

.is-admin .geo-zone-rule-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d2dee4;
    background: #fff;
}

.is-admin .geo-zone-rule-table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    overflow: visible;
    border: 0;
    background: #fff;
}

.is-admin .geo-zone-rule-table th:nth-child(1) { width: 125px; }
.is-admin .geo-zone-rule-table th:nth-child(2) { width: 260px; }
.is-admin .geo-zone-rule-table th:nth-child(3) { width: 165px; }
.is-admin .geo-zone-rule-table th:nth-child(5) { width: 90px; }
.is-admin .geo-zone-rule-table th:nth-child(6) { width: 110px; }
.is-admin .geo-zone-rule-table select,
.is-admin .geo-zone-rule-table input { width: 100%; }

/* Rule Set rows remain readable at desktop sizes and scroll as one row on small screens. */
.is-admin .rule-set-editor {
    max-width: 100%;
    overflow-x: auto;
}

.is-admin .rule-set-editor-row {
    grid-template-columns: 40px 70px minmax(190px, .95fr) minmax(160px, .75fr) minmax(220px, 1.1fr) minmax(130px, .65fr);
    min-width: 900px;
}

@media (max-width: 1180px) {
    .is-admin .shipping-editor-section .form-grid--three,
    .is-admin .shipping-editor-section .form-grid--four,
    .is-admin .shipping-admin-form .form-grid--three,
    .is-admin .shipping-admin-form .form-grid--four,
    .is-admin .tax-rule-editor-form .form-grid--three {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 760px) {
    .is-admin .shipping-editor-section .form-grid--three,
    .is-admin .shipping-editor-section .form-grid--four,
    .is-admin .shipping-admin-form .form-grid--two,
    .is-admin .shipping-admin-form .form-grid--three,
    .is-admin .shipping-admin-form .form-grid--four,
    .is-admin .tax-rule-editor-form .form-grid--three,
    .is-admin .geo-zone-summary-grid {
        grid-template-columns: 1fr;
    }

    .is-admin .shipping-editor-section {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .is-admin .shipping-editor-section > div:last-child {
        padding: 12px;
    }

    .is-admin .shipping-eligibility-grid > label,
    .is-admin .shipping-pricing-grid > label {
        padding: 10px;
    }

    .is-admin .geo-zone-rule-table { min-width: 780px; }
}

/* RuneCart administration quick-action header */
.is-admin .site-header--admin {
    background: #ffffff;
    border-bottom: 1px solid #d7dee5;
    box-shadow: 0 2px 8px rgba(20, 40, 61, .08);
}

.is-admin .site-header--admin .site-header__inner {
    width: 100%;
    max-width: none;
    padding: 0;
    display: block;
}

.admin-topbar {
    min-height: 90px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #ffffff;
}

.admin-topbar__shortcuts {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-quick-link {
    position: relative;
    min-width: 230px;
    min-height: 90px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-right: 1px solid rgba(32, 50, 71, .08);
    color: #52687b;
    font-size: 1.02rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-quick-link:hover,
.admin-quick-link:focus {
    color: #31485c;
    text-decoration: none;
    filter: saturate(1.08) brightness(.99);
    box-shadow: inset 0 -4px 0 rgba(32, 50, 71, .16);
}

.admin-quick-link.is-active {
    color: #24394c;
    box-shadow: inset 0 -5px 0 rgba(32, 50, 71, .28);
}

.admin-quick-link--processing { background: #cdf9df; }
.admin-quick-link--unpaid { background: #fff1c4; }
.admin-quick-link--shipped { background: #cbe6ef; }
.admin-quick-link--product { background: #ffc9c9; }

.admin-quick-link__icon {
    flex: 0 0 auto;
    color: #5f6d78;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.admin-quick-link__count {
    min-width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(32, 50, 71, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    color: #33495c;
    font-size: .82rem;
    line-height: 1;
}

.admin-topbar__account {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    border-left: 1px solid #e1e6eb;
}

.admin-topbar__user,
.admin-topbar__logout {
    min-height: 90px;
    display: flex;
    align-items: center;
}

.admin-topbar__user {
    gap: 14px;
    padding: 0 28px;
    color: #52687b;
    text-decoration: none;
}

.admin-topbar__user:hover,
.admin-topbar__user:focus {
    background: #f6f9fb;
    color: #31485c;
    text-decoration: none;
}

.admin-topbar__avatar {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(145deg, #1d5d8a, #173c66);
    box-shadow: 0 0 0 1px #d6e1e8;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-topbar__user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.admin-topbar__chevron {
    color: #667b8d;
    font-size: .9rem;
}

.admin-topbar__logout {
    margin: 0;
    border-left: 1px solid #e1e6eb;
}

.admin-topbar__logout button {
    min-height: 90px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #ffffff;
    color: #52687b;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.admin-topbar__logout button:hover,
.admin-topbar__logout button:focus {
    background: #f6f9fb;
    color: #31485c;
}

.order-list-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.order-list-toolbar .list-toolbar {
    margin-bottom: 0;
}

.order-filter-summary {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d2dde5;
    border-left-width: 5px;
    color: #344b5f;
}

.order-filter-summary--processing { background: #edfff4; border-left-color: #5bc787; }
.order-filter-summary--unpaid { background: #fff9e5; border-left-color: #d8b645; }
.order-filter-summary--shipped { background: #eef9fd; border-left-color: #6db6d0; }
.order-filter-summary a { font-weight: 700; }

@media (max-width: 1220px) {
    .admin-quick-link {
        min-width: 205px;
        padding-inline: 20px;
    }
    .admin-topbar__user { padding-inline: 20px; }
    .admin-topbar__logout button { padding-inline: 20px; }
}

@media (max-width: 900px) {
    .is-admin .site-header--admin .site-header__inner {
        align-items: stretch;
    }
    .admin-topbar {
        min-height: 0;
        display: block;
    }
    .admin-topbar__shortcuts {
        width: 100%;
    }
    .admin-quick-link {
        min-width: 190px;
        min-height: 72px;
    }
    .admin-topbar__account {
        min-height: 64px;
        border-top: 1px solid #e1e6eb;
        border-left: 0;
        justify-content: flex-end;
    }
    .admin-topbar__user,
    .admin-topbar__logout,
    .admin-topbar__logout button {
        min-height: 64px;
    }
    .admin-topbar__avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .admin-quick-link {
        min-width: 170px;
        min-height: 64px;
        padding-inline: 14px;
        font-size: .9rem;
    }
    .admin-quick-link__count {
        min-width: 24px;
        height: 24px;
        padding-inline: 6px;
    }
    .admin-topbar__user { padding-inline: 14px; }
    .admin-topbar__user-name,
    .admin-topbar__chevron { display: none; }
    .admin-topbar__logout button { padding-inline: 16px; }
    .order-filter-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* RuneCart admin frame refinement: integrated sidebar masthead + compact quick actions */
.is-admin .site-header--admin {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #cfd9e2;
    box-shadow: 0 2px 10px rgba(16, 35, 55, .09);
}

.is-admin .site-header--admin .site-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
}

.admin-header-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: stretch;
}

.admin-header-brand {
    min-width: 0;
    min-height: 72px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #132b41 0%, #193c55 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    color: #ffffff;
    text-decoration: none;
}

.admin-header-brand:hover,
.admin-header-brand:focus {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(145deg, #17344d 0%, #1c4864 100%);
}

.admin-header-brand__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, #23a99a, #277eb0);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.admin-header-brand__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.admin-header-brand__copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-header-brand__copy small {
    overflow: hidden;
    color: #9eb8c9;
    font-size: .72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar {
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    background: #ffffff;
}

.admin-topbar__shortcuts {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-quick-link {
    width: clamp(150px, 10vw, 184px);
    min-width: 150px;
    max-width: 184px;
    min-height: 72px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-right: 1px solid rgba(32, 50, 71, .08);
    color: #4d6375;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.admin-quick-link__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-quick-link__icon {
    flex: 0 0 auto;
    color: #5f6d78;
    font-size: 1rem;
    font-weight: 800;
}

.admin-quick-link__count {
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(32, 50, 71, .13);
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    color: #33495c;
    font-size: .74rem;
    line-height: 1;
}

.admin-topbar__account {
    margin-left: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    border-left: 1px solid #dfe6eb;
}

.admin-topbar__user,
.admin-topbar__logout,
.admin-topbar__logout button {
    min-height: 72px;
}

.admin-topbar__user {
    gap: 10px;
    min-width: 185px;
    max-width: 250px;
    padding: 0 18px;
}

.admin-topbar__avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-width: 2px;
    font-size: 1.05rem;
}

.admin-topbar__user-name {
    max-width: 145px;
    font-size: .9rem;
}

.admin-topbar__logout button {
    padding: 0 20px;
    background: #237ca3;
    color: #ffffff;
}

.admin-topbar__logout button:hover,
.admin-topbar__logout button:focus {
    background: #1b6688;
    color: #ffffff;
}

/* Let the sidebar begin immediately beneath its masthead rather than floating inside a centered card. */
.page-shell--admin {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.is-admin .admin-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    background: linear-gradient(90deg, #0f2234 0, #132b41 270px, transparent 270px);
}

.is-admin .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: stretch;
    min-height: calc(100vh - 72px);
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding: 10px 0 24px;
    background: linear-gradient(180deg, #132b41 0%, #0f2234 100%);
    border: 0;
    box-shadow: 7px 0 20px rgba(17, 43, 64, .08);
    color: #dce9f1;
}


.is-admin .admin-content {
    min-width: 0;
    padding: 22px 26px 40px;
}

.page-notice-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.page-notice-stack > .flash,
.page-notice-stack > .store-status-banner {
    margin-bottom: 0;
}

.is-admin .page-notice-stack {
    width: 100%;
    min-width: 0;
}

/* Coloured navigation groups make the long administration menu easier to scan. */
.is-admin .admin-sidebar__group {
    --group-accent: #49bcb0;
    margin: 0 10px 8px;
    padding: 8px 8px 9px;
    border-left: 3px solid var(--group-accent);
    background: rgba(255,255,255,.025);
}

.is-admin .admin-sidebar__group--home { --group-accent: #4ec7ba; }
.is-admin .admin-sidebar__group--sales-fulfilment { --group-accent: #5bc787; }
.is-admin .admin-sidebar__group--payments { --group-accent: #e2b94d; }
.is-admin .admin-sidebar__group--catalogue { --group-accent: #5aa8dc; }
.is-admin .admin-sidebar__group--stock-inventory { --group-accent: #9a79d1; }
.is-admin .admin-sidebar__group--marketplaces { --group-accent: #eb7882; }
.is-admin .admin-sidebar__group--content { --group-accent: #e6964d; }
.is-admin .admin-sidebar__group--operations { --group-accent: #7e9db6; }
.is-admin .admin-sidebar__group--configuration { --group-accent: #4ec1b4; }

.is-admin .admin-sidebar h2 {
    margin: 0 4px 6px;
    padding: 3px 2px 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--group-accent);
    font-size: .67rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.admin-sidebar__group-mark {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    display: inline-block;
    background: var(--group-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--group-accent) 18%, transparent);
}

.is-admin .admin-sidebar a {
    position: relative;
    min-height: 33px;
    margin: 1px 0;
    padding: 7px 9px 7px 16px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #d4e0e8;
    font-size: .84rem;
    font-weight: 650;
}

.is-admin .admin-sidebar a::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 4px;
    height: 4px;
    transform: translateY(-50%);
    background: var(--group-accent);
    opacity: .72;
}

.is-admin .admin-sidebar a:hover,
.is-admin .admin-sidebar a:focus {
    color: #ffffff;
    background: rgba(255,255,255,.065);
    text-decoration: none;
}

.is-admin .admin-sidebar a.is-active,
.is-admin .admin-sidebar a.is-active:hover,
.is-admin .admin-sidebar a.is-active:focus {
    color: #ffffff;
    border-left-color: var(--group-accent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-accent) 24%, transparent), rgba(255,255,255,.035));
    font-weight: 850;
}

.is-admin .admin-sidebar a.is-active::before {
    width: 6px;
    height: 6px;
    opacity: 1;
}

@media (max-width: 1480px) {
    .admin-quick-link {
        width: 154px;
        min-width: 154px;
        max-width: 154px;
        padding-inline: 12px;
        font-size: .82rem;
    }
    .admin-topbar__user {
        min-width: 160px;
        max-width: 205px;
        padding-inline: 14px;
    }
    .admin-topbar__user-name { max-width: 110px; }
    .admin-topbar__logout button { padding-inline: 15px; }
}

@media (max-width: 1180px) {
    .admin-header-grid,
    .is-admin .admin-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }
    .admin-quick-link {
        min-width: 145px;
        width: 145px;
        max-width: 145px;
    }
    .admin-topbar__user-name,
    .admin-topbar__chevron {
        display: none;
    }
    .admin-topbar__user {
        min-width: 74px;
        width: 74px;
        padding-inline: 15px;
    }
}

@media (max-width: 900px) {
    .admin-header-grid {
        grid-template-columns: 1fr;
    }
    .admin-header-brand {
        min-height: 62px;
    }
    .admin-topbar {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .admin-topbar__shortcuts {
        justify-content: flex-start;
    }
    .admin-quick-link {
        min-width: 155px;
        width: 155px;
        max-width: 155px;
        min-height: 64px;
    }
    .admin-topbar__user,
    .admin-topbar__logout,
    .admin-topbar__logout button {
        min-height: 64px;
    }
    .admin-topbar__logout button {
        min-width: 92px;
    }
    .is-admin .admin-layout {
        grid-template-columns: 1fr;
        background: transparent;
    }
    .is-admin .admin-sidebar {
        position: static;
        min-height: 0;
        height: auto;
        max-height: none;
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .is-admin .admin-sidebar__group {
        margin: 0;
    }
    .is-admin .admin-content {
        padding: 18px 16px 34px;
    }
}

@media (max-width: 620px) {
    .admin-topbar {
        grid-template-columns: 1fr;
    }
    .admin-topbar__account {
        justify-content: flex-end;
        border-top: 1px solid #dfe6eb;
        border-left: 0;
    }
    .admin-quick-link {
        min-width: 144px;
        width: 144px;
        max-width: 144px;
        padding-inline: 10px;
        font-size: .78rem;
    }
    .is-admin .admin-sidebar {
        grid-template-columns: 1fr;
    }
}

/* RuneCart sample-data workspace */
.is-admin .sample-data-metrics {
    margin-bottom: 22px;
}

.is-admin .sample-data-actions {
    align-items: stretch;
    margin-bottom: 22px;
}

.is-admin .sample-data-actions > .panel {
    min-height: 100%;
}

.is-admin .sample-credential {
    display: flex;
    align-items: center;
    min-height: 58px;
    margin: 14px 0;
    padding: 12px 16px;
    border: 1px solid #b7ccd9;
    border-left: 5px solid #2a839f;
    background: #f4f9fc;
    overflow-wrap: anywhere;
}

.is-admin .sample-credential code {
    font-size: 1.05rem;
    font-weight: 800;
}

@media (max-width: 800px) {
    .is-admin .sample-data-actions,
    .is-admin .sample-data-metrics {
        grid-template-columns: 1fr;
    }
}

.is-admin .sample-data-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

/* RuneCart 0.0.38: storefront category navigation + manual order workflow */
.main-nav--storefront {
    align-items: center;
    position: relative;
}

.store-category-menu {
    position: relative;
}

.store-category-menu > a,
.store-category-menu__level a {
    white-space: nowrap;
}

.store-category-menu__root {
    display: inline-block;
    padding: 8px 12px;
    background: var(--blue-light);
    border: 1px solid var(--line-strong);
    color: var(--blue-dark);
    font-weight: 600;
}

.store-category-menu__level {
    position: absolute;
    z-index: 120;
    top: calc(100% - 1px);
    left: 0;
    display: none;
    min-width: 210px;
    max-width: 290px;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line-strong);
    box-shadow: 0 10px 24px rgba(22, 78, 124, .18);
}

.store-category-menu:hover > .store-category-menu__level,
.store-category-menu:focus-within > .store-category-menu__level,
.store-category-menu__item:hover > .store-category-menu__level,
.store-category-menu__item:focus-within > .store-category-menu__level {
    display: block;
}

.store-category-menu__item {
    position: relative;
}

.store-category-menu__level .store-category-menu__level {
    top: -6px;
    left: calc(100% + 4px);
}

.store-category-menu__level a {
    display: block;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.store-category-menu__level a:hover,
.store-category-menu__level a:focus {
    background: var(--panel-soft);
    color: var(--blue-dark);
    text-decoration: none;
}

.store-category-menu__item.has-children > a::after {
    content: "›";
    float: right;
    margin-left: 14px;
    color: var(--muted);
}

.category-child-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.category-child-links > a {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    background: var(--panel-soft);
}

.category-child-links > a:hover,
.category-child-links > a:focus {
    border-color: var(--line-strong);
    text-decoration: none;
}

.category-child-links span {
    color: var(--muted);
    font-size: 13px;
}

.order-products-cell {
    min-width: 220px;
    max-width: 360px;
}

.order-product-line {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin: 0 0 4px;
    line-height: 1.25;
}

.order-product-line:last-child {
    margin-bottom: 0;
}

.order-product-line__qty {
    flex: 0 0 auto;
    min-width: 28px;
    color: var(--muted);
    font-weight: 700;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    min-height: 30px;
    text-align: center;
    text-transform: capitalize;
}

.manual-order-form {
    display: grid;
    gap: 18px;
}

.manual-order-section {
    margin-bottom: 0;
}

.manual-order-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.manual-order-address-grid fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.manual-order-address-grid legend {
    padding: 0 8px;
    color: var(--blue-dark);
    font-weight: 700;
}

.manual-order-checkbox {
    align-self: end;
    min-height: 44px;
}

.manual-order-lines select,
.manual-order-lines input {
    min-width: 120px;
}

.manual-order-lines td:first-child select {
    min-width: 360px;
}

.manual-order-total-card {
    display: grid;
    gap: 4px;
    align-content: center;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.manual-order-total-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.manual-order-total-card strong {
    font-size: 21px;
}

.manual-order-total-card--grand {
    border-left: 4px solid var(--blue);
}

.manual-order-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

[data-shipping-fields].is-disabled {
    opacity: .5;
}

@media (max-width: 960px) {
    .site-header:not(.site-header--admin) .site-header__inner {
        align-items: flex-start;
    }
    .main-nav--storefront {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .store-category-menu {
        flex: 0 0 auto;
    }
    .manual-order-address-grid {
        grid-template-columns: 1fr;
    }
    .manual-order-lines td:first-child select {
        min-width: 280px;
    }
}

@media (max-width: 680px) {
    .store-category-menu__level {
        min-width: 190px;
    }
    .store-category-menu__level .store-category-menu__level {
        left: 28px;
        top: calc(100% - 1px);
    }
    .manual-order-lines td:first-child select {
        min-width: 220px;
    }
    .order-status-pill {
        width: 104px;
    }
}

/* RuneCart 0.0.39 - operational order overview */
.order-overview {
    padding: 0;
    overflow: hidden;
    border-top: 4px solid #1e7189;
}

.order-overview__grid {
    display: grid;
    gap: 0;
}

.order-overview__grid--primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.order-overview__grid--contact {
    grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.45fr) minmax(170px, .85fr) minmax(250px, 1.2fr);
    border-bottom: 1px solid var(--line);
}

.order-overview__item {
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.order-overview__item:last-child {
    border-right: 0;
}

.order-overview__label {
    display: block;
    margin-bottom: 5px;
    color: #527087;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.order-overview__value {
    display: block;
    min-width: 0;
    color: #17324a;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.order-overview__link {
    color: #176f9c;
    text-decoration: none;
}

.order-overview__link:hover,
.order-overview__link:focus-visible {
    text-decoration: underline;
}

.order-overview__meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-overview__item--actions {
    background: #f7fbfd;
}

.order-overview__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.order-overview__actions .button-link,
.order-overview__actions .button-secondary {
    margin: 0;
    white-space: nowrap;
}

.button-link--disabled {
    opacity: .5;
    pointer-events: none;
    cursor: default;
}

.order-overview__shipping {
    padding: 16px 18px 18px;
    background: #f7fbfd;
}

.order-overview__address {
    margin: 0;
    color: #253f54;
    font-style: normal;
    line-height: 1.55;
}

.order-source-note {
    margin: -8px 0 18px;
    padding: 9px 12px;
    border-left: 4px solid #8aa8bd;
    background: #f2f7fa;
    color: #536b7d;
    font-size: 13px;
}

.order-reliability-drawer {
    padding: 0;
    overflow: hidden;
}

.order-reliability-drawer > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background: #f6f9fb;
}

.order-reliability-drawer > summary::-webkit-details-marker {
    display: none;
}

.order-reliability-drawer > summary::before {
    content: '▸';
    flex: 0 0 auto;
    color: #1e7189;
    font-size: 16px;
    transition: transform .15s ease;
}

.order-reliability-drawer[open] > summary::before {
    transform: rotate(90deg);
}

.order-reliability-drawer > summary > span:first-of-type {
    flex: 1 1 auto;
    min-width: 0;
}

.order-reliability-drawer > summary strong,
.order-reliability-drawer > summary small {
    display: block;
}

.order-reliability-drawer > summary strong {
    color: #17324a;
    font-size: 15px;
}

.order-reliability-drawer > summary small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.order-reliability-drawer__status {
    flex: 0 0 auto;
    min-width: 130px;
    padding: 5px 9px;
    border: 1px solid #b8c9d5;
    background: #fff;
    color: #3d596d;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.order-reliability-drawer__status--ok {
    border-color: #9dcbae;
    background: #edf9f1;
    color: #296a43;
}

.order-reliability-drawer__status--warn {
    border-color: #dfc078;
    background: #fff8e8;
    color: #875e12;
}

.order-reliability-drawer__body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
    .order-overview__grid--primary,
    .order-overview__grid--contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-overview__item:nth-child(2n) {
        border-right: 0;
    }

    .order-overview__item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 680px) {
    .order-overview__grid--primary,
    .order-overview__grid--contact {
        grid-template-columns: 1fr;
    }

    .order-overview__item,
    .order-overview__item:nth-child(2n),
    .order-overview__item:nth-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .order-overview__item:last-child {
        border-bottom: 0;
    }

    .order-reliability-drawer > summary {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .order-reliability-drawer__status {
        margin-left: 26px;
    }
}

/* RuneCart 0.0.39 - compact OpenCart-inspired order information layout */
.order-summary-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, .82fr);
    gap: 18px;
    margin-bottom: 18px;
}

.order-summary-card,
.order-shipping-panel {
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--admin-line, var(--line));
}

.order-summary-card__title {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--admin-line, var(--line));
    background: #f5f7f9;
    color: var(--admin-ink, #203247);
    font-size: 15px;
    font-weight: 700;
}

.order-summary-list {
    margin: 0;
}

.order-summary-list__row {
    display: grid;
    grid-template-columns: minmax(115px, .82fr) minmax(0, 1.55fr);
    min-height: 43px;
    border-bottom: 1px solid var(--admin-line, var(--line));
}

.order-summary-list__row:last-child {
    border-bottom: 0;
}

.order-summary-list dt,
.order-summary-list dd {
    margin: 0;
    padding: 11px 13px;
    min-width: 0;
}

.order-summary-list dt {
    background: #f9fbfc;
    color: var(--admin-muted, #66788a);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
}

.order-summary-list dd {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--admin-line, var(--line));
    color: var(--admin-ink, #203247);
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.order-summary-list dd a {
    color: #1673a4;
    text-decoration: none;
}

.order-summary-list dd a:hover,
.order-summary-list dd a:focus-visible {
    text-decoration: underline;
}

.order-summary-card--documents {
    align-self: start;
}

.order-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px;
}

.order-document-actions .button-link,
.order-document-actions .button-secondary {
    margin: 0;
    white-space: nowrap;
}

.order-shipping-panel {
    margin-bottom: 18px;
}

.order-shipping-panel__body {
    padding: 13px 15px 15px;
    background: #fff;
}

.order-shipping-address {
    margin: 0;
    color: var(--admin-ink, #203247);
    font-style: normal;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .order-summary-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-summary-card--documents {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .order-summary-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-summary-card--documents {
        grid-column: auto;
    }

    .order-summary-list__row {
        grid-template-columns: 1fr;
    }

    .order-summary-list dt {
        padding-bottom: 4px;
    }

    .order-summary-list dd {
        padding-top: 4px;
        border-left: 0;
    }
}

/* RuneCart 0.0.41 - OpenCart-style order history, inline totals and courier blurbs */
.admin-editor-layout--order-full {
    display: block;
    width: 100%;
}

.admin-editor-layout--order-full .admin-editor-main {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.order-items-table {
    margin: 0;
}

.order-items-table tfoot th,
.order-items-table tfoot td {
    border-color: var(--admin-line, var(--line));
    padding: 9px 10px;
    background: #f8fbfc;
}

.order-items-table tfoot th {
    text-align: right;
    color: #39566a;
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: none;
}

.order-items-table tfoot td {
    text-align: right;
    white-space: nowrap;
}

.order-items-table__summary-row .muted-text {
    font-weight: 500;
}

.order-items-table__grand-total th,
.order-items-table__grand-total td {
    background: #eaf3f7;
    color: #173f58;
    font-size: .9rem;
}

.order-history-panel > h2,
.order-items-panel > h2 {
    margin-bottom: 14px;
}

.order-history-table {
    margin: 0;
}

.order-history-table th:first-child,
.order-history-table td:first-child {
    width: 190px;
}

.order-history-table th:nth-child(3),
.order-history-table td:nth-child(3) {
    width: 210px;
}

.order-history-table th:last-child,
.order-history-table td:last-child {
    width: 150px;
}

.order-history-editor {
    margin-top: 18px;
    border-top: 1px solid var(--admin-line, var(--line));
    padding-top: 18px;
}

.order-history-editor h3 {
    margin: 0 0 14px;
    color: #1b3d58;
    font-size: 1.05rem;
}

.order-history-form {
    display: grid;
    grid-template-columns: minmax(270px, .38fr) minmax(420px, 1fr);
    gap: 18px 24px;
    align-items: start;
}

.order-history-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.order-history-form__fields > label:not(.order-history-notify) {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.order-history-notify {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    min-height: 38px;
    align-items: center;
}

.order-history-notify input:disabled + span {
    opacity: .55;
}

.order-history-notify-note {
    grid-column: 1 / -1;
    margin: -6px 0 0;
    font-size: .78rem;
}

.order-history-form__comment {
    min-width: 0;
}

.order-history-comment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.order-history-comment-heading label {
    margin: 0;
    font-weight: 700;
}

.order-history-comment-heading .order-courier-blurb-trigger {
    margin: 0;
    padding: 7px 11px;
    min-height: 34px;
    white-space: nowrap;
}

.order-history-form__comment textarea {
    width: 100%;
    min-height: 142px;
    resize: vertical;
}

.order-history-form__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.order-history-form__actions button {
    min-width: 132px;
}

.order-courier-blurb-modal .admin-modal__dialog {
    width: min(720px, 100%);
}

.order-courier-blurb-list {
    display: grid;
    gap: 9px;
}

.is-admin .order-courier-blurb-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #c8d7e0;
    background: #f9fbfc;
    color: #234a64;
    box-shadow: none;
}

.is-admin .order-courier-blurb-option:hover,
.is-admin .order-courier-blurb-option:focus {
    border-color: #6e9fb6;
    background: #eef6f9;
    color: #163e56;
}

.order-courier-blurb-option span {
    line-height: 1.45;
    font-weight: 600;
}

.order-courier-blurb-option strong {
    color: #1e708f;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.order-courier-blurb-settings-link {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line, var(--line));
}

@media (max-width: 980px) {
    .order-history-form {
        grid-template-columns: 1fr;
    }

    .order-history-form__actions {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .order-history-form__fields {
        grid-template-columns: 1fr;
    }

    .order-history-notify,
    .order-history-notify-note {
        grid-column: auto;
    }

    .order-history-comment-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .order-history-comment-heading .order-courier-blurb-trigger,
    .order-history-form__actions button {
        width: 100%;
    }

    .order-items-table tfoot th,
    .order-items-table tfoot td {
        white-space: normal;
    }
}

/* RuneCart 0.0.42 - unified order notes/history and full-width fulfilment editor */
.order-history-notify,
.order-history-hide {
    grid-column: auto;
    min-height: 40px;
    align-items: center;
    margin: 2px 0 0;
}

.order-history-hide input:checked + span {
    color: #7a3d00;
    font-weight: 850;
}

.order-history-hide-note {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    font-size: .78rem;
}

.order-history-row--hidden td {
    background: #fffaf1;
}

.order-history-hidden-pill {
    border-color: #d9a45b;
    background: #fff2d8;
    color: #75430a;
}

.shipment-entry {
    width: 100%;
    min-width: 0;
}

.is-admin .shipment-entry-form,
.shipment-entry-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 16px 18px 18px;
}

.shipment-entry-form > .info-callout {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.shipment-entry-form .responsive-table-wrap {
    width: 100%;
    min-width: 0;
}

.shipment-item-picker {
    width: 100%;
    table-layout: auto;
}

.shipment-item-picker th:first-child,
.shipment-item-picker td:first-child {
    width: 48%;
}

.shipment-item-picker input[type="number"] {
    width: 92px;
    max-width: 100%;
    text-align: center;
}

.shipment-entry-form input[type="text"],
.shipment-entry-form input[type="url"],
.shipment-entry-form input[type="datetime-local"],
.shipment-entry-form textarea {
    text-align: left;
}

.is-admin .shipment-fields-grid,
.shipment-fields-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
}

.shipment-fields-grid > label {
    min-width: 0;
}

.shipment-note-field {
    width: 100%;
    max-width: none;
}

.shipment-note-field textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
}

.shipment-entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.shipment-entry-actions button {
    min-width: 220px;
}

.customer-order-history-panel,
.customer-order-shipments-panel {
    margin-top: 18px;
}

.customer-order-history-table {
    width: 100%;
}

.customer-order-history-table th:first-child,
.customer-order-history-table td:first-child {
    width: 180px;
}

.customer-order-history-table th:last-child,
.customer-order-history-table td:last-child {
    width: 210px;
}

.customer-order-note-editor {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.customer-order-note-editor h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.customer-order-note-form {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin-top: 12px;
}

.customer-order-note-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.customer-order-note-form .form-actions {
    justify-content: flex-end;
}

@media (max-width: 1280px) {
    .is-admin .shipment-fields-grid,
    .shipment-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .order-history-notify,
    .order-history-hide,
    .order-history-hide-note {
        grid-column: auto;
    }

    .is-admin .shipment-fields-grid,
    .shipment-fields-grid {
        grid-template-columns: 1fr;
    }

    .shipment-entry-form {
        padding: 12px;
    }

    .shipment-entry-form > .info-callout {
        grid-template-columns: 1fr;
    }

    .shipment-entry-actions,
    .customer-order-note-form .form-actions {
        justify-content: stretch;
    }

    .shipment-entry-actions button,
    .customer-order-note-form .form-actions button {
        width: 100%;
    }
}


/* RuneCart 0.0.43 - unified order status, product imagery and split fulfilment */
.order-item-image-column { width: 116px; }
.order-item-image-cell { width: 116px; min-width: 116px; vertical-align: middle; text-align: center; }
.order-item-image-link { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border: 1px solid var(--admin-line, var(--line)); background: #fff; padding: 4px; box-sizing: border-box; }
.order-item-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.order-item-image-empty { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 72px; border: 1px dashed var(--admin-line, var(--line)); color: #71828d; font-size: .72rem; }
.order-items-table tbody td { vertical-align: middle; }
.order-history-form__fields > label:first-child { grid-column: 1 / -1; }
.shipment-item-picker th:first-child,
.shipment-item-picker td:first-child { width: 42%; }
@media (max-width: 700px) {
    .order-item-image-column, .order-item-image-cell { width: 84px; min-width: 84px; }
    .order-item-image-link { width: 68px; height: 68px; }
    .order-item-image-empty { width: 68px; height: 54px; }
}

/* RuneCart 0.0.44 - compact fulfilment editor, chronological history and cached order thumbnails */
.order-item-image-column,
.order-item-image-cell {
    width: 120px;
    min-width: 120px;
}

.order-item-image-link {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    padding: 3px;
}

.order-item-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.shipment-entry-form {
    gap: 10px;
    padding: 10px 12px 12px;
}

.shipment-package-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 2px 0 0;
    color: #294b61;
    font-size: .78rem;
}

.shipment-package-heading strong {
    flex: 0 0 auto;
    color: #173f58;
    font-size: .84rem;
}

.shipment-package-heading span {
    color: #657b89;
}

.shipment-entry-form .responsive-table-wrap {
    margin: 0;
}

.shipment-item-picker th,
.shipment-item-picker td {
    padding: 6px 8px;
    font-size: .78rem;
}

.shipment-item-picker th:first-child,
.shipment-item-picker td:first-child {
    width: auto;
}

.shipment-item-picker th:not(:first-child),
.shipment-item-picker td:not(:first-child) {
    width: 88px;
    text-align: center;
    white-space: nowrap;
}

.shipment-item-picker input[type="number"] {
    width: 62px;
    min-height: 32px;
    padding: 4px 6px;
}

.is-admin .shipment-fields-grid,
.shipment-fields-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px 10px;
}

.shipment-fields-grid > label,
.shipment-note-field {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: .76rem;
    font-weight: 750;
}

.shipment-entry-form input[type="text"],
.shipment-entry-form input[type="url"],
.shipment-entry-form input[type="datetime-local"],
.shipment-entry-form select {
    min-height: 34px;
    padding: 5px 8px;
    font-size: .82rem;
}

.shipment-entry-form .form-help {
    margin-top: 0;
    font-size: .66rem;
    line-height: 1.25;
}

.shipment-entry-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.shipment-note-field textarea {
    min-height: 54px;
    max-height: 110px;
    padding: 7px 8px;
    font-size: .82rem;
}

.shipment-entry-footer__actions {
    display: grid;
    gap: 8px;
    align-items: end;
    justify-items: end;
}

.shipment-marketplace-sync {
    min-height: 28px;
    margin: 0;
    font-size: .75rem;
}

.shipment-entry-actions {
    padding: 0;
}

.shipment-entry-actions button {
    min-width: 190px;
    min-height: 36px;
    padding: 7px 12px;
}

@media (max-width: 1050px) {
    .is-admin .shipment-fields-grid,
    .shipment-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .order-item-image-column,
    .order-item-image-cell {
        width: 86px;
        min-width: 86px;
    }

    .order-item-image-link {
        width: 72px;
        height: 72px;
    }

    .shipment-package-heading {
        display: grid;
        gap: 2px;
    }

    .shipment-entry-footer {
        grid-template-columns: 1fr;
    }

    .shipment-entry-footer__actions,
    .shipment-entry-actions {
        justify-items: stretch;
        justify-content: stretch;
    }

    .shipment-entry-actions button {
        width: 100%;
        min-width: 0;
    }
}

/* RuneCart 0.0.45 - integrated order-history fulfilment workflow */
.order-shipping-drawer {
    margin-top: 18px;
    border: 1px solid var(--admin-line, var(--line));
    border-radius: 8px;
    background: #f8fbfc;
    overflow: hidden;
}

.order-shipping-drawer > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: #173f58;
    background: #f1f7f9;
}

.order-shipping-drawer > summary::-webkit-details-marker {
    display: none;
}

.order-shipping-drawer > summary::after {
    content: '▾';
    margin-left: auto;
    font-size: .9rem;
    transition: transform .16s ease;
}

.order-shipping-drawer[open] > summary::after {
    transform: rotate(180deg);
}

.order-shipping-drawer__summary-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.order-shipping-drawer__summary-copy strong {
    font-size: .95rem;
}

.order-shipping-drawer__summary-copy small,
.order-shipping-drawer__summary-meta {
    color: #607887;
    font-size: .75rem;
}

.order-shipping-drawer__summary-meta {
    white-space: nowrap;
}

.order-shipping-drawer__body {
    display: grid;
    gap: 12px;
    padding: 12px;
    background: #fff;
}

.shipment-compact-list {
    display: grid;
    gap: 7px;
}

.shipment-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #d5e0e6;
    border-radius: 6px;
    background: #fbfdfe;
}

.shipment-compact-row__main {
    min-width: 0;
}

.shipment-compact-row__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
}

.shipment-compact-row__tracking {
    margin-top: 3px;
    color: #456174;
    font-size: .78rem;
}

.shipment-lines--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.shipment-lines--compact .shipment-line-chip {
    padding: 3px 7px;
    font-size: .7rem;
}

.shipment-compact-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.shipment-compact-row__actions form {
    margin: 0;
}

.shipment-compact-row__actions button,
.shipment-compact-row__actions .button-secondary {
    min-height: 31px;
    padding: 5px 9px;
    font-size: .72rem;
}

.shipping-drawer-form {
    gap: 8px;
    padding: 10px;
    border: 1px solid #d5e0e6;
    border-radius: 6px;
    background: #f9fbfc;
}

.shipping-drawer-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    gap: 8px 10px;
}

.shipping-drawer-fields > label {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
    color: #294b61;
    font-size: .75rem;
    font-weight: 750;
}

.shipping-drawer-fields input,
.shipping-drawer-fields select {
    width: 100%;
    min-height: 34px;
    padding: 5px 8px;
    font-size: .82rem;
    box-sizing: border-box;
}

.shipping-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 2px;
}

.shipping-drawer-actions .shipment-marketplace-sync {
    margin: 0 auto 0 0;
}

.shipping-drawer-actions > button {
    min-height: 35px;
    padding: 6px 12px;
}

.shipping-provider-drawer {
    border-top: 1px solid var(--admin-line, var(--line));
    padding-top: 10px;
}

.shipping-provider-drawer > summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    color: #173f58;
}

.shipping-provider-drawer > summary span {
    color: #607887;
    font-size: .73rem;
}

.shipping-provider-drawer__body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.royal-mail-label-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 6px;
    color: #506979;
    font-size: .76rem;
}

.royal-mail-create-form--compact {
    gap: 9px;
}

.royal-mail-create-form--compact .royal-mail-create-summary {
    margin: 0;
}

@media (max-width: 1050px) {
    .shipping-drawer-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .order-shipping-drawer > summary,
    .shipment-compact-row {
        grid-template-columns: 1fr;
    }

    .order-shipping-drawer > summary {
        display: grid;
        gap: 4px;
    }

    .order-shipping-drawer > summary::after {
        position: absolute;
        right: 28px;
    }

    .order-shipping-drawer__summary-meta {
        white-space: normal;
    }

    .shipment-compact-row__actions,
    .shipping-drawer-actions {
        justify-content: stretch;
    }

    .shipment-compact-row__actions form,
    .shipment-compact-row__actions button,
    .shipping-drawer-actions > button {
        width: 100%;
    }

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

    .shipping-drawer-actions .shipment-marketplace-sync {
        width: 100%;
        margin: 0;
    }
}

/* RuneCart 0.0.47 - Click & Drop order handoff and conditional carrier field */
#shipment-carrier-other-wrap[hidden] {
    display: none !important;
}

.click-drop-intro-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.click-drop-intro-row > p {
    margin: 0;
    max-width: 900px;
}

.click-drop-intro-row form {
    flex: 0 0 auto;
    margin: 0;
}

.royal-mail-order-list {
    display: grid;
    gap: 7px;
}

.click-drop-order-row {
    display: grid;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #d5e0e6;
    border-radius: 6px;
    background: #fbfdfe;
}

.click-drop-order-row--current {
    border-color: #a8c8d8;
    background: #f4fafc;
}

.click-drop-order-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.click-drop-order-row__head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 9px;
    min-width: 0;
}

.click-drop-order-row__head strong {
    color: #173f58;
    font-size: .8rem;
}

.click-drop-order-row__head span,
.click-drop-tracking {
    color: #607887;
    font-size: .72rem;
}

.click-drop-partial-form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d5e0e6;
    border-radius: 6px;
    background: #f9fbfc;
}

.click-drop-partial-heading > div {
    display: grid;
    gap: 2px;
}

.click-drop-partial-heading strong {
    color: #173f58;
    font-size: .84rem;
}

.click-drop-partial-heading span {
    color: #607887;
    font-size: .72rem;
}

.click-drop-item-picker td:first-child small {
    display: block;
    margin-top: 2px;
    color: #718491;
    font-size: .68rem;
}

.click-drop-item-picker input[type="number"] {
    width: 62px;
    min-height: 32px;
    padding: 4px 6px;
    text-align: center;
}

@media (max-width: 760px) {
    .click-drop-intro-row,
    .click-drop-order-row__head {
        display: grid;
    }

    .click-drop-intro-row form,
    .click-drop-intro-row button {
        width: 100%;
    }
}

/* RuneCart 0.0.50 - storefront commerce pass */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body:not(.is-admin) .site-header__inner,
body:not(.is-admin) .page-shell,
body:not(.is-admin) .site-footer__inner {
    max-width: 1320px;
}

body:not(.is-admin) .site-header__inner {
    display: block;
    padding: 0 20px;
}

.storefront-header-main {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(280px, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 16px 0;
}

.storefront-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--blue-dark);
    text-decoration: none;
}

.storefront-brand:hover,
.storefront-brand:focus {
    text-decoration: none;
}

.storefront-brand__mark {
    display: grid;
    place-items: center;
    width: 54px;
    min-width: 54px;
    height: 46px;
    border: 2px solid var(--blue);
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.storefront-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.12rem;
}

.storefront-global-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    min-width: 0;
}

.storefront-quick-search-results {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 50, 68, .16);
}

.storefront-quick-search-results[hidden] {
    display: none !important;
}

.storefront-quick-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 8px 11px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.storefront-quick-search-result:last-child {
    border-bottom: 0;
}

.storefront-quick-search-result:hover,
.storefront-quick-search-result:focus {
    background: var(--panel-soft);
    text-decoration: none;
}

.storefront-quick-search-result__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.storefront-quick-search-result__price {
    white-space: nowrap;
    color: var(--blue-dark);
    font-size: .94rem;
}

.storefront-quick-search-empty {
    padding: 10px 12px;
    color: var(--muted);
    font-size: .9rem;
}

.storefront-global-search input {
    min-height: 46px;
    border-right: 0;
    padding: 10px 14px;
    font-size: 1rem;
}

.storefront-global-search button {
    min-width: 92px;
    min-height: 46px;
}

.storefront-header-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.storefront-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 122px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.storefront-action:hover,
.storefront-action:focus {
    border-color: var(--line-strong);
    background: var(--panel-soft);
    text-decoration: none;
}

.storefront-action > span:first-child {
    color: var(--blue);
    font-size: 1.15rem;
}

.storefront-action > span:last-child {
    display: grid;
    gap: 0;
}

.storefront-action small {
    color: var(--muted);
    font-size: .69rem;
    font-weight: 600;
}

.storefront-action strong {
    color: var(--blue-dark);
    font-size: .82rem;
    white-space: nowrap;
}

.storefront-mini-basket { position: relative; margin: 0; }
.storefront-mini-basket > summary { list-style: none; cursor: pointer; height: 100%; }
.storefront-mini-basket > summary::-webkit-details-marker { display: none; }
.storefront-mini-basket > summary > span:nth-child(2) { display: grid; gap: 0; }
.storefront-mini-basket__chevron { margin-left: 3px; color: var(--muted) !important; font-size: .72rem !important; transition: transform .16s ease; }
.storefront-mini-basket[open] .storefront-mini-basket__chevron { transform: rotate(180deg); }
.storefront-mini-basket__panel { position: absolute; z-index: 1200; top: calc(100% + 8px); right: 0; width: min(390px, calc(100vw - 28px)); padding: 12px; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 18px 42px rgba(15, 40, 58, .18); color: var(--text); }
.storefront-mini-basket__header, .storefront-mini-basket__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storefront-mini-basket__header { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.storefront-mini-basket__header span, .storefront-mini-basket__empty, .storefront-mini-basket__more { color: var(--muted); font-size: .78rem; }
.storefront-mini-basket__empty { padding: 18px 2px; text-align: center; }
.storefront-mini-basket__items { display: grid; gap: 0; }
.storefront-mini-basket__item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.storefront-mini-basket__item:hover, .storefront-mini-basket__item:focus { text-decoration: none; }
.storefront-mini-basket__item img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.storefront-mini-basket__item-copy { display: grid; gap: 3px; min-width: 0; }
.storefront-mini-basket__item-copy strong { color: var(--blue-dark); font-size: .8rem; white-space: normal; }
.storefront-mini-basket__item-copy small { color: var(--muted); font-size: .7rem; }
.storefront-mini-basket__item-price { color: var(--text); font-size: .78rem; font-weight: 800; }
.storefront-mini-basket__more { padding: 8px 0 0; text-align: center; }
.storefront-mini-basket__total { padding: 10px 0; font-size: .88rem; }
.storefront-mini-basket__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.storefront-mini-basket__actions > * { justify-content: center; text-align: center; }

.storefront-menu-toggle {
    display: none;
    min-width: 90px;
}

.storefront-category-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 43px;
    margin: 0 -20px;
    padding: 0 20px;
    border-top: 1px solid var(--line);
    background: var(--blue-dark);
    position: relative;
    z-index: 40;
}

.storefront-category-nav > a,
.store-category-menu__root {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 8px 14px;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.storefront-category-nav > a:hover,
.storefront-category-nav > a:focus,
.store-category-menu:hover > .store-category-menu__root,
.store-category-menu__root:focus {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

.store-category-menu {
    position: relative;
}

.store-category-menu__level {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-category-menu > .store-category-menu__level--1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 7px;
    border: 1px solid var(--line-strong);
    background: #fff;
    box-shadow: 0 12px 26px rgba(31, 72, 105, .18);
}

.store-category-menu:hover > .store-category-menu__level--1,
.store-category-menu:focus-within > .store-category-menu__level--1 {
    display: block;
}

.store-category-menu__item > a {
    display: block;
    padding: 7px 9px;
    color: var(--text);
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
}

.store-category-menu__item > a:hover,
.store-category-menu__item > a:focus {
    background: var(--panel-soft);
    color: var(--blue-dark);
}

.store-category-menu__level--2,
.store-category-menu__level--3,
.store-category-menu__level--4 {
    margin: 0 0 3px 10px;
    padding-left: 8px;
    border-left: 2px solid var(--blue-light);
}

.store-category-menu__level--2 .store-category-menu__item > a,
.store-category-menu__level--3 .store-category-menu__item > a,
.store-category-menu__level--4 .store-category-menu__item > a {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: .74rem;
    font-weight: 600;
}

.storefront-catalogue {
    display: grid;
    gap: 18px;
}

.storefront-catalogue--home {
    gap: 28px;
}

.storefront-featured-row {
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    background: #fff;
}

.storefront-latest-products {
    display: grid;
    gap: 18px;
}

.storefront-section-heading,
.storefront-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.storefront-section-heading h1,
.storefront-page-heading h1,
.storefront-section-heading h2 {
    margin-bottom: 0;
}

.storefront-page-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.storefront-result-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 16px;
}

.store-product-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-product-card {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.store-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 9px 22px rgba(31, 72, 105, .10);
}

.store-product-card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.store-product-card__image img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
}

.store-product-card__body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
}

.store-product-card__sku {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.store-product-card h2 {
    margin: 0;
    min-height: calc(1.32em * 3);
    font-size: .98rem;
    line-height: 1.32;
    overflow: hidden;
}

.store-product-card h2 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.store-product-card__buy-row {
    margin-top: auto;
    min-height: 28px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.store-product-card__price {
    color: var(--blue-dark);
    font-size: 1.16rem;
}

.store-product-card__availability {
    color: #2d7d50;
    font-size: .7rem;
    font-weight: 700;
}

.store-product-card__form {
    margin: 0;
}

.store-product-card__form button {
    width: 100%;
    min-height: 39px;
}

.storefront-filters {
    border: 1px solid var(--line);
    background: #fff;
}

.storefront-filters > summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 13px;
    cursor: pointer;
    list-style: none;
    background: var(--panel-soft);
    color: var(--blue-dark);
    font-weight: 800;
}

.storefront-filters > summary::-webkit-details-marker {
    display: none;
}

.storefront-filters > summary::after {
    content: '▾';
    margin-left: auto;
}

.storefront-filters[open] > summary::after {
    transform: rotate(180deg);
}

.storefront-filters > summary small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
}

.storefront-filter-form {
    display: grid;
    grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
}

.storefront-filter-form label {
    gap: 4px;
    font-size: .75rem;
}

.storefront-filter-form input,
.storefront-filter-form select {
    min-height: 38px;
    padding: 7px 9px;
}

.storefront-filter-form__actions {
    display: flex;
    gap: 7px;
    align-items: stretch;
}

.storefront-filter-form__actions > * {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.storefront-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
    color: var(--muted);
    font-size: .78rem;
}

.storefront-breadcrumbs strong {
    color: var(--text);
}

.storefront-category-description {
    max-width: 850px;
    margin: 8px 0 0;
    color: var(--muted);
}

.storefront-subcategories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.storefront-subcategories a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.storefront-subcategories small {
    color: var(--muted);
}

.storefront-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 48px 22px;
    border: 1px dashed var(--line-strong);
    background: #fff;
    text-align: center;
}

.storefront-empty-state__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 1.4rem;
}

/* Product detail */
.store-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 28px;
    margin-top: 18px;
    margin-bottom: 24px;
}

.store-product-gallery,
.store-product-summary {
    min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
    padding: 18px;
}

.store-product-gallery__main-link {
    display: grid;
    place-items: center;
    min-height: 460px;
}

.store-product-gallery__main {
    display: block;
    width: 100%;
    max-width: 620px;
    max-height: 620px;
    object-fit: contain;
}

.store-product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.store-product-gallery__thumb {
    width: 76px;
    height: 76px;
    padding: 4px;
    border: 1px solid var(--line);
    background: #fff;
}

.store-product-gallery__thumb.is-active,
.store-product-gallery__thumb:hover {
    border-color: var(--blue);
    background: var(--panel-soft);
}

.store-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-product-gallery__hint {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.store-product-summary {
    align-self: start;
    display: grid;
    gap: 14px;
}

.store-product-summary h1 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.store-product-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: .78rem;
}

.store-product-summary__price {
    color: var(--blue-dark);
    font-size: 1.75rem;
}

.store-product-summary__availability {
    width: max-content;
    padding: 5px 9px;
    background: #eef8f2;
    color: #246744;
    font-size: .75rem;
    font-weight: 800;
}

.store-product-summary__intro {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.store-product-summary__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.store-product-summary__categories a {
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    font-size: .72rem;
    font-weight: 700;
}

.store-product-buy-form {
    display: grid;
    grid-template-columns: 92px minmax(180px, 1fr);
    gap: 10px;
    align-items: end;
    padding-top: 6px;
}

.store-product-buy-form label {
    font-size: .75rem;
}

.store-product-buy-form button {
    min-height: 43px;
}

.store-product-information {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    gap: 18px;
}

.store-product-information > .panel {
    margin: 0;
    padding: 20px;
}

.store-product-information .storefront-section-heading {
    align-items: center;
    margin-bottom: 14px;
}

.spec-display-table {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.spec-display-table th,
.spec-display-table td {
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.spec-display-table tbody tr:last-child > th,
.spec-display-table tbody tr:last-child > td {
    border-bottom: 0;
}

.spec-display-table th {
    width: 42%;
    background: #f5f9fc;
    color: var(--blue-dark);
    font-weight: 700;
}

.spec-display-table td {
    background: #fff;
    color: var(--text);
}

.spec-display-table .spec-display-group th {
    width: auto;
    padding: 8px 12px;
    background: var(--blue-dark);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.store-product-summary__meta strong {
    color: var(--blue-dark);
}

/* Basket */
.storefront-cart-layout,
.storefront-checkout-layout {
    align-items: start;
}

.storefront-cart-lines {
    padding: 18px;
}

.storefront-cart-table th,
.storefront-cart-table td {
    vertical-align: middle;
}

.storefront-cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.storefront-cart-product__image {
    display: grid;
    place-items: center;
    width: 100px;
    min-width: 100px;
    height: 100px;
    padding: 4px;
    border: 1px solid var(--line);
    background: #fff;
}

.storefront-cart-product__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.storefront-cart-product > div {
    display: grid;
    gap: 4px;
}

.storefront-cart-summary,
.storefront-checkout-summary {
    border-left-width: 1px;
    border-top: 4px solid var(--blue);
}

.storefront-checkout-button,
.checkout-place-order {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 45px;
    align-items: center;
}

.button-compact {
    padding: 6px 9px;
    font-size: .75rem;
}

/* Checkout */
.storefront-checkout-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.checkout-section {
    border: 1px solid var(--line);
    background: #fff;
}

.checkout-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.checkout-section--billing .checkout-section__header {
    background: #f1f5fc;
}

.checkout-section--shipping .checkout-section__header {
    background: #eef8f5;
}

.checkout-section--delivery .checkout-section__header {
    background: #fff7e9;
}

.checkout-section--payment .checkout-section__header {
    background: #f5f0fb;
}

.checkout-section__header .eyebrow {
    margin-bottom: 2px;
    font-size: .68rem;
}

.checkout-section__header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.checkout-section__number {
    display: grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-dark);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

.checkout-section__body {
    padding: 15px;
}

.checkout-section__body label,
.checkout-discount-row label {
    font-size: .78rem;
}

.checkout-saved-address {
    max-width: 640px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #f9fbfd;
}

.checkout-address-grid {
    margin-top: 2px;
}

.checkout-copy-row {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f7fbfd;
    border: 1px solid var(--line);
}

.checkout-copy-row input {
    width: auto;
}

.checkout-info-callout {
    margin: 0;
    padding: 11px 13px;
    border-left: 4px solid var(--blue);
    background: var(--panel-soft);
}

.shipping-method-list {
    display: grid;
    gap: 8px;
}

.shipping-method-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.shipping-method-option:hover,
.shipping-method-option--selected {
    border-color: var(--blue);
    background: #f7fbff;
}

.shipping-method-option input {
    width: auto;
}

.shipping-method-option > span {
    display: grid;
    gap: 2px;
}

.shipping-method-option small {
    color: var(--muted);
    font-weight: 500;
}

.payment-method-option { grid-template-columns: auto minmax(0, 1fr) minmax(120px, auto); min-height: 72px; }
.payment-method-option__copy { display: grid; gap: 2px; }
.payment-method-option__brand { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 118px; }
.payment-provider-mark--paypal { width: 32px; height: 32px; object-fit: contain; }
.payment-provider-wordmark--paypal { color: #003087; font-size: 1.05rem; font-weight: 900; letter-spacing: -.03em; }
.payment-provider-badge--stripe { display: block; width: 116px; max-height: 34px; object-fit: contain; }
.payment-provider-square-mark { display: inline-flex; align-items: center; gap: 6px; color: #111; font-size: 1rem; font-weight: 800; }
.payment-provider-square-mark > span { position: relative; width: 24px; height: 24px; border: 2px solid #111; border-radius: 6px; }
.payment-provider-square-mark > span::after { content: ''; position: absolute; inset: 6px; border: 2px solid #111; border-radius: 2px; }
.payment-provider-manual-mark { padding: 6px 9px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--blue-dark); font-size: .75rem; font-weight: 800; }
.payment-method-option--paypal { border-left: 4px solid #0070ba; }
.payment-method-option--stripe { border-left: 4px solid #635bff; }
.payment-method-option--square { border-left: 4px solid #111; }

.checkout-discount-row {
    max-width: 520px;
    margin-bottom: 14px;
}

.checkout-submit-section {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.storefront-checkout-summary {
    position: sticky;
    top: 14px;
}

.checkout-summary-products {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-product img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: #fff;
}

.checkout-summary-product > span {
    display: grid;
    gap: 2px;
    font-size: .77rem;
}

.checkout-summary-product small {
    color: var(--muted);
}

/* Customer account */
.account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.account-dashboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.account-dashboard-card:hover,
.account-dashboard-card:focus {
    border-color: var(--line-strong);
    background: var(--panel-soft);
    text-decoration: none;
}

.account-dashboard-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-weight: 800;
}

.account-dashboard-card > span:last-child {
    display: grid;
    min-width: 0;
}

.account-dashboard-card small,
.account-dashboard-card em {
    color: var(--muted);
    font-size: .7rem;
    font-style: normal;
}

.account-dashboard-card strong {
    overflow: hidden;
    color: var(--blue-dark);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: #f2f5f7;
    color: var(--text);
    font-size: .72rem;
    font-weight: 800;
}

.storefront-status--pending { background: #fff8df; border-color: #d8b645; color: #725f17; }
.storefront-status--processing { background: #e9f3fc; border-color: #7fa8c9; color: #164e7c; }
.storefront-status--partial { background: #fff2df; border-color: #d6a560; color: #80531a; }
.storefront-status--shipped { background: #eefaf3; border-color: #78b793; color: #246744; }
.storefront-status--refund { background: #f5f0fb; border-color: #aa93c5; color: #62477e; }
.storefront-status--dispute { background: #fff0f0; border-color: #c98787; color: #8a3939; }

.customer-order-image-column,
.customer-order-image-cell {
    width: 110px;
}

.customer-order-product-image {
    display: block;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.customer-order-image-placeholder {
    display: grid;
    place-items: center;
    width: 90px;
    height: 72px;
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: .68rem;
}

/* CMS/menu and featured-product settings */
.featured-products-setting__slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 7px;
}

.featured-products-setting__slots label {
    font-size: .72rem;
}

@media (max-width: 1120px) {
    .storefront-header-main {
        grid-template-columns: minmax(180px, 220px) 1fr;
    }

    .storefront-header-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .store-product-grid,
    .store-product-grid--featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-filter-form__search {
        grid-column: span 2;
    }

    .store-product-detail {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
    }
}

@media (max-width: 820px) {
    body:not(.is-admin) .site-header__inner {
        padding: 0 14px;
    }

    .storefront-header-main {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 11px 0;
    }

    .storefront-global-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .storefront-header-actions {
        grid-column: auto;
        gap: 5px;
    }

    .storefront-action {
        min-width: 0;
        padding: 6px 8px;
    }

    .storefront-action > span:last-child small {
        display: none;
    }

    .storefront-action > span:last-child strong {
        font-size: .72rem;
    }

    .storefront-mini-basket__panel { right: -46px; }
    .storefront-mini-basket > summary > span:nth-child(2) small { display: none; }
    .storefront-mini-basket > summary > span:nth-child(2) strong { font-size: .72rem; }
    .payment-method-option { grid-template-columns: auto minmax(0, 1fr); }
    .payment-method-option__brand { grid-column: 2; justify-content: flex-start; min-width: 0; margin-top: 5px; }

    .storefront-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 78px;
    }

    .storefront-category-nav {
        display: none;
        margin: 0 -14px;
        padding: 6px 14px 12px;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-category-nav.is-open {
        display: flex;
    }

    .storefront-category-nav > a,
    .store-category-menu__root {
        min-height: 38px;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .store-category-menu > .store-category-menu__level--1 {
        display: block;
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding: 3px 4px 7px 16px;
        border: 0;
        box-shadow: none;
        background: #f8fbfd;
    }

    .store-product-grid,
    .store-product-grid--featured,
    .storefront-subcategories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-product-detail,
    .store-product-information {
        grid-template-columns: 1fr;
    }

    .store-product-gallery__main-link {
        min-height: 320px;
    }

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

    .storefront-filter-form__search {
        grid-column: 1 / -1;
    }

    .storefront-filter-form__actions {
        grid-column: 1 / -1;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .storefront-checkout-summary {
        position: static;
    }
}

@media (max-width: 560px) {
    body:not(.is-admin) .page-shell {
        padding: 16px 12px;
    }

    .storefront-brand strong {
        display: none;
    }

    .storefront-brand__mark {
        width: 48px;
        min-width: 48px;
        height: 42px;
    }

    .storefront-header-actions .storefront-action {
        display: none;
    }

    .storefront-global-search button {
        min-width: 72px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .store-product-grid,
    .store-product-grid--featured,
    .storefront-subcategories {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .store-product-card__body {
        padding: 9px;
    }

    .store-product-card h2 {
        font-size: .86rem;
    }

    .store-product-card__buy-row {
        display: grid;
        gap: 2px;
    }

    .store-product-card__price {
        font-size: 1rem;
    }

    .store-product-card__form button {
        padding: 8px;
        font-size: .76rem;
    }

    .storefront-featured-row {
        margin-left: -12px;
        margin-right: -12px;
        padding: 12px;
        border-left: 0;
        border-right: 0;
    }

    .storefront-section-heading {
        align-items: flex-start;
    }

    .storefront-result-count {
        font-size: .68rem;
    }

    .storefront-filters > summary small {
        display: none;
    }

    .storefront-filter-form {
        grid-template-columns: 1fr;
    }

    .storefront-filter-form__search,
    .storefront-filter-form__actions {
        grid-column: auto;
    }

    .storefront-filter-form__actions > * {
        flex: 1;
    }

    .store-product-gallery,
    .store-product-summary {
        padding: 12px;
    }

    .store-product-gallery__main-link {
        min-height: 260px;
    }

    .store-product-buy-form {
        grid-template-columns: 78px 1fr;
    }

    .storefront-cart-product__image {
        width: 76px;
        min-width: 76px;
        height: 76px;
    }

    .checkout-section__body {
        padding: 11px;
    }

    .checkout-submit-section {
        grid-template-columns: 1fr;
    }

    .featured-products-setting__slots {
        grid-template-columns: 1fr;
    }
}

/* RuneCart product administration refresh */
.product-create-form {
    display: grid;
    gap: 16px;
}

.product-form-panel {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-left: 6px solid var(--blue);
    padding: 18px;
}

.product-form-panel--identity { border-left-color: #2d6ea3; background: #f8fbfe; }
.product-form-panel--commerce { border-left-color: #3a8454; background: #f8fcf9; }
.product-form-panel--shipping { border-left-color: #3b7f82; background: #f7fbfb; }
.product-form-panel--tax { border-left-color: #b87924; background: #fffaf3; }
.product-form-panel--content { border-left-color: #7456a7; background: #fbf9fe; }
.product-form-panel--specs { border-left-color: #516f9f; background: #f8fafe; }
.product-form-panel--status { border-left-color: #657684; background: #fafbfc; }

.product-form-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.product-form-panel__heading h2,
.product-form-panel__heading .eyebrow {
    margin-bottom: 4px;
}

.product-form-panel__hint {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.product-form-checks {
    display: grid;
    gap: 8px;
    align-content: start;
    padding-top: 24px;
}

.product-form-checks--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 0;
}

.product-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px;
    background: rgba(244, 248, 252, .96);
    border-top: 1px solid var(--line);
}

.rich-description-field > label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.description-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--panel-soft);
}

.description-toolbar .button-mini {
    min-width: 34px;
    margin: 0;
}

.rich-description-field textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.spec-builder--compact {
    table-layout: fixed;
}

.spec-builder--compact th,
.spec-builder--compact td {
    padding: 5px 6px;
    vertical-align: middle;
}

.spec-builder--compact th:nth-child(1),
.spec-builder--compact td:nth-child(1) { width: 19%; }
.spec-builder--compact th:nth-child(2),
.spec-builder--compact td:nth-child(2) { width: 27%; }
.spec-builder--compact th:nth-child(3),
.spec-builder--compact td:nth-child(3) { width: 34%; }
.spec-builder--compact th:nth-child(4),
.spec-builder--compact td:nth-child(4) { width: 12%; }
.spec-builder--compact th:nth-child(5),
.spec-builder--compact td:nth-child(5) { width: 96px; }

.spec-builder--compact input:not([type="hidden"]) {
    min-height: 34px;
    padding: 5px 7px;
    width: 100%;
}

.spec-compact-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.spec-compact-actions .button-mini,
.spec-builder--compact .button-mini {
    min-width: 28px;
    min-height: 30px;
    padding: 3px 7px;
}

.product-description p {
    margin: 0 0 12px;
}

.product-description ul,
.product-description ol {
    margin: 0 0 14px 22px;
    padding: 0;
}

.product-description h2,
.product-description h3 {
    margin: 20px 0 8px;
}

@media (max-width: 760px) {
    .product-form-panel__heading {
        display: block;
    }
    .product-form-panel__hint {
        display: block;
        margin-top: 4px;
        text-align: left;
    }
    .product-form-checks {
        padding-top: 0;
    }
    .spec-builder--compact,
    .spec-builder--compact thead,
    .spec-builder--compact tbody,
    .spec-builder--compact tr,
    .spec-builder--compact th,
    .spec-builder--compact td {
        display: block;
        width: 100% !important;
    }
    .spec-builder--compact thead { display: none; }
    .spec-builder--compact tr {
        border-bottom: 1px solid var(--line);
        padding: 8px 0;
    }
    .spec-builder--compact td {
        border: 0;
        padding: 4px 0;
    }
    .product-create-actions {
        position: static;
    }
}

/* RuneCart 0.0.55 - compact Add Product workflow and direct product image uploads */
.product-create-form--compact {
    gap: 11px;
}

.product-create-form--compact .product-form-panel {
    padding: 13px 15px;
}

.product-create-form--compact .product-form-panel__heading {
    margin-bottom: 9px;
    align-items: center;
}

.product-create-form--compact .product-form-panel__heading h2 {
    font-size: 18px;
    line-height: 1.15;
}

.product-create-form--compact .product-form-panel__heading .eyebrow {
    font-size: 11px;
}

.product-create-form--compact label {
    gap: 4px;
    align-content: start;
}

.product-create-form--compact input:not([type="checkbox"]):not([type="radio"]),
.product-create-form--compact select,
.product-create-form--compact textarea {
    padding: 6px 8px;
    min-height: 35px;
}

.product-create-form--compact select:not([multiple]) {
    height: 35px;
    min-height: 35px;
}

.product-create-form--compact .form-help {
    font-size: 12px;
    line-height: 1.35;
}

.product-form-panel--images {
    border-left-color: #297f9a;
    background: #f5fbfd;
}

.product-core-grid,
.product-compact-grid,
.product-content-grid {
    display: grid;
    gap: 9px 12px;
    align-items: start;
}

.product-core-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(220px, .8fr);
}

.product-core-grid > label:last-child {
    max-width: 360px;
    width: 100%;
    justify-self: start;
}

.product-compact-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-compact-grid__span-two {
    grid-column: span 2;
}

.product-compact-check {
    align-self: end;
    display: flex !important;
    min-height: 35px;
    align-items: center;
    gap: 7px !important;
    padding: 0 2px;
}

.product-compact-check input {
    width: auto !important;
    min-height: 0 !important;
}

.product-content-grid {
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.7fr);
}

.product-content-grid select[multiple] {
    min-height: 212px;
    height: 212px;
    padding: 4px 6px;
}

.product-create-form--compact .rich-description-field textarea {
    min-height: 170px;
    height: 170px;
}

.product-create-form--compact .description-toolbar {
    padding: 5px;
}

.product-create-form--compact .description-toolbar .button-mini {
    min-height: 28px;
    padding: 3px 7px;
}

.spec-builder--ultra-compact th,
.spec-builder--ultra-compact td {
    padding: 3px 4px;
}

.spec-builder--ultra-compact input:not([type="hidden"]) {
    min-height: 30px;
    height: 30px;
    padding: 3px 6px;
}

.spec-builder--ultra-compact .button-mini {
    min-height: 28px;
    height: 28px;
}

.product-image-dropzone {
    min-height: 88px;
    border: 2px dashed #8fb9c9;
    background: #fff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.product-image-dropzone:hover,
.product-image-dropzone:focus,
.product-image-dropzone.is-dragging {
    border-color: #267da7;
    background: #eef8fb;
    outline: none;
}

.product-image-dropzone.is-uploading {
    opacity: .68;
    cursor: wait;
}

.product-image-dropzone.is-full {
    border-style: solid;
    cursor: default;
    background: #f4f7f8;
}

.product-image-dropzone__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #9bbbc8;
    background: #edf6f9;
    color: #236c88;
    font-size: 28px;
    line-height: 1;
}

.product-image-dropzone strong,
.product-image-dropzone span {
    display: block;
}

.product-image-dropzone span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.product-image-upload-message {
    min-height: 18px;
    margin: 5px 0 0;
    color: #27633d;
    font-size: 12px;
    font-weight: 700;
}

.product-image-upload-message.is-error {
    color: #a32e2e;
}

.product-create-image-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.product-create-image-card {
    min-width: 0;
    border: 1px solid #c8d7df;
    background: #fff;
}

.product-create-image-card__preview {
    height: 126px;
    display: grid;
    place-items: center;
    padding: 5px;
    border-bottom: 1px solid #d8e2e8;
    background: #f7fafb;
}

.product-create-image-card__preview img {
    display: block;
    max-width: 100%;
    max-height: 116px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-create-image-card__body {
    display: grid;
    gap: 5px;
    padding: 7px;
}

.product-create-image-card__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--muted);
}

.product-image-main-choice {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
    font-size: 12px;
}

.product-image-main-choice input {
    width: auto !important;
}

.product-create-image-card .button-mini {
    justify-self: start;
    min-height: 28px;
    padding: 3px 7px;
}

.product-image-empty {
    margin: 5px 0 0;
}

.product-image-empty.is-hidden {
    display: none;
}

@media (max-width: 1250px) {
    .product-compact-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-create-image-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .product-core-grid,
    .product-content-grid {
        grid-template-columns: 1fr;
    }
    .product-core-grid > label:last-child {
        max-width: none;
    }
    .product-create-image-grid {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
    }
}

@media (max-width: 650px) {
    .product-compact-grid--four {
        grid-template-columns: 1fr;
    }
    .product-compact-grid__span-two {
        grid-column: auto;
    }
    .product-image-dropzone {
        grid-template-columns: auto 1fr;
    }
    .product-image-dropzone > button {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .product-create-image-grid {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}


/* RuneCart 0.0.58 - simple product actions and product question dialog */
.store-product-summary__utilities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.store-product-summary__utilities .button-secondary {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .76rem;
}

.store-product-copy-feedback {
    min-width: 48px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.storefront-product-question {
    width: min(620px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    padding: 0;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    box-shadow: 0 22px 70px rgba(10, 39, 58, .26);
}

.storefront-product-question::backdrop {
    background: rgba(12, 35, 49, .48);
}

.storefront-product-question__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.storefront-product-question__header h2,
.storefront-product-question__header p {
    margin: 0;
}

.storefront-product-question__close {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
}

.storefront-product-question__form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.storefront-product-question__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.storefront-product-question__form label {
    display: grid;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
}

.storefront-product-question__form textarea {
    resize: vertical;
}

.storefront-product-question__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.storefront-product-question__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .storefront-product-question__fields {
        grid-template-columns: 1fr;
    }
    .store-product-summary__utilities {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .store-product-copy-feedback {
        grid-column: 1 / -1;
    }
}

/* RuneCart storefront logo + settings branding uploader */
.storefront-brand--logo {
    min-height: 48px;
}

.storefront-brand__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.settings-branding-panel {
    scroll-margin-top: 16px;
}

.settings-branding-panel.settings-group { margin-bottom: 12px; }
.settings-branding-panel .store-logo-settings-grid { margin-top: 0; gap: 12px; }
.settings-branding-panel .store-logo-preview-frame { min-height: 84px; padding: 10px; }
.settings-branding-panel .store-logo-preview-frame > img { max-height: 68px; }
.settings-branding-panel .store-logo-dropzone { min-height: 68px; padding: 8px 10px; }

.store-logo-settings-grid {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 14px;
}

.store-logo-current,
.store-logo-actions {
    min-width: 0;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.store-logo-preview-frame {
    min-height: 112px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.store-logo-preview-frame > img {
    display: block;
    max-width: 100%;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.store-logo-fallback-preview {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.store-logo-fallback-preview strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-logo-actions {
    display: grid;
    gap: 10px;
}

.store-logo-dropzone {
    min-height: 84px;
    border: 2px dashed #8fb9c9;
    background: #fff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.store-logo-dropzone:hover,
.store-logo-dropzone:focus,
.store-logo-dropzone.is-dragging {
    border-color: #267da7;
    background: #eef8fb;
    outline: none;
}

.store-logo-dropzone__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #9bbbc8;
    background: #edf6f9;
    color: #236c88;
    font-size: 25px;
    line-height: 1;
}

.store-logo-dropzone strong,
.store-logo-dropzone span {
    display: block;
}

.store-logo-dropzone span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.store-logo-file-name {
    min-height: 18px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.store-logo-submit-row {
    margin-top: 8px;
}

.store-logo-remove-form {
    margin: 0;
}

@media (max-width: 760px) {
    .store-logo-settings-grid {
        grid-template-columns: 1fr;
    }

    .store-logo-dropzone {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .store-logo-dropzone .button-mini {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .storefront-brand__logo {
        max-height: 48px;
        max-width: 160px;
    }
}

/* OpenCart migration */
.migration-intro-panel { border-top: 3px solid #1f799c; }
.migration-note-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:14px; }
.migration-note-grid > div { background:#eef6fa; border:1px solid #cbdde7; border-left:4px solid #1f799c; padding:12px 14px; min-height:92px; }
.migration-note-grid strong { display:block; color:#123c57; margin-bottom:5px; }
.migration-note-grid span { display:block; line-height:1.45; }
.migration-source-form { display:grid; gap:15px; }
.migration-source-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.migration-source-grid label, .migration-image-root { display:grid; gap:6px; font-weight:700; }
.migration-source-grid input, .migration-image-root input { min-height:38px; }
.migration-image-root .form-help { font-weight:400; }
.migration-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.migration-check-card { border:1px solid #cbd8e0; background:#fff; padding:12px; }
.migration-check-card--ok { border-left:4px solid #35a65d; }
.migration-check-card--blocked { border-left:4px solid #c95555; }
.migration-check-card__head { display:flex; justify-content:space-between; align-items:center; gap:10px; color:#163c54; }
.migration-check-card__head span { font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; }
.migration-check-card p { margin:7px 0 0; }
.migration-check-message { font-size:.88rem; line-height:1.35; padding:7px 8px; }
.migration-check-message--error { background:#fff0f0; color:#7f2929; }
.migration-check-message--warning { background:#fff8e8; color:#74551d; }
.migration-run-controls { display:flex; align-items:end; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.migration-run-controls label { display:grid; gap:4px; font-size:.82rem; font-weight:700; }
.migration-run-controls select { min-width:90px; }
.migration-steps { display:grid; gap:8px; margin-top:14px; }
.migration-step { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; border:1px solid #cad8e1; background:#fff; padding:12px 14px; }
.migration-step--complete { border-left:4px solid #35a65d; background:#f7fcf8; }
.migration-step.is-running { border-left:4px solid #1f799c; background:#f4fafd; }
.migration-step__title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.migration-step__title strong { color:#143d56; }
.migration-step__title span { font-size:.8rem; color:#587181; text-transform:uppercase; letter-spacing:.04em; }
.migration-progress-track { height:7px; background:#e3edf2; overflow:hidden; margin:9px 0 7px; }
.migration-progress-track > span { display:block; height:100%; background:#2388b4; transition:width .2s ease; }
.migration-step--complete .migration-progress-track > span { background:#35a65d; }
.migration-step__stats { display:flex; flex-wrap:wrap; gap:12px; font-size:.84rem; color:#546c7b; }
.migration-step__stats .has-errors { color:#a13030; }
.migration-step__actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.migration-step__actions form { margin:0; }
.migration-live-message { margin-top:12px; padding:10px 12px; border:1px solid #9dc9dc; background:#edf8fc; color:#174b65; }
.migration-live-message--error { border-color:#d8a0a0; background:#fff1f1; color:#7c2929; }
.migration-table-wrap { margin-top:12px; }
.migration-log-list { display:grid; gap:7px; margin-top:12px; }
.migration-log { display:grid; grid-template-columns:145px 180px minmax(0,1fr); gap:10px; border:1px solid #d4dfe5; padding:8px 10px; background:#fff; }
.migration-log p { margin:0; }
.migration-log--error { border-left:4px solid #c95555; }
.migration-log--warning { border-left:4px solid #d49a2f; }
.status-pill { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; font-size:.78rem; font-weight:700; }
.status-pill--success { background:#e9f7ed; color:#246d3e; }
.status-pill--warning { background:#fff5df; color:#77571a; }
@media (max-width:1100px) {
  .migration-note-grid, .migration-source-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .migration-check-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .migration-note-grid, .migration-source-grid, .migration-check-grid { grid-template-columns:1fr; }
  .migration-step { grid-template-columns:1fr; }
  .migration-step__actions { justify-content:flex-start; }
  .migration-run-controls { justify-content:flex-start; width:100%; }
  .migration-log { grid-template-columns:1fr; }
}

/* RuneCart 0.0.72 - category administration hierarchy + true descendant fly-outs */
.category-create-form .category-core-grid,
.category-create-form .category-seo-grid,
.category-create-form .category-publishing-grid {
    display: grid;
    gap: 9px 12px;
    align-items: start;
}

.category-create-form .category-core-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-create-form .category-core-grid > label:first-child,
.category-create-form .category-core-grid > label:nth-child(2) {
    grid-column: span 2;
}

.category-create-form .category-core-grid > .media-select-field,
.category-create-form .category-core-grid > label.field-wide {
    grid-column: 1 / -1;
}

.category-create-form .category-seo-grid {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
}

.category-create-form .category-publishing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.category-form-panel--seo {
    border-left-color: var(--admin-gold, #b87924);
}

.category-hierarchy-panel {
    overflow: visible;
}

.category-hierarchy-heading {
    align-items: flex-start;
}

.category-tree-search {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: end;
    gap: 9px;
    margin: 14px 0;
    padding: 10px;
    border: 1px solid var(--admin-line, var(--line));
    background: var(--admin-card, var(--panel-bg));
}

.category-tree-search label {
    gap: 4px;
}

.category-sort-insight {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 4px solid var(--admin-teal, #16867a);
    background: #eef9f7;
    color: var(--admin-ink, var(--text));
    font-size: .86rem;
}

.category-sort-insight--neutral {
    border-left-color: var(--admin-gold, #d79a28);
    background: #fff9ec;
}

.category-sort-insight span {
    color: var(--admin-muted, var(--muted));
}

.admin-category-tree-wrap {
    overflow: visible;
}

.admin-category-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-category-tree .admin-category-tree {
    position: relative;
    margin: 7px 0 0 37px;
    padding-left: 25px;
    border-left: 2px solid var(--admin-line, var(--line));
}

.admin-category-tree__node {
    position: relative;
    margin: 0 0 7px;
}

.admin-category-tree .admin-category-tree > .admin-category-tree__node::before {
    content: "";
    position: absolute;
    top: 31px;
    left: -25px;
    width: 24px;
    border-top: 2px solid var(--admin-line, var(--line));
}

.admin-category-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 9px 10px;
    border: 1px solid var(--admin-line, var(--line));
    border-left: 5px solid var(--admin-blue, var(--blue));
    background: var(--admin-card, var(--panel-bg));
    box-shadow: 0 2px 8px rgba(20, 40, 61, .05);
}

.admin-category-tree--depth-1 > .admin-category-tree__node > .admin-category-card { border-left-color: var(--admin-teal, #16867a); }
.admin-category-tree--depth-2 > .admin-category-tree__node > .admin-category-card { border-left-color: var(--admin-gold, #d79a28); }
.admin-category-tree--depth-3 > .admin-category-tree__node > .admin-category-card { border-left-color: #7757a5; }
.admin-category-tree--depth-4 > .admin-category-tree__node > .admin-category-card { border-left-color: #677887; }

.admin-category-tree__node.is-search-match > .admin-category-card {
    outline: 2px solid rgba(35, 107, 155, .24);
    background: #f4faff;
}

.admin-category-tree__node.is-orphan > .admin-category-card {
    border-style: dashed;
}

.admin-category-card__media {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--admin-line, var(--line));
    background: var(--panel-soft);
}

.admin-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-category-card__placeholder {
    color: var(--admin-muted, var(--muted));
    font-size: 1.45rem;
}

.admin-category-card__main {
    min-width: 0;
}

.admin-category-card__title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.admin-category-card__title-row h3 {
    margin: 1px 0 0;
    color: var(--admin-ink, var(--text));
    font-size: 1rem;
    line-height: 1.2;
}

.admin-category-card__title-row code {
    display: inline-block;
    margin-top: 2px;
    color: var(--admin-muted, var(--muted));
    font-size: .72rem;
}

.admin-category-card__level {
    display: block;
    color: var(--admin-blue, var(--blue));
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.admin-category-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.admin-category-card__description {
    margin: 5px 0 0;
    color: var(--admin-muted, var(--muted));
    font-size: .79rem;
    line-height: 1.35;
}

.admin-category-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 6px;
    color: var(--admin-muted, var(--muted));
    font-size: .72rem;
}

.admin-category-card__meta strong {
    color: var(--admin-ink, var(--text));
}

.admin-category-card__actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 78px;
}

/* Desktop category menus are true cascading fly-outs. The previous scrollable
   root dropdown clipped absolutely positioned grandchildren and produced a
   scrollbar instead of exposing the descendant menu. */
@media (min-width: 821px) {
    .store-category-menu > .store-category-menu__level--1 {
        display: block;
        overflow: visible;
        max-height: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(5px);
        transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
    }

    .store-category-menu:hover > .store-category-menu__level--1,
    .store-category-menu:focus-within > .store-category-menu__level--1 {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .store-category-menu__level--2,
    .store-category-menu__level--3,
    .store-category-menu__level--4 {
        display: block;
        position: absolute;
        top: -7px;
        left: calc(100% - 1px);
        width: 270px;
        min-width: 240px;
        margin: 0;
        padding: 7px;
        border: 1px solid var(--line-strong);
        border-left: 3px solid var(--blue);
        background: var(--panel-bg);
        box-shadow: 0 12px 26px rgba(31, 72, 105, .18);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(5px);
        transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
        z-index: 2;
    }

    .store-category-menu__item:hover > .store-category-menu__level,
    .store-category-menu__item:focus-within > .store-category-menu__level {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .store-category-menu__level--2 .store-category-menu__item > a,
    .store-category-menu__level--3 .store-category-menu__item > a,
    .store-category-menu__level--4 .store-category-menu__item > a {
        padding: 7px 9px;
        font-size: .78rem;
        font-weight: 650;
    }
}

@media (max-width: 820px) {
    .category-create-form .category-core-grid,
    .category-create-form .category-seo-grid,
    .category-create-form .category-publishing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-create-form .category-core-grid > label:first-child,
    .category-create-form .category-core-grid > label:nth-child(2),
    .category-create-form .category-core-grid > .media-select-field,
    .category-create-form .category-core-grid > label.field-wide {
        grid-column: 1 / -1;
    }

    .admin-category-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .admin-category-card__media {
        width: 48px;
        height: 48px;
    }

    .admin-category-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }

    .admin-category-card__title-row {
        display: block;
    }

    .admin-category-card__badges {
        justify-content: flex-start;
        margin-top: 5px;
    }

    .admin-category-tree .admin-category-tree {
        margin-left: 19px;
        padding-left: 14px;
    }

    .admin-category-tree .admin-category-tree > .admin-category-tree__node::before {
        left: -14px;
        width: 13px;
    }

    .store-category-menu__level--2,
    .store-category-menu__level--3,
    .store-category-menu__level--4 {
        display: block;
        position: static;
        width: auto;
        min-width: 0;
        margin: 0 0 3px 10px;
        padding: 0 0 0 8px;
        border: 0;
        border-left: 2px solid var(--blue-light);
        box-shadow: none;
        background: transparent;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

@media (max-width: 560px) {
    .category-create-form .category-core-grid,
    .category-create-form .category-seo-grid,
    .category-create-form .category-publishing-grid,
    .category-tree-search {
        grid-template-columns: 1fr;
    }

    .category-tree-search .button-link,
    .category-tree-search button {
        width: 100%;
        text-align: center;
    }

    .admin-category-tree .admin-category-tree {
        margin-left: 8px;
    }
}

/* 0.0.72 category hierarchy refinements */
.admin-category-card__path {
    display: block;
    margin: 1px 0 2px;
    color: var(--admin-muted, var(--muted));
    font-size: .68rem;
    line-height: 1.25;
}

.admin-category-tree__node.is-collapsed > .admin-category-tree {
    display: none;
}

.admin-category-branch-toggle {
    white-space: nowrap;
}

/* Keep the new hierarchy surfaces bound to the active theme instead of
   introducing fixed light-only panels. */
.category-sort-insight,
.category-sort-insight--neutral,
.admin-category-tree__node.is-search-match > .admin-category-card {
    background: var(--panel-soft);
}

@media (min-width: 821px) {
    .storefront-category-nav,
    .store-category-menu,
    .store-category-menu__item,
    .store-category-menu__level {
        overflow: visible;
    }

    .store-category-menu > .store-category-menu__level--1,
    .store-category-menu__level--2,
    .store-category-menu__level--3,
    .store-category-menu__level--4 {
        background: var(--panel-bg);
    }
}

/* RuneCart 0.0.73 - compact category tree; category imagery retired */
.category-hierarchy-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.admin-category-tree-wrap {
    overflow: visible;
}

.admin-category-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-category-tree .admin-category-tree {
    position: relative;
    margin: 4px 0 0 24px;
    padding-left: 18px;
    border-left: 1px solid var(--admin-line, var(--line));
}

.admin-category-tree__node {
    position: relative;
    margin: 0 0 4px;
}

.admin-category-tree .admin-category-tree > .admin-category-tree__node::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -18px;
    width: 17px;
    border-top: 1px solid var(--admin-line, var(--line));
}

.admin-category-row {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(250px, 1fr) minmax(180px, 235px) 105px minmax(100px, 135px) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid var(--admin-line, var(--line));
    border-left: 4px solid var(--admin-blue, var(--blue));
    background: var(--admin-card, var(--panel-bg));
    box-shadow: 0 1px 3px rgba(20, 40, 61, .035);
}

.admin-category-tree--depth-1 > .admin-category-tree__node > .admin-category-row { border-left-color: var(--admin-teal, #16867a); }
.admin-category-tree--depth-2 > .admin-category-tree__node > .admin-category-row { border-left-color: var(--admin-gold, #d79a28); }
.admin-category-tree--depth-3 > .admin-category-tree__node > .admin-category-row { border-left-color: #7757a5; }
.admin-category-tree--depth-4 > .admin-category-tree__node > .admin-category-row { border-left-color: #677887; }
.admin-category-tree--depth-5 > .admin-category-tree__node > .admin-category-row { border-left-color: #8d6675; }

.admin-category-tree__node.is-search-match > .admin-category-row {
    outline: 2px solid rgba(35, 107, 155, .24);
    background: var(--panel-soft);
}

.admin-category-tree__node.is-orphan > .admin-category-row {
    border-style: dashed;
}

.admin-category-row__tree-control {
    display: grid;
    place-items: center;
}

.admin-category-tree-toggle {
    display: inline-grid;
    place-items: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--admin-line, var(--line));
    border-radius: 3px;
    background: var(--panel-soft);
    color: var(--admin-ink, var(--text));
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
}

.admin-category-tree-toggle:hover,
.admin-category-tree-toggle:focus {
    border-color: var(--admin-blue, var(--blue));
    background: var(--admin-card, var(--panel-bg));
}

.admin-category-tree-leaf {
    color: var(--admin-muted, var(--muted));
    font-size: 1rem;
    line-height: 1;
}

.admin-category-row__main {
    min-width: 0;
}

.admin-category-row__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.admin-category-row__heading h3 {
    min-width: 0;
    margin: 0;
    color: var(--admin-ink, var(--text));
    font-size: .94rem;
    line-height: 1.2;
}

.admin-category-row__heading h3 a {
    color: inherit;
    text-decoration: none;
}

.admin-category-row__heading h3 a:hover,
.admin-category-row__heading h3 a:focus {
    color: var(--admin-blue, var(--blue));
    text-decoration: underline;
}

.admin-category-row__subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    min-width: 0;
    margin-top: 3px;
    color: var(--admin-muted, var(--muted));
    font-size: .69rem;
    line-height: 1.25;
}

.admin-category-row__level {
    color: var(--admin-blue, var(--blue));
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.admin-category-row__path {
    overflow: hidden;
    max-width: 42ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-row__subline code {
    overflow: hidden;
    max-width: 28ch;
    padding: 1px 4px;
    color: var(--admin-muted, var(--muted));
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-row__numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--admin-line, var(--line));
    background: var(--panel-soft);
}

.admin-category-row__numbers > span {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 4px 5px;
    border-right: 1px solid var(--admin-line, var(--line));
    text-align: center;
}

.admin-category-row__numbers > span:last-child {
    border-right: 0;
}

.admin-category-row__numbers strong {
    color: var(--admin-ink, var(--text));
    font-size: .8rem;
    line-height: 1;
}

.admin-category-row__numbers small {
    margin-top: 2px;
    color: var(--admin-muted, var(--muted));
    font-size: .59rem;
    line-height: 1;
    text-transform: uppercase;
}

.admin-category-row__ordering {
    display: grid;
    gap: 3px;
    color: var(--admin-muted, var(--muted));
    font-size: .7rem;
}

.admin-category-row__ordering strong {
    color: var(--admin-ink, var(--text));
}

.admin-category-row__status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.admin-category-row__status .status-pill,
.admin-category-row__heading .status-pill {
    padding: 3px 7px;
    font-size: .67rem;
}

.admin-category-row__actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.admin-category-tree__node.is-collapsed > .admin-category-tree {
    display: none;
}

@media (max-width: 1180px) {
    .admin-category-row {
        grid-template-columns: 28px minmax(240px, 1fr) minmax(165px, 220px) 90px auto;
    }

    .admin-category-row__status {
        display: none;
    }
}

@media (max-width: 900px) {
    .admin-category-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 7px 9px;
    }

    .admin-category-row__numbers {
        grid-column: 2;
        max-width: 250px;
    }

    .admin-category-row__ordering {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .admin-category-row__actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .category-hierarchy-tools {
        justify-content: flex-start;
    }

    .admin-category-tree .admin-category-tree {
        margin-left: 10px;
        padding-left: 10px;
    }

    .admin-category-tree .admin-category-tree > .admin-category-tree__node::before {
        left: -10px;
        width: 9px;
    }

    .admin-category-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .admin-category-row__tree-control {
        align-self: start;
        padding-top: 2px;
    }

    .admin-category-row__numbers,
    .admin-category-row__ordering,
    .admin-category-row__actions {
        grid-column: 2;
        grid-row: auto;
    }

    .admin-category-row__numbers {
        max-width: none;
    }

    .admin-category-row__ordering {
        display: flex;
        gap: 12px;
    }

    .admin-category-row__path {
        max-width: 24ch;
    }
}

/* RuneCart 0.0.74 - storefront top navigation normalisation.
   Older category-menu rules styled root categories as standalone pale buttons.
   The current storefront header uses one continuous navigation bar, so root
   categories/pages must inherit that surface and only use subtle separators. */
.storefront-category-nav > a,
.storefront-category-nav > .store-category-menu > .store-category-menu__root {
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
    box-shadow: none;
}

.storefront-category-nav > .store-category-menu {
    display: flex;
    align-items: stretch;
}

.storefront-category-nav > .store-category-menu > .store-category-menu__root {
    width: 100%;
}

.storefront-category-nav > a:hover,
.storefront-category-nav > a:focus-visible,
.storefront-category-nav > .store-category-menu:hover > .store-category-menu__root,
.storefront-category-nav > .store-category-menu:focus-within > .store-category-menu__root {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 820px) {
    .storefront-category-nav > a,
    .storefront-category-nav > .store-category-menu > .store-category-menu__root {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .storefront-category-nav > .store-category-menu {
        display: block;
    }
}

/* Admin operational incidents: deliberately impossible to miss. */
.is-admin .panel--critical,
.is-admin .integration-alert {
    border: 2px solid #b72f2a !important;
    border-top: 6px solid #9d211d !important;
    background: #fff1f0 !important;
    box-shadow: 0 8px 24px rgba(143, 34, 29, .16);
}
.is-admin .integration-alert {
    padding: 20px;
    margin-bottom: 22px;
}
.is-admin .integration-alert__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(157, 33, 29, .2);
}
.is-admin .integration-alert__eyebrow {
    margin: 0 0 4px;
    color: #9d211d;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.is-admin .integration-alert h2,
.is-admin .integration-alert h3 {
    color: #7f1f1b !important;
}
.is-admin .integration-alert h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}
.is-admin .integration-alert__count {
    min-width: 76px;
    padding: 10px 12px;
    border: 1px solid rgba(157, 33, 29, .24);
    background: #fff;
    text-align: center;
}
.is-admin .integration-alert__count strong {
    display: block;
    color: #9d211d;
    font-size: 1.55rem;
    line-height: 1;
}
.is-admin .integration-alert__count span {
    color: #8d4541;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.is-admin .integration-alert__list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.is-admin .integration-alert__item {
    padding: 14px 15px;
    border: 1px solid #e0aaa6;
    border-left: 5px solid #b72f2a;
    background: rgba(255,255,255,.78);
}
.is-admin .integration-alert__item--warning {
    border-left-color: #c37818;
}
.is-admin .integration-alert__item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.is-admin .integration-alert__item h3 {
    margin: 6px 0 0;
    font-size: 1rem;
}
.is-admin .integration-alert__badge,
.is-admin .integration-alert__provider {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
}
.is-admin .integration-alert__badge {
    background: #a62b25;
    color: #fff;
}
.is-admin .integration-alert__item--warning .integration-alert__badge {
    background: #b66b13;
}
.is-admin .integration-alert__provider {
    border: 1px solid #d8a19d;
    background: #fff;
    color: #7e3430;
}
.is-admin .integration-alert__message {
    margin: 9px 0;
    color: #512b29;
    white-space: pre-wrap;
}
.is-admin .integration-alert__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #87605d;
    font-size: .76rem;
}
.is-admin .integration-alert__action {
    flex: 0 0 auto;
    background: #9d211d;
    border-color: #9d211d;
}
.is-admin .integration-alert__action:hover,
.is-admin .integration-alert__action:focus {
    background: #7c1714;
    border-color: #7c1714;
}
@media (max-width: 760px) {
    .is-admin .integration-alert__heading,
    .is-admin .integration-alert__item-head {
        flex-direction: column;
    }
    .is-admin .integration-alert__count {
        width: 100%;
    }
}

/* RuneCart 0.0.89 - production-readiness and environment audit dashboard. */
.production-readiness-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-left: 6px solid #2d8a57;
    background: linear-gradient(115deg, #f3fcf6 0%, #ffffff 72%);
}
.production-readiness-hero--blocked {
    border-left-color: #b54b4b;
    background: linear-gradient(115deg, #fff2f1 0%, #ffffff 72%);
}
.production-readiness-hero__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.production-readiness-hero h2 {
    margin-bottom: 7px;
    font-size: 1.55rem;
}
.production-readiness-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
}
.production-readiness-score {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    background: var(--panel-bg);
    text-align: center;
}
.production-readiness-score strong {
    display: block;
    color: var(--blue-dark);
    font-size: 2rem;
    line-height: 1;
}
.production-readiness-score span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}
.health-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.health-stat {
    display: grid;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--line-strong);
    background: var(--panel-bg);
}
.health-stat strong {
    font-size: 1.35rem;
}
.health-stat span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.health-stat--pass { border-top-color: #2d8a57; }
.health-stat--fail { border-top-color: #b54b4b; }
.health-stat--warning { border-top-color: #c18a20; }
.health-stat--manual { border-top-color: var(--blue); }
.health-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.health-section-heading h2,
.health-section-heading p {
    margin-bottom: 0;
}
.health-section-heading p {
    margin-top: 5px;
    color: var(--muted);
}
.production-checklist-groups {
    display: grid;
    gap: 10px;
}
.production-checklist-group {
    border: 1px solid var(--line);
    background: var(--panel-bg);
}
.production-checklist-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    cursor: pointer;
    color: var(--blue-dark);
    font-weight: 800;
}
.production-checklist-group[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}
.production-checklist-group__count {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}
.production-checklist-group__body {
    display: grid;
}
.production-check {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 15px;
    border-bottom: 1px solid #e3edf4;
}
.production-check:last-child {
    border-bottom: 0;
}
.production-check__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 1rem;
    font-weight: 900;
}
.production-check--pass .production-check__icon { border-color: #7bb492; color: #247646; background: #eefaf3; }
.production-check--fail .production-check__icon { border-color: #d99b98; color: #a32d2a; background: #fff0ef; }
.production-check--warning .production-check__icon { border-color: #d8b45d; color: #8e6112; background: #fff8df; }
.production-check--manual .production-check__icon { border-color: #7fa8c9; color: var(--blue-dark); background: var(--blue-light); }
.production-check--info .production-check__icon { color: var(--muted); background: #f4f7f9; }
.production-check__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.production-check__content p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .88rem;
}
.health-badge {
    display: inline-block;
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid var(--line);
    background: #f3f6f8;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.health-badge--pass { border-color: #8bbca0; background: #eefaf3; color: #247646; }
.health-badge--fail { border-color: #d6a09d; background: #fff0ef; color: #9d2926; }
.health-badge--warning { border-color: #d8b45d; background: #fff8df; color: #856016; }
.health-badge--manual { border-color: #8aaccc; background: var(--blue-light); color: var(--blue-dark); }
.health-badge--info { background: #f4f7f9; color: var(--muted); }
.health-file-state {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 800;
}
.health-file-state--ok { border-color: #8bbca0; background: #eefaf3; color: #247646; }
.health-file-state--bad { border-color: #d6a09d; background: #fff0ef; color: #9d2926; }
.env-audit-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.env-audit-summary article {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    background: var(--panel-bg);
}
.env-audit-summary article span {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
}
.env-audit-summary article strong {
    display: block;
    margin-top: 2px;
    font-size: 1.25rem;
}
.env-audit-summary .env-audit-summary--ok { border-left-color: #2d8a57; }
.env-audit-summary .env-audit-summary--bad { border-left-color: #b54b4b; }
.env-audit-summary .env-audit-summary--warn { border-left-color: #c18a20; }
.env-missing-grid {
    margin-bottom: 14px;
}
.env-missing-grid .card {
    margin-bottom: 0;
}
.env-missing-grid h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}
.env-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.env-token-list code {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid #d6a09d;
    background: #fff0ef;
    color: #872421;
    font-size: .76rem;
}
.env-token-list--recommended code {
    border-color: #d8b45d;
    background: #fff8df;
    color: #765616;
}
.health-inline-success {
    color: #247646;
    font-weight: 700;
}
.health-env-details {
    border: 1px solid var(--line);
    background: var(--panel-bg);
}
.health-env-details > summary {
    padding: 12px 14px;
    cursor: pointer;
    color: var(--blue-dark);
    font-weight: 800;
}
.health-env-details[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}
.health-env-details .table-scroll {
    margin: 0;
}
.health-env-table td:first-child code {
    white-space: nowrap;
}
.health-env-reason {
    display: block;
    margin-top: 5px;
    max-width: 560px;
    color: var(--muted);
    font-size: .79rem;
}
.health-env-path {
    margin-top: 10px;
    color: var(--muted);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.health-json-panel {
    border-left: 5px solid var(--blue);
}
.health-json-output {
    width: 100%;
    min-height: 320px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #0f1720;
    color: #dbe7f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .78rem;
    line-height: 1.5;
    resize: vertical;
    white-space: pre;
    overflow: auto;
}
.health-copy-status {
    min-height: 1.2em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}
.security-audit-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.security-audit-summary article {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--line-strong);
    background: var(--panel-bg);
}
.security-audit-summary article span {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
}
.security-audit-summary article strong {
    display: block;
    margin-top: 3px;
    font-size: 1.25rem;
}
.security-audit-summary .security-audit-score {
    border-top-color: var(--blue);
}
.security-check-path {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    font-size: .72rem;
    overflow-wrap: anywhere;
    white-space: normal;
}
.security-findings {
    margin-top: 12px;
}
.security-findings__body {
    display: grid;
}
.security-finding {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.security-finding:last-child {
    border-bottom: 0;
}
.security-finding p {
    margin: 3px 0 6px;
    color: var(--muted);
}
.security-finding code {
    overflow-wrap: anywhere;
    white-space: normal;
}
.security-route-summary {
    padding: 14px 15px;
}
.security-route-summary .definition-list {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .health-stat-grid,
    .env-audit-summary,
    .security-audit-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .production-readiness-hero,
    .health-section-heading,
    .production-check__title-row {
        align-items: stretch;
        flex-direction: column;
    }
    .production-readiness-score {
        width: 100%;
    }
    .health-stat-grid,
    .env-audit-summary,
    .security-audit-summary {
        grid-template-columns: 1fr;
    }
    .production-check {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px;
    }
}

.checkout-legal-acknowledgement {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--panel-bg);
    border-radius: 8px;
}

.checkout-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
}

.checkout-terms-check input {
    width: auto;
    margin-top: 3px;
    flex: 0 0 auto;
}

.checkout-terms-check span {
    min-width: 0;
}

.checkout-legal-copy {
    margin: 7px 0 0 28px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}

/* RuneCart 0.0.94: public and Super Admin manuals */
.manual-hero {
    margin-bottom: 1.25rem;
}

.manual-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.manual-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .35rem .7rem;
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
}

.manual-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.manual-toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.manual-toc h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.manual-toc nav {
    display: grid;
    gap: .2rem;
}

.manual-toc a {
    display: block;
    padding: .42rem .55rem;
    border-radius: .45rem;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.3;
}

.manual-toc a:hover,
.manual-toc a:focus-visible {
    background: rgba(127, 127, 127, .12);
}

.manual-content {
    min-width: 0;
    display: grid;
    gap: 1.25rem;
}

.manual-section {
    scroll-margin-top: 1rem;
}

.manual-section > :first-child {
    margin-top: 0;
}

.manual-section h2 {
    margin-top: .1rem;
}

.manual-section h3 {
    margin-top: 1.4rem;
    margin-bottom: .55rem;
}

.manual-section code {
    overflow-wrap: anywhere;
}

.manual-steps,
.manual-checklist {
    display: grid;
    gap: .65rem;
    padding-left: 1.45rem;
}

.manual-steps li,
.manual-checklist li {
    padding-left: .25rem;
    line-height: 1.58;
}

.manual-note,
.manual-warning,
.manual-security-banner {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: .65rem;
    border: 1px solid rgba(127, 127, 127, .25);
}

.manual-note {
    border-left: 4px solid #3f80c7;
    background: rgba(63, 128, 199, .08);
}

.manual-warning {
    border-left: 4px solid #c07a1a;
    background: rgba(192, 122, 26, .09);
}

.manual-security-banner {
    border-left: 4px solid #a44fc2;
    background: rgba(164, 79, 194, .08);
    margin-bottom: 1.25rem;
}

.manual-security-banner p {
    margin-bottom: 0;
}

.manual-faq {
    display: grid;
    gap: .6rem;
}

.manual-faq details {
    border: 1px solid rgba(127, 127, 127, .24);
    border-radius: .6rem;
    padding: .75rem .85rem;
}

.manual-faq summary {
    cursor: pointer;
    font-weight: 800;
}

.manual-faq details p {
    margin-bottom: 0;
}

.manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.manual-section--finish {
    border-style: dashed;
}

@media (max-width: 900px) {
    .manual-layout {
        grid-template-columns: 1fr;
    }

    .manual-toc {
        position: static;
        max-height: none;
    }

    .manual-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .manual-toc nav {
        grid-template-columns: 1fr;
    }

    .manual-actions .button-link,
    .manual-actions .button-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .site-header,
    .site-footer,
    .admin-sidebar,
    .admin-global-search,
    .breadcrumbs,
    .manual-toc,
    .admin-dev-panel {
        display: none !important;
    }

    .page-shell,
    .page-shell--admin,
    .admin-layout,
    .admin-content,
    .manual-layout,
    .manual-content {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .manual-section,
    .panel {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

/* eBay webhook endpoint display */
.marketplace-endpoint {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.marketplace-endpoint__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.marketplace-endpoint__copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.marketplace-endpoint__copy-row input[readonly] {
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.marketplace-endpoint-code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 720px) {
    .marketplace-endpoint__copy-row {
        grid-template-columns: 1fr;
    }
}

/* RuneCart cron / scheduled-task operations */
.cron-security-notice {
    border-left: 4px solid #d79b25;
}

.cron-setup-steps {
    margin-top: 1rem;
}

.cron-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 1rem;
}

.cron-task-card {
    border: 1px solid var(--border-color, #d7e0e7);
    border-radius: 14px;
    background: var(--panel-bg, #fff);
    padding: 1.15rem;
    min-width: 0;
}

.cron-task-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .65rem;
}

.cron-task-card__header h3 {
    margin: .15rem 0 0;
}

.cron-task-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.cron-schedule-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: var(--surface-muted, #f4f7f9);
}

.cron-schedule-box > div {
    display: grid;
    gap: .18rem;
}

.cron-schedule-box span,
.cron-url-block label {
    font-weight: 700;
}

.cron-schedule-box code {
    font-size: 1.05rem;
}

.cron-url-block {
    margin-top: .9rem;
}

.cron-url-block label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .35rem;
}

.cron-url-block--secret {
    padding: .8rem;
    border: 1px dashed #d79b25;
    border-radius: 10px;
    background: rgba(215, 155, 37, .07);
}

.cron-copy-row,
.cron-table-url {
    display: flex;
    align-items: stretch;
    gap: .45rem;
    min-width: 0;
}

.cron-copy-row input,
.cron-table-url input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.cron-task-note {
    margin-top: .8rem;
}

.cron-heartbeat-mini {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border-color, #d7e0e7);
}

.cron-heartbeat-mini > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .5rem;
    align-items: center;
}

.cron-heartbeat-mini small {
    grid-column: 2;
}

.cron-endpoint-table td {
    vertical-align: top;
}

.cron-table-url {
    min-width: 320px;
}

@media (max-width: 760px) {
    .cron-task-card__header,
    .cron-schedule-box,
    .cron-copy-row,
    .cron-table-url {
        flex-direction: column;
        align-items: stretch;
    }

    .cron-task-card__badges {
        justify-content: flex-start;
    }

    .cron-table-url {
        min-width: 0;
    }
}

/* System Health section refresh controls */
.health-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.health-section-heading__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.health-refresh-note {
    font-size: .82rem;
    color: var(--text-muted, #687684);
}

@media (max-width: 700px) {
    .health-section-heading {
        flex-direction: column;
    }
}

/* eBay live metadata / QoL controls */
.ebay-metadata-picker,
.ebay-metadata-summary {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #d7e0e7);
    border-radius: 12px;
    background: var(--panel-subtle, rgba(98, 143, 170, .06));
}

.ebay-selected-metadata {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .75rem .85rem;
    margin-bottom: .85rem;
    border: 1px solid var(--border-color, #d7e0e7);
    border-radius: 10px;
    background: var(--surface-color, #fff);
}

.ebay-selected-metadata code {
    white-space: nowrap;
}

.ebay-metadata-search-row {
    align-items: end;
}

.ebay-metadata-search-row .form-actions {
    margin: 0;
    align-self: end;
}

.ebay-metadata-picker select[size] {
    width: 100%;
    min-height: 12rem;
}

.ebay-subsection-heading {
    margin-top: 1rem;
    margin-bottom: .65rem;
}

.ebay-shipping-service-select,
.ebay-shipping-location-select,
#ebay-shipping-excluded-locations {
    min-width: 220px;
}

.ebay-shipping-location-select,
#ebay-shipping-excluded-locations {
    width: 100%;
}

@media (max-width: 760px) {
    .ebay-selected-metadata {
        grid-template-columns: 1fr;
    }

    .ebay-shipping-service-select,
    .ebay-shipping-location-select,
    #ebay-shipping-excluded-locations {
        min-width: 180px;
    }
}

/* PayPal JavaScript SDK v6 / Pay Later checkout */
.paypal-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 22px;
    align-items: start;
}
.paypal-smart-panel__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.paypal-smart-panel__intro h2 { margin-bottom: 0; }
.paypal-smart-panel__amount {
    flex: 0 0 auto;
    font-size: 1.35rem;
    color: var(--blue-dark);
}
.paypal-smart-status {
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    margin-bottom: 16px;
    font-weight: 700;
}
.paypal-smart-status--working,
.paypal-smart-status--info { border-color: var(--line-strong); }
.paypal-smart-status--success { border-color: #72a986; background: #edf8f1; }
.paypal-smart-status--error { border-color: #c87878; background: #fff0f0; }
.paypal-smart-options {
    display: grid;
    gap: 14px;
    margin: 16px 0;
}
.paypal-smart-options[hidden],
.paypal-smart-option[hidden],
.paypal-smart-option paypal-button[hidden],
.paypal-smart-option paypal-pay-later-button[hidden] { display: none !important; }
.paypal-smart-option {
    border: 1px solid var(--line);
    background: var(--panel-bg);
    padding: 18px;
}
.paypal-smart-option--later { border-color: var(--line-strong); background: #f8fbff; }
.paypal-smart-option h3 { margin-top: 4px; }
.paypal-smart-option paypal-button,
.paypal-smart-option paypal-pay-later-button {
    display: block;
    width: min(100%, 520px);
    min-height: 45px;
    margin-top: 12px;
}
.paypal-smart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.paypal-smart-legal { margin-top: 16px; }
@media (max-width: 820px) {
    .paypal-checkout-layout { grid-template-columns: 1fr; }
    .paypal-smart-panel__intro { flex-direction: column; }
}

/* PayPal Pay Later promotional messaging (PayPal JS SDK v6). */
.runecart-paypal-message {
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0.55rem 0 0.8rem;
    min-height: 0;
}
.runecart-paypal-message[hidden] {
    display: none !important;
}
.runecart-paypal-message--compact {
    margin: 0.35rem 0 0.55rem;
    font-size: 0.86rem;
}
.store-product-card .runecart-paypal-message {
    max-width: 100%;
}
.checkout-paypal-message {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color, #c9d8e4);
    background: rgba(248, 251, 255, 0.92);
}
.checkout-paypal-message .runecart-paypal-message {
    margin-bottom: 0;
}
.storefront-cart-summary .runecart-paypal-message {
    margin-top: 0.7rem;
}
.gateway-subpanel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #c9d8e4);
    background: rgba(248, 251, 255, 0.72);
}
.gateway-subpanel h4 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}
.gateway-checkbox-grid--nested {
    margin-top: 0.65rem;
}

/* Square Web Payments SDK checkout */
.square-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 22px;
    align-items: start;
}
.square-payment-panel__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.square-payment-panel__intro h2 { margin-bottom: 0; }
.square-payment-panel__amount {
    flex: 0 0 auto;
    font-size: 1.35rem;
    color: var(--blue-dark);
}
.square-payment-status {
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    margin-bottom: 16px;
    font-weight: 700;
}
.square-payment-status--working,
.square-payment-status--info { border-color: var(--line-strong); }
.square-payment-status--success { border-color: #72a986; background: #edf8f1; }
.square-payment-status--error { border-color: #c87878; background: #fff0f0; }
.square-wallet-options[hidden],
.square-wallet-option[hidden],
.square-payment-divider[hidden] { display: none !important; }
.square-wallet-options {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.square-wallet-option { min-height: 44px; }
#square-google-pay { min-height: 44px; }
.square-apple-pay-button {
    display: block;
    width: 100%;
    height: 44px;
    min-height: 44px;
    cursor: pointer;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: plain;
    -apple-pay-button-style: black;
}
.square-payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .9rem;
    margin: 4px 0;
}
.square-payment-divider::before,
.square-payment-divider::after {
    content: '';
    height: 1px;
    background: var(--line);
    flex: 1 1 auto;
}
.square-card-option {
    border: 1px solid var(--line);
    background: var(--panel-bg);
    padding: 18px;
}
.square-card-option h3 { margin-top: 0; }
.square-card-container {
    min-height: 90px;
    margin: 14px 0;
}
.square-pay-button { width: 100%; }
.square-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.square-payment-legal { margin-top: 16px; }
.square-status-link { display: inline-flex; margin-top: 10px; }
@media (max-width: 820px) {
    .square-checkout-layout { grid-template-columns: 1fr; }
    .square-payment-panel__intro { flex-direction: column; }
}


/* Payment provider administration */
.is-admin .payment-admin-panel {
    padding: 14px 16px;
    margin-bottom: 12px;
}

.payment-admin-panel .panel-heading-row {
    gap: 10px;
}

.payment-admin-panel .panel-heading-row h2,
.payment-admin-panel > h2 {
    margin-bottom: 5px;
}

.payment-capability-table th:not(:first-child),
.payment-capability-table td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

.payment-capability-table th,
.payment-capability-table td {
    padding: 7px 9px;
}

.payment-capability-mark {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    min-height: 1.4rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
}

.payment-capability-mark.is-supported {
    background: rgba(36, 143, 104, .12);
    color: #167253;
}

.payment-capability-mark.is-unavailable {
    color: var(--muted);
}

.payment-provider-stack {
    display: grid;
    gap: 10px;
}

.payment-provider-card {
    border: 1px solid color-mix(in srgb, var(--payment-provider-accent, #9fb4c3) 24%, var(--line));
    border-left: 6px solid var(--payment-provider-accent, #9fb4c3);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--payment-provider-accent, #9fb4c3) 10%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--payment-provider-tint, transparent) 72%, transparent), transparent 110px),
        linear-gradient(90deg, color-mix(in srgb, var(--payment-provider-tint, transparent) 92%, transparent), transparent 240px),
        var(--panel, #fff);
    padding: 12px 14px;
}

.payment-provider-card.is-active {
    border-left-width: 7px;
}

/* Distinct, restrained provider hues make the gateway sections easy to scan. */
.payment-provider-card--manual {
    --payment-provider-accent: #66788a;
    --payment-provider-tint: rgba(102, 120, 138, .11);
}

.payment-provider-card--stripe {
    --payment-provider-accent: #635bff;
    --payment-provider-tint: rgba(99, 91, 255, .13);
}

.payment-provider-card--paypal {
    --payment-provider-accent: #0070ba;
    --payment-provider-tint: rgba(0, 112, 186, .13);
}

.payment-provider-card--square {
    --payment-provider-accent: #1f8f63;
    --payment-provider-tint: rgba(31, 143, 99, .13);
}

.payment-provider-card--manual .payment-provider-card__header,
.payment-provider-card--stripe .payment-provider-card__header,
.payment-provider-card--paypal .payment-provider-card__header,
.payment-provider-card--square .payment-provider-card__header {
    border-bottom: 1px solid color-mix(in srgb, var(--payment-provider-accent) 28%, transparent);
    padding-bottom: 7px;
}

.payment-provider-card--manual .payment-provider-card__title-row h3,
.payment-provider-card--stripe .payment-provider-card__title-row h3,
.payment-provider-card--paypal .payment-provider-card__title-row h3,
.payment-provider-card--square .payment-provider-card__title-row h3 {
    color: color-mix(in srgb, var(--payment-provider-accent) 78%, var(--text));
}

.payment-provider-card .status-pill,
.payment-provider-card .payment-credential-state span {
    border-color: color-mix(in srgb, var(--payment-provider-accent) 20%, var(--line));
}

.payment-provider-card__header,
.payment-provider-card__title-row,
.payment-mode-section,
.payment-provider-actions,
.payment-provider-test,
.payment-credential-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-provider-card__header,
.payment-mode-section,
.payment-provider-test {
    justify-content: space-between;
}

.payment-provider-card__header {
    align-items: flex-start;
    margin-bottom: 8px;
}

.payment-provider-card__title-row {
    flex-wrap: wrap;
}

.payment-provider-card__title-row h3 {
    margin: 0;
}

.payment-credential-state {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-credential-state span {
    padding: 3px 7px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.payment-credential-state span.is-ready {
    border-color: rgba(36, 143, 104, .35);
    color: #167253;
    background: rgba(36, 143, 104, .08);
}

.payment-provider-form {
    gap: 10px 12px;
    max-width: none;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 300px);
    align-items: start;
}

.payment-provider-form > .payment-mode-section,
.payment-provider-form > .gateway-readiness-summary,
.payment-provider-form > .payment-clear-credentials,
.payment-provider-form > .payment-provider-actions {
    grid-column: 1 / -1;
}

.payment-provider-form > .gateway-config-panel,
.payment-provider-form > .gateway-subpanel {
    min-width: 0;
    height: auto;
}

/* Gateway credentials are long values: never squeeze them into 3-4 narrow columns. */
.payment-provider-card .gateway-config-panel .form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

/* Keep the narrow checkout sidebar intentionally compact. */
.payment-provider-card .gateway-subpanel .form-grid--two {
    grid-template-columns: 1fr;
    gap: 8px;
}

.payment-provider-card .gateway-config-panel textarea {
    min-height: 76px;
    resize: vertical;
}

.payment-provider-card label {
    gap: 4px;
}

.payment-provider-card input:not([type="checkbox"]):not([type="radio"]),
.payment-provider-card select,
.payment-provider-card textarea {
    min-height: 38px;
    padding: 8px 10px;
}

.payment-provider-card .gateway-checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 12px;
    margin-top: 8px;
}

.payment-provider-card .gateway-checkbox-grid--nested {
    margin-top: 6px;
}

.payment-mode-section {
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.payment-mode-section p {
    margin-bottom: 0;
}

.payment-mode-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--panel, #fff);
    padding: 3px;
    gap: 3px;
}

.payment-mode-toggle label {
    margin: 0;
    cursor: pointer;
}

.payment-mode-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-mode-toggle span {
    display: block;
    padding: 6px 10px;
    min-width: 80px;
    text-align: center;
    font-weight: 800;
    color: var(--muted);
}

.payment-mode-toggle input:checked + span {
    background: var(--blue-dark);
    color: #fff;
}

.payment-provider-card .gateway-config-panel,
.payment-provider-card .gateway-subpanel {
    margin-top: 0;
    padding: 10px 12px;
}

.payment-provider-card .gateway-config-panel h4,
.payment-provider-card .gateway-subpanel h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.payment-provider-card .form-help {
    line-height: 1.35;
}

.gateway-readiness-summary {
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.gateway-readiness-summary summary {
    cursor: pointer;
    font-weight: 800;
}

.gateway-readiness-summary .gateway-readiness-list {
    margin-top: 7px;
}

.payment-clear-credentials {
    color: var(--muted);
    font-size: .86rem;
}

.payment-provider-actions {
    justify-content: flex-start;
}

.payment-provider-test {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
    align-items: flex-start;
}

.payment-provider-card button {
    padding: 8px 12px;
}

.payment-provider-test .form-help {
    margin: 0;
    text-align: right;
    max-width: 620px;
}

.payment-webhook-panel code {
    overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
    .payment-provider-form {
        grid-template-columns: 1fr;
    }

    .payment-provider-form > .payment-mode-section,
    .payment-provider-form > .gateway-config-panel,
    .payment-provider-form > .gateway-subpanel,
    .payment-provider-form > .gateway-readiness-summary,
    .payment-provider-form > .payment-clear-credentials,
    .payment-provider-form > .payment-provider-actions {
        grid-column: 1;
    }

    .payment-provider-card .gateway-subpanel .form-grid--two {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .payment-provider-card .gateway-config-panel .form-grid--two,
    .payment-provider-card .gateway-subpanel .form-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .payment-provider-card__header,
    .payment-mode-section,
    .payment-provider-test {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-credential-state {
        justify-content: flex-start;
    }

    .payment-mode-toggle {
        width: 100%;
    }

    .payment-mode-toggle label {
        flex: 1;
    }

    .payment-mode-toggle span {
        min-width: 0;
    }

    .payment-provider-test .form-help {
        text-align: left;
    }
}


/* Dedicated admin entity create/edit pages */
.admin-entity-form { width: 100%; max-width: 1280px; }
.admin-mini-list--actions > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; }
.admin-mini-list--actions > div > span:first-child { display: grid; gap: 2px; }
@media (max-width: 760px) { .admin-mini-list--actions > div { grid-template-columns: 1fr auto; } .admin-mini-list--actions > div > span:nth-child(2) { grid-column: 1; } }

@media (max-width: 620px) { .storefront-mini-basket__actions { grid-template-columns: 1fr; } }

/* Encrypted Secrets & APIs control centre */
.secure-config-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.secure-config-overview__card {
    --secure-accent: #56778f;
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 112px;
    padding: 12px 13px;
    border: 1px solid color-mix(in srgb, var(--secure-accent) 25%, var(--line));
    border-left: 4px solid var(--secure-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--secure-accent) 8%, var(--panel)), var(--panel));
}

.secure-config-overview__card--encrypted { --secure-accent: #6d5bd0; }
.secure-config-overview__card--payments { --secure-accent: #2487b9; }
.secure-config-overview__card--shipping { --secure-accent: #2e9365; }
.secure-config-overview__card--ebay { --secure-accent: #d85b68; }

.secure-config-overview__card > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.secure-config-overview__card > strong {
    color: color-mix(in srgb, var(--secure-accent) 80%, var(--text));
    font-size: 1.45rem;
}

.secure-config-overview__card small {
    color: var(--muted);
    line-height: 1.45;
}

.secure-bootstrap-panel,
.secure-env-import-panel {
    margin-bottom: 12px;
}

.secure-bootstrap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.secure-bootstrap-item {
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.secure-bootstrap-item .status-pill {
    width: fit-content;
}

.secure-bootstrap-item small {
    color: var(--muted);
    line-height: 1.4;
}

.secure-env-import-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.secure-env-import-panel h2,
.secure-env-import-panel p {
    margin-block: 0 5px;
}

.secure-config-form {
    display: grid;
    gap: 10px;
}

.secure-config-jumps {
    position: sticky;
    top: 0;
    z-index: 7;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    backdrop-filter: blur(8px);
}

.secure-config-jump {
    --secure-accent: #637d91;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--secure-accent) 28%, var(--line));
    background: color-mix(in srgb, var(--secure-accent) 7%, var(--panel));
    color: color-mix(in srgb, var(--secure-accent) 80%, var(--text));
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
}

.secure-config-jump:hover,
.secure-config-jump:focus {
    background: color-mix(in srgb, var(--secure-accent) 14%, var(--panel));
    text-decoration: none;
}

.secure-config-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.secure-config-group {
    --secure-accent: #637d91;
    margin: 0;
    padding: 12px;
    border-top: 3px solid var(--secure-accent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--secure-accent) 6%, var(--panel)), var(--panel) 130px);
}

.secure-config-group--automation-tokens,
.secure-config-jump--automation-tokens { --secure-accent: #b67a24; }
.secure-config-group--email-smtp,
.secure-config-jump--email-smtp { --secure-accent: #2f8fb9; }
.secure-config-group--ebay-application,
.secure-config-jump--ebay-application { --secure-accent: #d75968; }
.secure-config-group--telegram-alerts,
.secure-config-jump--telegram-alerts { --secure-accent: #3186a8; }
.secure-config-group--opencart-database,
.secure-config-jump--opencart-database { --secure-accent: #6f63bb; }
.secure-config-group--opencart-image-source,
.secure-config-jump--opencart-image-source { --secure-accent: #3c9a70; }
.secure-config-group--opencart-sftp,
.secure-config-jump--opencart-sftp { --secure-accent: #557ea4; }
.secure-config-group--opencart-ftp-ftps,
.secure-config-jump--opencart-ftp-ftps { --secure-accent: #9a6a3a; }

.secure-config-group__heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--secure-accent) 20%, var(--line));
}

.secure-config-group__heading h2,
.secure-config-group__heading p {
    margin: 0;
}

.secure-config-group__heading h2 {
    margin-top: 2px;
    color: color-mix(in srgb, var(--secure-accent) 80%, var(--text));
    font-size: 1.05rem;
}

.secure-config-group__heading p {
    max-width: 680px;
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}

.secure-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.secure-config-field {
    min-width: 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--secure-accent) 13%, var(--line));
    background: color-mix(in srgb, var(--secure-accent) 2.5%, var(--panel));
}

.secure-config-field--wide {
    grid-column: 1 / -1;
}

.secure-config-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.secure-config-field__top > label {
    font-size: .8rem;
    font-weight: 800;
}

.secure-config-field input,
.secure-config-field select {
    min-height: 35px;
    padding: 6px 8px;
}

.secure-config-field > p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}

.secure-config-field__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    margin-top: 5px;
    color: var(--muted);
    font-size: .66rem;
}

.secure-config-field__meta code {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.secure-config-source {
    padding: 2px 5px;
    border: 1px solid color-mix(in srgb, var(--secure-accent) 25%, var(--line));
    background: color-mix(in srgb, var(--secure-accent) 8%, var(--panel));
    color: color-mix(in srgb, var(--secure-accent) 80%, var(--text));
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.secure-config-clear {
    margin-top: 6px;
    font-size: .7rem;
    color: var(--muted);
}

.secure-config-clear input {
    min-height: 0;
}

.secure-config-save {
    margin-top: 2px;
}

@media (max-width: 1180px) {
    .secure-config-overview,
    .secure-bootstrap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .secure-config-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .secure-config-overview,
    .secure-bootstrap-grid,
    .secure-config-grid,
    .secure-env-import-panel {
        grid-template-columns: 1fr;
    }

    .secure-config-jumps {
        position: static;
    }

    .secure-config-field--wide {
        grid-column: auto;
    }
}


/* RuneCart 0.0.119: independent desktop admin rail.
   The sidebar is deliberately removed from the content/grid flow so long pages,
   short pages and the admin footer cannot change its height or position. */
@media (min-width: 901px) {
    body.is-admin {
        --admin-rail-width: 270px;
        --admin-header-height: 72px;
    }

    .is-admin .site-header--admin {
        position: sticky;
        top: 0;
        z-index: 80;
    }

    .is-admin .admin-sidebar {
        position: fixed;
        z-index: 60;
        top: var(--admin-header-height);
        bottom: 0;
        left: 0;
        width: var(--admin-rail-width);
        min-height: 0;
        height: auto;
        max-height: none;
        align-self: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding: 10px 0 24px;
        background: linear-gradient(180deg, #132b41 0%, #0f2234 100%);
        border: 0;
        box-shadow: 7px 0 20px rgba(17, 43, 64, .08);
    }

    .is-admin .admin-layout {
        display: block;
        width: auto;
        min-height: calc(100vh - var(--admin-header-height));
        margin: 0 0 0 var(--admin-rail-width);
        background: transparent;
    }

    .is-admin .admin-content {
        width: 100%;
        min-width: 0;
        padding: 22px 26px 40px;
    }

    .is-admin .site-footer--admin {
        width: auto;
        margin-left: var(--admin-rail-width);
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.is-admin {
        --admin-rail-width: 230px;
    }
}

@media (max-width: 900px) {
    .is-admin .site-header--admin {
        position: relative;
        top: auto;
    }

    .is-admin .admin-sidebar {
        position: static;
        inset: auto;
        width: auto;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .is-admin .admin-layout {
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0;
        background: transparent;
    }

    .is-admin .site-footer--admin {
        width: 100%;
        margin-left: 0;
    }
}


/* Customer account workspace: compact dashboard with dedicated orders/address pages. */
.account-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}
.account-section-nav a {
    padding: 8px 14px;
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}
.account-section-nav a.is-active,
.account-section-nav a:hover,
.account-section-nav a:focus {
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
}
.account-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}
.account-dashboard-head h1,
.account-dashboard-head p { margin-top: 0; }
.account-dashboard-head p:last-child { margin-bottom: 0; }
.account-dashboard-grid--dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.account-dashboard-grid--dense .account-dashboard-card {
    padding: 10px 12px;
    border-top-width: 3px;
}
.account-dashboard-grid--dense .account-dashboard-card__icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
}
.account-dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 12px;
    margin-bottom: 12px;
}
.account-compact-card { padding: 13px; }
.account-form--compact { gap: 9px; }
.account-form--compact input,
.account-form--compact select { min-height: 38px; }
.account-verification-warning--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.account-verification-warning--compact > div { display: grid; gap: 2px; }
.account-verification-warning--compact span { color: var(--muted); font-size: .82rem; }
.account-dashboard-recent { padding: 13px; }
.account-recent-order-list { display: grid; gap: 4px; }
.account-recent-order-list > a {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 110px minmax(130px, auto) 90px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}
.account-recent-order-list > a:hover { background: var(--panel-soft); }
.account-recent-order-list b { text-align: right; }
.account-address-page-grid {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    gap: 14px;
    align-items: start;
}
.account-address-form--compact { padding: 14px; position: sticky; top: 14px; }
.account-address-default-options { display: flex; flex-wrap: wrap; gap: 12px; }
.account-address-list { display: grid; gap: 8px; }
.account-address-card { padding: 0; overflow: hidden; }
.account-address-card > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--panel-soft);
}
.account-address-card > summary > span:first-child { display: grid; gap: 2px; }
.account-address-card > summary small { color: var(--muted); font-weight: 500; }
.account-address-card > form,
.account-address-card > .account-address-actions { margin: 12px 14px; }

@media (max-width: 1050px) {
    .account-dashboard-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-dashboard-main,
    .account-address-page-grid { grid-template-columns: 1fr; }
    .account-address-form--compact { position: static; }
}
@media (max-width: 700px) {
    .account-dashboard-head,
    .account-verification-warning--compact { align-items: flex-start; flex-direction: column; }
    .account-dashboard-grid--dense { grid-template-columns: 1fr; }
    .account-recent-order-list > a { grid-template-columns: 1fr auto; }
    .account-recent-order-list > a span:nth-of-type(1) { display: none; }
    .account-recent-order-list > a b { text-align: left; }
}

/* Resumable OpenCart fresh-import reset */
.migration-reset-progress {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e2b7b3;
    background: #fffdfc;
}

.migration-reset-progress[hidden] {
    display: none;
}

.migration-reset-progress progress {
    width: 100%;
    height: 8px;
}
/* Returns / RMA */
.return-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.5fr);gap:1rem;align-items:start}.return-layout--admin{grid-template-columns:minmax(360px,1fr) minmax(420px,1.2fr)}.return-item-select{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--border-color,#ddd)}.return-item-select small{display:block}.return-thread{display:grid;gap:.75rem;margin:1rem 0}.return-message{padding:.85rem 1rem;border:1px solid var(--border-color,#ddd);border-radius:10px}.return-message header{display:flex;justify-content:space-between;gap:1rem;font-size:.9rem}.return-message time{opacity:.7}.return-message--internal{border-style:dashed;background:rgba(180,120,0,.08)}.return-message--admin{background:rgba(30,110,190,.07)}.return-images{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.return-images img{width:120px;height:90px;object-fit:cover;border-radius:8px;border:1px solid var(--border-color,#ddd)}.notice-box{margin:1rem 0;padding:1rem;border:1px solid var(--border-color,#ddd);border-radius:10px;background:rgba(100,100,100,.05)}@media(max-width:850px){.return-layout,.return-layout--admin{grid-template-columns:1fr}.return-message header{display:block}}


/* eBay listing profile: one compact RuneCart category per line at every width. */
.ebay-rune-category-checklist {
    display: block;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px;
    border: 1px solid var(--line, #d7dce2);
    border-radius: 7px;
    background: var(--panel-bg, #fff);
}
.product-create-form--compact .ebay-rune-category-checklist .ebay-rune-category-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 28px;
    padding: 3px 7px;
    margin: 0;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}
.product-create-form--compact .ebay-rune-category-row[hidden] {
    display: none;
}
.ebay-rune-category-row:hover {
    background: var(--panel-soft, rgba(100, 100, 100, .06));
}
.ebay-rune-category-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
}
.ebay-rune-category-row > span {
    flex: 1 1 auto;
    min-width: 0;
}
.ebay-rune-category-row:has(input:disabled) {
    opacity: .7;
    cursor: not-allowed;
}
