/* =============================================================================
   NexArt Checkout — Premium Dark Design
   Scope : body.nexart-checkout-active  |  body.nexart-order-received-active
   WooCommerce shortcode [woocommerce_checkout] — NO template overrides.
   ============================================================================= */

/* ── 1. PAGE SETUP ─────────────────────────────────────────────────────────── */

body.nexart-checkout-active,
body.nexart-order-received-active {
    background: var(--nx-bg) !important;
    color: var(--nx-text);
    font-family: var(--nx-font);
    -webkit-font-smoothing: antialiased;
}

/* Hide OceanWP chrome — same pattern as other NexArt pages */
body.nexart-checkout-active #site-header,
body.nexart-checkout-active .site-header,
body.nexart-checkout-active #top-bar-wrap,
body.nexart-checkout-active #top-bar,
body.nexart-checkout-active .page-header,
body.nexart-checkout-active .entry-header,
body.nexart-checkout-active .page-header-title,
body.nexart-checkout-active header.page-header,
body.nexart-checkout-active .page-header-inner,
body.nexart-checkout-active #breadcrumbs,
body.nexart-checkout-active .oceanwp-breadcrumbs,
body.nexart-checkout-active #footer-widgets,
body.nexart-checkout-active .site-footer,
body.nexart-checkout-active #footer,
body.nexart-checkout-active footer.oceanwp-footer,
body.nexart-checkout-active #sidebar,
body.nexart-checkout-active aside#secondary,
body.nexart-checkout-active .widget-area,
body.nexart-checkout-active .sidebar-container,
body.nexart-order-received-active #site-header,
body.nexart-order-received-active .site-header,
body.nexart-order-received-active #top-bar-wrap,
body.nexart-order-received-active #top-bar,
body.nexart-order-received-active .page-header,
body.nexart-order-received-active .entry-header,
body.nexart-order-received-active .page-header-title,
body.nexart-order-received-active header.page-header,
body.nexart-order-received-active .page-header-inner,
body.nexart-order-received-active #breadcrumbs,
body.nexart-order-received-active .oceanwp-breadcrumbs,
body.nexart-order-received-active #footer-widgets,
body.nexart-order-received-active .site-footer,
body.nexart-order-received-active #footer,
body.nexart-order-received-active footer.oceanwp-footer,
body.nexart-order-received-active #sidebar,
body.nexart-order-received-active aside#secondary,
body.nexart-order-received-active .widget-area,
body.nexart-order-received-active .sidebar-container {
    display: none !important;
}

body.nexart-checkout-active .content-area,
body.nexart-checkout-active #primary,
body.nexart-order-received-active .content-area,
body.nexart-order-received-active #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.nexart-checkout-active #page,
body.nexart-checkout-active .site,
body.nexart-checkout-active #content,
body.nexart-order-received-active #page,
body.nexart-order-received-active .site,
body.nexart-order-received-active #content {
    background: var(--nx-bg) !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.nexart-checkout-active .entry-content,
body.nexart-order-received-active .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ── 2. CHECKOUT WRAPPER ───────────────────────────────────────────────────── */

body.nexart-checkout-active .nexart-checkout-wrap,
body.nexart-order-received-active .nexart-checkout-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

body.nexart-order-received-active .nexart-checkout-wrap {
    width: 100%;
    max-width: none;
    padding: 0 0 80px;
}

/* ── 3. CHECKOUT INTRO HEADER ──────────────────────────────────────────────── */

.nexart-checkout-header {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--nx-border);
    margin-bottom: 40px;
}

.nexart-checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nx-gold);
    margin-bottom: 18px;
}

.nexart-checkout-eyebrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--nx-gold);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.nexart-checkout-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--nx-text);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 12px;
}

.nexart-checkout-subtitle {
    font-size: 15px;
    color: var(--nx-text-soft);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 540px;
}

.nexart-checkout-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.nexart-checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nexart-checkout-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(217,164,65,0.10);
    border: 1px solid rgba(217,164,65,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nexart-checkout-trust-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--nx-gold);
    fill: none;
    stroke-width: 2;
}

.nexart-checkout-trust-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    line-height: 1.2;
}

.nexart-checkout-trust-text span {
    display: block;
    font-size: 11px;
    color: var(--nx-text-mid);
    line-height: 1.3;
}

/* ── 4. TWO-COLUMN GRID ────────────────────────────────────────────────────── */

body.nexart-checkout-active form.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    column-gap: 28px;
    align-items: start;
}

/* Left-column items (JS creates shipping + payment cards as form siblings) */
body.nexart-checkout-active .nexart-contact-section,
body.nexart-checkout-active #customer_details,
body.nexart-checkout-active #nexart-shipping-card,
body.nexart-checkout-active #nexart-payment-card {
    grid-column: 1;
    grid-row: auto;
}

/* Override OceanWP: float:right + width:48% break our CSS Grid */
body.nexart-checkout-active h3#order_review_heading,
body.nexart-checkout-active #order_review {
    float: none !important;
    width: 100% !important;
}

body.nexart-checkout-active #order_review_heading {
    grid-column: 2;
    grid-row: 1;
}

body.nexart-checkout-active #order_review {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
    top: 92px;
}

/* OceanWP sets .woocommerce-checkout > .col2-set { float:left; width:48% } — crush it */
body.nexart-checkout-active .woocommerce-checkout > .col2-set,
body.nexart-checkout-active #customer_details.col2-set {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

body.nexart-checkout-active #customer_details .col-1,
body.nexart-checkout-active #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* ── 5. SECTION CARDS ──────────────────────────────────────────────────────── */

/* Hide shipping-fields card when it has no visible children (empty div edge case) */
body.nexart-checkout-active .woocommerce-shipping-fields:empty {
    display: none !important;
}

body.nexart-checkout-active .woocommerce-billing-fields,
body.nexart-checkout-active .woocommerce-shipping-fields,
body.nexart-checkout-active .woocommerce-additional-fields {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 18px;
}

/* Section heading — numbered badge */
body.nexart-checkout-active .woocommerce-billing-fields > h3,
body.nexart-checkout-active .woocommerce-shipping-fields > h3,
body.nexart-checkout-active .woocommerce-additional-fields > h3,
body.nexart-checkout-active #ship-to-different-address label,
body.nexart-checkout-active h3#ship-to-different-address {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 16px;
    font-weight: 700;
    color: var(--nx-text);
    letter-spacing: -.01em;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    background: none;
}

body.nexart-checkout-active .woocommerce-billing-fields > h3::before {
    content: "2";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--nx-gold);
    color: var(--nx-gold);
    font-size: 12px;
    font-weight: 700;
    background: rgba(217,164,65,0.08);
    flex-shrink: 0;
}

body.nexart-checkout-active .woocommerce-shipping-fields > h3::before,
body.nexart-checkout-active #ship-to-different-address::before {
    content: "2";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--nx-gold);
    color: var(--nx-gold);
    font-size: 12px;
    font-weight: 700;
    background: rgba(217,164,65,0.08);
    flex-shrink: 0;
}

/* Ship-to-different address label/checkbox row */
body.nexart-checkout-active #ship-to-different-address {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nx-text);
    cursor: pointer;
    padding: 0;
    margin: 0 0 16px;
}

body.nexart-checkout-active #ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--nx-gold);
    flex-shrink: 0;
}

body.nexart-checkout-active .woocommerce-additional-fields > h3::before {
    content: "3";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--nx-gold);
    color: var(--nx-gold);
    font-size: 12px;
    font-weight: 700;
    background: rgba(217,164,65,0.08);
    flex-shrink: 0;
}

/* ── 6. FORM ROWS ──────────────────────────────────────────────────────────── */

/* Override OceanWP's .woocommerce-checkout form .form-row-first { width:47%; float:left }
   We need a higher specificity (0,3,2) to beat OceanWP's (0,2,1) when both use !important */
body.nexart-checkout-active form.woocommerce-checkout .form-row-first,
body.nexart-checkout-active form.woocommerce-checkout .form-row-last,
body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper .form-row-first,
body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper .form-row-last,
body.nexart-checkout-active .form-row-first,
body.nexart-checkout-active .form-row-last {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.nexart-checkout-active .form-row {
    margin-bottom: 14px;
}

body.nexart-checkout-active .form-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--nx-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 7px;
}

/* Required star */
body.nexart-checkout-active .form-row label .required,
body.nexart-checkout-active .form-row label abbr.required {
    color: var(--nx-gold);
    text-decoration: none;
    margin-left: 2px;
    font-size: 13px;
}

body.nexart-checkout-active .form-row input[type="text"],
body.nexart-checkout-active .form-row input[type="email"],
body.nexart-checkout-active .form-row input[type="tel"],
body.nexart-checkout-active .form-row input[type="number"],
body.nexart-checkout-active .form-row input[type="password"],
body.nexart-checkout-active .form-row textarea,
body.nexart-checkout-active .form-row select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--nx-border-md);
    border-radius: 10px;
    color: var(--nx-text);
    font-family: var(--nx-font);
    font-size: 14px;
    padding: 13px 15px;
    outline: none;
    transition: border-color var(--nx-transition), box-shadow var(--nx-transition);
    -webkit-appearance: none;
    appearance: none;
}

body.nexart-checkout-active .form-row input::placeholder,
body.nexart-checkout-active .form-row textarea::placeholder {
    color: rgba(245,245,245,0.30);
}

body.nexart-checkout-active .form-row input:focus,
body.nexart-checkout-active .form-row textarea:focus,
body.nexart-checkout-active .form-row select:focus {
    border-color: rgba(217,164,65,0.70);
    box-shadow: 0 0 0 3px rgba(217,164,65,0.10);
}

body.nexart-checkout-active .form-row.woocommerce-invalid input,
body.nexart-checkout-active .form-row.woocommerce-invalid select {
    border-color: rgba(220,60,60,0.70);
    box-shadow: 0 0 0 3px rgba(220,60,60,0.10);
}

body.nexart-checkout-active .form-row.woocommerce-validated input,
body.nexart-checkout-active .form-row.woocommerce-validated select {
    border-color: rgba(80,200,120,0.60);
}

/* Two-col layout inside billing fields
   Specificity (1,2,1) beats WC/OceanWP class-only selectors (0,x,x) */
body.nexart-checkout-active #customer_details .woocommerce-billing-fields__field-wrapper,
body.nexart-checkout-active #customer_details .woocommerce-shipping-fields__field-wrapper,
body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper,
body.nexart-checkout-active .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 16px !important;
    overflow: visible !important;
    flex-wrap: unset !important;
}

