/*! Cart + checkout parity, ported from the rey migration site
    (rey/wp-content/themes/hello-theme-child-master/style.css) by
    scripts/gb-port-woo-css.mjs. Section banners below are theirs. */

/* ============================================================
   CHECKOUT — stock WooCommerce markup, laid out like preprod
   The grid lives on the shortcode's .woocommerce wrapper, not on form.checkout:
   form-checkout.php closes the form before the review, so details and review are
   siblings (that is what makes the coupon <form> in the review legal).
   preprod at 1280: rail 72→1208, details 669, review 398, 69px gutter.
   ============================================================ */
.woocommerce.rey-checkoutPage {
  display: grid;
  grid-template-columns: 1fr 398px;
  grid-template-areas:
    "gate gate"
    "details review";
  grid-template-rows: auto 1fr;
  column-gap: 69px;
  align-items: start;
}
.woocommerce.rey-checkoutPage > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
.woocommerce.rey-checkoutPage > #hype-gate {
  grid-area: gate;
}
.woocommerce.rey-checkoutPage > form.checkout {
  grid-area: details;
  min-width: 0;
}
.woocommerce.rey-checkoutPage > #order_review {
  grid-area: review;
  min-width: 0;
}
/* the shipping half of col2-set is empty here */
.hype-checkoutPage #customer_details,
.hype-checkoutPage #customer_details .col-1,
.hype-checkoutPage #customer_details .col-2 {
  display: block;
  width: auto;
  float: none;
}

/* Coupon row inside the review tfoot */
.hype-checkoutPage .__coupon-row td {
  padding: 16px 0;
}
.hype-checkoutPage .__coupon-row form.checkout_coupon {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.hype-checkoutPage .__coupon-row form.checkout_coupon p {
  margin: 0;
}
.hype-checkoutPage .__coupon-row .form-row-first {
  flex: 1 1 auto;
  min-width: 0;
}
.hype-checkoutPage .__coupon-row #coupon_code {
  width: 100%;
}

@media (max-width: 1024px) {
  .woocommerce.rey-checkoutPage {
    display: block;
  }
  .woocommerce.rey-checkoutPage > #order_review_heading {
    margin-top: 32px;
  }
}
/* ============================================================
   CART PAGE — stock WooCommerce markup
   Snippet 2 lays .rey-cartPage-inner out as a flex row of
   .woocommerce-cart-formWrapper + .cart_totals. Stock emits
   form.woocommerce-cart-form + .cart-collaterals instead, so map the two
   stock children onto the same tracks.
   ============================================================ */
/* the Elementor widget wrapper is a flex box, so .woocommerce shrank to its
   content instead of filling the 1137px rail */
/* Elementor keeps the widget itself flex, so its .elementor-shortcode child
   sized to content (551px) instead of filling the 1137px rail */
.hype-cartPage .elementor-shortcode {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
.hype-cartPage .woocommerce {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "items totals"
    "cross totals";
  column-gap: 73px;
  align-items: start;
  width: 100%;
}
/* .cart-collaterals wraps cross-sells + totals; dissolve it so both can be
   placed independently - preprod puts cross-sells under the items, not in the
   right column */
.hype-cartPage .cart-collaterals {
  display: contents;
}
.hype-cartPage form.woocommerce-cart-form {
  grid-area: items;
  min-width: 0;
}
.hype-cartPage .cross-sells {
  grid-area: cross;
  min-width: 0;
}
.hype-cartPage .cart_totals {
  grid-area: totals;
}
@media (max-width: 1024px) {
  .hype-cartPage .woocommerce {
    flex-direction: column;
  }
  .hype-cartPage .cart-collaterals {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}


/* ============================================================
   CHECKOUT PARITY (target: preprod, which runs rey's plugin set)
   ============================================================ */
/* preprod shows neither of WooCommerce's own toggles: the email gate covers
   returning customers and the coupon lives in the summary column. */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
  display: none !important;
}
/* the gate already captured the address, so the field is dead weight */
.woocommerce-checkout #billing_email_field {
  display: none !important;
}

/* Return-to-cart crumb, right-aligned on the billing-heading row */
.hype-checkoutPage #customer_details {
  position: relative;
}
.hype-checkoutPage .hype-co-back {
  position: absolute;
  top: 4px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-text);
  text-decoration: none;
}
.hype-checkoutPage .hype-co-back:hover {
  color: var(--navy);
}
.hype-checkoutPage .hype-co-back__chev {
  font-size: 15px;
  line-height: 1;
}

/* Review rows: thumb + name + price, no table chrome */
.hype-checkoutPage .woocommerce-checkout-review-order-table td.product-name {
  position: relative; /* the qty badge is a sibling of the thumb, not a child */
  display: flex;
  align-items: center;
  gap: 16px;
}
.hype-checkoutPage .hype-co-thumb {
  position: relative;
  flex: 0 0 60px;
}
.hype-checkoutPage .hype-co-thumb img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.hype-checkoutPage .hype-co-name {
  flex: 1 1 auto;
  min-width: 0;
}
/* quantity reads as a badge on the thumb, like preprod */
.hype-checkoutPage .woocommerce-checkout-review-order-table .product-quantity {
  position: absolute;
  top: 4px;
  left: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff !important; /* snippet 2 colours .product-quantity grey */
  font-size: 11px;
  font-weight: 700;
}
/* ---- Login block: the email gate owns returning customers on preprod ---- */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-login,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout > .woocommerce > form.checkout_coupon {
  display: none !important;
}

/* ---- Return-to-cart anchors to the details column, not the widget ---- */
.hype-checkoutPage form.checkout {
  position: relative;
}
.hype-checkoutPage .hype-co-back {
  top: 0;
}

