/*
 * Naghshbaf Checkout UI — v2.10.8
 * Presentation layer for the classic WooCommerce checkout and postpaid delivery rates.
 */

body.nb-checkout-page {
    --nb-checkout-gold: var(--nb-commerce-gold, #bd8f49);
    --nb-checkout-gold-dark: var(--nb-commerce-gold-dark, #a97932);
    --nb-checkout-gold-soft: var(--nb-commerce-gold-soft, #f7f1e7);
    --nb-checkout-ink: var(--nb-commerce-ink, #22252d);
    --nb-checkout-muted: var(--nb-commerce-muted, #727681);
    --nb-checkout-line: var(--nb-commerce-line, #ece7df);
    --nb-checkout-surface: #fff;
    --nb-checkout-soft: #fbf8f3;
    background: #f8f6f2;
}

body.nb-checkout-page .entry-title,
body.nb-checkout-page .page-title,
body.nb-checkout-page .woocommerce-breadcrumb {
    display: none !important;
}

body.nb-checkout-page .site-main,
body.nb-checkout-page main,
body.nb-checkout-page .content-area,
body.nb-checkout-page .container,
body.nb-checkout-page .woocommerce {
    box-sizing: border-box;
}

body.nb-checkout-page .woocommerce {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 64px !important;
    direction: rtl;
}

.nb-checkout-hero {
    margin: 0 0 22px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 20px;
    color: var(--nb-checkout-ink);
    background: linear-gradient(135deg, #fff 0%, #fbf7ef 100%);
    border: 1px solid var(--nb-checkout-line);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(31, 27, 21, .06);
}

.nb-checkout-back {
    min-height: 44px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--nb-checkout-ink) !important;
    background: #fff !important;
    border: 1px solid var(--nb-checkout-line) !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}
.nb-checkout-back:hover,
.nb-checkout-back:focus-visible {
    color: var(--nb-checkout-gold-dark) !important;
    background: var(--nb-checkout-gold-soft) !important;
    border-color: rgba(189,143,73,.5) !important;
    outline: 0;
}

.nb-checkout-hero-copy small {
    display: block;
    margin-bottom: 4px;
    color: var(--nb-checkout-gold-dark);
    font-size: 12px;
    font-weight: 900;
}
.nb-checkout-hero-copy h1 {
    margin: 0 0 5px;
    color: var(--nb-checkout-ink);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.3;
}
.nb-checkout-hero-copy p {
    margin: 0;
    color: var(--nb-checkout-muted);
    font-size: 13px;
    line-height: 1.9;
}
.nb-checkout-safe-note {
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--nb-checkout-ink);
    background: rgba(189,143,73,.08);
    border: 1px solid rgba(189,143,73,.25);
    border-radius: 14px;
}
.nb-checkout-safe-note strong {
    color: var(--nb-checkout-gold-dark);
    font-size: 13px;
    font-weight: 950;
}
.nb-checkout-safe-note span {
    color: var(--nb-checkout-muted);
    font-size: 11px;
    line-height: 1.7;
}

/*
 * Desktop structure follows the classic WooCommerce proportions:
 * customer details and order review each occupy roughly half the row.
 * Only the visual skin is customized here; checkout behavior stays native.
 */
body.nb-checkout-page form.checkout.woocommerce-checkout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    display: block !important;
    direction: rtl;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.nb-checkout-page form.checkout.woocommerce-checkout::after {
    content: "";
    display: table;
    clear: both;
}

body.nb-checkout-page form.checkout > .col2-set {
    width: 48% !important;
    max-width: none !important;
    margin: 0 !important;
    float: right !important;
    direction: rtl;
    box-sizing: border-box;
}
body.nb-checkout-page form.checkout > .col2-set::after {
    content: "";
    display: table;
    clear: both;
}
body.nb-checkout-page form.checkout > .col2-set > .col-1,
body.nb-checkout-page form.checkout > .col2-set > .col-2 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}
body.nb-checkout-page form.checkout > .col2-set > .col-2 {
    margin-top: 18px !important;
}
body.nb-checkout-page form.checkout > #order_review_heading {
    width: 48% !important;
    max-width: none !important;
    float: left !important;
    clear: left;
    direction: rtl;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 17px 20px 0;
    color: var(--nb-checkout-ink);
    background: #fff;
    border: 1px solid var(--nb-checkout-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    font-size: 18px;
    font-weight: 950;
}
body.nb-checkout-page form.checkout > #order_review {
    width: 48% !important;
    max-width: none !important;
    float: left !important;
    clear: left;
    direction: rtl;
    box-sizing: border-box;
    position: static;
    margin: 0 !important;
    padding: 10px 18px 18px !important;
    background: #fff !important;
    border: 1px solid var(--nb-checkout-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 14px 36px rgba(31,27,21,.07) !important;
}

body.nb-checkout-page .woocommerce-billing-fields,
body.nb-checkout-page .woocommerce-shipping-fields,
body.nb-checkout-page .woocommerce-additional-fields {
    margin: 0 0 18px;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid var(--nb-checkout-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 36px rgba(31,27,21,.06) !important;
}
body.nb-checkout-page .woocommerce-billing-fields > h3,
body.nb-checkout-page .woocommerce-shipping-fields > h3,
body.nb-checkout-page .woocommerce-additional-fields > h3 {
    margin: 0 0 16px;
    padding: 0 0 13px;
    color: var(--nb-checkout-ink);
    border-bottom: 1px solid var(--nb-checkout-line);
    font-size: 18px;
    font-weight: 950;
}
body.nb-checkout-page .woocommerce-billing-fields > h3::before {
    content: "اطلاعات گیرنده و نشانی تحویل";
    font-size: inherit;
}
body.nb-checkout-page .woocommerce-billing-fields > h3 {
    font-size: 0;
}
body.nb-checkout-page .woocommerce-billing-fields > h3::before {
    font-size: 18px;
}

body.nb-checkout-page .woocommerce-billing-fields__field-wrapper,
body.nb-checkout-page .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.nb-checkout-page .woocommerce form .form-row {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
body.nb-checkout-page .woocommerce form .form-row.form-row-wide,
body.nb-checkout-page #billing_address_1_field,
body.nb-checkout-page #billing_address_2_field,
body.nb-checkout-page #billing_phone_field,
body.nb-checkout-page #billing_country_field {
    grid-column: 1 / -1;
}
body.nb-checkout-page .woocommerce form .form-row label {
    margin: 0 0 7px;
    display: block;
    color: var(--nb-checkout-ink);
    font-size: 12px;
    font-weight: 900;
}
body.nb-checkout-page .woocommerce form .form-row .required {
    color: #b42318;
}
body.nb-checkout-page .woocommerce form .form-row input.input-text,
body.nb-checkout-page .woocommerce form .form-row textarea,
body.nb-checkout-page .woocommerce form .form-row select,
body.nb-checkout-page .select2-container .select2-selection--single {
    min-height: 48px !important;
    border-radius: 12px !important;
}
body.nb-checkout-page .woocommerce form .form-row textarea {
    min-height: 100px !important;
    resize: vertical;
}
body.nb-checkout-page #billing_phone[readonly] {
    color: #5e554a !important;
    background: #f5f1ea !important;
    cursor: not-allowed;
}

body.nb-checkout-page table.woocommerce-checkout-review-order-table {
    margin: 0 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
}
body.nb-checkout-page table.woocommerce-checkout-review-order-table th,
body.nb-checkout-page table.woocommerce-checkout-review-order-table td {
    padding: 12px 8px !important;
    color: var(--nb-checkout-ink);
    font-size: 12px;
    line-height: 1.75;
}
body.nb-checkout-page table.woocommerce-checkout-review-order-table .product-name {
    font-weight: 800;
}
body.nb-checkout-page table.woocommerce-checkout-review-order-table tfoot tr:last-child th,
body.nb-checkout-page table.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    color: var(--nb-checkout-gold-dark);
    font-size: 15px;
    font-weight: 950;
}

body.nb-checkout-page #shipping_method {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 9px;
    list-style: none !important;
    text-align: right !important;
}
body.nb-checkout-page #shipping_method li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}
body.nb-checkout-page #shipping_method li > input[type="radio"] {
    position: absolute;
    top: 17px;
    right: 14px;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    accent-color: var(--nb-checkout-gold);
    z-index: 2;
}
body.nb-checkout-page #shipping_method li > label {
    min-height: 54px;
    margin: 0 !important;
    padding: 13px 43px 10px 12px;
    display: block !important;
    color: var(--nb-checkout-ink) !important;
    background: #fff !important;
    border: 1px solid var(--nb-checkout-line) !important;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.7;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
body.nb-checkout-page #shipping_method li > input[type="radio"]:checked + label {
    color: var(--nb-checkout-gold-dark) !important;
    background: var(--nb-checkout-gold-soft) !important;
    border-color: rgba(189,143,73,.65) !important;
    box-shadow: 0 0 0 3px rgba(189,143,73,.10);
}
body.nb-checkout-page #shipping_method li > label:hover {
    border-color: rgba(189,143,73,.45) !important;
}
body.nb-checkout-page .nb-shipping-rate-description {
    margin: -27px 43px 10px 10px;
    position: relative;
    z-index: 3;
    display: block;
    color: var(--nb-checkout-muted);
    font-size: 10px;
    line-height: 1.65;
    pointer-events: none;
}
body.nb-checkout-page .nb-checkout-postpaid-row th,
body.nb-checkout-page .nb-checkout-postpaid-row td {
    background: #fffaf1;
}
body.nb-checkout-page .nb-checkout-postpaid-row td strong,
body.nb-checkout-page .nb-checkout-postpaid-row td small {
    display: block;
}
body.nb-checkout-page .nb-checkout-postpaid-row td strong {
    color: var(--nb-checkout-gold-dark);
    font-weight: 950;
}
body.nb-checkout-page .nb-checkout-postpaid-row td small {
    margin-top: 3px;
    color: var(--nb-checkout-muted);
    font-size: 10px;
    line-height: 1.65;
}