body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper .form-row-wide,
body.nexart-checkout-active .woocommerce-shipping-fields__field-wrapper .form-row-wide,
body.nexart-checkout-active #billing_address_1_field,
body.nexart-checkout-active #billing_address_2_field,
body.nexart-checkout-active #billing_country_field,
body.nexart-checkout-active #shipping_address_1_field,
body.nexart-checkout-active #shipping_address_2_field,
body.nexart-checkout-active #shipping_country_field {
    grid-column: 1 / -1;
}

/* ── 7. SELECT2 ────────────────────────────────────────────────────────────── */

body.nexart-checkout-active .select2-container .select2-selection--single {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 10px !important;
    height: 46px !important;
    outline: none !important;
    transition: border-color var(--nx-transition), box-shadow var(--nx-transition);
}

body.nexart-checkout-active .select2-container--open .select2-selection--single,
body.nexart-checkout-active .select2-container--focus .select2-selection--single {
    border-color: rgba(217,164,65,0.70) !important;
    box-shadow: 0 0 0 3px rgba(217,164,65,0.10) !important;
}

body.nexart-checkout-active .select2-selection__rendered {
    color: var(--nx-text) !important;
    line-height: 46px !important;
    padding: 0 40px 0 15px !important;
    font-size: 14px !important;
    font-family: var(--nx-font) !important;
}

body.nexart-checkout-active .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

body.nexart-checkout-active .select2-selection__arrow b {
    border-color: var(--nx-text-mid) transparent transparent transparent !important;
}

body.nexart-checkout-active .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--nx-gold) transparent !important;
}

body.nexart-checkout-active .select2-dropdown {
    background: #161616 !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5) !important;
    overflow: hidden;
}

body.nexart-checkout-active .select2-search--dropdown .select2-search__field {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 6px !important;
    color: var(--nx-text) !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-family: var(--nx-font) !important;
    outline: none !important;
}

body.nexart-checkout-active .select2-results__option {
    color: var(--nx-text-soft) !important;
    font-size: 14px !important;
    font-family: var(--nx-font) !important;
    padding: 10px 15px !important;
    transition: background var(--nx-transition), color var(--nx-transition);
}

body.nexart-checkout-active .select2-results__option--highlighted {
    background: rgba(217,164,65,0.14) !important;
    color: var(--nx-gold-light) !important;
}

body.nexart-checkout-active .select2-results__option[aria-selected="true"] {
    background: rgba(217,164,65,0.10) !important;
    color: var(--nx-gold) !important;
}

/* ── 8. ORDER REVIEW HEADING ───────────────────────────────────────────────── */

body.nexart-checkout-active #order_review_heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--nx-text);
    letter-spacing: -.01em;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
}

/* ── 8b. ORDER REVIEW HEADING INSIDE THE PANEL (after JS prependTo) ────────── */

/* When #order_review_heading is moved inside #order_review by nexart-checkout.js */
body.nexart-checkout-active #order_review > #order_review_heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--nx-border) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--nx-text) !important;
    letter-spacing: -.01em;
    background: transparent !important;
    grid-column: unset !important;
    grid-row: unset !important;
}

/* Prevent duplicate blocks from rendering (WC AJAX / fragments duplication guard) */
body.nexart-checkout-active #order_review .nexart-coupon-section ~ .nexart-coupon-section,
body.nexart-checkout-active #order_review .nexart-return-callout ~ .nexart-return-callout,
body.nexart-checkout-active #order_review .nexart-order-summary-actions ~ .nexart-order-summary-actions,
body.nexart-checkout-active #order_review .nexart-co-ship-estimate ~ .nexart-co-ship-estimate {
    display: none !important;
}

/* ── 9. ORDER REVIEW PANEL ─────────────────────────────────────────────────── */

body.nexart-checkout-active #order_review {
    background: rgba(255,255,255,0.028) !important;
    border: 1px solid var(--nx-border-md);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
}

/* Force transparent backgrounds on all table elements — overrides OceanWP/WC white */
body.nexart-checkout-active .woocommerce-checkout-review-order-table,
body.nexart-checkout-active .woocommerce-checkout-review-order-table thead,
body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody,
body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot,
body.nexart-checkout-active .woocommerce-checkout-review-order-table tr,
body.nexart-checkout-active .woocommerce-checkout-review-order-table td,
body.nexart-checkout-active .woocommerce-checkout-review-order-table th {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Panel inner content area */
body.nexart-checkout-active #order_review > * {
    padding-left: 26px;
    padding-right: 26px;
}

body.nexart-checkout-active .woocommerce-checkout-review-order {
    padding: 0;
}

/* Order review table */
body.nexart-checkout-active .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table thead,
body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot {
    display: table;
    width: 100%;
    table-layout: fixed;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table thead {
    border-bottom: 1px solid var(--nx-border);
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table thead th {
    padding: 18px 26px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--nx-text-mid);
    text-align: left;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table thead th:last-child {
    text-align: right;
}

/* Scrollable product list — scrollbar only appears when needed */
body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody {
    display: block;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody::-webkit-scrollbar {
    width: 3px;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody::-webkit-scrollbar-track {
    background: transparent;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Product rows */
body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-bottom: 1px solid var(--nx-border);
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody .cart_item td {
    padding: 16px 26px;
    vertical-align: middle;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    width: 65%;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .product-name .product-quantity {
    color: var(--nx-gold);
    font-weight: 700;
    font-size: 12px;
    margin-right: 4px;
}

/* Product variation/meta — cascade fallback (overridden by nexart-review-item-body rules below) */
body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation,
body.nexart-checkout-active .woocommerce-checkout-review-order-table .wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
    align-items: center;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dt {
    display: none;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dd {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 2px 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(245,245,245,0.72);
    white-space: nowrap;
    line-height: 1.5;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dt p,
body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dd p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dt::after,
body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dd::after,
body.nexart-checkout-active .woocommerce-checkout-review-order-table .variation dd:last-child::after {
    content: "" !important;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: var(--nx-text);
    font-size: 14px;
    white-space: nowrap;
}

/* Totals tfoot */
body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr {
    border-top: 1px solid var(--nx-border);
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr td,
body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr th {
    padding: 12px 26px;
    font-size: 13px;
    color: var(--nx-text-soft);
    vertical-align: middle;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr th {
    font-weight: 600;
    text-align: left;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr td {
    text-align: right;
}

/* Subtotal row */
body.nexart-checkout-active .cart-subtotal th,
body.nexart-checkout-active .cart-subtotal td {
    padding-top: 18px !important;
}

/* Shipping row */
body.nexart-checkout-active .woocommerce-shipping-totals th,
body.nexart-checkout-active .woocommerce-shipping-totals td {
    color: var(--nx-text-soft) !important;
}

/* Total row */
body.nexart-checkout-active .order-total th,
body.nexart-checkout-active .order-total td {
    padding: 18px 26px !important;
    border-top: 1px solid var(--nx-border-md) !important;
}

body.nexart-checkout-active .order-total th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--nx-text) !important;
}

body.nexart-checkout-active .order-total td {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--nx-gold) !important;
    letter-spacing: -.02em;
}

body.nexart-checkout-active .order-total td small,
body.nexart-checkout-active .order-total td .woocommerce-Price-amount,
body.nexart-checkout-active .order-total .includes_tax {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: var(--nx-text-mid) !important;
    display: block;
    letter-spacing: 0;
}

/* FREE shipping label */
body.nexart-checkout-active .woocommerce-shipping-totals .woocommerce-Price-amount,
body.nexart-checkout-active .shipping-free-text {
    color: var(--nx-gold-light);
    font-weight: 600;
}

/* ── 10. COUPON SECTION ────────────────────────────────────────────────────── */

body.nexart-checkout-active .woocommerce-form-coupon-toggle {
    padding: 0 26px;
    margin: 0;
    border-top: 1px solid var(--nx-border);
    border-bottom: 1px solid var(--nx-border);
}

body.nexart-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info {
    background: transparent !important;
    border: none !important;
    color: var(--nx-text-soft) !important;
    font-size: 13px !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

body.nexart-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}

body.nexart-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info a,
body.nexart-checkout-active .woocommerce-form-coupon-toggle a.showcoupon {
    color: var(--nx-text-soft) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0;
}

body.nexart-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info a:hover,
body.nexart-checkout-active .woocommerce-form-coupon-toggle a.showcoupon:hover {
    color: var(--nx-gold) !important;
}

body.nexart-checkout-active .checkout_coupon {
    padding: 0 26px 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.nexart-checkout-active .checkout_coupon .form-row {
    flex: 1;
    min-width: 140px;
    margin: 0;
}

body.nexart-checkout-active .checkout_coupon input[name="coupon_code"] {
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
}

body.nexart-checkout-active .checkout_coupon button[name="apply_coupon"] {
    background: transparent;
    border: 1px solid var(--nx-gold);
    border-radius: 10px;
    color: var(--nx-gold);
    font-family: var(--nx-font);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--nx-transition), color var(--nx-transition);
    height: 46px;
    align-self: center;
}

body.nexart-checkout-active .checkout_coupon button[name="apply_coupon"]:hover {
    background: var(--nx-gold);
    color: #000;
}

/* Applied coupon chip */
body.nexart-checkout-active .cart-discount td {
    color: var(--nx-gold-light) !important;
    font-weight: 600;
}

/* ── 10b. SHIPPING ESTIMATE UNDER TOTAL ────────────────────────────────────── */

body.nexart-checkout-active .nexart-co-ship-estimate {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    background: rgba(217,164,65,0.05);
    border-top: 1px solid var(--nx-border);
    font-size: 12px;
    color: var(--nx-text-mid);
    line-height: 1.4;
}

body.nexart-checkout-active .nexart-co-ship-estimate svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--nx-gold);
}

body.nexart-checkout-active .nexart-co-ship-estimate strong {
    color: var(--nx-text-soft);
    font-weight: 600;
}

/* ── 11. TRUST BLOCK IN ORDER REVIEW ───────────────────────────────────────── */

.nexart-checkout-trust-block {
    margin: 0;
    padding: 20px 26px;
    border-top: 1px solid var(--nx-border);
}

/* Trust block sits inside a <tr> — reset cell defaults */
body.nexart-checkout-active .nexart-trust-tr td {
    padding: 0 !important;
    border-top: 1px solid var(--nx-border) !important;
}

.nexart-checkout-trust-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.nexart-checkout-trust-block-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nexart-checkout-trust-block-item-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(217,164,65,0.08);
    border: 1px solid rgba(217,164,65,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.nexart-checkout-trust-block-item-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--nx-gold);
    fill: none;
    stroke-width: 2;
}

.nexart-checkout-trust-block-item-text strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--nx-text);
    line-height: 1.3;
}

.nexart-checkout-trust-block-item-text span {
    display: block;
    font-size: 11px;
    color: var(--nx-text-mid);
    line-height: 1.4;
}

.nexart-checkout-guarantee-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(217,164,65,0.07);
    border: 1px solid rgba(217,164,65,0.18);
    border-radius: 10px;
    padding: 14px 16px;
}

.nexart-checkout-guarantee-note svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    stroke: var(--nx-gold);
    fill: none;
    stroke-width: 2;
    margin-top: 1px;
}

.nexart-checkout-guarantee-note p {
    font-size: 12px;
    color: var(--nx-text-soft);
    line-height: 1.55;
    margin: 0;
}

/* ── 12. PAYMENT METHODS ───────────────────────────────────────────────────── */

body.nexart-checkout-active #payment {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

body.nexart-checkout-active #payment .payment_methods {
    list-style: none;
    margin: 0;
    padding: 16px 26px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.nexart-checkout-active #payment .payment_methods > li.payment_method {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--nx-border-md);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--nx-transition);
    padding: 0;
    margin: 0;
    list-style: none;
}