/* ---- Payment eyebrow ---- */
.hype-checkoutPage .hype-co-paytitle {
  margin: 32px 0 4px;
}
.hype-checkoutPage .hype-co-paycaption {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
}

/* ---- REVIEW TABLE — preprod strips all table chrome ---- */
.hype-checkoutPage .woocommerce-checkout-review-order-table {
  border: 0;
  border-collapse: collapse;
  width: 100%;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table thead {
  display: none;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table th,
.hype-checkoutPage .woocommerce-checkout-review-order-table td {
  border: 0;
  background: none;
  padding: 14px 0;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody tr,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr {
  border-bottom: 1px solid var(--border);
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr.order-total {
  border-bottom: 0;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table td.product-total,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot th {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: left;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr.order-total th {
  vertical-align: top;
  padding-top: 20px;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr.order-total td {
  padding-top: 16px;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}
/* ---- CHECKOUT FINE PASS (measured against preprod) ---- */
/* the shop_table default border/radius/margin is not preprod's look */
.hype-checkoutPage table.woocommerce-checkout-review-order-table,
.hype-checkoutPage table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: 14px;
}
.hype-checkoutPage #order_review {
  border: 0;
  padding: 0;
  background: none;
}
/* preprod inputs stand 48.5px tall; ours were 45 */
.hype-checkoutPage .woocommerce-billing-fields input.input-text,
.hype-checkoutPage .woocommerce-billing-fields textarea,
.hype-checkoutPage .woocommerce-billing-fields select {
  line-height: 22.5px;
}
/* place-order sits flush inside the payment card; WooCommerce pads .form-row */
.hype-checkoutPage .form-row.place-order {
  padding: 0 !important;
  margin: 0 0 20px !important;
}
.hype-checkoutPage #place_order {
  margin: 30px 0 0 !important;
}
/* COUNTRY FIELD - preprod's select is 39px and its wrapper unpadded */
.hype-checkoutPage #billing_country_field .woocommerce-input-wrapper {
  padding: 0;
}

/* ---- EMAIL GATE - hello-elementor flattens two of Rey's inherited metrics ---- */
#hype-gate .hype-gate-label {
  line-height: 26px;
}
#hype-gate .hype-gate-continue {
  margin-top: 16px;
}
/* ---- CHECKOUT METRIC PASS (every number measured off preprod) ---- */
.hype-checkoutPage .woocommerce-billing-fields label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-light);
  font-size: 11px !important;
  line-height: 25.5px !important;
  margin: 0 0 5px !important;
}
.hype-checkoutPage .woocommerce-billing-fields .form-row {
  padding: 0;
}
/* WooCommerce's shop_table cell padding is not preprod's; drive it per row */
.hype-checkoutPage .woocommerce-checkout-review-order-table th,
.hype-checkoutPage .woocommerce-checkout-review-order-table td {
  padding: 0 !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart_item td {
  padding: 15px 0 !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total th {
  padding: 26px 0 8px !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total td {
  padding: 22px 0 8px !important;
}
.hype-checkoutPage .hype-co-thumb img {
  border-radius: 0;
}
/* coupon row: input + button on one line, like preprod */
.hype-checkoutPage .__coupon-row td {
  padding: 15px 0 !important;
}
.hype-checkoutPage .__coupon-row form.checkout_coupon #coupon_code {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
}
.hype-checkoutPage .__coupon-row form.checkout_coupon button {
  flex: 0 0 auto;
  height: 48px;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart-subtotal td {
  padding: 2px 0 !important;
}

/* ---- CHECKOUT MOBILE (preprod: coupon link, collapsed summary, then form) ---- */
.hype-co-summary {
  display: none;
}
@media (max-width: 767px) {
  .woocommerce.rey-checkoutPage {
    display: flex;
    flex-direction: column;
    /* the desktop rule sets align-items:start; in a column flex box that sizes
       children to max-content and the form overflows the viewport */
    align-items: stretch;
  }
  .woocommerce.rey-checkoutPage > * {
    max-width: 100%;
    min-width: 0;
  }
  .woocommerce.rey-checkoutPage > #hype-gate { order: 1; }
  .woocommerce.rey-checkoutPage > #order_review { order: 2; }
  .woocommerce.rey-checkoutPage > form.checkout { order: 3; }

  /* the toggle replaces the heading, exactly as on preprod */
  .hype-checkoutPage #order_review_heading {
    display: none;
  }
  .hype-checkoutPage .hype-co-summary {
    /* grid, not flex: with flex the wrapped label kept overlapping the total */
    white-space: normal;
    display: grid;
    /* label and total share the row like preprod, chevron between them */
    grid-template-columns: auto minmax(0, 1.15fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
  }
  .hype-checkoutPage .hype-co-summary__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--text-light);
  }
  .hype-checkoutPage .hype-co-summary__label {
    min-width: 0;
    /* the button inherits white-space:nowrap, so the label overflowed its grid
       column and painted over the total instead of wrapping */
    white-space: normal;
    overflow-wrap: break-word;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.35;
  }
  .hype-checkoutPage .hype-co-summary__chev svg {
    display: block;
    width: 12px;
    height: 12px;
    color: var(--text-light);
    transition: transform .2s ease;
  }
  .hype-checkoutPage #order_review.is-open .hype-co-summary__chev svg {
    transform: rotate(180deg);
  }
  .hype-checkoutPage .hype-co-summary__total {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
  }
  /* preprod lets the ddc note flow inline after the amount, not onto its own line */
  .hype-checkoutPage .hype-co-summary__total .includes_tax,
  .hype-checkoutPage .hype-co-summary__total small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
  }
  /* collapsed by default */
  .hype-checkoutPage #order_review .woocommerce-checkout-review-order-table {
    display: none;
  }
  .hype-checkoutPage #order_review.is-open .woocommerce-checkout-review-order-table {
    display: block; /* the rows are flex now, so the table is a block */
  }
}
/* ---- CHECKOUT MOBILE PASS 2 ---- */
@media (max-width: 767px) {
  /* preprod stacks first/last name; WooCommerce floats them 50/50 */
  .hype-checkoutPage .woocommerce-billing-fields .form-row-first,
  .hype-checkoutPage .woocommerce-billing-fields .form-row-last {
    width: 100%;
    float: none;
  }
  /* keep the total inside the summary card - a wide includes_tax line was
     overflowing the flex row instead of wrapping */
  /* Payment card + CTA breathe like preprod. Snippet 2 prints its checkout CSS
     in wp_footer, i.e. AFTER this stylesheet, so an equally-specific !important
     there wins - these need the extra body/ancestor weight to land. */
  /* snippet 2 styles the card through #payment, so an id has to be in the
     selector or the rule loses on specificity regardless of !important */
  body.woocommerce-checkout #payment.woocommerce-checkout-payment {
    padding: 8px !important;
  }
  body.woocommerce-checkout #payment .form-row.place-order {
    padding: 0 !important;
  }
  body.woocommerce-checkout #payment #place_order {
    padding: 22px 24px !important;
  }
}
@media (min-width: 768px) {
  body.woocommerce-checkout #payment .form-row.place-order {
    padding: 0 !important;
    margin: 0 0 20px !important;
  }
}

