/* =========================================================================
   AltTune — Woo CART / CHECKOUT / THANK-YOU.
   Owned by the cart/checkout agent. Scope EVERYTHING under .at-woo.
   Shared base (inputs, notices, price type) lives in woo-shared.css.

   Cart/checkout are SHORTCODE pages rendered through page.php, so the
   `.at-woo` scope is emitted by the theme template overrides themselves
   (woocommerce/cart/cart.php, cart-empty.php, checkout/form-checkout.php,
   checkout/thankyou.php). The only out-of-scope rules below are the two
   body-class rules that hide page.php's duplicate <h1> — the templates
   render their own hero header instead.
   ========================================================================= */

/* page.php prints `<h1 class="display-2">Cart</h1>` above the shortcode
   output; the Woo templates render a proper hero, so hide the duplicate. */
body.woocommerce-cart .alttune-page > .at-section--simple > .at-container > h1.display-2,
body.woocommerce-checkout .alttune-page > .at-section--simple > .at-container > h1.display-2 {
  display: none;
}

/* -------------------------------------------------------------------------
   Hero — same language as the site page heroes (eyebrow + display title)
   but compact: we are already inside page.php's .at-container, so the
   nested .at-container resets its own gutter/max-width.
   ---------------------------------------------------------------------- */
.at-woo .at-woo-hero {
  background: transparent;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--steel-silver);
  margin-bottom: var(--space-6, 40px);
}
.at-woo .at-woo-hero .at-container {
  max-width: none;
  padding-inline: 0;
}
.at-woo .at-woo-hero .at-eyebrow { margin: 0 0 12px; }
.at-woo .at-woo-hero .display-2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

/* =========================================================================
   CART
   ========================================================================= */
/* The cart-form is a card that MATCHES the totals card on the right: same white
   surface, same 1px border, same 20px radius — so the two columns read as a pair.
   (The table itself carries a plugin-injected 1px/5px-radius border; reset it.) */
.at-woo .woocommerce-cart-form {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--steel-silver);
  border-radius: 16px;
  padding: 5px 20px;
}
.at-woo .woocommerce-cart-form .at-cart-table { border: 0 !important; border-radius: 0 !important; }

/* Match the site content width used by single-product / shop (1440), not the
   global 1280 — the cart's table + totals (≈912 + 360 + gap) needs the room, or
   the table overflows into the totals card. Cart/checkout are shortcode pages
   rendered through page.php, so the container is `.alttune-page .at-container`
   (no `.at-woo` ancestor). */
body.woocommerce-cart .alttune-page .at-container,
body.woocommerce-checkout .alttune-page .at-container { max-width: 1440px; }

/* The cart hero is a utility header, not a landing hero — make it shorter than
   the shop's (≈430px → ≈260px) and trim the gap down to the content. TRUE-DESKTOP
   only (>=1025px): at <=1024px the nav is its hamburger overlay, so the shared
   flow treatment (woo-catalog.css mobile + tablet bands) takes over to clear it. */
@media (min-width: 1025px) {
  body.woocommerce-cart .at-shop-hero .av-hero-shape {
    aspect-ratio: 1860 / 280;
    max-height: 300px;
  }
  body.woocommerce-cart .at-shop-hero .av-hero-content { padding-top: 0; padding-bottom: 0; }
}
body.woocommerce-cart .at-shop-hero.av-hero { margin-bottom: 0; }
body.woocommerce-cart .alttune-page .at-section--simple { padding-top: 20px; }
body.woocommerce-cart .at-cart-page { margin-top: 0; }

/* Checkout: tighten the gap between the (compact) shop hero and the form — the
   default .at-section--simple top padding is too tall under a hero. */
body.woocommerce-checkout .at-shop-hero.av-hero { margin-bottom: 0; }
body.woocommerce-checkout .alttune-page .at-section--simple { padding-top: 12px; }

.at-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 980px) {
  .at-cart-layout { grid-template-columns: 1fr; gap: 28px; }
}
/* The table must never push past its grid column (which caused it to slide
   under the totals card). table-layout:fixed pins it to 100% of the column;
   explicit widths on the fixed columns let the name column take the rest. */
.at-woo .at-cart-table { table-layout: fixed; }
.at-woo .at-cart-table .product-remove    { width: 32px; }
.at-woo .at-cart-table .product-thumbnail  { width: 74px; }
.at-woo .at-cart-table .product-price      { width: 96px; }
.at-woo .at-cart-table .product-quantity   { width: 106px; }
.at-woo .at-cart-table .product-subtotal   { width: 100px; }
.at-woo .at-cart-table td.product-name     { width: auto; word-break: break-word; }

/* ---- Cart table as clean rows ---- */
.at-woo .at-cart-table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
/* Inside the card, the last row must not draw a bottom rule against the edge. */
.at-woo .at-cart-table tr:last-child td { border-bottom: 0; }
.at-woo .at-cart-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: left;
  padding: 0 8px 10px 0;
  border-bottom: 1px solid var(--steel-silver);
}
.at-woo .at-cart-table thead th.product-price,
.at-woo .at-cart-table thead th.product-subtotal { text-align: right; padding-right: 4px; }

.at-woo .at-cart-table td {
  padding: 16px 8px 16px 0;
  border-bottom: 1px solid var(--steel-silver-100);
  vertical-align: top;
  background: transparent;
}
.at-woo .at-cart-table td.product-price,
.at-woo .at-cart-table td.product-subtotal {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500; /* thinner — prices were too heavy */
  color: var(--fg-1);
}
/* A plugin's frontend.css sets the cells to vertical-align:middle, so on a tall
   line (a tool with an add-ons box) the price floated beside the protocols.
   Pin it to the top so it sits on the product-name line, and keep a little
   breathing room from the right edge. */
.at-woo .at-cart-table td.product-price,
.at-woo .at-cart-table td.product-subtotal,
.at-woo .at-cart-table th.product-price,
.at-woo .at-cart-table th.product-subtotal { vertical-align: top !important; }
.at-woo .at-cart-table th.product-subtotal,
.at-woo .at-cart-table td.product-subtotal { padding-right: 4px; }

/* Remove control — quiet circle, danger on hover */
.at-woo .at-cart-table td.product-remove { width: 32px; padding-right: 4px; }
.at-woo .at-cart-table a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--steel-silver);
  border-radius: 50%;
  color: var(--fg-3) !important;
  background: #fff !important;
  font-size: 0;
  font-weight: 400;
  line-height: 0;
  padding: 0;
  text-decoration: none;
  transition: color var(--dur-base) ease, border-color var(--dur-base) ease;
}
.at-woo .at-cart-table a.remove:hover {
  color: #fff !important;
  border-color: var(--rubber-black) !important;
  background: var(--rubber-black) !important;
}
.at-woo .at-cart-table a.remove > svg {
  display: block;
  width: 10px;
  height: 10px;
  flex: none;
}

/* Thumbnail — a plugin's frontend.css forces `width:96px !important` +
   object-fit:cover (crops + upscales small images). Beat it with a body-scoped
   !important so the product shot shows whole, centered in a tidy square. */