body.nexart-checkout-active #payment .payment_methods > li.payment_method:has(input[type="radio"]:checked) {
    border-color: var(--nx-border-gold);
    background: rgba(217,164,65,0.04);
}

body.nexart-checkout-active #payment .payment_methods > li label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text);
    user-select: none;
    width: 100%;
}

body.nexart-checkout-active #payment .payment_methods > li label img {
    max-height: 22px;
    width: auto;
    margin-left: auto;
    opacity: .85;
}

body.nexart-checkout-active #payment .payment_methods input[type="radio"] {
    accent-color: var(--nx-gold);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Payment description box — dark, not white */
body.nexart-checkout-active #payment .payment_box {
    background: rgba(255,255,255,0.03) !important;
    border-top: 1px solid var(--nx-border) !important;
    border-radius: 0 0 12px 12px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    color: var(--nx-text-soft) !important;
    font-size: 13px !important;
}

body.nexart-checkout-active #payment .payment_box p {
    color: var(--nx-text-soft) !important;
    font-size: 13px !important;
    margin: 0 0 8px !important;
}

body.nexart-checkout-active #payment .payment_box p:last-child {
    margin-bottom: 0 !important;
}

body.nexart-checkout-active #payment .payment_box input,
body.nexart-checkout-active #payment .payment_box select,
body.nexart-checkout-active #payment .payment_box iframe {
    background: rgba(255,255,255,0.06) !important;
    border-color: var(--nx-border-md) !important;
    color: var(--nx-text) !important;
    border-radius: 8px !important;
}

/* Payment icons in list (Stripe/Mollie card icons) */
body.nexart-checkout-active #payment .payment_methods li .about_paypal {
    font-size: 11px;
    color: var(--nx-text-mid);
    margin-left: 4px;
    font-style: italic;
    font-weight: 400;
}

/* ── 13. TERMS & PLACE ORDER ───────────────────────────────────────────────── */

body.nexart-checkout-active .woocommerce-terms-and-conditions-wrapper {
    padding: 18px 26px 0;
}

body.nexart-checkout-active .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--nx-text-soft);
    cursor: pointer;
    line-height: 1.5;
}

body.nexart-checkout-active .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--nx-gold);
    margin-top: 2px;
    cursor: pointer;
}

body.nexart-checkout-active .woocommerce-form__label-for-checkbox a {
    color: var(--nx-gold) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.nexart-checkout-active .woocommerce-terms-and-conditions {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--nx-border) !important;
    border-radius: 8px !important;
    padding: 14px !important;
    color: var(--nx-text-soft) !important;
    font-size: 12px !important;
    max-height: 160px;
    overflow-y: auto;
}

body.nexart-checkout-active .place-order {
    padding: 18px 26px 26px;
}

body.nexart-checkout-active #place_order {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #d9a441 0%, #c8952e 100%);
    border: none;
    border-radius: 12px;
    color: #0a0700;
    font-family: var(--nx-font);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
    padding: 18px 24px;
    cursor: pointer;
    text-align: center;
    transition: filter var(--nx-transition), transform var(--nx-transition), box-shadow var(--nx-transition);
    box-shadow: 0 4px 20px rgba(217,164,65,0.28);
    position: relative;
    overflow: hidden;
}

body.nexart-checkout-active #place_order:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(217,164,65,0.38);
}

body.nexart-checkout-active #place_order:active {
    transform: translateY(0);
    filter: brightness(.96);
}

body.nexart-checkout-active #place_order::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}

/* Encryption note below place order */
body.nexart-checkout-active .nexart-checkout-encrypt-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--nx-text-mid);
    margin-top: 12px;
}

body.nexart-checkout-active .nexart-checkout-encrypt-note svg {
    width: 13px;
    height: 13px;
    stroke: var(--nx-text-mid);
    fill: none;
    stroke-width: 2;
}

/* ── 14. WOOCOMMERCE NOTICES ───────────────────────────────────────────────── */

body.nexart-checkout-active .woocommerce-error,
body.nexart-checkout-active .woocommerce-message,
body.nexart-checkout-active .woocommerce-info {
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
    padding: 14px 18px 14px 24px !important;
    margin-bottom: 18px !important;
    font-size: 13px !important;
    font-family: var(--nx-font) !important;
    color: var(--nx-text) !important;
    border-top: none !important;
    border-left: 3px solid transparent !important;
    list-style: none !important;
}

body.nexart-checkout-active .woocommerce-error {
    border-left-color: rgba(220,60,60,0.80) !important;
    background: rgba(220,60,60,0.06) !important;
}

body.nexart-checkout-active .woocommerce-message {
    border-left-color: rgba(80,200,120,0.80) !important;
    background: rgba(80,200,120,0.06) !important;
}

body.nexart-checkout-active .woocommerce-info {
    border-left-color: rgba(217,164,65,0.70) !important;
}

body.nexart-checkout-active .woocommerce-error::before,
body.nexart-checkout-active .woocommerce-message::before,
body.nexart-checkout-active .woocommerce-info::before {
    display: none !important;
}

body.nexart-checkout-active .woocommerce-error a,
body.nexart-checkout-active .woocommerce-message a,
body.nexart-checkout-active .woocommerce-info a {
    color: var(--nx-gold) !important;
    font-weight: 600;
    text-decoration: none;
}

body.nexart-checkout-active .woocommerce-error li {
    margin-bottom: 4px;
    list-style: disc inside;
    color: var(--nx-text);
}

/* ── 15. ORDER RECEIVED / THANK YOU ────────────────────────────────────────── */

body.nexart-order-received-active .nexart-checkout-wrap {
    padding-top: 60px;
}

body.nexart-order-received-active .woocommerce-order {
    max-width: 800px;
    margin: 0 auto;
}

body.nexart-order-received-active .woocommerce-order-received h2,
body.nexart-order-received-active .woocommerce-thankyou-order-received {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--nx-text);
    letter-spacing: -.02em;
    margin-bottom: 28px;
    text-align: center;
}

body.nexart-order-received-active .woocommerce-notice--success {
    background: rgba(80,200,120,0.08) !important;
    border: 1px solid rgba(80,200,120,0.22) !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    color: var(--nx-text) !important;
    font-size: 15px !important;
    text-align: center;
    margin-bottom: 32px !important;
}

body.nexart-order-received-active .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0 0 32px !important;
    padding: 0 !important;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 14px;
    overflow: hidden;
}

body.nexart-order-received-active .woocommerce-order-overview li {
    flex: 1;
    min-width: 140px;
    padding: 20px 22px;
    border-right: 1px solid var(--nx-border);
    font-size: 12px;
    color: var(--nx-text-mid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
}

body.nexart-order-received-active .woocommerce-order-overview li:last-child {
    border-right: none;
}

body.nexart-order-received-active .woocommerce-order-overview li strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--nx-text);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
}

body.nexart-order-received-active .woocommerce-order-details,
body.nexart-order-received-active .woocommerce-customer-details {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 22px;
}

body.nexart-order-received-active .woocommerce-order-details__title,
body.nexart-order-received-active .woocommerce-column__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-text);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--nx-border);
    padding-bottom: 12px;
}

body.nexart-order-received-active .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

body.nexart-order-received-active .woocommerce-table--order-details th,
body.nexart-order-received-active .woocommerce-table--order-details td {
    padding: 10px 0;
    border-bottom: 1px solid var(--nx-border);
    color: var(--nx-text-soft);
    vertical-align: middle;
}

body.nexart-order-received-active .woocommerce-table--order-details th {
    font-weight: 600;
    color: var(--nx-text);
    text-align: left;
    width: 60%;
}

body.nexart-order-received-active .woocommerce-table--order-details td {
    text-align: right;
}

body.nexart-order-received-active .woocommerce-table--order-details tfoot tr:last-child th,
body.nexart-order-received-active .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 17px;
    font-weight: 800;
    color: var(--nx-gold);
    border-bottom: none;
    padding-top: 14px;
}

body.nexart-order-received-active address {
    font-size: 13px;
    color: var(--nx-text-soft);
    line-height: 1.7;
    font-style: normal;
}

body.nexart-order-received-active .woocommerce-customer-details--phone,
body.nexart-order-received-active .woocommerce-customer-details--email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nx-text-soft);
    margin-top: 8px;
}

body.nexart-order-received-active .woocommerce-customer-details--phone::before,
body.nexart-order-received-active .woocommerce-customer-details--email::before {
    font-size: 14px;
}

body.nexart-order-received-active .woocommerce-order .wc-bacs-bank-details,
body.nexart-order-received-active .woocommerce-order .woocommerce-bacs-bank-details {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 22px;
}

/* Back to shop button */
body.nexart-order-received-active .woocommerce-order .button,
body.nexart-order-received-active .woocommerce-order a.button {
    display: inline-block;
    background: linear-gradient(135deg, #d9a441 0%, #c8952e 100%);
    border: none;
    border-radius: 10px;
    color: #0a0700 !important;
    font-family: var(--nx-font);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 26px;
    cursor: pointer;
    text-decoration: none;
    transition: filter var(--nx-transition), box-shadow var(--nx-transition);
    box-shadow: 0 4px 16px rgba(217,164,65,0.24);
    margin-top: 8px;
}

body.nexart-order-received-active .woocommerce-order .button:hover,
body.nexart-order-received-active .woocommerce-order a.button:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(217,164,65,0.34);
    color: #0a0700 !important;
}

/* ── 16. LOADING / AJAX OVERLAY ────────────────────────────────────────────── */

body.nexart-checkout-active form.checkout.processing::before {
    background: rgba(8,8,8,0.75) !important;
    border-radius: 18px;
}

body.nexart-checkout-active .blockUI.blockOverlay {
    background: rgba(8,8,8,0.7) !important;
    border-radius: 18px;
}