body.nb-checkout-page .woocommerce-shipping-totals.shipping,
body.nb-checkout-page tr.shipping {
    visibility: visible !important;
    opacity: 1 !important;
}
body.nb-checkout-page .woocommerce-shipping-totals.shipping > th,
body.nb-checkout-page tr.shipping > th {
    width: 92px;
    vertical-align: top;
    padding-top: 18px !important;
}
body.nb-checkout-page .woocommerce-shipping-totals.shipping > td,
body.nb-checkout-page tr.shipping > td {
    min-width: 0;
}

body.nb-checkout-page #payment.woocommerce-checkout-payment {
    margin-top: 14px;
    padding: 14px !important;
    background: var(--nb-checkout-soft) !important;
    border: 1px solid var(--nb-checkout-line) !important;
    border-radius: 14px !important;
}
body.nb-checkout-page #payment ul.payment_methods {
    margin: 0 !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--nb-checkout-line) !important;
}
body.nb-checkout-page #payment .place-order {
    margin: 0 !important;
    padding: 14px 0 0 !important;
}
body.nb-checkout-page #place_order {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 14px !important;
}
body.nb-checkout-page .woocommerce-privacy-policy-text,
body.nb-checkout-page .woocommerce-terms-and-conditions-wrapper {
    color: var(--nb-checkout-muted);
    font-size: 10px;
    line-height: 1.8;
}