.at-woo .at-cart-table td.product-thumbnail { width: 74px; }
body.woocommerce-cart .at-woo .at-cart-table td.product-thumbnail img,
body.woocommerce-checkout .at-woo .at-cart-table td.product-thumbnail img {
  display: block;
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  object-position: center;
  background: var(--pure-white);
  border-radius: var(--radius-md, 12px);
  padding: 6px;
  box-sizing: border-box;
}

/* Name + item meta */
.at-woo.at-cart-page table.at-cart-table td.product-name {
  padding-left: 14px !important;
  text-align: left !important;
}
.at-woo.at-cart-page table.at-cart-table th.product-heading { padding-left: 12px !important; text-align: left; }
.at-woo .at-cart-table td.product-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.at-woo .at-cart-table td.product-name > a {
  color: var(--fg-1);
  text-decoration: none;
  transition: color var(--dur-base) ease;
}
.at-woo .at-cart-table td.product-name > a:hover { color: var(--performance-orange-700); }

/* Item data injected via woocommerce_get_item_data — alientech-sync emits
   "Included add-ons", "Bundle includes", "You save" lines here. Render as
   intentional spec lines: mono micro-label + quiet value. */
.at-woo dl.variation {
  margin: 7px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 8px;
  font-weight: 400;
}
.at-woo dl.variation dt {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
  padding-top: 2px;
}
.at-woo dl.variation dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.35;
  color: var(--fg-2);
}
.at-woo dl.variation dd p { margin: 0; }
/* "You save" style rows read as a positive accent */
.at-woo dl.variation dd ins {
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--performance-orange);
}

.at-woo .backorder_notification {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fg-3);
}

/* Quantity steppers */
.at-woo .at-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: #fff;
}
.at-woo .at-qty .quantity { display: inline-flex; }
.at-woo .at-qty .qty,
.at-woo .at-qty input.qty {
  width: 38px;
  border: 0;
  border-radius: 0;
  padding: 7px 3px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600; /* thinner — was 700 */
  font-size: 13px;
}
.at-woo .at-qty .qty:focus { box-shadow: none; border: 0; }
.at-woo .at-qty-btn {
  width: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--fg-2);
  font-family: var(--font-sans);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.at-woo .at-qty-btn:hover { background: var(--steel-silver-100); color: var(--fg-1); }
.at-woo .at-qty[data-sold-individually] .at-qty-btn { opacity: 0.35; cursor: default; }
.at-woo .at-qty[data-sold-individually] .at-qty-btn:hover { background: transparent; color: var(--fg-2); }

/* Keep the actions cell in the table layout so colspan spans every column.
   Its inner wrapper owns the coupon/update flex layout. */
.at-woo .at-cart-table td.actions {
  border-bottom: 0;
  padding: 16px 0 0;
  display: table-cell;
}
.at-woo .at-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 12px);
  width: 100%;
  min-width: 0;
}
.at-woo .at-cart-table .coupon {
  display: inline-flex;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 480px;
  float: none;
  gap: var(--space-2, 8px);
  align-items: center;
}
.at-woo .at-cart-table .coupon #coupon_code {
  flex: 1 1 190px;
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 13px;
  min-height: 44px;
}
.at-woo .at-cart-table .coupon button[name="apply_coupon"] { min-height: 44px; }
/* WooCommerce's float clearfix must not become extra flex/grid items. */
.at-woo.at-cart-page .at-cart-table td.actions .coupon::before,
.at-woo.at-cart-page .at-cart-table td.actions .coupon::after { content: none; display: none; }
.at-woo .at-cart-table button[name="update_cart"] { margin-left: auto; }
.at-woo .at-cart-table button[name="update_cart"]:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Bundle overlap notices (woocommerce_after_cart_table) — woo-shared.css
   already styles .woocommerce-info; just give them breathing room here. */
.at-woo .woocommerce-cart-form .woocommerce-info,
.at-woo .woocommerce-cart-form + .woocommerce-info {
  margin-top: var(--space-4, 20px);
  margin-bottom: 0;
}

/* ---- Totals card — LIGHT surface (matches the checkout summary card) ---- */
.at-woo .cart-collaterals { min-width: 0; }
.at-woo .cart-collaterals .cross-sells { display: none; } /* keep the cart focused */

/* WooCommerce core forces `.woocommerce .cart-collaterals .cart_totals
   { float:right; width:48% }` (specificity 0,3,0) which breaks our grid column.
   Match that depth (+ .at-woo) to win and clear the float. */
.at-woo .cart-collaterals .cart_totals,
.at-woo .cart_totals {
  float: none;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: var(--fg-1);
  border: 1px solid var(--steel-silver);
  border-radius: 16px;
  padding: 22px;
}
.at-woo .cart_totals h2 {
  font-family: var(--font-display);
  font-weight: 600; /* thinner — premium, not heavy */
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 12px;
}
.at-woo .cart_totals table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin: 0;
}
.at-woo .cart_totals th,
.at-woo .cart_totals td {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--steel-silver-100);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}
.at-woo .cart_totals tr:first-child th,
.at-woo .cart_totals tr:first-child td { border-top: 0; }
.at-woo .cart_totals th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  width: 42%;
  padding-right: 12px;
}
.at-woo .cart_totals td {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 500; /* thinner — prices were too heavy */
  font-size: 14px;
  color: var(--fg-1);
  word-break: break-word;
}
.at-woo .cart_totals td .woocommerce-Price-amount,
.at-woo .cart_totals td .amount { color: var(--fg-1); font-weight: 500; }
.at-woo .cart_totals .order-total td,
.at-woo .cart_totals .order-total td .woocommerce-Price-amount {
  font-size: 19px;
  font-weight: 600; /* total a touch stronger, still not black */
  letter-spacing: -0.01em;
}
.at-woo .cart_totals .order-total td small.includes_tax,
.at-woo .cart_totals td small.includes_tax {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 0;
  line-height: 1.4;
}
.at-woo .cart_totals td small.includes_tax .woocommerce-Price-amount {
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 400;
}

/* Shipping rows */
.at-woo .cart_totals .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}
.at-woo .cart_totals .woocommerce-shipping-methods li { margin: 0 0 6px; }
.at-woo .cart_totals .woocommerce-shipping-methods label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-2);
}
.at-woo .cart_totals .woocommerce-shipping-methods input[type="radio"] { accent-color: var(--performance-orange); }
.at-woo .cart_totals .woocommerce-shipping-destination {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-3);
  margin: 6px 0 0;
}
.at-woo .cart_totals .shipping-calculator-button,
.at-woo .cart_totals a {
  color: var(--fg-1);
  text-decoration: underline;
  text-decoration-color: var(--performance-orange);
  text-underline-offset: 3px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
}
.at-woo .cart_totals .shipping-calculator-form { margin-top: 12px; text-align: left; }
.at-woo .cart_totals .shipping-calculator-form .form-row { margin: 0 0 10px; }
.at-woo .cart_totals .shipping-calculator-form button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--steel-silver);
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
}