/* ---- NATIVE SELECTS ----
   preprod's country/state fields are selectWoo widgets (rey-core loads the
   library; WooCommerce 11 alone no longer enhances them). Rather than ship a
   second select library, style the native control into the same box - it
   behaves better on mobile anyway. */
.hype-checkoutPage .woocommerce-billing-fields select:not(.select2-hidden-accessible),
.hype-checkoutPage .woocommerce-billing-fields .woocommerce-input-wrapper select:not(.select2-hidden-accessible) {
  width: 100% !important;
  max-width: 100% !important;
  height: 48.5px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background-color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 22.5px;
}
.hype-checkoutPage .woocommerce-billing-fields select:focus {
  outline: none;
  border: 2px solid var(--blue-text);
}

/* ---- PAYMENT RADIO ----
   The label paints its own circle, so the native input has to be hidden.

   That rule used to be missing, on the belief — written into this comment —
   that "WooCommerce hides the native input on both sites". It does not.
   WooCommerce emits style="display:none" on the radio only when there is
   exactly ONE available gateway; see templates/checkout/payment-method.php.
   The reference site has WooCommerce Payments switched off, so it has one
   gateway and the belief held there. Production has two, Cash on delivery and
   Card, so every method rendered a real radio beside the drawn one.

   A staging-only difference that guaranteed a visible defect in production, and
   invisible to any amount of comparing against the reference. */
.hype-checkoutPage #payment .payment_methods > li > input[type="radio"] {
  display: none;
}

.hype-checkoutPage #payment .payment_methods > li > label {
  position: relative;
  display: inline-block;
  padding-left: 30px;
}
.hype-checkoutPage #payment .payment_methods > li > label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
}
.hype-checkoutPage #payment .payment_methods > li > label::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0;
  transition: opacity .15s ease;
}
.hype-checkoutPage #payment .payment_methods > li.woocommerce-checkout-payment-method-selected > label::after,
.hype-checkoutPage #payment .payment_methods > li:has(input:checked) > label::after {
  opacity: 1;
}

/* ---- REVIEW COLUMN WIDTHS ----
   auto table layout was giving the price column 184px and wrapping the product
   name; preprod is 331 / 47. Let the name take the slack. */
/* only the item row needs forcing; letting the tfoot cells size naturally is
   what gives preprod's 208/189 split on the totals */
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody td.product-name {
  width: 100%;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody td.product-total {
  width: 1%;
  white-space: nowrap;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total td {
  white-space: normal;
}

/* ---- SELECT2 SKIN ----
   Enhanced country/state selects have to read as the same control as the text
   inputs (48.5px, 12px radius, hairline border) - Rey skinned them on preprod. */
.hype-checkoutPage .select2-container .select2-selection--single {
  height: 48.5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
}
.hype-checkoutPage .select2-container .select2-selection--single .select2-selection__rendered {
  height: 46.5px;
  padding: 0 48px 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 46.5px;
  color: var(--text);
}
.hype-checkoutPage .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 6px;
  width: 36px;
  height: 46.5px;
}
.hype-checkoutPage .select2-container--open .select2-selection--single {
  border: 2px solid var(--blue-text);
}
.hype-checkoutPage .select2-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
}
/* ---- SELECT2 ARROW ----
   preprod shows select2's classic border-triangle behind a hairline divider.
   Something in this stack repaints b with a feather-chevron background image,
   which hides the triangle - kill the background and rebuild the triangle. */