body.nb-checkout-page .woocommerce-form-coupon-toggle,
body.nb-checkout-page .woocommerce-form-login-toggle {
    margin: 0 0 12px;
}
body.nb-checkout-page .woocommerce-form-coupon,
body.nb-checkout-page .woocommerce-form-login {
    margin: 0 0 18px !important;
    padding: 16px !important;
}

@media (max-width: 980px) {
    body.nb-checkout-page .woocommerce {
        width: min(100% - 22px, 720px);
        margin-top: 18px !important;
    }
    .nb-checkout-hero {
        padding: 18px;
        grid-template-columns: 1fr auto;
    }
    .nb-checkout-hero-copy {
        grid-column: 1;
        grid-row: 1;
    }
    .nb-checkout-back {
        grid-column: 2;
        grid-row: 1;
    }
    .nb-checkout-safe-note {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    body.nb-checkout-page form.checkout > .col2-set,
    body.nb-checkout-page form.checkout > #order_review_heading,
    body.nb-checkout-page form.checkout > #order_review {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        clear: both !important;
        display: block;
    }
    body.nb-checkout-page form.checkout > #order_review_heading {
        margin-top: 16px !important;
    }
}

@media (max-width: 600px) {
    body.nb-checkout-page .woocommerce {
        width: calc(100% - 12px);
        margin: 8px auto 34px !important;
    }
    .nb-checkout-hero {
        margin-bottom: 10px;
        padding: 11px 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 14px;
    }
    .nb-checkout-back {
        order: 1;
        min-height: 38px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .nb-checkout-hero-copy {
        order: 2;
        width: 100%;
    }
    .nb-checkout-safe-note {
        order: 3;
        width: 100%;
        padding: 9px 10px;
    }
    .nb-checkout-hero-copy small {
        margin-bottom: 2px;
        font-size: 11px;
    }
    .nb-checkout-hero-copy h1 {
        margin-bottom: 3px;
        font-size: 22px;
    }
    .nb-checkout-hero-copy p {
        font-size: 10.5px;
        line-height: 1.75;
    }
    body.nb-checkout-page .woocommerce-form-coupon-toggle,
    body.nb-checkout-page .woocommerce-form-login-toggle {
        margin-bottom: 8px;
    }
    body.nb-checkout-page .woocommerce-form-coupon,
    body.nb-checkout-page .woocommerce-form-login {
        margin-bottom: 10px !important;
        padding: 11px !important;
    }
    body.nb-checkout-page .woocommerce-billing-fields,
    body.nb-checkout-page .woocommerce-shipping-fields,
    body.nb-checkout-page .woocommerce-additional-fields {
        margin-bottom: 9px;
        padding: 12px !important;
        border-radius: 14px !important;
    }
    body.nb-checkout-page .woocommerce-billing-fields > h3,
    body.nb-checkout-page .woocommerce-shipping-fields > h3,
    body.nb-checkout-page .woocommerce-additional-fields > h3 {
        margin-bottom: 10px;
        padding-bottom: 8px;
        font-size: 17px;
    }
    body.nb-checkout-page .woocommerce-billing-fields > h3::before {
        font-size: 17px;
    }
    body.nb-checkout-page .woocommerce-billing-fields__field-wrapper,
    body.nb-checkout-page .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    body.nb-checkout-page .woocommerce form .form-row,
    body.nb-checkout-page .woocommerce form .form-row.form-row-wide,
    body.nb-checkout-page #billing_address_1_field,
    body.nb-checkout-page #billing_address_2_field,
    body.nb-checkout-page #billing_phone_field,
    body.nb-checkout-page #billing_country_field {
        grid-column: 1;
    }
    body.nb-checkout-page .woocommerce form .form-row label {
        margin-bottom: 4px;
        font-size: 11.5px;
        line-height: 1.45;
    }
    body.nb-checkout-page .woocommerce form .form-row input.input-text,
    body.nb-checkout-page .woocommerce form .form-row select,
    body.nb-checkout-page .select2-container .select2-selection--single {
        min-height: 46px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        font-size: 16px !important;
        border-radius: 11px !important;
    }
    body.nb-checkout-page .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 30px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    body.nb-checkout-page .select2-container .select2-selection--single .select2-selection__arrow {
        height: 44px !important;
    }
    body.nb-checkout-page .woocommerce form .form-row textarea {
        min-height: 78px !important;
        padding: 9px 11px !important;
        font-size: 16px !important;
    }
    body.nb-checkout-page form.checkout > #order_review_heading {
        margin-top: 12px !important;
        padding: 12px 12px 0;
        border-radius: 14px 14px 0 0;
        font-size: 16px;
    }
    body.nb-checkout-page form.checkout > #order_review {
        padding: 6px 10px 12px !important;
        border-radius: 0 0 14px 14px !important;
    }
    body.nb-checkout-page table.woocommerce-checkout-review-order-table {
        margin-bottom: 9px !important;
    }
    body.nb-checkout-page table.woocommerce-checkout-review-order-table th,
    body.nb-checkout-page table.woocommerce-checkout-review-order-table td {
        padding: 8px 4px !important;
        font-size: 10.8px;
        line-height: 1.6;
    }
    body.nb-checkout-page #shipping_method {
        gap: 6px;
    }
    body.nb-checkout-page #shipping_method li > label {
        min-height: 48px;
        padding: 10px 39px 8px 10px;
    }
    body.nb-checkout-page #shipping_method li > input[type="radio"] {
        top: 14px;
        right: 12px;
    }
    body.nb-checkout-page .nb-shipping-rate-description {
        margin: -23px 39px 7px 6px;
        font-size: 9px;
    }
    body.nb-checkout-page #payment.woocommerce-checkout-payment {
        margin-top: 10px;
        padding: 10px !important;
    }
    body.nb-checkout-page #payment .place-order {
        padding-top: 10px !important;
    }
    body.nb-checkout-page #place_order {
        min-height: 48px !important;
        font-size: 13px !important;
    }
}