/* Proceed to checkout */
.at-woo .wc-proceed-to-checkout {
  padding: 14px 0 0;
  margin: 0;
}
.at-woo .wc-proceed-to-checkout .checkout-button.at-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 16px 24px;
  text-decoration: none; /* kill the inherited link underline */
}
.at-woo .wc-proceed-to-checkout a.checkout-button,
.at-woo .wc-proceed-to-checkout a.checkout-button span { text-decoration: none; }

/* -------------------------------------------------------------------------
   WooCommerce paints .button / .button.alt purple (#a46497) with its own
   box-shadow — wherever we layer .at-btn on a Woo button, strip WC's chrome
   so the AltTune button (black + contained orange wipe) wins. Buttons keep
   .at-btn-primary's overflow:hidden so the skew wipe never leaks out.
   ---------------------------------------------------------------------- */
.at-woo .button.at-btn,
.at-woo a.button.at-btn,
.at-woo button.button.at-btn,
.at-woo input.button.at-btn {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  /* WC sets overflow:visible (wipe leaks), font-size:100%, font-weight:700,
     padding:.618em 1em, border-radius:3px on .button — re-assert the at-btn
     frame here at winning specificity (0,3,0 > WC's 0,2,1). */
  overflow: hidden;
  position: relative;
  isolation: isolate;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 8px;
}
.at-woo .button.at-btn-sm,
.at-woo button.button.at-btn-sm,
.at-woo input.button.at-btn-sm { font-size: 10px; padding: 10px 18px; }
.at-woo .button.at-btn-primary,
.at-woo a.button.at-btn-primary,
.at-woo button.button.at-btn-primary,
.at-woo input.button.at-btn-primary {
  background-color: var(--rubber-black) !important;
  border-color: var(--rubber-black) !important;
  color: #fff !important;
}
.at-woo .button.at-btn-primary:hover,
.at-woo a.button.at-btn-primary:hover,
.at-woo button.button.at-btn-primary:hover { border-color: var(--performance-orange) !important; }
.at-woo .button.at-btn-light,
.at-woo button.button.at-btn-light {
  background-color: var(--steel-silver-100) !important;
  border-color: var(--steel-silver) !important;
  color: var(--fg-1) !important;
}

/* ---- Empty cart state ---- */
.at-woo.at-cart-page.is-empty .wc-empty-cart-message { display: none; } /* template renders the premium state below */
.at-cart-empty {
  text-align: center;
  padding: 72px 0 96px;
}
.at-cart-empty-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.at-cart-empty-title {
  font-family: var(--font-display);
  font-weight: 600; /* thinner — premium, not heavy */
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 10px;
}
.at-cart-empty-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-2);
  margin: 0 0 28px;
}

/* =========================================================================
   CHECKOUT
   ========================================================================= */
.at-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: start;
}
.at-checkout-main { min-width: 0; }

/* Section headings (Billing details / Ship to a different address / Your order) */
.at-woo .woocommerce-billing-fields > h3,
.at-woo .woocommerce-shipping-fields h3,
.at-woo .woocommerce-additional-fields > h3,
.at-woo #order_review_heading {
  font-family: var(--font-display);
  font-weight: 600; /* de-bolded — hierarchy via size + tracking, not weight */
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 18px;
}
.at-woo #ship-to-different-address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.at-woo #ship-to-different-address label { cursor: pointer; }

/* Field grid — replace WC float layout */
.at-woo .at-checkout-layout .col2-set { width: 100%; }
.at-woo .at-checkout-layout .col2-set .col-1,
.at-woo .at-checkout-layout .col2-set .col-2 {
  float: none;
  width: 100%;
  margin: 0;
}
.at-woo .at-checkout-layout .col2-set .col-2 { margin-top: 32px; }

/* The field GRID itself is defined once, further down ("Checkout field grid" —
   the 6-track layout driven by inc/checkout.php's column classes). The 2-column
   grid that used to live here was .at-woo-scoped (higher specificity), so it
   overrode that later block and forced every field full-width — the checkout
   read as one stacked column. Removed; here we only neutralise WC's float
   layout so the grid can place the fields. */
.at-woo .at-checkout-layout .form-row,
.at-woo form.checkout .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.at-woo form.checkout .notes { grid-column: 1 / -1; }
.at-woo form.checkout .form-row label {
  display: block;
  margin: 0 0 6px;
}
.at-woo form.checkout .form-row .woocommerce-input-wrapper { display: block; }

/* select2 (country/state dropdowns) — match the input chrome */
.at-woo .select2-container .select2-selection--single {
  height: auto;
  border: 1px solid var(--steel-silver);
  border-radius: 10px;
  background: #fff;
  transition: border-color var(--dur-base) ease;
}
.at-woo .select2-container .select2-selection--single .select2-selection__rendered {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-1);
  padding: 13px 32px 13px 14px;
}
.at-woo .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
}
.at-woo .select2-container--open .select2-selection--single,
.at-woo .select2-container--focus .select2-selection--single {
  border-color: var(--rubber-black);
}

