/* =====================================================================
   THAT HOCKEY × NITEX — classic checkout + cart, black-and-lime system
   Styles the native WooCommerce [woocommerce_checkout] / [woocommerce_cart]
   shortcode markup into the nitex field. Scoped under body.th-nx so it only
   applies where the nitex chrome is loaded. Tokens come from nitex-home.css
   (--nx-bg / --nx-acid / etc.), which is enqueued alongside this file.
   ===================================================================== */

/* ---------- Page shell ---------- */
body.th-nx.woocommerce-checkout .site-content,
body.th-nx.woocommerce-cart .site-content,
body.th-nx.woocommerce-checkout main,
body.th-nx.woocommerce-cart main {
    background: var(--nx-bg);
}
body.th-nx.woocommerce-checkout .entry-content,
body.th-nx.woocommerce-cart .entry-content,
body.th-nx .woocommerce {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: var(--nx-bleed);
    color: var(--nx-ink);
}

/* Page title (Picostrap renders it as h1.display-4) → oversized Anton,
   left-aligned editorial, with a mono bracketed eyebrow above it. */
body.th-nx.woocommerce-checkout .page-header,
body.th-nx.woocommerce-cart .page-header,
body.th-nx.woocommerce-checkout header.entry-header,
body.th-nx.woocommerce-cart header.entry-header {
    max-width: 1160px;
    margin-inline: auto;
    padding: clamp(32px, 6vw, 88px) var(--nx-bleed) 0;
    text-align: left;
}
body.th-nx.woocommerce-checkout h1.display-4,
body.th-nx.woocommerce-cart h1.display-4,
body.th-nx.woocommerce-checkout .entry-title,
body.th-nx.woocommerce-cart .entry-title {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.86;
    letter-spacing: -0.005em;
    font-size: clamp(2.8rem, 8vw, 6rem);
    margin: 0 0 clamp(20px, 3vw, 40px);
    color: var(--nx-ink);
    text-align: left;
}
body.th-nx.woocommerce-checkout h1.display-4::before,
body.th-nx.woocommerce-checkout .entry-title::before {
    content: "[ Secure checkout ]";
    display: block;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: var(--nx-acid);
    margin-bottom: 18px;
}
body.th-nx.woocommerce-cart h1.display-4::before,
body.th-nx.woocommerce-cart .entry-title::before {
    content: "[ Your bag ]";
    display: block;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: var(--nx-acid);
    margin-bottom: 18px;
}

/* ---------- Notices ---------- */
body.th-nx .woocommerce-info,
body.th-nx .woocommerce-message,
body.th-nx .woocommerce-error,
body.th-nx .woocommerce-notice {
    background: var(--nx-panel);
    border: 1px solid var(--nx-line);
    border-left: 2px solid var(--nx-acid);
    border-radius: 0;
    color: var(--nx-ink);
    font-size: 0.95rem;
    padding: 16px 20px;
    list-style: none;
}
body.th-nx .woocommerce-error { border-left-color: #ff5a3c; }
body.th-nx .woocommerce-info a,
body.th-nx .woocommerce-message a { color: var(--nx-acid); }
body.th-nx .woocommerce form .form-row .required { color: var(--nx-acid); }

/* ---------- Coupon toggle ---------- */
body.th-nx .checkout_coupon.woocommerce-form-coupon {
    border: 1px solid var(--nx-line);
    background: var(--nx-panel);
    border-radius: 0;
    padding: 24px;
}

/* ---------- Layout: two columns ---------- */
@media (min-width: 900px) {
    body.th-nx .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: clamp(28px, 4vw, 64px);
        align-items: start;
    }
    body.th-nx .woocommerce-checkout #customer_details { grid-column: 1; }
    body.th-nx .woocommerce-checkout #order_review_heading,
    body.th-nx .woocommerce-checkout #order_review {
        grid-column: 2;
    }
    body.th-nx .woocommerce-checkout #order_review {
        position: sticky;
        top: 96px;
    }
}

/* ---------- Section headings ---------- */
body.th-nx .woocommerce-checkout h3,
body.th-nx .woocommerce-checkout #order_review_heading,
body.th-nx .woocommerce-billing-fields h3,
body.th-nx .woocommerce-additional-fields h3 {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: var(--nx-ink);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nx-line);
}

/* ---------- Form fields ---------- */
body.th-nx .woocommerce form .form-row label,
body.th-nx .woocommerce-checkout label {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: var(--nx-dim);
    margin-bottom: 8px;
    display: block;
}
body.th-nx .woocommerce form .form-row {
    margin-bottom: 18px;
    padding: 0;
}
body.th-nx .woocommerce .input-text,
body.th-nx .woocommerce select,
body.th-nx .woocommerce textarea,
body.th-nx .select2-container--default .select2-selection--single {
    width: 100%;
    background: var(--nx-panel) !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 0 !important;
    color: var(--nx-ink) !important;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 1rem;
    padding: 14px 16px;
    height: auto;
    transition: border-color 0.25s, background 0.25s;
}
body.th-nx .woocommerce .input-text::placeholder { color: var(--nx-faint); }
body.th-nx .woocommerce .input-text:focus,
body.th-nx .woocommerce select:focus,
body.th-nx .woocommerce textarea:focus {
    outline: none;
    border-color: var(--nx-acid) !important;
    background: #181818 !important;
}
/* select2 (country/state) alignment */
body.th-nx .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--nx-ink);
    line-height: 1.6;
    padding: 6px 2px;
}
body.th-nx .select2-container--default .select2-selection--single { height: auto; padding: 8px 10px; }
body.th-nx .select2-dropdown {
    background: var(--nx-panel);
    border: 1px solid var(--nx-acid);
    border-radius: 0;
    color: var(--nx-ink);
}
body.th-nx .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--nx-acid);
    color: #000;
}
body.th-nx .select2-search--dropdown .select2-search__field {
    background: var(--nx-bg);
    border: 1px solid var(--nx-line);
    color: var(--nx-ink);
}