.hype-checkoutPage .select2-container .select2-selection__arrow {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.hype-checkoutPage .select2-container .select2-selection__arrow b {
  width: 0;
  height: 0;
  margin-left: -4px;
  margin-top: -2px;
  top: 50%;
  left: 50%;
  background: none !important;
  border-color: #6a6a7a transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
}
.hype-checkoutPage .select2-container--open .select2-selection__arrow b {
  border-color: transparent transparent #6a6a7a transparent;
  border-width: 0 4px 5px 4px;
}

/* qty badge: preprod's is a touch smaller than the first cut */
.hype-checkoutPage .woocommerce-checkout-review-order-table .product-quantity {
  min-width: 24px;
  height: 18px;
  font-size: 10px;
}

/* the grand total needs room for the inline VAT note */
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total td {
  width: auto;
  white-space: normal;
}
/* ---- REVIEW ROW RHYTHM ----
   preprod separates the review rows with real space (rows start at 289 / 410 /
   519 / 564 for a one-line cart). Row heights already match, so the gap goes on
   as padding-top of the following row - that keeps each divider directly under
   the row it belongs to, like preprod. */
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.__coupon-row td {
  padding: 45px 0 15px !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart-subtotal td {
  padding: 32px 0 2px !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total th {
  width: 52% !important;
  white-space: normal !important;
  padding: 45px 0 8px !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.order-total td {
  width: 48% !important;
  white-space: normal !important;
  padding: 41px 0 8px !important;
}
/* ---- REVIEW ROWS ARE FLEX ----
   preprod splits the item row 331/47 but the totals row 208/189 - impossible
   with a shared table column model, so its rows are not table cells. Do the
   same: each row sizes independently and the label side takes the slack. */
.hype-checkoutPage .woocommerce-checkout-review-order-table,
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot {
  display: block;
  width: 100%;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.cart_item {
  align-items: center;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table th,
.hype-checkoutPage .woocommerce-checkout-review-order-table td {
  display: block;
  width: auto !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody td.product-name,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot th {
  flex: 1 1 auto;
  min-width: 0;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody td.product-total,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot td {
  flex: 0 0 auto;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tr.__coupon-row td {
  flex: 1 1 auto;
}
/* ---- REVIEW CELL BORDERS ----
   With the rows as flex, WooCommerce's own .shop_table cell borders show up as
   stray part-width rules above the price column. The divider belongs to the row. */
.hype-checkoutPage .woocommerce-checkout-review-order-table th,
.hype-checkoutPage .woocommerce-checkout-review-order-table td {
  border: 0 !important;
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tbody tr,
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr {
  border-bottom: 1px solid var(--border);
}
.hype-checkoutPage .woocommerce-checkout-review-order-table tfoot tr.order-total {
  border-bottom: 0;
}
/* ============================================================
   CART PAGE PARITY (target: preprod)
   preprod at 1280: rail 72->1208, items 723, totals 340, 73px gutter.
   ============================================================ */


/* items table -> stacked cards, rows as flex (same reasoning as the checkout review) */
.hype-cartPage table.shop_table.cart,
.hype-cartPage table.shop_table.cart tbody {
  display: block;
  width: 100%;
  border: 0 !important;
  margin: 0 !important;
}
.hype-cartPage table.shop_table.cart thead {
  display: none;
}
.hype-cartPage tr.woocommerce-cart-form__cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.hype-cartPage tr.woocommerce-cart-form__cart-item td {
  display: block;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}
/* the thumb + remove link now live inside the name cell */
.hype-cartPage td.product-remove,
.hype-cartPage td.product-thumbnail,
.hype-cartPage td.product-subtotal {
  display: none !important;
}
.hype-cartPage td.product-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hype-cartPage td.product-name .hype-co-thumb {
  flex: 0 0 72px;
}
.hype-cartPage td.product-name .hype-co-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}
.hype-cartPage td.product-name .hype-co-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
}
.hype-cartPage .hype-cart-remove-link {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-text);
  text-decoration: none;
}
.hype-cartPage .hype-cart-remove-link:hover {
  color: var(--navy);
}
.hype-cartPage td.product-price {
  flex: 0 0 auto;
  text-align: right;
}
.hype-cartPage td.product-price del,
.hype-cartPage td.product-price ins,
.hype-cartPage td.product-price .woocommerce-Price-amount {
  display: block;
}
.hype-cartPage td.product-quantity {
  flex: 0 0 auto;
}

/* the inline coupon + update button move into the totals card */
.hype-cartPage form.woocommerce-cart-form .coupon,
.hype-cartPage button[name="update_cart"],
.hype-cartPage input[name="update_cart"],
.hype-cartPage form.woocommerce-cart-form .actions {
  display: none !important;
}
.hype-cartPage .cross-sells {
  display: block;
}
/* snippet 2 prints its cart CSS after this file and styles the cells through
   body.woocommerce-cart table.shop_table.cart td - match that weight */
body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-remove,
body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-thumbnail,
body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-subtotal {
  display: none !important;
}
body.woocommerce-cart .hype-cartPage table.shop_table.cart tr.woocommerce-cart-form__cart-item {
  display: flex !important;
}
body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-name {
  display: grid !important;
}

/* ---- CART PAGE PASS 2 ---- */
/* WooCommerce floats .cross-sells at 48%; it owns the whole left column here */
.hype-cartPage .cross-sells {
  width: 100% !important; /* WooCommerce floats it at 48% */
  float: none !important;
  margin-top: 30px;
}
.hype-cartPage .cross-sells > h2 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-text);
}

/*
 * Coupon on the cart page. Matched to the checkout card (.hype-coupon-card in
 * snippet 2) so the same job looks the same in both places: same toggle weight
 * and colour, same 46px row, same orange Apply. It used to be a bare 12px blue
 * underlined link over a 48px outline button, which matched nothing else.
 */
.hype-cartPage .hype-cart-coupon {
  margin-top: 20px;
}
.hype-cartPage .hype-cart-coupon > summary {
  display: inline-block;
  list-style: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #6a6a7a;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 0;
  cursor: pointer;
}
.hype-cartPage .hype-cart-coupon > summary:hover {
  color: #0B1D2E;
}
.hype-cartPage .hype-cart-coupon > summary::-webkit-details-marker {
  display: none;
}
.hype-cartPage .hype-cart-coupon form.checkout_coupon {
  display: flex !important;
  gap: 8px;
  align-items: stretch;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}
.hype-cartPage .hype-cart-coupon #coupon_code {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #0B1D2E;
  background: #fff;
  text-transform: uppercase;
  box-sizing: border-box;
}
.hype-cartPage .hype-cart-coupon #coupon_code::placeholder {
  text-transform: none;
  color: #9aa0a6;
}
.hype-cartPage .hype-cart-coupon #coupon_code:focus {
  outline: none;
  border-color: #1A8FBA;
}
/*
 * !important, reluctantly: the form inside these details is the CHECKOUT
 * coupon template, so snippet 2's .woocommerce-form-coupon button rule -
 * itself all !important - applies here too. Scoped to .hype-cartPage so the
 * checkout's own copy of that form keeps the look it already has.
 */
.hype-cartPage .hype-cart-coupon button[name="apply_coupon"] {
  flex: 0 0 auto;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #E8650E !important;
  color: #fff !important;
  font: 700 14px/1 var(--font-body), 'Inter', sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.hype-cartPage .hype-cart-coupon button[name="apply_coupon"]:hover {
  background: #d25a0c !important;
  border-color: #d25a0c !important;
  color: #fff !important;
}
/* ---- SHARE CART ---- preprod renders it as a text link, not a button ---- */
.hype-cartPage .brikpanel-cshare-wrap button,
.hype-cartPage .brikpanel-cshare-wrap a,
.hype-cartPage .brikpanel-cshare-wrap .button {
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--text) !important;
}
.hype-cartPage .brikpanel-cshare-wrap {
  margin-top: 18px;
}

/* ---- CART PAGE PASS 3 ---- */
/* name cell: thumb on the left, name above the remove link (preprod) */
.hype-cartPage td.product-name {
  display: grid !important;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    'thumb name'
    'thumb remove';
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: 20px;
  row-gap: 0;
}
.hype-cartPage td.product-name .hype-co-thumb {
  grid-area: thumb;
  align-self: center;
}
.hype-cartPage td.product-name .hype-co-name {
  grid-area: name;
  align-self: end;
}
.hype-cartPage .hype-cart-remove-link {
  grid-area: remove;
  align-self: start;
}

/* totals card: white rows with hairline dividers, not grey blocks */
.hype-cartPage .cart_totals table.shop_table th,
.hype-cartPage .cart_totals table.shop_table td {
  background: none !important;
  border: 0 !important;
}
.hype-cartPage .cart_totals table.shop_table tr {
  border-bottom: 1px solid var(--border);
}
.hype-cartPage .cart_totals table.shop_table tr.order-total {
  border-bottom: 0;
}
/* No data-title on this row, so core's responsive rule renders a bare ": ". */
.hype-cartPage .cart_totals .__no-shipping-text td::before {
  content: none;
}

.hype-cartPage .cart_totals .__no-shipping-text td {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
  text-align: right;
}

/* cross-sell card: preprod shows a compact card, not a full-width hero */
.hype-cartPage .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hype-cartPage .cross-sells ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}
.hype-cartPage .cross-sells ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- CART QTY STEPPER ---- matches the drawer's control ---- */
.hype-cartPage td.product-quantity .quantity.hype-stepper {
  display: inline-flex;
  align-items: center;
  width: 107px;
  height: 44px;
  background: #fff;
  border: 1px solid #DFE3E7;
  border-radius: 3px;
  overflow: hidden;
}
.hype-cartPage .hype-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33px;
  width: 33px;
  height: 100%;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  min-height: 0;
  color: var(--navy);
  cursor: pointer;
}
.hype-cartPage .hype-stepper__btn svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  display: block;
}
.hype-cartPage .hype-stepper input.qty {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none;
  text-align: center;
  font-size: 13px;
  color: var(--text);
  -moz-appearance: textfield;
}
.hype-cartPage .hype-stepper input.qty::-webkit-outer-spin-button,
.hype-cartPage .hype-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- CROSS-SELL GRID ---- the theme sets its own layout on ul.products ---- */
.hype-cartPage .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-items: stretch;
  gap: 24px !important;
}
.hype-cartPage .cross-sells ul.products li.product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
/* preprod's cross-sell card is image + name + price only */
.hype-cartPage .cross-sells ul.products li.product .button,
.hype-cartPage .cross-sells ul.products li.product .add_to_cart_button {
  display: none !important;
}