/* SelectWoo appends its open panel to body, outside the checkout wrapper. */
body.woocommerce-checkout .select2-container--open .select2-dropdown {
  border: 1px solid var(--steel-silver);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pure-white);
  box-shadow: 0 12px 32px rgba(5, 5, 5, 0.12);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-1);
}
body.woocommerce-checkout .select2-container--open .select2-search--dropdown { padding: 10px; }
body.woocommerce-checkout .select2-container--open .select2-search__field {
  border: 1px solid var(--steel-silver);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
body.woocommerce-checkout .select2-container--open .select2-search__field:focus { border-color: var(--rubber-black); }
body.woocommerce-checkout .select2-container--open .select2-results__options { max-height: 260px; scrollbar-width: thin; }
body.woocommerce-checkout .select2-container--open .select2-results__option { padding: 10px 14px; line-height: 1.4; }
body.woocommerce-checkout .select2-container--open .select2-results__option[aria-selected="true"],
body.woocommerce-checkout .select2-container--open .select2-results__option--highlighted {
  background: var(--steel-silver-100);
  color: var(--fg-1);
}

/* Login / coupon toggles above the form */
.at-woo .woocommerce-form-login-toggle,
.at-woo .woocommerce-form-coupon-toggle { margin-bottom: var(--space-4, 20px); }
.at-woo form.woocommerce-form-login,
.at-woo form.checkout_coupon {
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  padding: 22px;
  margin-bottom: var(--space-5, 28px);
}
.at-woo form.checkout_coupon {
  display: none; /* WC toggles it open */
}
.at-woo form.checkout_coupon p { margin: 0 0 12px; }
.at-woo form.checkout_coupon button { white-space: nowrap; }
.at-woo.at-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info {
  border: 1px solid var(--steel-silver);
  border-radius: 12px;
  background: var(--pure-white);
  padding: 16px 18px;
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
}
.at-woo.at-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info::before { content: none; }
.at-woo.at-checkout-page .showcoupon {
  color: var(--fg-1);
  font-weight: 600;
  text-decoration-color: var(--performance-orange);
  text-underline-offset: 3px;
}
.at-woo.at-checkout-page .woocommerce-form-coupon-toggle { margin-bottom: 32px; }
.at-woo.at-checkout-page form.checkout_coupon { max-width: 680px; margin: 0 0 32px; padding: 20px; border: 1px solid var(--steel-silver); border-radius: 12px; background: #fff; }
.at-checkout-coupon-fields { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; align-items: center; }
.at-woo.at-checkout-page form.checkout_coupon .form-row { float: none; width: auto; padding: 0; margin: 0; }
/* The coupon form sits outside form.checkout, so it misses the base field look
   further down — match the cart coupon field (light silver border, 10px radius). */
.at-woo.at-checkout-page form.checkout_coupon .input-text { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid var(--steel-silver); border-radius: 10px; background: #fff; font-family: var(--font-sans); color: var(--fg-1); padding: 10px 14px; font-size: 13px; line-height: 1.4; transition: border-color var(--dur-base) ease; }
.at-woo.at-checkout-page form.checkout_coupon .input-text:focus { border-color: var(--rubber-black); box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.06); outline: 0; }
.at-woo.at-checkout-page form.checkout_coupon button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; }
@media (max-width: 380px) {
  .at-checkout-coupon-fields { grid-template-columns: 1fr; }
  .at-woo.at-checkout-page form.checkout_coupon button { width: 100%; justify-content: center; }
}

/* ---- Order summary card (right column, sticky) ---- */
.at-checkout-summary { min-width: 0; }
.at-checkout-summary-card {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid var(--steel-silver);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(5, 5, 5, 0.06);
}

/* Review-order table */
.at-woo table.woocommerce-checkout-review-order-table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin: 0;
}
.at-woo .woocommerce-checkout-review-order-table th,
.at-woo .woocommerce-checkout-review-order-table td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--steel-silver-100);
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  font-family: var(--font-sans);
  font-size: 13.5px;
}
.at-woo .woocommerce-checkout-review-order-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--steel-silver);
  padding: 0 0 10px;
}
.at-woo .woocommerce-checkout-review-order-table .product-total,
.at-woo .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.at-woo .woocommerce-checkout-review-order-table .cart_item .product-name {
  font-weight: 600;
  color: var(--fg-1);
  padding-right: 14px;
}
.at-checkout-product {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.at-checkout-product__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--steel-silver-200);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.at-checkout-product__media img,
.at-checkout-product__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  padding: 3px;
  object-fit: contain !important;
  object-position: center;
  box-sizing: border-box;
}
.at-checkout-product__info { min-width: 0; }
.at-checkout-product__title { font-weight: 500; }
.at-checkout-product__info dl.variation:empty { display: none; }
.at-woo .woocommerce-checkout-review-order-table .product-quantity {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.at-woo .woocommerce-checkout-review-order-table tfoot th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-right: 12px;
  width: 46%;
}
.at-woo .woocommerce-checkout-review-order-table tfoot td {
  font-family: var(--font-display);
  font-weight: 600; /* de-bolded total values — emphasis via size, not weight */
}
.at-woo .woocommerce-checkout-review-order-table .order-total th { color: var(--fg-1); }
.at-woo .woocommerce-checkout-review-order-table .order-total td .woocommerce-Price-amount { font-size: 20px; }
/* …but the "(Includes $X GST)" amount must NOT inherit that 20px — keep it at
   the small caption size like the rest of the fine print. */
.at-woo .woocommerce-checkout-review-order-table .order-total td small.includes_tax .woocommerce-Price-amount {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-3);
}
.at-woo .woocommerce-checkout-review-order-table .order-total td,
.at-woo .woocommerce-checkout-review-order-table .order-total th { border-bottom: 0; }
.at-woo .woocommerce-checkout-review-order-table small.includes_tax {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 0;
  line-height: 1.4;
}
.at-woo .woocommerce-checkout-review-order-table .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
  font-family: var(--font-sans);
  font-weight: 400;
}
.at-woo .woocommerce-checkout-review-order-table .woocommerce-shipping-methods li { margin: 0 0 6px; }
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table .at-shipping-heading th { width: auto !important; padding-bottom: 10px; border-bottom: 0; }
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table .at-shipping-options td { width: auto !important; padding: 0 0 16px !important; border-top: 0; text-align: left !important; }
.at-checkout-summary-card #order_review .at-shipping-options .woocommerce-shipping-methods { text-align: left; }
.at-checkout-summary-card #order_review .at-shipping-options .woocommerce-shipping-methods li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0 0 12px; }
.at-checkout-summary-card #order_review .at-shipping-options .woocommerce-shipping-methods li:last-child { margin-bottom: 0; }
.at-checkout-summary-card #order_review .at-shipping-options input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; }
.at-checkout-summary-card #order_review .at-shipping-options label { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; }
.at-checkout-summary-card #order_review .at-shipping-options input[type="hidden"] + label { grid-column: 1 / -1; }
.at-checkout-summary-card #order_review .at-shipping-options .woocommerce-Price-amount { white-space: nowrap; }
.at-checkout-summary-card #order_review .cart-discount th { overflow-wrap: anywhere; line-height: 1.5; }
.at-checkout-summary-card #order_review .cart-discount td { white-space: nowrap; }
.at-checkout-summary-card #order_review .cart-discount .woocommerce-remove-coupon { display: inline; margin-left: 8px; font-family: var(--font-sans); font-size: 11px; font-weight: 400; color: var(--fg-2); text-underline-offset: 3px; }

/* ---- Review-order CONDENSE + BALANCE -----------------------------------
   A plugin's frontend.css inflates this table: bold (700) names, heavy padding,
   and — worst — a ~54%-wide price column that strands the amount far from the
   name. Beat it with the full selector path + !important: weight 500, tight
   even padding, and a price column that shrinks to its content so name and
   amount sit close and balanced. */
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name,
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name a,
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: var(--fg-1) !important;
  padding: 9px 0 !important;
  vertical-align: top !important;
}
/* Balanced columns: name/label takes ~62%, price/value ~38% (was ~54%, which
   stranded the amount). Prices never wrap; the shipping MESSAGE may. */
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name,
.at-woo .woocommerce-checkout-review-order-table tfoot th { width: 62% !important; }
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total,
.at-woo .woocommerce-checkout-review-order-table tfoot td {
  width: 38% !important;
  text-align: right !important;
  padding-left: 14px !important;
}
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total { white-space: nowrap !important; }
.at-woo .woocommerce-checkout-review-order-table tfoot td { font-weight: 500 !important; }
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table tfoot th {
  padding-left: 0 !important;
  text-align: left !important;
}
/* WooCommerce core (.woocommerce table.shop_table tfoot th/td) out-specifies the
   base review-table rule: it adds a currentColor border-top — lighter on the grey
   label than the dark value, so dividers looked half-drawn — and 12px right
   padding that pulled totals in from the item prices. Rows already divide via
   border-bottom. */
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table tfoot th,
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table tfoot td { border-top: 0; }
.at-checkout-summary-card #order_review table.woocommerce-checkout-review-order-table tfoot td { padding-right: 0; }

/* A plugin strips the row borders (border-bottom:0 !important), so products run
   together. Draw a divider BEFORE each product after the first — a clean line
   between items that sits after the previous item's add-ons, not inside them. */