/* ---------- Order review table ---------- */
body.th-nx .woocommerce-checkout #order_review,
body.th-nx .woocommerce-checkout .woocommerce-checkout-review-order {
    background: var(--nx-panel);
    border: 1px solid var(--nx-line);
    padding: clamp(22px, 2.4vw, 32px);
}
body.th-nx .woocommerce table.shop_table {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--nx-ink);
    width: 100%;
}
body.th-nx .woocommerce table.shop_table th,
body.th-nx .woocommerce table.shop_table td {
    border: 0;
    border-bottom: 1px solid var(--nx-line2);
    padding: 14px 0;
    color: var(--nx-ink);
}
body.th-nx .woocommerce table.shop_table thead th,
body.th-nx .woocommerce table.shop_table .product-name,
body.th-nx .woocommerce table.shop_table tfoot th {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: var(--nx-dim);
    font-weight: 400;
}
body.th-nx .woocommerce table.shop_table td.product-name { color: var(--nx-ink); font-family: 'Archivo', sans-serif; font-size: 0.98rem; }
body.th-nx .woocommerce table.shop_table .product-total,
body.th-nx .woocommerce table.shop_table td.product-total { font-family: 'Space Mono', monospace; }
body.th-nx .woocommerce table.shop_table tfoot .order-total th,
body.th-nx .woocommerce table.shop_table tfoot .order-total td {
    font-size: 1.1rem;
    color: var(--nx-ink);
    padding-top: 18px;
}
body.th-nx .woocommerce table.shop_table tfoot .order-total .amount {
    color: var(--nx-acid);
    font-family: 'Anton', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
}
body.th-nx .woocommerce .cart_item .product-name .product-quantity { color: var(--nx-dim); }

/* ---------- Payment box ---------- */
body.th-nx .woocommerce-checkout #payment,
body.th-nx #payment.woocommerce-checkout-payment {
    background: transparent;
    border-radius: 0;
    margin-top: 18px;
}
body.th-nx #payment ul.payment_methods {
    border: 1px solid var(--nx-line);
    border-radius: 0;
    background: var(--nx-bg);
    padding: 16px 18px;
}
body.th-nx #payment ul.payment_methods li { color: var(--nx-ink); }
body.th-nx #payment div.payment_box {
    background: var(--nx-bg);
    color: var(--nx-dim);
    border-radius: 0;
    font-size: 0.9rem;
}
body.th-nx #payment div.payment_box::before { border-bottom-color: var(--nx-bg); }
body.th-nx .woocommerce-privacy-policy-text,
body.th-nx .woocommerce-terms-and-conditions-wrapper { color: var(--nx-dim); font-size: 0.85rem; }

/* ---------- Buttons ---------- */
body.th-nx .woocommerce #place_order,
body.th-nx .woocommerce button.button.alt,
body.th-nx .woocommerce a.button.alt,
body.th-nx .woocommerce button.button,
body.th-nx .woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    color: #000;
    background: var(--nx-acid);
    padding: 18px 22px;
    border: 1px solid var(--nx-acid);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    margin-top: 10px;
}
body.th-nx .woocommerce #place_order:hover,
body.th-nx .woocommerce button.button.alt:hover,
body.th-nx .woocommerce a.button.alt:hover,
body.th-nx .woocommerce button.button:hover,
body.th-nx .woocommerce input.button:hover {
    background: transparent;
    color: var(--nx-acid);
}
/* Secondary (coupon apply) button → ghost */
body.th-nx .woocommerce form.checkout_coupon button.button {
    width: auto;
    background: transparent;
    color: var(--nx-ink);
    border-color: var(--nx-line);
}
body.th-nx .woocommerce form.checkout_coupon button.button:hover {
    border-color: var(--nx-acid);
    color: var(--nx-acid);
    background: transparent;
}

/* ---------- Cart page specifics ---------- */
body.th-nx .woocommerce-cart table.cart img { width: 64px; border-radius: 0; }
body.th-nx .woocommerce a.remove {
    color: var(--nx-faint) !important;
    border-radius: 0;
    font-weight: 400;
}
body.th-nx .woocommerce a.remove:hover { background: var(--nx-acid) !important; color: #000 !important; }
body.th-nx .woocommerce .cart-collaterals .cart_totals {
    background: var(--nx-panel);
    border: 1px solid var(--nx-line);
    padding: clamp(22px, 2.4vw, 32px);
}
body.th-nx .woocommerce .quantity .qty {
    background: var(--nx-panel);
    border: 1px solid var(--nx-line);
    color: var(--nx-ink);
    border-radius: 0;
    padding: 10px;
}
body.th-nx a {
    color: var(--nx-acid);
}

/* ---------- Login / "returning customer" ---------- */
body.th-nx .woocommerce-form-login,
body.th-nx .woocommerce form.login,
body.th-nx .woocommerce form.register {
    border: 1px solid var(--nx-line);
    border-radius: 0;
    background: var(--nx-panel);
}