/* ── 17. RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    body.nexart-checkout-active form.woocommerce-checkout {
        grid-template-columns: 1fr;
    }

    /* On mobile: order summary first, then all left-col sections */
    body.nexart-checkout-active .nexart-contact-section,
    body.nexart-checkout-active #customer_details,
    body.nexart-checkout-active #nexart-shipping-card,
    body.nexart-checkout-active #nexart-payment-card {
        grid-column: 1;
        grid-row: auto;
        order: 2;
    }

    body.nexart-checkout-active #order_review_heading {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    body.nexart-checkout-active #order_review {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    body.nexart-checkout-active form.woocommerce-checkout {
        display: flex;
        flex-direction: column;
    }

    body.nexart-checkout-active #order_review {
        position: static;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    body.nexart-checkout-active .nexart-checkout-wrap,
    body.nexart-order-received-active .nexart-checkout-wrap {
        padding: 0 16px 60px;
    }

    .nexart-checkout-header {
        padding: 36px 0 32px;
    }

    .nexart-checkout-trust-row {
        gap: 10px 20px;
    }

    body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper,
    body.nexart-checkout-active .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper .form-row,
    body.nexart-checkout-active .woocommerce-shipping-fields__field-wrapper .form-row {
        grid-column: 1 / -1;
    }

    body.nexart-checkout-active .woocommerce-billing-fields,
    body.nexart-checkout-active .woocommerce-shipping-fields,
    body.nexart-checkout-active .woocommerce-additional-fields {
        padding: 20px 18px;
    }

    body.nexart-checkout-active .checkout_coupon {
        flex-direction: column;
    }

    body.nexart-checkout-active .checkout_coupon button[name="apply_coupon"] {
        width: 100%;
    }

    .nexart-checkout-trust-block-grid {
        grid-template-columns: 1fr;
    }

    body.nexart-order-received-active .woocommerce-order-overview {
        flex-direction: column;
    }

    body.nexart-order-received-active .woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px solid var(--nx-border);
    }

    body.nexart-order-received-active .woocommerce-order-overview li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .nexart-checkout-title {
        font-size: 26px;
    }

    body.nexart-checkout-active #place_order {
        font-size: 15px;
        padding: 16px 20px;
    }

    body.nexart-checkout-active .woocommerce-checkout-review-order-table thead th,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody .cart_item td,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr td,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr th {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =============================================================================
   18. JS-INJECTED SECTION CARDS (contact / shipping / payment)
   ============================================================================= */

/* Shared card base — used by JS-created sections */
body.nexart-checkout-active .nexart-section-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 18px;
}

/* Section heading shared style (used for JS-created sections) */
body.nexart-checkout-active .nexart-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 16px;
    font-weight: 700;
    color: var(--nx-text);
    letter-spacing: -.01em;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    background: none;
}

body.nexart-checkout-active .nexart-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--nx-gold);
    color: var(--nx-gold);
    font-size: 12px;
    font-weight: 700;
    background: rgba(217,164,65,0.08);
    flex-shrink: 0;
}

/* ── Contact Information ───────────────────────────────────────────────────── */

body.nexart-checkout-active .nexart-contact-fields .form-row {
    margin-bottom: 0;
}

body.nexart-checkout-active .nexart-newsletter-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--nx-text-soft);
    cursor: pointer;
    line-height: 1.5;
}

body.nexart-checkout-active .nexart-newsletter-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--nx-gold);
    margin-top: 2px;
    cursor: pointer;
}

/* ── Shipping Method section ───────────────────────────────────────────────── */

/* Style the WC shipping method list that gets moved here */
body.nexart-checkout-active .nexart-shipping-methods ul,
body.nexart-checkout-active .nexart-shipping-methods .woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.nexart-checkout-active .nexart-shipping-methods li {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--nx-border-md);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color var(--nx-transition);
    list-style: none;
    cursor: pointer;
}

body.nexart-checkout-active .nexart-shipping-methods li:has(input[type="radio"]:checked) {
    border-color: var(--nx-border-gold);
    background: rgba(217,164,65,0.04);
}

body.nexart-checkout-active .nexart-shipping-methods li input[type="radio"] {
    accent-color: var(--nx-gold);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
}

body.nexart-checkout-active .nexart-shipping-methods li label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text);
    cursor: pointer;
    gap: 12px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

body.nexart-checkout-active .nexart-shipping-methods li label .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-text);
    white-space: nowrap;
}

/* "Free shipping" highlight */
body.nexart-checkout-active .nexart-shipping-methods li label .free-shipping-text,
body.nexart-checkout-active .nexart-shipping-methods li.free_shipping label .woocommerce-Price-amount {
    color: var(--nx-gold-light);
}

/* ── Payment section card styles — override old inline placement ───────────── */

body.nexart-checkout-active #nexart-payment-card #payment {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

body.nexart-checkout-active #nexart-payment-card .woocommerce-terms-and-conditions-wrapper {
    padding: 18px 0 0;
}

body.nexart-checkout-active #nexart-payment-card .place-order {
    padding: 18px 0 0;
}

/* =============================================================================
   19. PRODUCT THUMBNAILS IN ORDER REVIEW
   ============================================================================= */

body.nexart-checkout-active .nexart-review-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

body.nexart-checkout-active .nexart-review-item-img {
    flex-shrink: 0;
    width: 68px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--nx-bg-card-2);
}

body.nexart-checkout-active .nexart-review-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.nexart-checkout-active .nexart-review-item-body {
    flex: 1;
    min-width: 0;
}

body.nexart-checkout-active .nexart-review-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    line-height: 1.35;
    margin-bottom: 4px;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table .product-quantity {
    display: inline-block;
    color: var(--nx-gold);
    font-weight: 700;
    font-size: 12px;
    margin-top: 6px;
}

/* Variation meta: compact chips */
body.nexart-checkout-active .nexart-review-item-body .variation,
body.nexart-checkout-active .nexart-review-item-body .wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 5px 0 2px;
    align-items: center;
}

body.nexart-checkout-active .nexart-review-item-body .variation dt {
    display: none;
}

body.nexart-checkout-active .nexart-review-item-body .variation dd {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 2px 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(245,245,245,0.72);
    white-space: nowrap;
    line-height: 1.5;
}

/* WC sometimes wraps dt/dd content in <p> — force inline */
body.nexart-checkout-active .nexart-review-item-body .variation dt p,
body.nexart-checkout-active .nexart-review-item-body .variation dd p,
body.nexart-checkout-active .nexart-review-item-body .wc-item-meta p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nexart-checkout-active .nexart-review-item-body .variation dt::after,
body.nexart-checkout-active .nexart-review-item-body .variation dd::after,
body.nexart-checkout-active .nexart-review-item-body .variation dd:last-child::after {
    content: "" !important;
}

/* =============================================================================
   20. COUPON SECTION INSIDE ORDER REVIEW
   ============================================================================= */

.nexart-coupon-section {
    border-top: 1px solid var(--nx-border);
    margin: 0;
}

.nexart-coupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 26px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--nx-text-soft);
    text-align: left;
    user-select: none;
    transition: color var(--nx-transition);
}

.nexart-coupon-toggle:hover {
    color: var(--nx-text);
}

.nexart-coupon-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform var(--nx-transition);
    flex-shrink: 0;
}

.nexart-coupon-toggle.is-open svg {
    transform: rotate(180deg);
}

.nexart-coupon-form {
    padding: 0 26px 18px;
}

.nexart-coupon-row {
    display: flex;
    gap: 10px;
}

.nexart-coupon-input {
    flex: 1;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 10px !important;
    color: var(--nx-text) !important;
    font-family: var(--nx-font) !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    outline: none !important;
}

.nexart-coupon-input:focus {
    border-color: rgba(217,164,65,0.70) !important;
    box-shadow: 0 0 0 3px rgba(217,164,65,0.10) !important;
}

.nexart-coupon-apply {
    background: transparent !important;
    border: 1px solid var(--nx-gold) !important;
    border-radius: 10px !important;
    color: var(--nx-gold) !important;
    font-family: var(--nx-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    white-space: nowrap;
    transition: background var(--nx-transition), color var(--nx-transition);
    height: 46px;
}

.nexart-coupon-apply:hover {
    background: var(--nx-gold) !important;
    color: #000 !important;
}

/* =============================================================================
   21. ORDER COUNT BADGE + VAT NOTE
   ============================================================================= */

body.nexart-checkout-active #order_review_heading .nexart-order-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217,164,65,0.15);
    border: 1px solid rgba(217,164,65,0.30);
    border-radius: 20px;
    color: var(--nx-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    margin-left: auto;
    letter-spacing: .04em;
}

body.nexart-checkout-active .nexart-vat-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--nx-text-mid);
    letter-spacing: 0;
    margin-top: 4px;
}

/* =============================================================================
   22. BOX-SIZING SAFETY + INPUT SIZE FIX
   ============================================================================= */

/* ── ID-based nuclear overrides for first/last name fields ──────────────────
   Specificity (1,1,1) beats any class-based !important from WC or OceanWP.
   WooCommerce 7+ uses flex:0 0 50% + max-width:50% on .form-row-first/.last.
   In a grid context these are ignored; but max-width still applies → override. */
body.nexart-checkout-active #billing_first_name_field,
body.nexart-checkout-active #billing_last_name_field,
body.nexart-checkout-active #shipping_first_name_field,
body.nexart-checkout-active #shipping_last_name_field {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: unset !important;
    flex-basis: auto !important;
    box-sizing: border-box !important;
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.nexart-checkout-active .form-row input[type="text"],
body.nexart-checkout-active .form-row input[type="email"],
body.nexart-checkout-active .form-row input[type="tel"],
body.nexart-checkout-active .form-row input[type="number"],
body.nexart-checkout-active .form-row input[type="password"],
body.nexart-checkout-active .form-row textarea,
body.nexart-checkout-active .form-row select {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* =============================================================================
   23. RESPONSIVE UPDATES FOR NEW SECTIONS
   ============================================================================= */

@media (max-width: 1024px) {
    body.nexart-checkout-active .nexart-contact-section,
    body.nexart-checkout-active #nexart-shipping-card,
    body.nexart-checkout-active #nexart-payment-card {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    body.nexart-checkout-active .nexart-section-card {
        padding: 20px 18px;
    }

    .nexart-coupon-toggle,
    .nexart-coupon-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nexart-coupon-row {
        flex-direction: column;
    }

    .nexart-coupon-apply {
        width: 100% !important;
    }
}

/* =============================================================================
   24. THANK YOU / ORDER RECEIVED PAGE  (body.nexart-order-received-active)
   ============================================================================= */

body.nexart-order-received-active .nxtk-page {
    padding: 48px 0 80px;
    min-height: 60vh;
}