.at-woo .woocommerce-checkout-review-order-table tbody tr.cart_item ~ tr.cart_item td {
  border-top: 1px solid var(--steel-silver-100) !important;
  padding-top: 13px !important;
}

/* Item data lines inside the review table reuse the dl.variation styling
   from the cart (defined above) — they inherit automatically. */

/* Payment methods */
.at-woo #payment {
  background: transparent;
  border-radius: 0;
  margin-top: 18px;
}
.at-woo #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}
.at-woo #payment ul.payment_methods li { position: relative; }
.at-woo #payment ul.payment_methods li.wc_payment_method { border-top: 1px solid var(--steel-silver-100); }
.at-woo #payment ul.payment_methods li.wc_payment_method:first-child { border-top: 0; }
.at-woo #payment ul.payment_methods li.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}
.at-woo #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.at-woo #payment ul.payment_methods li.wc_payment_method > label::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--steel-silver);
  border-radius: 50%;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.at-woo #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label::before {
  border-color: var(--rubber-black);
  box-shadow: inset 0 0 0 4px var(--rubber-black);
}
.at-woo #payment ul.payment_methods li.wc_payment_method > label img {
  max-height: 22px;
  width: auto;
}
.at-woo #payment div.payment_box {
  background: var(--steel-silver-100);
  margin: 0 16px 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}
.at-woo #payment div.payment_box::before { display: none; }
.at-woo.at-checkout-page #payment div.payment_box {
  width: auto;
  box-sizing: border-box;
  padding: 16px;
  margin: 0 16px 16px;
}
.at-woo.at-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew { display: flex; align-items: center; gap: 8px; margin: 16px 0 0 !important; padding: 0 !important; }
.at-woo.at-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew::before,
.at-woo.at-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew::after { content: none; display: none; }
.at-woo.at-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] { flex: none; width: 16px !important; height: 16px; margin: 0; }
.at-woo.at-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew label { margin: 0; font-size: 12px; line-height: 1.4; }
.at-woo #payment .woocommerce-privacy-policy-text,
.at-woo #payment .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.at-woo #payment .woocommerce-privacy-policy-text a,
.at-woo #payment .woocommerce-terms-and-conditions-wrapper a { color: var(--fg-2); }
.at-woo.at-checkout-page #payment .place-order { padding: 0; margin: 0; }
.at-woo.at-checkout-page #payment .woocommerce-privacy-policy-text p,
.at-woo.at-checkout-page #payment .woocommerce-terms-and-conditions-wrapper label {
  font-size: 12px;
  line-height: 1.55;
}

/* Place order — full-width primary */
.at-woo #place_order.at-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 16px 24px;
}
.at-woo #place_order:disabled { opacity: 0.5; cursor: default; }

/* =========================================================================
   ORDER RECEIVED / THANK-YOU
   ========================================================================= */
.at-woo .woocommerce-thankyou-order-received {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg-1);
  margin: 0 0 24px;
}
body.woocommerce-order-received .alttune-page,
body.woocommerce-account #site-main .alttune-page { padding-top: 100px; }
.at-woo.at-thankyou-page ul.woocommerce-order-overview::before,
.at-woo.at-thankyou-page ul.woocommerce-order-overview::after,
.at-woo .woocommerce-columns--addresses::before,
.at-woo .woocommerce-columns--addresses::after { content: none; display: none; }
.at-woo ul.woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 var(--space-6, 40px);
  padding: 0;
}
.at-woo ul.woocommerce-order-overview li {
  flex: 1 1 160px;
  border: 1px solid var(--steel-silver) !important; /* WC core uses border-right dividers */
  border-radius: var(--radius-md, 12px);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
  float: none;
}
.at-woo ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600; /* de-bolded overview values — size carries the emphasis */
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-1);
}

.at-woo .woocommerce-order-details,
.at-woo .woocommerce-customer-details { margin-bottom: var(--space-6, 40px); }
.at-woo .woocommerce-order-details__title,
.at-woo .woocommerce-customer-details h2,
.at-woo .woocommerce-column__title {
  font-family: var(--font-display);
  font-weight: 600; /* de-bolded — matches checkout section headings */
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 16px;
}
.at-woo table.woocommerce-table--order-details {
  width: 100%;
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.at-woo table.woocommerce-table--order-details th,
.at-woo table.woocommerce-table--order-details td {
  border: 0;
  border-bottom: 1px solid var(--steel-silver-100);
  padding: 13px 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13.5px;
  background: transparent;
}
.at-woo table.woocommerce-table--order-details thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--steel-silver-100);
}
.at-woo table.woocommerce-table--order-details tfoot th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.at-woo table.woocommerce-table--order-details tfoot td { font-family: var(--font-display); font-weight: 600; /* de-bolded order totals */ }
.at-woo table.woocommerce-table--order-details tfoot tr:last-child th,
.at-woo table.woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; }
.at-woo table.woocommerce-table--order-details .product-total { text-align: right; }
.at-woo table.woocommerce-table--order-details tfoot td { text-align: right; }

.at-woo .woocommerce-customer-details address {
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  padding: 18px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
}
/* Contact paragraphs should match the address, rather than the larger global
   paragraph style. Applies to order confirmation and account order details. */
.woocommerce .woocommerce-customer-details address .woocommerce-customer-details--phone,
.woocommerce .woocommerce-customer-details address .woocommerce-customer-details--email {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  overflow-wrap: anywhere;
}
.at-woo .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.at-woo .woocommerce-columns--addresses .woocommerce-column { width: auto; float: none; }

/* =========================================================================
   RESPONSIVE — theme breakpoints 1100 / 720 / 380
   ========================================================================= */
@media (max-width: 1100px) {
  .at-cart-layout,
  .at-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .at-checkout-summary-card { position: static; }
  .at-woo .at-woo-hero { padding-bottom: 26px; }
}