/* Wallet at checkout — v2.12.0 */
.nb-checkout-wallet{display:grid;grid-template-columns:1fr 150px;align-items:center;gap:12px;margin:14px 0;padding:13px;border:1px solid #e1e3e6;border-radius:12px;background:#fffdf4}.nb-checkout-wallet label{font-weight:800;display:flex;align-items:center;gap:8px}.nb-checkout-wallet input[type=number]{height:42px;border:1px solid #c3c4c7;border-radius:9px;padding:0 10px;font-size:16px}@media(max-width:600px){.nb-checkout-wallet{grid-template-columns:1fr}.nb-checkout-wallet input[type=number]{width:100%}}

/* ==================================================
 * Global brand interaction guard — v2.14.73
 * Prevent theme/browser blue states across Naghshbaf UI.
 * ================================================== */
:root {
    --nb-brand-state-gold: #bd8f49;
    --nb-brand-state-gold-dark: #a97935;
    --nb-brand-state-gold-soft: #f7f1e7;
    --nb-brand-state-ink: #17243b;
    --nb-brand-state-danger: #b42318;
    --nb-brand-state-ring: 0 0 0 3px rgba(189,143,73,.16);
}

/* Gold native controls and remove the iOS/Android blue tap flash. */
body :is(.nb-site-header,.nb-app,.nb-site-footer,.nb-account-drawer,.nb-cart-drawer,.nb-footer-drawer,.nb-confirm-dialog)
:is(button,a,[role="button"],summary,input,select,textarea,label) {
    -webkit-tap-highlight-color: rgba(189,143,73,.12) !important;
}
body :is(.nb-site-header,.nb-app,.nb-site-footer,.nb-account-drawer,.nb-cart-drawer,.nb-footer-drawer,.nb-confirm-dialog)
:is(input[type="checkbox"],input[type="radio"],input[type="range"],progress) {
    accent-color: var(--nb-brand-state-gold) !important;
}
body :is(.nb-site-header,.nb-app,.nb-site-footer,.nb-account-drawer,.nb-cart-drawer,.nb-footer-drawer,.nb-confirm-dialog)
:is(input,select,textarea):focus {
    border-color: var(--nb-brand-state-gold) !important;
    outline: 0 !important;
    box-shadow: var(--nb-brand-state-ring) !important;
}

/* Shared focus ring: always gold, never browser/theme blue. */
body :is(.nb-site-header,.nb-app,.nb-site-footer,.nb-account-drawer,.nb-cart-drawer,.nb-footer-drawer,.nb-confirm-dialog)
:is(button,a,[role="button"],summary,input[type="button"],input[type="submit"],input[type="reset"]):focus-visible {
    outline: 2px solid rgba(189,143,73,.72) !important;
    outline-offset: 2px !important;
    box-shadow: var(--nb-brand-state-ring) !important;
}

/* Neutral/secondary controls keep the cream + navy brand state. */
body :is(
    .nb-header-support,
    .nb-header-action,
    .nb-category-back,
    .nb-category-close,
    .nb-filter-reset,
    .nb-load-more,
    .nb-central-back,
    .nb-service-cancel,
    .nb-service-inline-back,
    .nb-curtain-add-window,
    .nb-curtain-builder-cancel,
    .nb-curtain-picker-more,
    .nb-curtain-photo-select,
    .nb-cart-drawer-secondary,
    .nb-cart-drawer-close,
    .nb-checkout-back,
    .nb-account-toggle,
    .nb-account-close,
    .nb-account-auth-back,
    .nb-account-resend,
    .nb-footer-toggle,
    .nb-footer-drawer-close,
    .nb-product-smart-back,
    .nb-retailer-skip-books,
    .nb-confirm-cancel,
    .nb-qty-button,
    .nb-window-add
):is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"],[aria-pressed="true"]) {
    color: var(--nb-brand-state-ink) !important;
    background-color: var(--nb-brand-state-gold-soft) !important;
    background-image: none !important;
    border-color: rgba(189,143,73,.60) !important;
    text-shadow: none !important;
    outline: 0 !important;
    box-shadow: var(--nb-brand-state-ring) !important;
}