body.nexart-order-received-active .nxtk-container {
    width: min(100%, 1440px);
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(18px, 3vw, 48px);
}

/* ── Banner ── */
body.nexart-order-received-active .nxtk-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(217,164,65,0.07);
    border: 1px solid rgba(217,164,65,0.22);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

body.nexart-order-received-active .nxtk-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(217,164,65,0.15);
    border: 1.5px solid rgba(217,164,65,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--nx-gold);
}

body.nexart-order-received-active .nxtk-banner-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--nx-gold);
}

body.nexart-order-received-active .nxtk-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--nx-text);
    margin: 0 0 4px;
}

body.nexart-order-received-active .nxtk-banner-sub {
    font-size: 14px;
    color: var(--nx-text-soft);
    margin: 0;
}

body.nexart-order-received-active .nxtk-banner-order {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

body.nexart-order-received-active .nxtk-order-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nx-text-mid);
    margin-bottom: 4px;
}

body.nexart-order-received-active .nxtk-order-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--nx-gold);
}

/* ── Grid ── */
body.nexart-order-received-active .nxtk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.8fr);
    gap: clamp(22px, 2.5vw, 36px);
    align-items: start;
}

/* ── Cards ── */
body.nexart-order-received-active .nxtk-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 20px;
}

body.nexart-order-received-active .nxtk-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nx-border);
    letter-spacing: .01em;
}

/* ── Status steps ── */
body.nexart-order-received-active .nxtk-status-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
}

body.nexart-order-received-active .nxtk-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--nx-text-mid);
    white-space: nowrap;
}

body.nexart-order-received-active .nxtk-status-step.is-done { color: var(--nx-gold); }
body.nexart-order-received-active .nxtk-status-step.is-active { color: var(--nx-text); }

body.nexart-order-received-active .nxtk-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--nx-border-md);
    flex-shrink: 0;
}

body.nexart-order-received-active .nxtk-status-step.is-done .nxtk-status-dot {
    background: var(--nx-gold);
    box-shadow: 0 0 0 3px rgba(217,164,65,0.22);
}

body.nexart-order-received-active .nxtk-status-step.is-active .nxtk-status-dot {
    background: var(--nx-gold);
    box-shadow: 0 0 0 5px rgba(217,164,65,0.18);
    animation: nxtk-pulse 2s ease-in-out infinite;
}

@keyframes nxtk-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(217,164,65,0.18); }
    50%       { box-shadow: 0 0 0 7px rgba(217,164,65,0.08); }
}

body.nexart-order-received-active .nxtk-status-line {
    flex: 1;
    height: 1px;
    background: var(--nx-border);
    margin-bottom: 20px;
    min-width: 20px;
}

body.nexart-order-received-active .nxtk-delivery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nx-text-soft);
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--nx-border);
}

body.nexart-order-received-active .nxtk-delivery-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--nx-gold);
}

/* ── Items list ── */
body.nexart-order-received-active .nxtk-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

body.nexart-order-received-active .nxtk-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.nexart-order-received-active .nxtk-item-img {
    position: relative;
    width: 64px;
    height: 72px;
    border-radius: 8px;
    overflow: visible;
    background: var(--nx-bg-card-2);
    flex-shrink: 0;
}

body.nexart-order-received-active .nxtk-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

body.nexart-order-received-active .nxtk-item-qty {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--nx-gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

body.nexart-order-received-active .nxtk-item-info {
    flex: 1;
    min-width: 0;
}

body.nexart-order-received-active .nxtk-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    margin-bottom: 6px;
}

body.nexart-order-received-active .nxtk-item-name a {
    color: inherit;
    text-decoration: none;
}

body.nexart-order-received-active .nxtk-item-name a:hover { color: var(--nx-gold); }

body.nexart-order-received-active .nxtk-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

body.nexart-order-received-active .nxtk-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(245,245,245,0.72);
}

body.nexart-order-received-active .nxtk-item-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-text);
    white-space: nowrap;
}

/* ── Totals ── */
body.nexart-order-received-active .nxtk-totals {
    border-top: 1px solid var(--nx-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.nexart-order-received-active .nxtk-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--nx-text-soft);
}

body.nexart-order-received-active .nxtk-free-ship { color: var(--nx-gold); font-weight: 600; }

body.nexart-order-received-active .nxtk-discount-row { color: #4caf50; }

body.nexart-order-received-active .nxtk-grand-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--nx-text);
    border-top: 1px solid var(--nx-border);
    padding-top: 12px;
    margin-top: 4px;
}

body.nexart-order-received-active .nxtk-grand-total span:last-child { color: var(--nx-gold); }

/* ── Address ── */
body.nexart-order-received-active .nxtk-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--nx-text-soft);
}

/* ── Consolidated order info ── */
body.nexart-order-received-active .nxtk-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.nexart-order-received-active .nxtk-info-block {
    min-width: 0;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.026);
    padding: 14px 16px;
}

body.nexart-order-received-active .nxtk-info-label {
    display: block;
    margin-bottom: 6px;
    color: var(--nx-text-mid);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.nexart-order-received-active .nxtk-info-block strong,
body.nexart-order-received-active .nxtk-info-block address {
    display: block;
    margin: 0;
    color: var(--nx-text);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.nexart-order-received-active .nxtk-info-block address {
    color: var(--nx-text-soft);
    font-weight: 500;
}

body.nexart-order-received-active .nxtk-parcelpoint {
    margin-top: 16px;
    border-top: 1px solid var(--nx-border);
    padding-top: 16px;
}

body.nexart-order-received-active .nxtk-parcelpoint .bw-order-parcelpoint {
    background: rgba(217,164,65,0.055) !important;
    border: 1px solid rgba(217,164,65,0.18) !important;
    border-radius: 12px;
    color: var(--nx-text-soft) !important;
    padding: 18px 20px !important;
}

body.nexart-order-received-active .nxtk-parcelpoint h2,
body.nexart-order-received-active .nxtk-parcelpoint h4 {
    color: var(--nx-text) !important;
    font-family: var(--nx-font);
    letter-spacing: 0;
}

body.nexart-order-received-active .nxtk-parcelpoint h2 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
}

body.nexart-order-received-active .nxtk-parcelpoint h4 {
    margin: 14px 0 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--nx-gold) !important;
}

body.nexart-order-received-active .nxtk-parcelpoint p {
    margin: 0;
    color: var(--nx-text-soft) !important;
    line-height: 1.65;
}

body.nexart-order-received-active .nxtk-parcelpoint pre {
    max-height: 180px;
    overflow: auto;
    background: rgba(0,0,0,0.18) !important;
    border: 1px solid var(--nx-border) !important;
    border-radius: 10px;
    color: var(--nx-text-soft) !important;
    padding: 12px !important;
    white-space: pre-wrap;
}

body.nexart-order-received-active .nxtk-parcelpoint pre span {
    background: rgba(217,164,65,0.14) !important;
    color: var(--nx-text) !important;
}

/* ── Sidebar CTAs ── */
body.nexart-order-received-active .nxtk-cta-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.nexart-order-received-active .nxtk-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold-dark));
    color: #050505;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--nx-transition);
    font-family: 'Inter', sans-serif;
}

body.nexart-order-received-active .nxtk-btn-primary,
body.nexart-order-received-active .nxtk-btn-primary:visited,
body.nexart-order-received-active .nxtk-btn-primary:hover,
body.nexart-order-received-active .nxtk-btn-primary:focus {
    color: #050505 !important;
}

body.nexart-order-received-active a.nxtk-btn-primary,
body.nexart-order-received-active a.nxtk-btn-primary:link,
body.nexart-order-received-active a.nxtk-btn-primary:visited,
body.nexart-order-received-active a.nxtk-btn-primary:hover,
body.nexart-order-received-active a.nxtk-btn-primary:focus,
body.nexart-order-received-active .nxtk-cta-card a.nxtk-btn-primary {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
}

body.nexart-order-received-active .nxtk-btn-primary:hover { opacity: 0.88; }

body.nexart-order-received-active .nxtk-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--nx-text);
    border: 1px solid var(--nx-border-md);
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--nx-transition), color var(--nx-transition);
    font-family: 'Inter', sans-serif;
}

body.nexart-order-received-active .nxtk-btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }
body.nexart-order-received-active .nxtk-btn-ghost:hover { border-color: var(--nx-gold); color: var(--nx-gold); }

/* ── Meta card ── */
body.nexart-order-received-active .nxtk-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nx-border);
}

body.nexart-order-received-active .nxtk-meta-row:last-child { border-bottom: none; }
body.nexart-order-received-active .nxtk-meta-label { color: var(--nx-text-mid); }
body.nexart-order-received-active .nxtk-meta-val {
    color: var(--nx-text);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow-wrap: anywhere;
}

body.nexart-order-received-active .nxtk-status-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(217,164,65,0.12);
    border: 1px solid rgba(217,164,65,0.28);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--nx-gold);
    text-transform: capitalize;
}

/* ── Trust card ── */
body.nexart-order-received-active .nxtk-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--nx-border);
}

body.nexart-order-received-active .nxtk-trust-item:last-child { border-bottom: none; padding-bottom: 0; }
body.nexart-order-received-active .nxtk-trust-item:first-child { padding-top: 0; }

body.nexart-order-received-active .nxtk-trust-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--nx-gold);
    margin-top: 2px;
}

body.nexart-order-received-active .nxtk-trust-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text);
    margin-bottom: 2px;
}

body.nexart-order-received-active .nxtk-trust-item span {
    font-size: 12px;
    color: var(--nx-text-soft);
}

/* ── Failed state ── */
body.nexart-order-received-active .nxtk-failed-banner {
    text-align: center;
    padding: 60px 24px;
}

body.nexart-order-received-active .nxtk-failed-banner svg {
    width: 52px;
    height: 52px;
    stroke: #f44336;
    margin-bottom: 20px;
}

body.nexart-order-received-active .nxtk-failed-banner h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--nx-text);
    margin: 0 0 12px;
}

body.nexart-order-received-active .nxtk-failed-banner p {
    color: var(--nx-text-soft);
    margin: 0 0 28px;
}

/* ── Confirming (Stripe approved, WooCommerce catching up) ── */
body.nexart-order-received-active .nxtk-confirming-banner {
    text-align: center;
    padding: 60px 24px;
}

body.nexart-order-received-active .nxtk-confirming-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 3px solid rgba(217,164,65,0.20);
    border-top-color: var(--nx-gold);
    animation: nxtk-spin 0.8s linear infinite;
}

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

body.nexart-order-received-active .nxtk-confirming-banner h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--nx-text);
    margin: 0 0 12px;
}

body.nexart-order-received-active .nxtk-confirming-banner p {
    color: var(--nx-text-soft);
    margin: 0 0 10px;
}