@media (max-width: 768px) {
  /* Cart table collapses to item cards */
  .at-woo .at-cart-table,
  .at-woo .at-cart-table tbody { display: block; width: 100%; }
  .at-woo .at-cart-table thead { display: none; }
  .at-woo .at-cart-table colgroup { display: none; }
  .at-woo .at-cart-table tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 2px 16px;
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid var(--steel-silver-100);
  }
  .at-woo .at-cart-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .at-woo .at-cart-table td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; width: auto; }
  .at-woo.at-cart-page table.at-cart-table td.product-thumbnail { display: block; }
  .at-woo .at-cart-table td.product-thumbnail img { width: 76px; height: 76px; }
  .at-woo .at-cart-table td.product-name { grid-column: 2; padding-right: 0; }
  .at-woo .at-cart-table td.product-remove {
    position: absolute;
    top: 18px;
    left: 20px;
    right: auto;
    width: auto;
    padding: 0;
  }
  .at-woo .at-cart-table td.product-price { display: none; }
  .at-woo .at-cart-table td.product-quantity { grid-column: 2; margin-top: 14px; }

  /* Comfortable touch targets — stepper buttons ≥40px tap area */
  .at-woo .at-qty .qty,
  .at-woo .at-qty input.qty { width: 52px; padding: 11px 4px; }
  .at-woo .at-qty-btn { width: 42px; min-height: 42px; font-size: 18px; }
  .at-woo .at-cart-table td.product-subtotal {
    grid-column: 2;
    text-align: left;
    margin-top: 10px;
    font-size: 15px;
    white-space: normal;
  }
  .at-woo .at-cart-table td.product-subtotal::before {
    content: attr(data-title);
    display: inline-block;
    margin-right: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-3);
  }

  /* Actions stack full-width on mobile */
  .at-woo .at-cart-table td.actions {
    display: block;
    padding-top: var(--space-5, 24px);
  }
  .at-woo .at-cart-table .coupon {
    display: flex;
    width: 100%;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-3, 12px);
  }
  .at-woo .at-cart-table .coupon #coupon_code { flex: 1 1 auto; width: auto; min-width: 0; }
  .at-woo .at-cart-table .coupon button[name="apply_coupon"] { flex: 0 0 auto; }
  .at-woo.at-cart-page .at-cart-table td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    max-width: none;
  }
  .at-woo.at-cart-page .at-cart-table td.actions .coupon #coupon_code,
  .at-woo.at-cart-page .at-cart-table td.actions .coupon button[name="apply_coupon"] {
    width: 100%;
    margin: 0;
  }
  .at-woo .at-cart-table button[name="update_cart"] {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .at-woo .cart_totals { padding: 22px; }

  /* Checkout fields single column */
  .at-woo .woocommerce-billing-fields__field-wrapper,
  .at-woo .woocommerce-shipping-fields__field-wrapper,
  .at-woo .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .at-checkout-summary-card { padding: 22px; border-radius: 16px; }
  .at-woo .woocommerce-columns--addresses { grid-template-columns: 1fr; }
  .at-woo .at-woo-hero .display-2 { font-size: clamp(26px, 8vw, 34px); }
  .at-cart-empty { padding: 56px 0 72px; }
}

@media (max-width: 768px) {
  .at-woo.at-cart-page .woocommerce-cart-form { padding: 0; overflow: hidden; }
  .at-woo.at-cart-page table.at-cart-table { margin: 0; }
  .at-woo.at-cart-page table.at-cart-table tr.woocommerce-cart-form__cart-item {
    padding: 56px 20px 20px;
    gap: 6px 16px;
    border-bottom: 1px solid var(--steel-silver);
  }
  body.woocommerce-cart #site-main .at-woo.at-cart-page table.at-cart-table tr.woocommerce-cart-form__cart-item td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
    text-align: left !important;
  }
  .at-woo.at-cart-page table.at-cart-table td.product-remove { top: 20px; }
  .at-woo.at-cart-page table.at-cart-table td.product-thumbnail { grid-row: 1 / span 3; }
  .at-woo.at-cart-page table.at-cart-table td.product-name > a { margin-bottom: 0; }
  .at-woo.at-cart-page table.at-cart-table td.product-quantity { margin-top: 10px; }
  .at-woo.at-cart-page table.at-cart-table td.product-name::before,
  .at-woo.at-cart-page table.at-cart-table td.product-thumbnail::before,
  .at-woo.at-cart-page table.at-cart-table td.product-remove::before { content: none; display: none; }
  .at-woo.at-cart-page table.at-cart-table td.product-quantity::before {
    float: none;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .at-woo.at-cart-page table.at-cart-table td.product-subtotal::before { float: none; }
  .at-woo.at-cart-page table.at-cart-table td.actions {
    padding: 20px !important;
    background: var(--steel-silver-50, #fafafa);
    width: 100%;
  }
}

@media (max-width: 380px) {
  .at-woo.at-cart-page .at-cart-table td.actions .coupon { grid-template-columns: 1fr; }
  .at-woo .at-cart-table tr.woocommerce-cart-form__cart-item { grid-template-columns: 60px minmax(0, 1fr); }
  .at-woo .at-cart-table td.product-thumbnail img { width: 60px; height: 60px; }
  .at-woo .at-cart-table .coupon { flex-wrap: wrap; }
  .at-woo .at-cart-table .coupon .at-btn { width: 100%; justify-content: center; }
  .at-woo .cart_totals { padding: 18px; border-radius: 16px; }
  .at-checkout-summary-card { padding: 18px; }
  .at-woo ul.woocommerce-order-overview li { flex-basis: 100%; }
  /* Empty state: tighten vertical rhythm on narrow screens */
  .at-cart-empty { padding: 48px 0 64px; }
}

/* =========================================================================
   PROTOCOL ADD-ONS under a KESS3 line (cart + checkout review)
   ========================================================================= */
.at-woo ul.at-cart-addons {
  list-style: none;
  margin: 5px 0 0 !important;
  padding: 5px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.at-woo .at-cart-addon {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.3;
  color: var(--fg-2);
}
/* Price aligns to the name's FIRST line, not centred against a wrapped name
   (a plugin forces align-items:center on this row — out-specify it). */
.at-woo .woocommerce-checkout-review-order-table .at-cart-addon,
.at-woo .at-cart-table .at-cart-addon,
.at-minicart .at-cart-addon { align-items: flex-start !important; }
/* The mini-cart sits outside .at-woo, so the "+"-before-name reset needs an
   un-scoped selector there too. */
.at-minicart .at-cart-addon__name::before { content: none !important; }
.at-woo .at-cart-addon:last-child { margin-bottom: 0; }
.at-woo .at-cart-addon__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.at-woo .at-cart-addon__identity { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.at-woo .at-cart-addon__product { font-size: 11px; font-weight: 500; color: var(--fg-1); }
.at-woo .at-cart-addon__purpose { font-size: 9.5px; font-weight: 400; color: var(--fg-3); }
.at-woo .at-cart-addon__bundle {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: var(--radius-pill, 999px);
  background: var(--performance-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.at-woo .wcab-bundle-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill, 999px);
  background: var(--performance-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* No marker before the name — the price already carries a "+" prefix, so a
   second "+" / bullet here just doubled up and misaligned. */
.at-woo .at-cart-addon__name::before { content: none !important; }
.at-woo .at-cart-addon__price {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400 !important;
  color: var(--fg-2);
  white-space: nowrap;
}
/* The "Included add-ons" key label WC prints above the list — keep it quiet. */
.at-woo .woocommerce-checkout-review-order-table .at-cart-addons,
.at-woo .at-cart-table .at-cart-addons { margin-top: 6px; }

/* Tighten the add-ons block to its product — the gap was huge (wrap margin-top
   10px ABOVE + row td padding-bottom 14px BELOW). Pull both in. */
.at-woo .woocommerce-checkout-review-order-table .at-cart-addons-wrap,
.at-woo .at-cart-table .at-cart-addons-wrap {
  position: relative;
  margin-top: 0 !important;
  padding: 9px 11px !important;
  border: 1px dashed var(--steel-silver) !important;
  border-radius: 8px !important;
  background: var(--steel-silver-50) !important;
}
.at-woo .at-cart-addons-title {
  margin: 0 0 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.at-woo .at-cart-table .at-cart-addons-wrap { margin-left: 96px !important; }
.at-woo .at-cart-table .at-cart-addons-wrap::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -18px;
  width: 18px;
  height: 30px;
  border-left: 1px dashed var(--steel-silver);
  border-bottom: 1px dashed var(--steel-silver);
  border-bottom-left-radius: 7px;
}
.at-woo .woocommerce-checkout-review-order-table .at-cart-addons-wrap { margin-left: 16px !important; }
.at-woo .woocommerce-checkout-review-order-table .at-cart-addons-wrap::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 10px;
  height: 21px;
  border-left: 1px dashed var(--steel-silver);
  border-bottom: 1px dashed var(--steel-silver);
  border-bottom-left-radius: 6px;
}
/* The plugin pins this with `body .woocommerce table.shop_table tr… > td`
   (0,3,4 + !important); out-specify it with a body-class prefix + child combinator. */
body.woocommerce-checkout .at-woo .woocommerce-checkout-review-order-table tr.at-cart-addons-row > td,
body.woocommerce-cart .at-woo .at-cart-table tr.at-cart-addons-row > td {
  padding-top: 0 !important;
  padding-bottom: 16px !important;
  border-bottom: 0 !important;
}
@media (max-width: 900px) {
  .at-woo .at-cart-table .at-cart-addons-wrap { margin-left: 64px !important; }
}

/* =========================================================================
   CHECKOUT POLISH + ADDRESS AUTOCOMPLETE
   ========================================================================= */

/* Base field look — text inputs + textarea match the country/region select2 box
   (light silver border, 10px radius, same padding/height). Without this they
   fell back to the browser/WC default: a near-black 1px border with a 4px radius
   and a short height, so only the two select2 dropdowns looked right. */
.at-woo form.checkout .input-text,
.at-woo form.checkout textarea,
.at-woo form.checkout select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--steel-silver);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-1);
  padding: 13px 14px;
  transition: border-color var(--dur-base) ease;
}
.at-woo form.checkout textarea { min-height: 96px; }

/* Soft focus ring on every field — quiet, premium, no orange. */
.at-woo form.checkout .input-text:focus,
.at-woo form.checkout textarea:focus,
.at-woo form.checkout select:focus,
.at-woo .select2-container--focus .select2-selection--single {
  border-color: var(--rubber-black);
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.06);
  outline: 0;
}

