/* The cart and checkout in the Nightfall theme (templates/shop.php, Henrik, 5 November
   2026). WooCommerce's classic shortcode markup is unchanged; Blocksy's styles are
   dequeued on these pages, so everything the checkout needs is here. Fields follow the
   contact form: square, on --theme-raised, with the --control-line border. */

/* A lighter dusk than the sales page's end (Henrik, 5 November 2026: the checkout looked
   too dark on --theme-ground). The page takes the hero's step 1, the order panel and the
   fields step 3, so they read as recessed. This file loads only on the cart and
   checkout, after saluxe.css, so :root here overrides the theme there only. Measured on
   #323D53: ink 9.4:1, soft ink and violet links 4.6:1 (above WCAG AA's 4.5:1). */
:root { --theme-ground: var(--theme-step-1); --theme-raised: var(--theme-step-3); }

/* Header: the logo and "Secure checkout" only. */
.header-secure { grid-column: 3; justify-self: end; margin: 0; letter-spacing: .08em; text-transform: uppercase; }

.shop-page { padding-bottom: var(--minor-section-space); }
.shop-title { margin-bottom: 32px; font-size: clamp(35px, 3.54vw, 51px); line-height: 1.1; }
.shop-content { font-size: 16px; line-height: 1.5; }
.shop-content h3 { margin: 0 0 24px; font-size: 24px; }
.shop-content p { margin: 0; }
.shop-content table { width: 100%; border-collapse: collapse; }
.shop-content th { text-align: left; font-weight: 500; }

/* Two columns: details on the left, the order and payment on a raised panel. */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 48px; align-items: start; }
/* WooCommerce inserts its error group into the form itself, so it spans both columns instead of taking the details' cell (0.4.30). */
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.ct-order-review { padding: 32px; border: 1px solid var(--frame-line); background: var(--theme-raised); }
.col2-set .col-1, .col2-set .col-2 { width: auto; float: none; }
.col2-set .col-2 { margin-top: 40px; }

/* Fields. WooCommerce's first/last halves sit side by side in a two-column grid. */
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px;
}
.shop-content .form-row { grid-column: 1 / -1; margin: 0 0 20px; padding: 0; }
.shop-content .form-row-first { grid-column: 1; }
.shop-content .form-row-last { grid-column: 2; }
.shop-content .form-row label { display: block; margin-bottom: 8px; color: var(--theme-ink-soft); font-size: 14px; line-height: 1.4; }
.shop-content .form-row label.checkbox, .shop-content label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 12px; color: var(--theme-ink); font-size: 16px; cursor: pointer; }
.shop-content abbr.required { color: var(--theme-accent-ink); text-decoration: none; border: 0; }
.shop-content .optional { color: var(--theme-ink-soft); }
.shop-content input.input-text, .shop-content select, .shop-content textarea,
.shop-content .select2-container .select2-selection--single {
  width: 100%; min-height: 56px; padding: 15px 16px; border: 1px solid var(--control-line); border-radius: 0;
  background: var(--theme-raised); color: var(--theme-ink); font: inherit; font-size: 16px; line-height: 1.5; box-shadow: none;
}
.ct-order-review input.input-text { background: var(--theme-ground); }
.shop-content textarea { min-height: 112px; resize: vertical; }
.shop-content ::placeholder { color: var(--theme-ink-soft); opacity: 1; }
.shop-content input.input-text:focus, .shop-content select:focus, .shop-content textarea:focus,
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: var(--theme-accent-ink); outline: none; }
.shop-content .woocommerce-invalid input.input-text, .shop-content .woocommerce-invalid .select2-selection { border-color: #E28B8B; }
.shop-content input[type="checkbox"], .shop-content input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--theme-accent-ink); }
#ship-to-different-address { margin-bottom: 20px; font-family: var(--font-body); }

/* The country menu (selectWoo). Its dropdown is appended to <body>. */
.select2-container .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--theme-ink); line-height: 1.5; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 50%; right: 12px; height: 24px; transform: translateY(-50%); }
.select2-container .select2-selection--single .select2-selection__arrow b { border-top-color: var(--theme-ink-soft); }
.select2-dropdown { border: 1px solid var(--control-line); border-radius: 0; background: var(--theme-raised); color: var(--theme-ink); font-family: var(--font-body); }
.select2-search--dropdown .select2-search__field { padding: 10px 12px; border: 1px solid var(--control-line); background: var(--theme-ground); color: var(--theme-ink); font: inherit; }
.select2-results__option { padding: 10px 16px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--theme-twilight); color: var(--theme-ink); }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--theme-step-3); }

/* Apple Pay and Google Pay above the form, and their "or". */
.wcpay-express-checkout-wrapper { margin-bottom: 32px; }
#wcpay-express-checkout-button-separator { margin-top: 16px; color: var(--theme-ink-soft); font-size: 14px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