body.nexart-order-received-active .nxtk-confirming-note {
    color: var(--nx-text-muted);
    font-size: 13px;
    margin: 4px 0 24px;
}

body.nexart-order-received-active .nxtk-confirming-btn {
    display: inline-flex;
}

/* ── Native WooCommerce order details rendered by hooks ── */
body.nexart-order-received-active .woocommerce-order-details,
body.nexart-order-received-active .woocommerce-customer-details {
    width: min(100%, 1440px);
    box-sizing: border-box;
    margin: 28px auto 0;
    padding: 0 clamp(18px, 3vw, 48px);
    color: var(--nx-text);
}

body.nexart-order-received-active .woocommerce-order-details__title,
body.nexart-order-received-active .woocommerce-column__title,
body.nexart-order-received-active .bw-order-parcelpoint h2,
body.nexart-order-received-active .bw-order-parcelpoint h4 {
    color: var(--nx-text) !important;
    font-family: var(--nx-font);
    font-weight: 800;
    letter-spacing: 0;
}

body.nexart-order-received-active .woocommerce-order-details__title,
body.nexart-order-received-active .woocommerce-column__title {
    font-size: 18px;
    margin: 0 0 16px;
}

body.nexart-order-received-active table.woocommerce-table--order-details,
body.nexart-order-received-active table.shop_table.order_details {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 14px;
    border-collapse: separate !important;
    border-spacing: 0;
    background: rgba(255,255,255,0.025) !important;
    color: var(--nx-text);
    table-layout: fixed;
}

body.nexart-order-received-active table.woocommerce-table--order-details th,
body.nexart-order-received-active table.woocommerce-table--order-details td,
body.nexart-order-received-active table.shop_table.order_details th,
body.nexart-order-received-active table.shop_table.order_details td {
    border-color: var(--nx-border) !important;
    background: transparent !important;
    color: var(--nx-text-soft) !important;
    padding: 14px 18px !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details thead th,
body.nexart-order-received-active table.shop_table.order_details thead th {
    background: rgba(217,164,65,0.08) !important;
    color: var(--nx-gold) !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid rgba(217,164,65,0.22) !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details th.product-name,
body.nexart-order-received-active table.shop_table.order_details th.product-name,
body.nexart-order-received-active table.woocommerce-table--order-details td.product-name,
body.nexart-order-received-active table.shop_table.order_details td.product-name {
    width: 68%;
    text-align: left !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details th.product-total,
body.nexart-order-received-active table.shop_table.order_details th.product-total,
body.nexart-order-received-active table.woocommerce-table--order-details td.product-total,
body.nexart-order-received-active table.shop_table.order_details td.product-total {
    width: 32%;
    text-align: right !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details tbody tr,
body.nexart-order-received-active table.shop_table.order_details tbody tr {
    background: rgba(255,255,255,0.012) !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details tbody tr:nth-child(even),
body.nexart-order-received-active table.shop_table.order_details tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.026) !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details .product-name a,
body.nexart-order-received-active table.shop_table.order_details .product-name a {
    color: var(--nx-text) !important;
    font-weight: 700;
}

body.nexart-order-received-active table.woocommerce-table--order-details .product-quantity,
body.nexart-order-received-active table.shop_table.order_details .product-quantity {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(217,164,65,0.12);
    color: var(--nx-gold) !important;
    font-size: 11px;
    font-weight: 800;
}

body.nexart-order-received-active table.woocommerce-table--order-details .product-total,
body.nexart-order-received-active table.shop_table.order_details .product-total {
    color: var(--nx-text) !important;
    font-weight: 800;
    white-space: nowrap;
}

body.nexart-order-received-active table.woocommerce-table--order-details .product-total .amount,
body.nexart-order-received-active table.shop_table.order_details .product-total .amount {
    color: var(--nx-text) !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details tfoot th,
body.nexart-order-received-active table.woocommerce-table--order-details tfoot td,
body.nexart-order-received-active table.shop_table.order_details tfoot th,
body.nexart-order-received-active table.shop_table.order_details tfoot td {
    background: rgba(255,255,255,0.018) !important;
    color: var(--nx-text) !important;
    font-weight: 700;
    text-align: right !important;
}

body.nexart-order-received-active table.woocommerce-table--order-details tfoot th,
body.nexart-order-received-active table.shop_table.order_details tfoot th {
    color: var(--nx-text-mid) !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

body.nexart-order-received-active table.woocommerce-table--order-details tfoot tr:last-child th,
body.nexart-order-received-active table.woocommerce-table--order-details tfoot tr:last-child td,
body.nexart-order-received-active table.shop_table.order_details tfoot tr:last-child th,
body.nexart-order-received-active table.shop_table.order_details tfoot tr:last-child td {
    background: rgba(217,164,65,0.08) !important;
    color: var(--nx-gold) !important;
    border-top: 1px solid rgba(217,164,65,0.22) !important;
    font-size: 16px;
}

body.nexart-order-received-active table.woocommerce-table--order-details .wc-item-meta,
body.nexart-order-received-active table.shop_table.order_details .wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
}

body.nexart-order-received-active table.woocommerce-table--order-details .wc-item-meta li,
body.nexart-order-received-active table.shop_table.order_details .wc-item-meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 7px;
    background: rgba(255,255,255,0.04);
    font-size: 11px;
}

body.nexart-order-received-active table.woocommerce-table--order-details .wc-item-meta p,
body.nexart-order-received-active table.shop_table.order_details .wc-item-meta p {
    display: inline;
    margin: 0;
}

body.nexart-order-received-active table.woocommerce-table--order-details a,
body.nexart-order-received-active table.shop_table.order_details a,
body.nexart-order-received-active .woocommerce-customer-details a {
    color: var(--nx-gold) !important;
    text-decoration: none;
}

body.nexart-order-received-active table.woocommerce-table--order-details a:hover,
body.nexart-order-received-active table.shop_table.order_details a:hover,
body.nexart-order-received-active .woocommerce-customer-details a:hover {
    color: var(--nx-gold-light, var(--nx-gold)) !important;
}

body.nexart-order-received-active .wc-item-meta,
body.nexart-order-received-active .wc-item-meta li {
    color: var(--nx-text-mid) !important;
}

body.nexart-order-received-active .wc-item-meta p,
body.nexart-order-received-active .wc-item-meta-label,
body.nexart-order-received-active .shipped_via {
    color: var(--nx-text-soft) !important;
}

body.nexart-order-received-active .woocommerce-customer-details .woocommerce-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

body.nexart-order-received-active .woocommerce-customer-details address,
body.nexart-order-received-active .bw-order-parcelpoint {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 14px;
    color: var(--nx-text-soft) !important;
    padding: 20px 22px !important;
    line-height: 1.7;
}

body.nexart-order-received-active .woocommerce-customer-details--email,
body.nexart-order-received-active .bw-order-parcelpoint p {
    color: var(--nx-text-soft) !important;
}

body.nexart-order-received-active .bw-order-parcelpoint pre {
    background: rgba(255,255,255,0.035) !important;
    border: 1px solid var(--nx-border) !important;
    border-radius: 10px;
    color: var(--nx-text-soft) !important;
    padding: 14px !important;
    white-space: pre-wrap;
}

body.nexart-order-received-active .bw-order-parcelpoint pre span {
    background: rgba(217,164,65,0.14) !important;
    color: var(--nx-text) !important;
}

@media (prefers-reduced-motion: reduce) {
    body.nexart-order-received-active .nxtk-confirming-spinner {
        animation: none;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    body.nexart-order-received-active .nxtk-grid {
        grid-template-columns: 1fr;
    }
    body.nexart-order-received-active .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: 1fr;
    }
    body.nexart-order-received-active .nxtk-info-grid {
        grid-template-columns: 1fr;
    }
    body.nexart-order-received-active .nxtk-banner {
        flex-wrap: wrap;
        gap: 16px;
    }
    body.nexart-order-received-active .nxtk-banner-order {
        margin-left: 0;
        text-align: left;
    }
    body.nexart-order-received-active .nxtk-status-row {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 600px) {
    body.nexart-order-received-active .nxtk-banner {
        padding: 20px;
    }
    body.nexart-order-received-active .nxtk-card {
        padding: 20px 18px;
    }
    body.nexart-order-received-active .nxtk-page {
        padding: 32px 0 60px;
    }
    body.nexart-order-received-active table.woocommerce-table--order-details,
    body.nexart-order-received-active table.shop_table.order_details {
        table-layout: auto;
    }
    body.nexart-order-received-active table.woocommerce-table--order-details th.product-name,
    body.nexart-order-received-active table.shop_table.order_details th.product-name,
    body.nexart-order-received-active table.woocommerce-table--order-details td.product-name,
    body.nexart-order-received-active table.shop_table.order_details td.product-name {
        width: 62%;
    }
    body.nexart-order-received-active table.woocommerce-table--order-details th.product-total,
    body.nexart-order-received-active table.shop_table.order_details th.product-total,
    body.nexart-order-received-active table.woocommerce-table--order-details td.product-total,
    body.nexart-order-received-active table.shop_table.order_details td.product-total {
        width: 38%;
    }
    body.nexart-order-received-active table.woocommerce-table--order-details th,
    body.nexart-order-received-active table.woocommerce-table--order-details td,
    body.nexart-order-received-active table.shop_table.order_details th,
    body.nexart-order-received-active table.shop_table.order_details td {
        padding: 12px 10px !important;
    }
}

/* ── Upgrade: focused checkout tunnel ───────────────────────────────────── */
body.nexart-checkout-active .nexart-checkout-header {
    padding-top: 22px;
    padding-bottom: 16px;
    margin-bottom: 28px;
}

body.nexart-checkout-active .nexart-checkout-title {
    font-size: 34px;
    letter-spacing: 0;
}

body.nexart-checkout-active .nexart-checkout-subtitle {
    margin-bottom: 18px;
}

body.nexart-checkout-active .nexart-checkout-trust-row {
    margin-top: 14px;
    opacity: 0.92;
}

body.nexart-checkout-active .woocommerce-billing-fields > h3.nexart-delivery-heading::before {
    content: none !important;
}

body.nexart-checkout-active .nexart-newsletter-label {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.018);
    color: var(--nx-text-mid);
    font-size: 12px;
}

body.nexart-checkout-active .nexart-order-summary-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 26px 0;
}

body.nexart-checkout-active .nexart-edit-cart-link {
    color: var(--nx-text-mid);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

body.nexart-checkout-active .nexart-edit-cart-link:hover {
    color: var(--nx-gold);
}

body.nexart-checkout-active .nexart-checkout-trust-block {
    padding: 14px 26px;
}

body.nexart-checkout-active .nexart-checkout-trust-block-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
}

body.nexart-checkout-active .nexart-checkout-trust-block-item {
    align-items: center;
    gap: 8px;
}

body.nexart-checkout-active .nexart-checkout-trust-block-item-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

body.nexart-checkout-active .nexart-checkout-trust-block-item-icon svg {
    width: 11px;
    height: 11px;
}

body.nexart-checkout-active .nexart-checkout-trust-block-item-text strong {
    font-size: 11px;
    color: var(--nx-text-soft);
}

body.nexart-checkout-active .nexart-checkout-trust-block-item-text span {
    display: none;
}

body.nexart-checkout-active .nexart-coupon-section {
    background: rgba(255,255,255,0.012);
}

body.nexart-checkout-active .nexart-coupon-toggle {
    padding-top: 11px;
    padding-bottom: 11px;
    width: 100%;
    border: 0;
    background: transparent;
    font-family: var(--nx-font);
    color: var(--nx-text-mid);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

body.nexart-checkout-active .nexart-coupon-toggle svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

body.nexart-checkout-active .nexart-checkout-encrypt-note {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.45;
}

body.nexart-checkout-active form.woocommerce-checkout {
    align-items: start;
}

body.nexart-checkout-active #order_review {
    position: sticky;
    top: 24px;
    border-color: rgba(217,164,65,0.24);
    box-shadow: 0 24px 70px rgba(0,0,0,0.26);
}

body.nexart-checkout-active .nexart-section-card,
body.nexart-checkout-active #order_review,
body.nexart-checkout-active #payment .payment_methods > li.payment_method {
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

body.nexart-checkout-active #place_order:hover {
    transform: none;
}

body.nexart-checkout-active .nexart-checkout-guarantee-note,
body.nexart-checkout-active .nexart-checkout-encrypt-note {
    background: rgba(255,255,255,0.025);
}

@media (max-width: 1024px) {
    body.nexart-checkout-active #order_review {
        position: static;
    }
}

@media (max-width: 480px) {
    body.nexart-checkout-active .nexart-checkout-title {
        font-size: 28px;
    }

    body.nexart-checkout-active .nexart-order-summary-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =============================================================================
   MOBILE-FIRST HARDENING
   ============================================================================= */
body.nexart-checkout-active .nexart-checkout-wrap,
body.nexart-checkout-active .nexart-checkout-wrap *,
body.nexart-order-received-active .nexart-checkout-wrap,
body.nexart-order-received-active .nexart-checkout-wrap * {
    min-width: 0;
}

body.nexart-checkout-active img,
body.nexart-order-received-active img {
    max-width: 100%;
}

body.nexart-checkout-active .form-row input[type="text"],
body.nexart-checkout-active .form-row input[type="email"],
body.nexart-checkout-active .form-row input[type="tel"],
body.nexart-checkout-active .form-row input[type="number"],
body.nexart-checkout-active .form-row input[type="password"],
body.nexart-checkout-active .form-row textarea,
body.nexart-checkout-active .form-row select,
body.nexart-checkout-active .select2-container .select2-selection--single,
body.nexart-checkout-active #payment .payment_methods > li.payment_method,
body.nexart-checkout-active #place_order,
.nexart-coupon-toggle,
.nexart-coupon-input,
.nexart-coupon-apply {
    min-height: 44px;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table {
    table-layout: fixed;
    width: 100%;
}

body.nexart-checkout-active .woocommerce-checkout-review-order-table th,
body.nexart-checkout-active .woocommerce-checkout-review-order-table td {
    overflow-wrap: anywhere;
}

body.nexart-checkout-active #payment .payment_methods > li label {
    min-width: 0;
}

body.nexart-checkout-active #payment .payment_methods > li label img {
    max-height: 24px;
    width: auto;
}

@media (max-width: 768px) {
    body.nexart-checkout-active form.woocommerce-checkout {
        gap: 18px;
    }

    body.nexart-checkout-active #customer_details .woocommerce-billing-fields__field-wrapper,
    body.nexart-checkout-active #customer_details .woocommerce-shipping-fields__field-wrapper,
    body.nexart-checkout-active .woocommerce-billing-fields__field-wrapper,
    body.nexart-checkout-active .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body.nexart-checkout-active .nexart-checkout-trust-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.nexart-checkout-active #order_review,
    body.nexart-checkout-active .woocommerce-billing-fields,
    body.nexart-checkout-active .woocommerce-shipping-fields,
    body.nexart-checkout-active .woocommerce-additional-fields,
    body.nexart-checkout-active .nexart-section-card {
        border-radius: 10px;
    }

    body.nexart-checkout-active #order_review > #order_review_heading {
        padding: 16px 18px !important;
    }

    body.nexart-checkout-active #payment .payment_methods {
        padding: 16px !important;
    }

    body.nexart-checkout-active #payment .payment_methods > li label {
        align-items: flex-start;
        gap: 10px;
        white-space: normal;
        line-height: 1.35;
    }

    body.nexart-checkout-active #payment .payment_box {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    body.nexart-checkout-active .nexart-checkout-wrap,
    body.nexart-order-received-active .nexart-checkout-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.nexart-checkout-active .woocommerce-billing-fields,
    body.nexart-checkout-active .woocommerce-shipping-fields,
    body.nexart-checkout-active .woocommerce-additional-fields,
    body.nexart-checkout-active .nexart-section-card {
        padding: 18px 14px;
    }

    body.nexart-checkout-active .woocommerce-checkout-review-order-table thead th,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tbody .cart_item td,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr td,
    body.nexart-checkout-active .woocommerce-checkout-review-order-table tfoot tr th {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.nexart-checkout-active #place_order {
        width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    body.nexart-checkout-active #payment .payment_methods > li.payment_method {
        padding: 13px 12px;
    }

    body.nexart-order-received-active .nxtk-item {
        align-items: flex-start;
    }

    body.nexart-order-received-active .nxtk-item-total {
        white-space: normal;
        text-align: right;
    }
}