/* Place order: keep the black button, but lighter weight (no 700) so it reads
   refined rather than heavy. */
.at-woo #place_order.at-btn {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The address field is the smart one — hint it with a faint pin on the right. */
.at-woo .at-address-autocomplete .input-text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M8 14s5-4.2 5-8A5 5 0 0 0 3 6c0 3.8 5 8 5 8z' stroke='%238a8a8a' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='6' r='1.6' stroke='%238a8a8a' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Suggestion dropdown */
.at-woo .woocommerce-input-wrapper { position: relative; }
.at-addr-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 16px 42px rgba(5, 5, 5, 0.13);
  overflow: hidden;
  max-height: 330px; overflow-y: auto;
}
.at-addr-suggest__item {
  display: flex; align-items: flex-start; gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: 0; border-bottom: 1px solid var(--steel-silver-100);
  background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font-sans);
  transition: background var(--dur-fast, 120ms) ease;
}
.at-addr-suggest__item:last-of-type { border-bottom: 0; }
.at-addr-suggest__item:hover,
.at-addr-suggest__item.is-active { background: rgba(5, 5, 5, 0.045); }
.at-addr-suggest__pin { flex: 0 0 auto; color: var(--fg-3); margin-top: 1px; }
.at-addr-suggest__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.at-addr-suggest__main { font-size: 14px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-addr-suggest__sub { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-addr-suggest__state {
  padding: 14px; font-size: 13px; color: var(--fg-3);
  font-family: var(--font-sans);
}
.at-addr-suggest__foot {
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em;
  color: var(--fg-3);
  border-top: 1px solid var(--steel-silver-100);
  background: var(--steel-silver-100);
}

/* =========================================================================
   ORDER CONFIRMATION — success banner + what-happens-next
   ========================================================================= */
.at-thx-banner {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--steel-silver);
  border-radius: 18px;
  background: #fff;
  margin: 0 0 28px;
}
.at-thx-check {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rubber-black); color: #fff;
}
.at-thx-banner-body { min-width: 0; }
.at-thx-banner-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--fg-1);
  margin: 2px 0 6px;
}
.at-thx-banner-text {
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.6; color: var(--fg-2);
  margin: 0;
}

.at-thx-next { margin: 0 0 var(--space-6, 40px); }
.at-thx-next-h {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.at-thx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.at-thx-step {
  border: 1px solid var(--steel-silver);
  border-radius: var(--radius-md, 12px);
  padding: 16px 18px;
}
.at-thx-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--steel-silver-100); color: var(--fg-2);
  font-family: var(--font-mono); font-size: 12px;
  margin-bottom: 10px;
}
.at-thx-step-t {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; color: var(--fg-1);
  margin: 0 0 4px;
}
.at-thx-step-d {
  font-family: var(--font-sans);
  font-size: 13px; line-height: 1.5; color: var(--fg-3);
  margin: 0;
}
.at-thx-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 4px 0 var(--space-6, 40px);
}

@media (max-width: 720px) {
  .at-thx-steps { grid-template-columns: 1fr; }
  .at-thx-banner { padding: 18px; }
}

/* ============================================================================
   Checkout field grid
   inc/checkout.php tags each field with a column class (form-row-first/last =
   half, form-row-third = a 3-up row, form-row-wide = full). WooCommerce ships
   no layout for these once its default CSS is dequeued, so the fields stacked
   full-width. A 6-track grid turns them into logical 2- and 3-column rows:
   name pair, email+phone pair, full country + street, then town/postcode/
   region together on one line instead of three wasteful full-width rows.
   ========================================================================== */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
}
/* Every field defaults to full width; the column classes narrow it. The
   child combinator keeps nested rows (e.g. inside a field) untouched. */
.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row,
.woocommerce-additional-fields__field-wrapper > .form-row {
  float: none;
  width: auto;
  margin: 0;               /* grid gap owns the spacing */
  grid-column: span 6;
}
/* WooCommerce re-adds `form-row-wide` to the address fields (city/state/postcode
   keep both our `form-row-third` AND `form-row-wide`) and to the phone field. The
   extra `.form-row` here outranks the plain `> .form-row-wide` rule below, so the
   narrow column wins whenever both classes are present. */
.woocommerce-billing-fields__field-wrapper > .form-row.form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row.form-row-first,
.woocommerce-billing-fields__field-wrapper > .form-row.form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row.form-row-last { grid-column: span 3; }

.woocommerce-billing-fields__field-wrapper > .form-row.form-row-third,
.woocommerce-shipping-fields__field-wrapper > .form-row.form-row-third { grid-column: span 2; }

.woocommerce-billing-fields__field-wrapper > .form-row-wide,
.woocommerce-shipping-fields__field-wrapper > .form-row-wide { grid-column: span 6; }