/* The order table. */
#order_review_heading { margin-bottom: 16px; }
.shop_table th, .shop_table td { padding: 14px 0; border-bottom: 1px solid var(--frame-line); vertical-align: top; }
.shop_table thead th { color: var(--theme-ink-soft); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.shop_table .product-total, .shop_table tfoot td, .shop_table thead th.product-total { text-align: right; }
.shop_table .product-quantity { color: var(--theme-ink-soft); font-weight: 400; }
.shop_table tfoot th { font-weight: 400; }
.shop_table .order-total th, .shop_table .order-total td { border-bottom: 0; padding-top: 20px; font-size: 20px; }
.shop_table .order-total .includes_tax { display: block; color: var(--theme-ink-soft); font-size: 14px; white-space: nowrap; }
.shop_table ul#shipping_method { margin: 0; padding: 0; list-style: none; }
/* Blocksy prints the shipping row as one cell: its heading, then the method and price.
   The heading floats left so the cell stays a table cell and its line spans the panel. */
.shop_table .woocommerce-shipping-totals td { text-align: right; }
.shop_table .woocommerce-shipping-totals .ct-shipping-heading { float: left; margin-right: 16px; }

/* Payment methods and the order button. */
#payment { margin-top: 24px; }
#payment ul.payment_methods { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--frame-line); }
#payment li.wc_payment_method { padding: 16px 0; border-bottom: 1px solid var(--frame-line); }
#payment li.wc_payment_method > input { margin-right: 12px; vertical-align: middle; }
#payment li.wc_payment_method > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; }
#payment li.wc_payment_method > label img { max-height: 24px; width: auto; }
#payment .payment_box { margin-top: 16px; color: var(--theme-ink-soft); font-size: 14px; }
#payment fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#payment .payment_box p + * { margin-top: 12px; }
#payment .place-order { margin-top: 24px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { color: var(--theme-ink-soft); font-size: 14px; line-height: 1.45; }
#place_order, .wc-proceed-to-checkout .checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 24px; padding: 0 24px; border: 0; border-radius: 0;
  background: var(--theme-ink); color: var(--theme-ground); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 400ms ease;
}
#place_order:hover, .wc-proceed-to-checkout .checkout-button:hover { background: color-mix(in oklch, var(--theme-ink) 84%, var(--theme-ground)); }
#place_order:disabled, #place_order.disabled { opacity: .5; cursor: default; }
.ppc-button-wrapper { margin-top: 24px; }

/* Notices: errors, information and the coupon prompt. */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-NoticeGroup .woocommerce-error {
  margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--theme-accent-ink); background: var(--theme-raised); color: var(--theme-ink); list-style: none;
}
.woocommerce-error, .woocommerce-NoticeGroup .woocommerce-error { border-color: #E28B8B; }
.woocommerce-error li + li { margin-top: 8px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: right; margin-left: 16px; color: var(--theme-accent-ink); background: none; min-height: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.blockUI.blockOverlay { background: var(--theme-ground) !important; }

/* The cart, which buyers rarely see: the buttons go straight to checkout. */
.woocommerce-cart-form .product-thumbnail img { width: 64px; height: auto; }
.woocommerce-cart-form .product-remove a { color: var(--theme-ink-soft); font-size: 20px; text-decoration: none; }
.woocommerce-cart-form .actions .button, .cart-collaterals .button:not(.checkout-button), .woocommerce-cart .return-to-shop .button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 0; background: transparent; color: var(--theme-ink);
  box-shadow: inset 0 0 0 1px var(--control-line); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.woocommerce-cart-form .quantity input { width: 72px; min-height: 48px; padding: 8px; border: 1px solid var(--control-line); background: var(--theme-raised); color: var(--theme-ink); font: inherit; }
.cart-collaterals { max-width: 480px; margin: 40px 0 0 auto; }
.cart-empty { margin-bottom: 24px; }

/* The order-received page. Its section headings are set smaller than the site's h2,
   and the overview boxes leave room for a long email address (5 November 2026). */
.woocommerce-order { max-width: 760px; }
.woocommerce-order > * + * { margin-top: 40px; }
.woocommerce-thankyou-order-received { margin-bottom: 24px; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.woocommerce-order h2 { margin-bottom: 16px; font-size: clamp(24px, 2.2vw, 29px); line-height: 1.2; }
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
ul.woocommerce-order-overview li { min-width: 0; overflow-wrap: anywhere; }
.woocommerce-order-details .shop_table tfoot td { text-align: right; }
.woocommerce-order-details .order-actions-button, .woocommerce-order-details td .button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: transparent; color: var(--theme-ink); box-shadow: inset 0 0 0 1px var(--control-line); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
ul.woocommerce-order-overview li { padding: 16px; border: 1px solid var(--frame-line); color: var(--theme-ink-soft); font-size: 14px; }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--theme-ink); font-size: 16px; font-weight: 500; }
.woocommerce-customer-details address { padding: 16px; border: 1px solid var(--frame-line); font-style: normal; }
.woocommerce-customer-details .col2-set { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.woocommerce-customer-details .col2-set .col-2 { margin-top: 0; }

/* The slim footer. */
.shop-footer { padding: 32px 0; }
.shop-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.shop-footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.shop-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 979.98px) {
  .woocommerce-checkout form.checkout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .ct-order-review { padding: 24px; }
}
@media (max-width: 759.98px) {
  .shop-page { padding-top: calc(72px + 32px); }
  .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0,1fr); }
  .shop-content .form-row-first, .shop-content .form-row-last { grid-column: 1 / -1; }
  .ct-order-review { margin-inline: -28px; padding: 24px 28px; border-inline: 0; }
  .woocommerce-customer-details .col2-set { grid-template-columns: minmax(0,1fr); }
  .header-secure { font-size: 12px; }
}