/* the theme's clearfix pseudo-elements on ul.products become grid items and
   swallow the first cell, pushing the only product into column 2 */
.hype-cartPage .cross-sells ul.products::before,
.hype-cartPage .cross-sells ul.products::after {
  display: none !important;
}

/* ---- CART PAGE PASS 4 ---- */
/* the totals card already has its own border; the inner table must not add one */
.hype-cartPage .cart_totals table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
/* product name reads as body copy, not a link colour */
.hype-cartPage td.product-name .hype-co-name,
.hype-cartPage td.product-name .hype-co-name a {
  color: var(--navy) !important;
  text-decoration: none;
}
.hype-cartPage td.product-name .hype-co-name a:hover {
  color: var(--blue-text) !important;
}

/* ---- CART PAGE MOBILE ---- preprod stacks items > cross-sells > totals ---- */
@media (max-width: 767px) {
  .hype-cartPage .woocommerce { display: block; }
  .hype-cartPage .cart-collaterals { display: block; }
  .hype-cartPage form.woocommerce-cart-form { margin: 0 0 24px; }
  .hype-cartPage .cross-sells { margin: 0 0 24px; }
  .hype-cartPage .cart_totals { margin: 0; }
  body.woocommerce-cart .hype-cartPage table.shop_table.cart tr.woocommerce-cart-form__cart-item {
    flex-wrap: wrap;
    row-gap: 18px;
  }
  body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-name { flex: 1 1 100%; }
  .hype-cartPage td.product-price { flex: 1 1 auto; text-align: left; }
  .hype-cartPage td.product-quantity { margin-left: auto; text-align: right; }
  .hype-cartPage td.product-price::before,
  .hype-cartPage td.product-quantity::before {
    content: attr(data-title) ':';
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
  }
  .hype-cartPage .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* the h3 that follows the absolutely-positioned crumb paints over it and eats the tap */
.hype-checkoutPage .hype-co-back { z-index: 3; }
.hype-checkoutPage #customer_details > .woocommerce-billing-fields > h3,
.hype-checkoutPage #customer_details h3 { position: static; }

/* the theme paints buttons orange on hover/focus/active; a tap left the summary
   bar stuck orange because :focus persists after touchend */
.hype-checkoutPage .hype-co-summary,
.hype-checkoutPage .hype-co-summary:hover,
.hype-checkoutPage .hype-co-summary:focus,
.hype-checkoutPage .hype-co-summary:focus-visible,
.hype-checkoutPage .hype-co-summary:active {
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--navy) !important;
  outline: none;
}