/* =============================================================================
   20. CRO ADDITIONS — Express pay row, trust strip, return callout,
       mobile summary, optional account creation
   ============================================================================= */

/* ── Item 1 — Express pay row (above form) ─────────────────────────────────── */
body.nexart-checkout-active .nx-co-express-row {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--nx-border-md);
    border-radius: var(--nx-radius-lg, 16px);
    padding: 18px 22px 22px;
    margin: 0 0 22px;
}

body.nexart-checkout-active .nx-co-express-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-text-mid);
    margin-bottom: 12px;
}

body.nexart-checkout-active .nx-co-express-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

body.nexart-checkout-active .nx-co-express-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--nx-border-md);
    cursor: pointer;
    transition: transform var(--nx-transition), border-color var(--nx-transition), box-shadow var(--nx-transition);
    font-family: var(--nx-font);
    line-height: 1;
}

body.nexart-checkout-active .nx-co-express-btn svg {
    height: 22px;
    width: auto;
    max-width: 100%;
    display: block;
}

body.nexart-checkout-active .nx-co-express-btn .nx-co-express-provider-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 22px;
    object-fit: contain;
}

body.nexart-checkout-active .nx-klarna-mark {
    display: inline-flex;
    align-items: baseline;
    color: #17120f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

body.nexart-checkout-active .nx-co-express-btn:hover {
    transform: translateY(-1px);
    border-color: var(--nx-border-bright);
}

body.nexart-checkout-active .nx-co-express-btn--apple {
    background: #000;
    border-color: #000;
    color: #fff;
}

body.nexart-checkout-active .nx-co-express-btn--google {
    background: #fff;
    border-color: #fff;
    color: #1a1a1a;
}

body.nexart-checkout-active .nx-co-express-btn--paypal {
    background: #ffc439;
    border-color: #ffc439;
    color: #003087;
}

body.nexart-checkout-active .nx-co-express-btn--klarna {
    background: #ffa8cd;
    border-color: #ffa8cd;
    color: #17120f;
}

body.nexart-checkout-active .nx-co-express-divider {
    position: relative;
    text-align: center;
    margin-top: 18px;
}

body.nexart-checkout-active .nx-co-express-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--nx-border);
}

body.nexart-checkout-active .nx-co-express-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    background: var(--nx-bg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nx-text-mid);
}

/* ── Item 2 — Trust strip under Place Order ────────────────────────────────── */
body.nexart-checkout-active .nx-co-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 0;
    margin-top: 4px;
    border-top: 1px solid var(--nx-border);
}

body.nexart-checkout-active .nx-co-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--nx-text-muted);
    line-height: 1.2;
}

body.nexart-checkout-active .nx-co-trust-item svg {
    width: 13px;
    height: 13px;
    stroke: var(--nx-gold);
    color: var(--nx-gold);
    flex-shrink: 0;
}

/* ── Item 3 — 30-day return callout in sidebar ─────────────────────────────── */
body.nexart-checkout-active .nexart-return-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 22px 0;
    padding: 12px 14px;
    background: rgba(217,164,65,0.06);
    border: 1px solid var(--nx-border-gold);
    border-radius: 12px;
    box-shadow: 0 0 0 3px var(--nx-gold-glow) inset, 0 0 18px rgba(217,164,65,0.05);
}

body.nexart-checkout-active .nexart-return-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: rgba(217,164,65,0.18);
    color: var(--nx-gold);
    flex-shrink: 0;
}

body.nexart-checkout-active .nexart-return-callout-icon svg {
    width: 14px;
    height: 14px;
}

body.nexart-checkout-active .nexart-return-callout-text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--nx-text-soft);
}

body.nexart-checkout-active .nexart-return-callout-text strong {
    color: var(--nx-gold);
    font-weight: 700;
}

/* ── Item 7 — Mobile order-summary sticky bar (≤ 768px only) ───────────────── */
body.nexart-checkout-active .nx-co-mobile-summary {
    display: none;
}

body.nexart-checkout-active .nx-co-mobile-summary-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-md);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--nx-text);
    font-family: var(--nx-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

body.nexart-checkout-active .nx-co-mobile-summary-label {
    color: var(--nx-text-soft);
    font-weight: 500;
}

body.nexart-checkout-active .nx-co-mobile-summary-amount {
    color: var(--nx-gold);
    font-weight: 800;
    margin-right: auto;
}

body.nexart-checkout-active .nx-co-mobile-summary-chev svg {
    width: 16px;
    height: 16px;
    color: var(--nx-text-soft);
    transition: transform var(--nx-transition);
}

body.nexart-checkout-active .nx-co-mobile-summary[aria-expanded="true"] .nx-co-mobile-summary-chev svg {
    transform: rotate(180deg);
}

/* ── Item 9 — Optional account creation ────────────────────────────────────── */
body.nexart-checkout-active .nx-co-hidden-account-field {
    /* Hide WC's default create-account markup visually but keep accessible */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.nexart-checkout-active .nx-co-save-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 26px 14px;
    padding: 10px 12px;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    font-size: 13px;
    color: var(--nx-text-soft);
    cursor: pointer;
    transition: border-color var(--nx-transition), background-color var(--nx-transition);
}

body.nexart-checkout-active .nx-co-save-info:hover {
    border-color: var(--nx-border-md);
}

body.nexart-checkout-active .nx-co-save-info input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--nx-gold);
    cursor: pointer;
}