/* Billing is pinned by field id — order AND span — so the layout is
   deterministic regardless of WC's field pipeline. WooCommerce re-appends
   billing_phone at the end with its own priority (class-wc-countries.php),
   dropping inc/checkout.php's reorder/class, which left phone stranded on its
   own row. The ids below place it back beside email and give every field its
   column: name pair, email|phone pair, full country + street, then
   town|region|postcode as a 3-up row. (Shipping has no phone/email and is
   handled by the class rules above.) */
#billing_first_name_field { order: 1; grid-column: span 3; }
#billing_last_name_field  { order: 2; grid-column: span 3; }
#billing_email_field      { order: 3; grid-column: span 3; }
#billing_phone_field      { order: 4; grid-column: span 3; }
#billing_country_field    { order: 5; grid-column: 1 / -1; }
#billing_address_1_field  { order: 6; grid-column: 1 / -1; }
#billing_city_field       { order: 7; grid-column: span 2; }
#billing_state_field      { order: 8; grid-column: span 2; }
#billing_postcode_field   { order: 9; grid-column: span 2; }
@media (max-width: 560px) {
  /* Single column on phones — cancel the id spans so nothing stays half-width. */
  #billing_first_name_field, #billing_last_name_field, #billing_email_field,
  #billing_phone_field, #billing_country_field, #billing_address_1_field,
  #billing_city_field, #billing_state_field, #billing_postcode_field { grid-column: 1 / -1; }
}

/* Inputs fill their cell regardless of WooCommerce's inline widths. */
.woocommerce-billing-fields__field-wrapper .form-row .input-text,
.woocommerce-billing-fields__field-wrapper .form-row .select2-container,
.woocommerce-shipping-fields__field-wrapper .form-row .input-text,
.woocommerce-shipping-fields__field-wrapper .form-row .select2-container { width: 100%; }

/* Tablet: 3-up row stays, halves stay; phones collapse to a single column. */
@media (max-width: 560px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
  .woocommerce-billing-fields__field-wrapper > .form-row,
  .woocommerce-shipping-fields__field-wrapper > .form-row,
  .woocommerce-additional-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
}

/* Coupon controls may wrap on narrow screens without clipping. */
.at-woo .at-cart-table td.actions { overflow: visible; }
.at-woo .at-cart-table .coupon { flex-wrap: wrap; overflow: visible; }
.at-woo .at-cart-table .coupon #coupon_code { max-width: 100%; }
.at-woo .at-cart-table .coupon button[name="apply_coupon"] { flex: 0 0 auto; white-space: nowrap; }

/* Account endpoints use WooCommerce's own wrapper rather than .at-woo. */
/* .u-columns is a flex row here — WooCommerce's clearfix pseudos would become
   flex items and push both address columns in by one gap. */
body.woocommerce-account #site-main .woocommerce-Addresses::before,
body.woocommerce-account #site-main .woocommerce-Addresses::after { content: none; display: none; }
body.woocommerce-account #site-main .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
body.woocommerce-account #site-main .woocommerce-Address-title::before,
body.woocommerce-account #site-main .woocommerce-Address-title::after { content: none; display: none; }
body.woocommerce-account #site-main .woocommerce-Address-title h2 {
  float: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
body.woocommerce-account #site-main .woocommerce-Address-title a.edit {
  float: none;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--steel-silver);
  border-radius: 8px;
  color: var(--fg-1) !important;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
body.woocommerce-account #site-main .woocommerce-Address-title a.edit:hover { border-color: var(--rubber-black); color: var(--fg-1) !important; text-decoration: none !important; }
body.woocommerce-account #site-main .woocommerce-MyAccount-content > .woocommerce-info {
  border: 1px solid var(--steel-silver);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 20px;
  background: #fff;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}
body.woocommerce-account #site-main .woocommerce-MyAccount-content > .woocommerce-info::before { content: none; }
body.woocommerce-account #site-main .woocommerce-MyAccount-content > .woocommerce-info:has(> .button) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
body.woocommerce-account #site-main .woocommerce-MyAccount-content > .woocommerce-info:has(> .button)::after { content: none; display: none; }
body.woocommerce-account #site-main .woocommerce-MyAccount-content > a.button[href*="add-payment-method"],
body.woocommerce-account #site-main .woocommerce-MyAccount-content .woocommerce-info a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--rubber-black);
  border-radius: 8px;
  background: var(--rubber-black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  float: none;
  margin: 0;
  max-width: 100%;
  white-space: normal;
}
body.woocommerce-account #site-main .woocommerce-MyAccount-content > a.button[href*="add-payment-method"]:hover,
body.woocommerce-account #site-main .woocommerce-MyAccount-content .woocommerce-info a.button:hover { background: var(--performance-orange); border-color: var(--performance-orange); }
body.woocommerce-account #site-main .woocommerce-orders-table__cell-order-number a { color: var(--fg-1); text-decoration: none; transition: color 160ms ease; }
body.woocommerce-account #site-main .woocommerce-orders-table__cell-order-number a:hover { color: var(--performance-orange); }
body.woocommerce-account #account_display_name_description {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-3);
}
body.woocommerce-account #account_display_name_description em { font-style: normal; }

/* Scroll the account navigation to the viewport edges on phones. */
@media (max-width: 768px) {
  body.woocommerce-account #site-main .at-container { padding-inline: var(--at-gutter); }
  body.woocommerce-account #site-main .woocommerce-MyAccount-navigation {
    width: calc(100% + 2 * var(--at-gutter)) !important;
    max-width: none;
    margin-inline: calc(-1 * var(--at-gutter)) !important;
  }
  body.woocommerce-account #site-main .woocommerce-MyAccount-navigation ul {
    padding-inline: var(--at-gutter) !important;
    scroll-padding-inline: var(--at-gutter);
  }
  body.woocommerce-view-order #site-main .woocommerce-MyAccount-content { padding: 20px; }
}
body.woocommerce-view-order #site-main .woocommerce-MyAccount-content > p { margin: 0 0 24px; }
body.woocommerce-view-order #site-main .woocommerce-order-details { margin-bottom: 28px; }
body.woocommerce-view-order #site-main .woocommerce-order-details__title,
body.woocommerce-view-order #site-main .woocommerce-column__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
body.woocommerce-view-order #site-main .woocommerce-MyAccount-content a:not(.button) { color: var(--fg-1); text-decoration-color: var(--steel-silver); text-underline-offset: 3px; }
body.woocommerce-view-order #site-main .woocommerce-MyAccount-content a:not(.button):hover { color: var(--performance-orange); }
body.woocommerce-view-order #site-main .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.woocommerce-view-order #site-main .woocommerce-columns--addresses::before,
body.woocommerce-view-order #site-main .woocommerce-columns--addresses::after { content: none; display: none; }
body.woocommerce-view-order #site-main .woocommerce-columns--addresses .woocommerce-column { float: none; width: auto; min-width: 0; }
body.woocommerce-view-order #site-main .woocommerce-table--order-details .product-total,
body.woocommerce-view-order #site-main .woocommerce-table--order-details tfoot td { text-align: right; }
@media (max-width: 768px) {
  body.woocommerce-view-order #site-main .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}