/* The support button was the remaining visible blue leak. */
body .nb-site-header .nb-header-support,
body .nb-site-header .nb-header-support:hover,
body .nb-site-header .nb-header-support:focus,
body .nb-site-header .nb-header-support:focus-visible,
body .nb-site-header .nb-header-support:active {
    color: var(--nb-brand-state-ink) !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}
body .nb-site-header .nb-header-support[aria-expanded="true"],
body .nb-site-header .nb-header-support[aria-expanded="true"]:hover,
body .nb-site-header .nb-header-support[aria-expanded="true"]:focus,
body .nb-site-header .nb-header-support[aria-expanded="true"]:focus-visible,
body .nb-site-header .nb-header-support[aria-expanded="true"]:active {
    color: var(--nb-brand-state-ink) !important;
    background-color: var(--nb-brand-state-gold-soft) !important;
    background-image: none !important;
    border-color: rgba(189,143,73,.55) !important;
    box-shadow: 0 7px 18px rgba(69,49,23,.10), var(--nb-brand-state-ring) !important;
}
body .nb-site-header .nb-header-support[aria-expanded="true"] .nb-support-icon {
    color: #fff !important;
    background-color: var(--nb-brand-state-gold) !important;
}
body .nb-site-header .nb-header-support .nb-support-label,
body .nb-site-header .nb-header-support:is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"]) .nb-support-label {
    color: var(--nb-brand-state-ink) !important;
}