/* ── Mobile breakpoints for CRO components ─────────────────────────────────── */
@media (max-width: 768px) {
    /* Reorder: mobile summary first, then order_review hidden in flow until expanded */
    body.nexart-checkout-active .nx-co-mobile-summary {
        display: block;
        position: sticky;
        top: 0;
        z-index: 40;
        margin: 0 0 14px;
        padding: 8px 0;
        background: var(--nx-bg);
    }

    /* Move order review to BEFORE the form on mobile via flex/grid ordering.
       The form is grid; on mobile we collapse to single column and let DOM
       order be: contact, billing, shipping, payment.  Order review is rendered
       elsewhere by WC; we use flex on the wrap to reorder. */
    body.nexart-checkout-active .nexart-checkout-wrap {
        display: flex;
        flex-direction: column;
    }
    body.nexart-checkout-active .nx-co-mobile-summary { order: 1; }
    body.nexart-checkout-active .nexart-checkout-header { order: 0; }
    body.nexart-checkout-active form.woocommerce-checkout { order: 3; }

    /* Express pay sits between header and form */
    body.nexart-checkout-active .nx-co-express-row {
        order: 2;
        padding: 14px 16px 16px;
    }

    body.nexart-checkout-active .nx-co-express-buttons {
        grid-template-columns: 1fr 1fr;
    }

    body.nexart-checkout-active .nexart-return-callout {
        margin: 14px 16px 0;
    }

    body.nexart-checkout-active .nx-co-trust-strip {
        gap: 12px;
    }

    body.nexart-checkout-active .nx-co-save-info {
        margin: 6px 16px 12px;
    }
}

@media (max-width: 480px) {
    body.nexart-checkout-active .nx-co-express-buttons {
        grid-template-columns: 1fr;
    }

    body.nexart-checkout-active .nx-co-trust-item {
        font-size: 10.5px;
    }

    body.nexart-checkout-active .nexart-return-callout-text {
        font-size: 11.5px;
    }
}

/* =============================================================================
   21. WOOPAYMENTS UPE — neutralize white wrapper around Stripe iframe
   (plugin: woocommerce-payments — classes .wcpay-upe-form / .wcpay-upe-element)
   ============================================================================= */

body.nexart-checkout-active .payment_box.payment_method_woocommerce_payments,
body.nexart-checkout-active .payment_box[class*="payment_method_woocommerce_payments"],
body.nexart-checkout-active .wcpay-upe-form,
body.nexart-checkout-active .wc-payment-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--nx-text-soft) !important;
}

/* WooPayments injects its own fieldset with inline padding:7px — neutralize */
body.nexart-checkout-active .wcpay-upe-form fieldset.wc-payment-form {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* The actual white box = .wcpay-upe-element.StripeElement (wraps the iframe) */
body.nexart-checkout-active .wcpay-upe-element,
body.nexart-checkout-active .wcpay-upe-element.StripeElement {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

/* Private Stripe wrapper inside */
body.nexart-checkout-active .wcpay-upe-element .__PrivateStripeElement {
    background: transparent !important;
}

/* Test-mode info text — dark theme */
body.nexart-checkout-active .wcpay-upe-form .testmode-info {
    color: var(--nx-text-mid) !important;
    font-size: 12.5px !important;
    background: rgba(217,164,65,0.06) !important;
    border: 1px dashed var(--nx-border-gold) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin: 0 0 10px !important;
}

body.nexart-checkout-active .wcpay-upe-form .testmode-info a {
    color: var(--nx-gold) !important;
    text-decoration: underline;
}

body.nexart-checkout-active .wcpay-upe-form .js-woopayments-copy-test-number {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--nx-border-md) !important;
    color: var(--nx-text) !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    cursor: pointer;
}

/* Payment method logos (Visa, Mastercard, Amex + 3) — keep readable on dark */
body.nexart-checkout-active .payment-methods--logos {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.nexart-checkout-active .payment-methods--logos > [role="button"] {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.nexart-checkout-active .payment-methods--logos img {
    height: 22px !important;
    width: auto !important;
    background: #fff;
    border-radius: 4px;
    padding: 2px 4px;
    opacity: 1;
}

body.nexart-checkout-active .payment-methods--logos-count {
    font-size: 12px;
    color: var(--nx-text-soft);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--nx-border-md);
    border-radius: 4px;
    padding: 2px 6px;
}

/* Make sure the iframe itself stays transparent so our dark wrapper shows */
body.nexart-checkout-active .wcpay-upe-element iframe[name*="__privateStripeFrame"] {
    background: transparent !important;
    color-scheme: dark;
}

/* ── High-specificity overrides — beat WooPayments default white ───────────── */
/* Selectors prefixed with .woocommerce-checkout outrank our body-class scope   */

/* The <li> itself — kill the white background that bleeds through corners */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.theme--night {
    background: #111111 !important;
    border: 1px solid var(--nx-border-md) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > label {
    background-color: #111111 !important;
    color: var(--nx-text) !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > input[type="radio"]:not(:checked) + label {
    background-color: #111111 !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #111111 !important;
    color: var(--nx-text-soft) !important;
    border-top: 1px solid var(--nx-border) !important;
    border-radius: 0 !important;
}

/* Kill decorative ::before/::after on payment_box and li (NOT on label — WC uses label::before for the radio dot) */
.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::after,
.woocommerce-checkout #payment ul.payment_methods .wc_payment_method::before,
.woocommerce-checkout #payment ul.payment_methods .wc_payment_method::after,
.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > label::after {
    display: none !important;
    content: none !important;
}

/* Custom radio dot painted via label::before — clean circle, NexArt gold when checked */
.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > label::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border-radius: 50% !important;
    border: 2px solid var(--nx-text-mid) !important;
    background: transparent !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all .2s ease !important;
}

.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > input[type="radio"]:checked + label::before {
    border-color: var(--nx-gold) !important;
    background: radial-gradient(circle, var(--nx-gold) 0 4px, transparent 4px 100%) !important;
}

/* Hide the native <input type="radio"> — we use the label::before fake radio instead */
.woocommerce-checkout #payment ul.payment_methods .wc_payment_method > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* ── Privacy policy text — neutralize blue link, match dark theme ─────────── */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    color: var(--nx-text-soft) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout a.woocommerce-privacy-policy-link {
    color: var(--nx-gold) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(217,164,65,0.45) !important;
    text-underline-offset: 2px !important;
    transition: color var(--nx-transition) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a:hover,
.woocommerce-checkout a.woocommerce-privacy-policy-link:hover {
    color: var(--nx-gold-light) !important;
    text-decoration-color: var(--nx-gold) !important;
}

/* ── All checkboxes & radios on checkout — force gold accent ──────────────── */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"],
body.nexart-checkout-active input[type="checkbox"],
body.nexart-checkout-active input[type="radio"] {
    accent-color: var(--nx-gold) !important;
}

/* "Save my info" checkbox — custom drawing so we can guarantee gold checked state
   (some browsers / OceanWP override accent-color via appearance:none + custom bg) */
.woocommerce-checkout .nx-co-save-info input[type="checkbox"],
body.nexart-checkout-active .nx-co-save-info input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1.5px solid var(--nx-border-bright) !important;
    border-radius: 4px !important;
    background: rgba(255,255,255,0.04) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all .15s ease !important;
}

.woocommerce-checkout .nx-co-save-info input[type="checkbox"]:hover,
body.nexart-checkout-active .nx-co-save-info input[type="checkbox"]:hover {
    border-color: var(--nx-gold) !important;
}

.woocommerce-checkout .nx-co-save-info input[type="checkbox"]:checked,
body.nexart-checkout-active .nx-co-save-info input[type="checkbox"]:checked {
    background: var(--nx-gold) !important;
    border-color: var(--nx-gold) !important;
}

.woocommerce-checkout .nx-co-save-info input[type="checkbox"]:checked::after,
body.nexart-checkout-active .nx-co-save-info input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #0c0c0c !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Terms & conditions checkbox (WC default) — same gold treatment */
.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"],
body.nexart-checkout-active .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    accent-color: var(--nx-gold) !important;
}

/* Focus rings — gold instead of browser default blue */
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout button:focus,
body.nexart-checkout-active input:focus,
body.nexart-checkout-active select:focus,
body.nexart-checkout-active textarea:focus,
body.nexart-checkout-active button:focus {
    outline-color: var(--nx-gold) !important;
}

.woocommerce-checkout input:focus-visible,
.woocommerce-checkout select:focus-visible,
.woocommerce-checkout textarea:focus-visible,
.woocommerce-checkout button:focus-visible,
body.nexart-checkout-active input:focus-visible,
body.nexart-checkout-active select:focus-visible,
body.nexart-checkout-active textarea:focus-visible,
body.nexart-checkout-active button:focus-visible {
    outline: 2px solid var(--nx-gold) !important;
    outline-offset: 2px !important;
}

/* Text selection — gold tint instead of blue */
body.nexart-checkout-active ::selection {
    background: rgba(217,164,65,0.35) !important;
    color: #fff !important;
}

/* Any stray <a> in the checkout that defaults to blue */
body.nexart-checkout-active a:not(.button):not(.nexart-edit-cart-link):not([class*="nexart-"]):not([class*="nx-"]) {
    color: var(--nx-gold) !important;
}

body.nexart-checkout-active a:not(.button):not(.nexart-edit-cart-link):not([class*="nexart-"]):not([class*="nx-"]):hover {
    color: var(--nx-gold-light) !important;
}

/* Order received final overrides: keep the thank-you surface full-width. */
body.nexart-order-received-active .container,
body.nexart-order-received-active .content-wrap,
body.nexart-order-received-active .woocommerce-order,
body.nexart-order-received-active .nexart-checkout-wrap {
    width: 100% !important;
    max-width: none !important;
}

body.nexart-order-received-active .nexart-checkout-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.nexart-order-received-active .woocommerce-order-details,
body.nexart-order-received-active .woocommerce-customer-details {
    background: transparent !important;
    border: 0 !important;
}

body.nexart-order-received-active a:not(.button):not([class*="nexart-"]):not([class*="nx-"]) {
    color: var(--nx-gold) !important;
}

body.nexart-order-received-active a:not(.button):not([class*="nexart-"]):not([class*="nx-"]):hover {
    color: var(--nx-gold-light) !important;
}