/* snippet 41's upsell strip is a flex row whose text would not shrink; at 393px
   it pushed the document to 497px and the fixed cart drawer sized to that */
#hux-strip { max-width: 100%; box-sizing: border-box; white-space: normal; }
#hux-strip .hux-tx { flex: 1 1 0%; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  /* snippet 2's responsive table adds a data-title label; as a grid item it
     stole the first cell and pushed the name off to the right */
  body.woocommerce-cart .hype-cartPage table.shop_table.cart td.product-name::before {
    content: none !important;
    display: none !important;
  }
  .hype-cartPage td.product-name { justify-items: start; text-align: left; }
}

/* cross-sell sale badge: WooCommerce ships an olive ellipse (border-radius 100%) */
.hype-cartPage .cross-sells span.onsale,
.hype-cartPage .cross-sells .onsale {
  background: #CF2929 !important;
  color: #fff !important;
  border-radius: 3px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 5px 10px !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  display: inline-block !important;
}

/* WooCommerce hangs the badge off the top edge with negative offsets; preprod
   sits it inside the image, top-left */
.hype-cartPage .cross-sells li.product { position: relative; }
.hype-cartPage .cross-sells span.onsale,
.hype-cartPage .cross-sells .onsale {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* ---- EMPTY CART ---- preprod: basket glyph, heading, orange pill ---- */
/* Vertical rhythm measured off production's .rey-emptyCart, which resolves to
 * exactly 350px: 80 padding + 60 icon + 30 + 34 title + 24 + 52 button + 30 + 40.
 * This block was 282px, and that 68px was most of the cart page's -5.8% desktop
 * / -8.3% mobile shortfall against production. */
.hype-cartPage .hype-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 40px;
}
.hype-cartPage .hype-cart-empty__icon {
  width: 60px;
  height: 60px;
  color: #C9D2DA;
  margin: 0 0 30px;
}
/* 28px/600 desktop and 20px/600 mobile, measured on production — it reads as a
 * page-level statement there, not the 19px/700 label this had. */
.hype-cartPage .hype-cart-empty__title {
  margin: 0 0 24px;
  font-family: var(--font-head, var(--font-body));
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--navy);
}
@media (max-width: 1024px) {
  .hype-cartPage .hype-cart-empty__title { font-size: 20px; }
}

/* ---- CART / CHECKOUT SECTION HEADINGS ----
 *
 * gb-build-woo.mjs emits .co-section-eyebrow and .co-section-title on the cart
 * and checkout headings, and NOTHING styled either class — the names were
 * invented by the builder and never given rules. So "Step 1 of 3" rendered as
 * 15px/400 body copy where production has a 12px/700 gold tracked eyebrow, and
 * the title came out at the block theme's default rather than production's
 * 32px/300 with a blue emphasis.
 *
 * All values measured on production, and identical in both languages.
 */
.co-section-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #df731a;
}
/* Targets the inner heading, not the wrapper.
 *
 * Elementor puts _css_classes on the widget WRAPPER, so .co-section-title is a
 * div and the real <h1> inside carries .lg-w-title. The eyebrow above happens to
 * work through inheritance — a div has no font-size of its own — but the h1 does,
 * and the block theme's h1 sizing (45px desktop / 30px mobile) won every time. */
.co-section-title .lg-w-title,
.co-section-title {
  margin: 0;
  font-family: var(--font-head, var(--font-body));
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--navy);
}
/* Production sets the emphasis in blue at weight 300 and upright — the browser's
 * italic default is not what it renders. */
.co-section-title em {
  font-style: normal;
  font-weight: 300;
  color: #16779B;
}
@media (max-width: 1024px) {
  .co-section-title .lg-w-title,
  .co-section-title { font-size: 24px; }
}
.hype-cartPage .hype-cart-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F7941D, #F15A24);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  /* production wraps this in p.return-to-shop, whose 30px bottom margin is part
   * of the block's height */
  margin-bottom: 30px;
}
/* the empty page has no grid children to place */
.hype-cartPage .woocommerce:has(.hype-cart-empty) { display: block; }