/* Primary controls remain gold in every interactive state. */
body :is(
    .nb-category-toggle,
    .nb-filter-submit,
    .nb-service-submit,
    .nb-service-builder-button,
    .nb-curtain-calculate,
    .nb-cart-drawer-checkout,
    .nb-product-card-button,
    .nb-sku-card-button,
    .nb-confirm-accept,
    .nb-revision-refund-submit
):is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"],[aria-pressed="true"]),
body :is(.nb-project-chip,.nb-project-request-card,.nb-retailer-book-card,.nb-service-goal-card).is-selected {
    color: #fff !important;
    background-color: var(--nb-brand-state-gold-dark) !important;
    background-image: none !important;
    border-color: var(--nb-brand-state-gold-dark) !important;
    text-shadow: none !important;
    outline: 0 !important;
    box-shadow: var(--nb-brand-state-ring) !important;
}

/* Dark brand actions stay navy rather than inheriting theme blue. */
body :is(
    .nb-sku-button,
    .nb-card-add-to-cart,
    .nb-service-return,
    .nb-wallet-primary-button
):is(:hover,:focus,:focus-visible,:active) {
    color: #fff !important;
    background-color: var(--nb-brand-state-ink) !important;
    background-image: none !important;
    border-color: var(--nb-brand-state-ink) !important;
    text-shadow: none !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(23,36,59,.12) !important;
}

/* Destructive controls remain red; never blue. */
body :is(
    .nb-window-remove,
    .nb-cart-drawer-empty-all,
    .nb-cart-drawer-remove,
    .nb-account-logout-accept,
    [data-nb-account-logout]
):is(:hover,:focus,:focus-visible,:active) {
    color: #fff !important;
    background-color: var(--nb-brand-state-danger) !important;
    background-image: none !important;
    border-color: var(--nb-brand-state-danger) !important;
    text-shadow: none !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(180,35,24,.14) !important;
}

/* Contact menu links also keep brand colours in all states. */
body .nb-site-header .nb-support-item,
body .nb-site-header .nb-support-item:visited,
body .nb-site-header .nb-support-item:hover,
body .nb-site-header .nb-support-item:focus,
body .nb-site-header .nb-support-item:focus-visible,
body .nb-site-header .nb-support-item:active {
    color: var(--nb-brand-state-ink) !important;
    background-image: none !important;
    text-decoration: none !important;
}
body .nb-site-header .nb-support-item:is(:hover,:focus,:focus-visible,:active) {
    background-color: var(--nb-brand-state-gold-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(189,143,73,.18) !important;
}