/* ---- ORDER RECEIVED ---- Rey's own spacing on the blocks we re-emit ---- */
body.woocommerce-order-received .rey-ordRecPage-header { margin-bottom: 25px !important; }
body.woocommerce-order-received .rey-ordRecPage-buttons { margin-bottom: 30px !important; }
body.woocommerce-order-received .rey-ordRecPage-buttons .btn {
  gap: normal;
  min-height: 43px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* order-details table: Rey's line-height and header padding */
body.woocommerce-order-received .woocommerce-table--order-details thead th {
  padding: 20px !important;
  font-size: 12px !important;
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  line-height: 25.5px !important;
}
body.woocommerce-order-received .rey-ordRecPage-buttons .btn {
  min-height: auto !important;
  padding: 14px 28px !important;
  line-height: 15px !important;
  font-size: 15px !important;
}

/* same trap as the cart and checkout: the Elementor widget stays display:flex,
   so .elementor-shortcode sized to content instead of filling the rail */
body.woocommerce-order-received .elementor-shortcode {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

/* the order-received page reuses the .rey-checkoutPage wrapper class, so the
   checkout's two-column grid was squeezing .woocommerce-order into 1fr */
body.woocommerce-order-received .woocommerce.rey-checkoutPage {
  display: block !important;
}

/* the receipt column spans three grid rows; a 30px bottom margin here was
   redistributed 10px per row and pushed the whole left column down */
body.woocommerce-order-received .woocommerce-order-details { margin-bottom: 0 !important; }

/* Rey uppercased the receipt labels and left the CTA in sentence case */
body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details thead th,
body.woocommerce-order-received .woocommerce-table__product-name {
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  font-weight: 400 !important;
}
body.woocommerce-order-received .woocommerce-table__product-name {
  color: rgb(72, 79, 86) !important;
}
body.woocommerce-order-received .rey-ordRecPage-buttons .btn {
  text-transform: none !important;
}

/* the uppercase belongs to the cell label, not the product title inside it */
body.woocommerce-order-received .woocommerce-table__product-name .hype-pname-wrap,
body.woocommerce-order-received .woocommerce-table__product-name a {
  text-transform: none !important;
}

/* ---- QUICK LOGIN ---- the card sizes its input in rem/em; Rey ran on a 15px
   root, hello-elementor on 16px, so the field and label drifted ---- */
.hql-wrap .hql-label {
  line-height: 26px;
}
.hql-wrap .hql-input {
  font-size: 13.125px;
  padding: 9.375px 12.1875px;
}
.hql-wrap .hql-help,
.hql-wrap .hql-message {
  margin-bottom: 0;
}

/* ---- BASE H1 ---- prod/preprod get this from Rey's hs-*.css:
   --h1-font-size 3rem/2rem on a 15px root with --font-weight-bold 600.
   hello-elementor's reset.css ships 2.5rem/500 instead, which is why the
   my-account H1 came out 40px/500 instead of 45px/600 (30px under 768px).
   Written in px because the two themes use different root sizes. ---- */
h1 {
  font-size: 45px;
  line-height: 1;
  font-weight: 600;
}
@media (max-width: 767px) {
  h1 {
    font-size: 30px;
  }
}

/* ---- CART TOTALS CARD, MOBILE ---- prod/preprod expand the coupon inside the
   card and put the checkout button LAST: table > coupon > share > button.
   Desktop keeps the collapsed link and already matches, so scope this. ---- */
@media (max-width: 767px) {
  .hype-cartPage .cart_totals {
    display: flex;
    flex-direction: column;
  }
  .hype-cartPage .cart_totals > h2 { order: 0; }
  .hype-cartPage .cart_totals > table.shop_table { order: 1; margin-bottom: 23.4375px !important; }
  .hype-cartPage .cart_totals > .hype-cart-coupon { order: 2; margin: 16px 0 23.4375px; }
  .hype-cartPage .cart_totals > .brikpanel-cshare-wrap { order: 3; margin: 15px 0; }
  .hype-cartPage .cart_totals > .wc-proceed-to-checkout { order: 4; }
  .hype-cartPage .cart_totals .checkout-button { margin-bottom: 20px !important; }
  /* the coupon is open on mobile - the UA hides details content, so force it */
  .hype-cartPage .hype-cart-coupon form.checkout_coupon { display: flex !important; margin: 0; }
  /* Rey spaces the totals rows instead of padding the cells */
  .hype-cartPage .cart_totals table.shop_table tr { margin-bottom: 20px; }
  .hype-cartPage .cart_totals table.shop_table tr.order-total { margin-bottom: 0; }
  .hype-cartPage .cart_totals table.shop_table td,
  .hype-cartPage .cart_totals table.shop_table th { padding: 0 0 20px !important; }
  .hype-cartPage .cart_totals table.shop_table tr.order-total td,
  .hype-cartPage .cart_totals table.shop_table tr.order-total th { padding: 0 !important; }
}

@media (max-width: 767px) {
  /* prod keeps the toggle visible and shows the form open underneath it */
  .hype-cartPage .hype-cart-coupon > summary { display: inline-flex !important; }
  .hype-cartPage .hype-cart-coupon form.checkout_coupon { margin-top: 7.5px !important; gap: 13px; }
  .hype-cartPage .hype-cart-coupon #coupon_code { flex: 1 1 148px; }
  .hype-cartPage .hype-cart-coupon form.checkout_coupon button { flex: 0 0 150px; }
  /* Rey's totals cells: 12px on a 25.5px line box */
  .hype-cartPage .cart_totals table.shop_table th,
  .hype-cartPage .cart_totals table.shop_table td {
    font-size: 12px;
    line-height: 25.5px;
  }
}

/* ---- CART TOTALS CARD ---- prod puts the checkout button LAST and spaces the
   rows with cell padding on a 25.5px line box. Same at every width; only the
   coupon's open/closed state is viewport-dependent (see the JS). ---- */
.hype-cartPage .cart_totals {
  display: flex;
  flex-direction: column;
}
.hype-cartPage .cart_totals > h2 { order: 0; }
.hype-cartPage .cart_totals > table.shop_table { order: 1; margin-bottom: 23.4375px !important; }
.hype-cartPage .cart_totals > .hype-cart-coupon { order: 2; margin: 16px 0 23.4375px !important; }
.hype-cartPage .cart_totals > .brikpanel-cshare-wrap { order: 3; margin: 15px 0 !important; }
.hype-cartPage .cart_totals > .wc-proceed-to-checkout { order: 4; }
.hype-cartPage .cart_totals .checkout-button { margin-bottom: 20px !important; }
.hype-cartPage .cart_totals table.shop_table th,
.hype-cartPage .cart_totals table.shop_table td {
  font-size: 12px !important;
  line-height: 25.5px !important;
  padding: 0 0 20px !important;
}

/* the tax note runs at 14px on prod - it is what makes it wrap to two lines */
.hype-cartPage .cart_totals table.shop_table tr.__no-shipping-text td {
  font-size: 14px !important;
}
/* WooCommerce/theme pads this wrapper; prod has none */
.hype-cartPage .cart_totals .wc-proceed-to-checkout {
  padding: 0 !important;
}

/* prod lays the totals table out as flex, not as a table - which is the only
   reason its 20px row margins apply (margins do nothing on display:table-row) */
.hype-cartPage .cart_totals table.shop_table tbody {
  display: flex;
  flex-direction: column;
}
.hype-cartPage .cart_totals table.shop_table tbody tr {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hype-cartPage .cart_totals table.shop_table tbody tr.order-total {
  margin-bottom: 0;
}
.hype-cartPage .cart_totals table.shop_table tbody tr > th,
.hype-cartPage .cart_totals table.shop_table tbody tr > td {
  flex: 1 1 0%;
}
.hype-cartPage .cart_totals table.shop_table tbody tr > th { text-align: left; }
.hype-cartPage .cart_totals table.shop_table tbody tr > td { text-align: right; }

/* prod's last row carries no cell padding - the 20px belongs to the rows above */
.hype-cartPage .cart_totals table.shop_table tbody tr.order-total > th,
.hype-cartPage .cart_totals table.shop_table tbody tr.order-total > td {
  padding: 0 !important;
}

/* share-cart link: prod runs it at 15px/22.5px as a flex row with a 7.5px gap */
.hype-cartPage .brikpanel-cshare-wrap .brikpanel-cshare-btn,
.hype-cartPage .brikpanel-cshare-wrap button,
.hype-cartPage .brikpanel-cshare-wrap a {
  display: flex !important;
  align-items: center;
  gap: 7.5px;
  font-size: 15px !important;
  line-height: 22.5px !important;
}
.hype-cartPage .brikpanel-cshare-wrap svg {
  display: block;
  flex: 0 0 16px;
}


/* ============================================================
   ADDENDUM  not from the rey site
   ============================================================ */

/* WooCommerce ships woocommerce-blocktheme.css only under a block theme, and it
   caps .woocommerce at 1000px. Production is a classic theme and never loads it,
   so the cart sat 1000px wide inside a 1280px rail  items 587px against
   preprod's 866px. Undone here rather than by dequeuing the sheet, which also
   carries button and form resets this build does want. */
.woocommerce-cart .hype-cartPage .woocommerce,
.woocommerce-checkout .hype-checkoutPage .woocommerce,
.woocommerce-account .hype-accountPage .woocommerce {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* WooCommerce floats .cart_totals at 48%. The rey site overrode that for
   .cross-sells but not for .cart_totals, so the totals card came out 163px
   inside its own 340px grid track. */
.woocommerce-cart .hype-cartPage .cart_totals {
  width: 100%;
  float: none;
}

/* The same block-theme sheet pads the enhanced country/state selects
   (0.9rem 1.1rem) with a selector specific enough to beat the skin above. The
   skin centres the text by making line-height equal the box height, so adding
   padding on top pushed "J;30@8O" below the middle of its box. Restated here
   at matching specificity rather than weakened there, since the skin is
   production's measurement and this is only undoing an artifact. */
.woocommerce-checkout .hype-checkoutPage form .form-row .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-cart .hype-cartPage form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 48px 0 16px;
  height: 46.5px;
  line-height: 46.5px;
}

/* WooCommerce draws a grey triangle above the payment-method description  the
   speech-bubble pointer from its own stylesheet. Production never shows it:
   rey-core repaints it in the checkout background colour
   (.rey-checkoutPage.--layout-custom #payment & .payment_box:before
   { border-bottom-color: var(--checkout-bg-color) }) so it disappears into the
   panel. The block build has no --layout-custom wrapper for that rule to match,
   so the pointer showed as a stray grey arrow under "0;>65= ?;0B56".

   Hidden rather than recoloured: the effect production ships is an invisible
   pointer, and hiding does not need the background colour restated in a second
   place where it could later drift. */
.woocommerce-checkout .hype-checkoutPage #payment div.payment_box::before,
.woocommerce-checkout .hype-checkoutPage #payment div.payment_box:before {
  display: none;
}
