/* =====================================================================
   The Hemp Doctor — Cart, Checkout & Order-received pages
   Requires thd-base.css (tokens + shared components).
   Scoped to body.woocommerce-cart / body.woocommerce-checkout so it
   never leaks into the rest of the Kadence site.
   ===================================================================== */

/* ---------- Page chrome shared by cart + checkout ---------- */
body.woocommerce-cart,
body.woocommerce-checkout { overflow-x: clip; }

body.woocommerce-cart .entry-hero,
body.woocommerce-checkout .entry-hero,
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title { display: none !important; }

body.woocommerce-cart .content-area,
body.woocommerce-checkout .content-area { padding-top: 0 !important; }

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  font-family: var(--thd-sans);
  color: var(--thd-ink);
}

.thd-page-top { padding-top: 8px; }
.thd-page-top .thd-steps { margin-top: 24px; }

/* Trust bar sits directly under the site header */
.thd-trust-bar.thd-full-bleed { margin-bottom: 0; }

/* Notices */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper { max-width: var(--thd-container); margin: 0 auto; }
body.woocommerce-cart .woocommerce-notices-wrapper:empty,
body.woocommerce-checkout .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error {
  border-radius: var(--thd-radius);
  font-family: var(--thd-sans);
  font-size: 14px;
}

/* =====================================================================
   CART PAGE
   ===================================================================== */
body.woocommerce-cart .woocommerce:not([class*="columns-"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "top top"
    "notices notices"
    "form totals"
    "under totals"
    "cross cross"
    "footer footer";
  column-gap: 48px;
  row-gap: 0;
  max-width: var(--thd-container);
  margin: 0 auto;
  padding-bottom: 40px;
}
body.woocommerce-cart .woocommerce > .thd-page-top { grid-area: top; }
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-area: notices; margin-bottom: 8px; }
/* Kadence wraps the form + totals in div.kadence-woo-cart-form-wrap: let its children join the grid. */
body.woocommerce-cart .kadence-woo-cart-form-wrap { display: contents; }
body.woocommerce-cart .kadence-woo-cart-form-wrap::before,
body.woocommerce-cart .kadence-woo-cart-form-wrap::after { content: none !important; display: none !important; }
body.woocommerce-cart .cart-summary { display: none !important; }
body.woocommerce-cart .woocommerce-cart-form {
  grid-area: form;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
}
body.woocommerce-cart .cart-collaterals {
  grid-area: totals;
  align-self: start;
  position: sticky;
  top: var(--thd-sticky-top, 32px);
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}
body.woocommerce-cart .woocommerce > .thd-cart-under { grid-area: under; }
body.woocommerce-cart .woocommerce > .thd-cross-sells { grid-area: cross; }
body.woocommerce-cart .woocommerce > .cart-empty,
body.woocommerce-cart .woocommerce > .return-to-shop,
body.woocommerce-cart .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce > .thd-cart-footer { grid-area: footer; }

/* --- Notices above the table --- */
.thd-cart-notices { margin-bottom: 22px; }

/* --- Cart table --- */
body.woocommerce-cart table.shop_table.cart {
  width: 100%;
  table-layout: fixed;
  margin: 0 0 8px;
  border: 0 !important;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
  font-family: var(--thd-sans);
}
body.woocommerce-cart table.shop_table.cart thead th {
  padding: 0 0 10px;
  border: 0 !important;
  border-bottom: 1px solid var(--thd-sage) !important;
  background: transparent !important;
  color: var(--thd-teal);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
body.woocommerce-cart table.shop_table.cart th.product-price,
body.woocommerce-cart table.shop_table.cart td.product-price { display: none !important; }
body.woocommerce-cart table.shop_table.cart th.product-remove { width: 36px; }
body.woocommerce-cart table.shop_table.cart th.product-thumbnail { width: 72px; }
body.woocommerce-cart table.shop_table.cart th.product-quantity { width: 130px; text-align: center; }
body.woocommerce-cart table.shop_table.cart th.product-subtotal { width: 100px; text-align: right; }

body.woocommerce-cart table.shop_table.cart tr.cart_item td {
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--thd-sage) !important;
  background: transparent !important;
  vertical-align: middle;
  font-size: 13px;
  color: var(--thd-ink);
}
body.woocommerce-cart table.shop_table.cart td.product-remove { width: 36px; }
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  margin: 0;
  border: 1px solid var(--thd-sage) !important;
  border-radius: 50% !important;
  background: var(--thd-white) !important;
  color: var(--thd-teal-muted) !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1 !important;
  text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
  border-color: var(--thd-teal) !important;
  color: var(--thd-teal) !important;
  background: var(--thd-linen) !important;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail { width: 72px; padding-right: 14px !important; }
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img,
body.woocommerce-cart table.shop_table.cart td.product-thumbnail .thd-thumb {
  display: block;
  width: 56px !important;
  height: 56px;
  max-width: none;
  border: 1px solid var(--thd-sage);
  border-radius: 8px;
  background: var(--thd-linen);
  object-fit: cover;
}
body.woocommerce-cart table.shop_table.cart td.product-name a {
  color: var(--thd-teal) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart td.product-name a:hover { color: var(--thd-teal-dark) !important; }
body.woocommerce-cart table.shop_table.cart td.product-name .thd-each {
  display: block;
  margin-top: 3px;
  color: var(--thd-muted);
  font-size: 12px;
  font-weight: 400;
}
body.woocommerce-cart table.shop_table.cart td.product-name .thd-badge { display: flex; width: max-content; margin-top: 6px; }
body.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--thd-muted);
}
body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd { display: inline; margin: 0; padding: 0; font-weight: 400; }
body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd p { display: inline; margin: 0; }
body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd::after { content: " "; display: block; height: 0; }
body.woocommerce-cart table.shop_table.cart td.product-name .backorder_notification { display: block; font-size: 11px; color: var(--thd-goldfish-dark); }
body.woocommerce-cart table.shop_table.cart td.product-quantity { width: 120px; text-align: center; }
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity { display: inline-flex; margin: 0; }
body.woocommerce-cart table.shop_table.cart td.product-quantity .thd-qty { height: 36px; }
body.woocommerce-cart table.shop_table.cart td.product-quantity .thd-qty__btn { width: 30px; }
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added {
  display: inline-flex !important;
  align-items: center;
  height: 36px;
  margin: 0;
  border: 1px solid var(--thd-sage) !important;
  border-radius: 999px !important;
  background: var(--thd-white) !important;
  overflow: hidden;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added input.minus,
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added input.plus {
  width: 30px;
  height: 34px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--thd-teal) !important;
  font: 500 16px/34px var(--thd-sans) !important;
  cursor: pointer;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added input.minus:hover,
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added input.plus:hover { background: var(--thd-linen) !important; }
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity.spinners-added input.qty {
  width: 36px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font: 600 13px/34px var(--thd-sans) !important;
  color: var(--thd-ink) !important;
  -moz-appearance: textfield;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity:not(.thd-qty):not(.spinners-added) input.qty {
  width: 64px;
  height: 36px;
  border: 1px solid var(--thd-sage);
  border-radius: 999px;
  text-align: center;
  font: 600 13px/1 var(--thd-sans);
  color: var(--thd-ink);
}
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  width: 90px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--thd-ink);
}
body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
body.woocommerce-cart table.shop_table.cart td.product-subtotal .thd-free { color: var(--thd-muted); font-weight: 600; }

/* --- Coupon + update row --- */
body.woocommerce-cart table.shop_table.cart td.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  float: none;
  margin: 0;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon input#coupon_code,
body.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
  flex: 1;
  width: auto !important;
  max-width: 320px;
  min-width: 0;
  height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid var(--thd-sage) !important;
  border-radius: 999px !important;
  background: var(--thd-white) !important;
  box-shadow: none !important;
  font: 400 13px/1 var(--thd-sans) !important;
  color: var(--thd-ink) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon input::placeholder { color: var(--thd-muted); }
body.woocommerce-cart table.shop_table.cart td.actions .coupon input:focus { border-color: var(--thd-teal) !important; outline: none; }
body.woocommerce-cart table.shop_table.cart td.actions .coupon .thd-btn { margin-left: auto; }
body.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"],
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--thd-serif) !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  box-shadow: none;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"] {
  margin-left: auto;
  background: var(--thd-goldfish) !important;
  color: var(--thd-white) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"]:hover { background: var(--thd-goldfish-dark) !important; }
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  background: transparent !important;
  color: var(--thd-teal-muted) !important;
  box-shadow: inset 0 0 0 1.5px var(--thd-sage) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"]:hover:not([disabled]) {
  color: var(--thd-teal) !important;
  box-shadow: inset 0 0 0 1.5px var(--thd-teal) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"][disabled] { opacity: 0.6; cursor: default; }

/* --- Cart totals card --- */
body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0;
  border: 1px solid var(--thd-teal);
  border-radius: 12px;
  background: var(--thd-white);
  overflow: hidden;
}
body.woocommerce-cart .cart-collaterals .cart_totals > h2 { display: none !important; }
.thd-totals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--thd-teal);
  color: var(--thd-white);
  font-family: var(--thd-sans);
}
.thd-totals-head__title { font-family: var(--thd-serif); font-size: 17px; line-height: 1.2; }
.thd-totals-head__count { font-size: 12px; opacity: 0.9; }

body.woocommerce-cart .cart_totals table.shop_table {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-collapse: collapse;
  background: transparent;
}
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 9px 16px !important;
  border: 0 !important;
  background: transparent !important;
  vertical-align: top;
  font-family: var(--thd-sans);
  font-size: 12px;
  line-height: 1.45;
}
body.woocommerce-cart .cart_totals table.shop_table th {
  width: 45%;
  color: var(--thd-muted);
  font-weight: 400;
  text-align: left;
}
body.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right;
  color: var(--thd-ink);
  font-weight: 700;
}
body.woocommerce-cart .cart_totals table.shop_table td .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal th,
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td { padding-top: 14px !important; }
body.woocommerce-cart .cart_totals table.shop_table tr.cart-discount th { color: var(--thd-teal); }
body.woocommerce-cart .cart_totals table.shop_table tr.cart-discount .woocommerce-remove-coupon { display: block; font-size: 11px; font-weight: 400; color: var(--thd-muted); }

/* Shipping row inside cart totals */
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals th {
  color: var(--thd-ink);
  font-weight: 700;
  font-size: 13px;
  width: 30%;
}
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; }
body.woocommerce-cart .cart_totals ul#shipping_method,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li {
  position: relative;
  margin: 0 0 8px !important;
  padding: 0 0 0 26px !important;
  line-height: 1.45;
}
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li input.shipping_method {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  margin: 0 !important;
  border: 1.5px solid var(--thd-teal);
  border-radius: 50%;
  background: var(--thd-white);
  cursor: pointer;
}
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li input.shipping_method:checked { box-shadow: inset 0 0 0 4px var(--thd-white); background: var(--thd-goldfish); }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
  color: var(--thd-ink);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__title { order: 1; font-weight: 400; color: var(--thd-ink); }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__price { order: 2; }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__arrives { order: 3; flex-basis: 100%; }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__price { font-weight: 700; color: var(--thd-ink); }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__price::before { content: "· "; font-weight: 400; color: var(--thd-muted); }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__desc { display: none; }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-ship__arrives { display: block; color: var(--thd-teal); font-size: 11px; font-weight: 700; }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li .thd-badge { display: none; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
  margin: 4px 0 0;
  color: var(--thd-muted);
  font-size: 11px;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination strong { color: var(--thd-teal); }
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator { margin-top: 6px; font-size: 11px; }
body.woocommerce-cart .cart_totals .shipping-calculator-button { color: var(--thd-teal); font-weight: 700; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator .form-row { margin-bottom: 8px; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator input,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator select,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator .select2-selection {
  height: 38px !important;
  border: 1px solid var(--thd-input-border) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--thd-teal);
  color: #fff;
  font: 400 13px/1 var(--thd-serif);
}

/* Toggle rows (cold pack) */
body.woocommerce-cart .cart_totals tr.thd-toggle-row th { color: var(--thd-muted); }
tr.thd-toggle-row .thd-toggle-label { display: block; color: var(--thd-muted); font-size: 12px; }
tr.thd-toggle-row .thd-toggle-sub { display: block; color: var(--thd-muted); font-size: 10px; margin-top: 1px; }
tr.thd-toggle-row td .thd-toggle-cell { display: inline-flex; align-items: center; gap: 10px; }
tr.thd-toggle-row td .thd-toggle-price { font-weight: 700; color: var(--thd-ink); min-width: 42px; text-align: right; }

/* Tax rows */
body.woocommerce-cart .cart_totals tr.tax-rate th small,
body.woocommerce-cart .cart_totals tr.tax-total th small { display: block; font-size: 10px; color: var(--thd-muted); }

/* Total row */
body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-cart .cart_totals tr.order-total td {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-top: 1px solid var(--thd-teal) !important;
  font-family: var(--thd-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--thd-teal) !important;
}
body.woocommerce-cart .cart_totals tr.order-total td strong,
body.woocommerce-cart .cart_totals tr.order-total td .woocommerce-Price-amount { font-weight: 400; color: var(--thd-teal); }
body.woocommerce-cart .cart_totals tr.order-total td small.includes_tax { display: block; font-family: var(--thd-sans); font-size: 10px; color: var(--thd-muted); }

/* Final number + proceed area (mint) */
body.woocommerce-cart .cart_totals tr.thd-final-row td { padding: 0 !important; background: var(--thd-mint) !important; text-align: left; }
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  margin: 0;
  padding: 4px 16px 16px !important;
  background: var(--thd-mint);
}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout .thd-installments { margin: 4px 0 12px; }
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button.button.alt {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--thd-goldfish) !important;
  color: var(--thd-white) !important;
  font-family: var(--thd-serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover { background: var(--thd-goldfish-dark) !important; }

/* Under the table: trust + need a hand */
.thd-cart-under { padding: 40px 32px 0; }
.thd-cart-under .thd-trust { margin-bottom: 24px; }

/* --- Cross-sells --- */
.thd-cross-sells { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--thd-border-light); }
.thd-cross-sells .thd-page-head { margin-bottom: 36px; }
.thd-cross-sells .cross-sells > h2 { display: none !important; }
body.woocommerce-cart .thd-cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.woocommerce-cart .thd-cross-sells ul.products::before,
body.woocommerce-cart .thd-cross-sells ul.products::after { display: none; }
body.woocommerce-cart .thd-cross-sells ul.products li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
  padding: 12px 12px 20px !important;
  float: none !important;
  border: 1px solid var(--thd-border-light);
  border-radius: 16px;
  background: var(--thd-white);
  text-align: center;
  box-shadow: 0 2px 12px rgba(17, 61, 60, 0.05);
}
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-image,
body.woocommerce-cart .thd-cross-sells ul.products li.product .woocommerce-loop-product__link,
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-image-wrap { width: 100%; }
body.woocommerce-cart .thd-cross-sells ul.products li.product img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 0 14px !important;
  border-radius: 10px;
  background: var(--thd-linen);
  object-fit: cover;
}
body.woocommerce-cart .thd-cross-sells ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-cart .thd-cross-sells ul.products li.product h2,
body.woocommerce-cart .thd-cross-sells ul.products li.product h3 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: var(--thd-teal) !important;
  font-family: var(--thd-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}
body.woocommerce-cart .thd-cross-sells ul.products li.product .woocommerce-loop-product__title a { color: inherit; text-decoration: none; }
body.woocommerce-cart .thd-cross-sells ul.products li.product a { text-decoration: none !important; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .price {
  display: block;
  margin: 0 0 12px !important;
  color: var(--thd-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
body.woocommerce-cart .thd-cross-sells ul.products li.product .price del { color: var(--thd-muted); font-weight: 400; margin-right: 4px; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .price ins { text-decoration: none; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .star-rating,
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-excerpt,
body.woocommerce-cart .thd-cross-sells ul.products li.product .kt-product-category-wrap,
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-category-wrap { display: none !important; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-action-wrap,
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-details { margin: 0; padding: 0; width: 100%; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .product-action-wrap {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: transparent !important;
}
body.woocommerce-cart .thd-cross-sells .woocommerce.columns-4 { display: block; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .button,
body.woocommerce-cart .thd-cross-sells ul.products li.product a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--thd-goldfish) !important;
  color: var(--thd-white) !important;
  font-family: var(--thd-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
}
body.woocommerce-cart .thd-cross-sells ul.products li.product .button:hover { background: var(--thd-goldfish-dark) !important; }
body.woocommerce-cart .thd-cross-sells ul.products li.product .added_to_cart { display: block; margin-top: 8px; font-size: 12px; color: var(--thd-teal); }

/* Cart footer strip */
.thd-cart-footer {
  margin: 56px 0 0;
  padding: 20px 24px;
  border-top: 1px solid var(--thd-border-light);
  background: var(--thd-linen);
}
.thd-cart-footer .thd-trust { grid-template-columns: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; }

/* --- Cart page: mobile --- */
@media (max-width: 960px) {
  body.woocommerce-cart .woocommerce:not([class*="columns-"]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "notices" "form" "totals" "under" "cross" "footer";
    padding: 0 0 32px;
  }
  body.woocommerce-cart .cart-collaterals { position: static; margin-top: 24px; }
  body.woocommerce-cart table.shop_table.cart thead { display: none; }
  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tr,
  body.woocommerce-cart table.shop_table.cart td { display: block; }
  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    display: grid;
    grid-template-columns: 28px 64px minmax(0, 1fr);
    grid-template-areas:
      "remove thumb name"
      ". qty subtotal";
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--thd-border);
    border-radius: 12px;
    background: var(--thd-white);
  }
  body.woocommerce-cart table.shop_table.cart tr.cart_item td { padding: 0 !important; border: 0 !important; }
  body.woocommerce-cart table.shop_table.cart tr.cart_item td::before { display: none !important; }
  body.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; width: auto; }
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; width: auto; padding-right: 0 !important; }
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail .thd-thumb { width: 64px !important; height: 64px; }
  body.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; }
  body.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; width: auto; text-align: left; }
  body.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: subtotal; width: auto; align-self: center; text-align: right; }
  body.woocommerce-cart table.shop_table.cart td.actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px !important;
  }
  body.woocommerce-cart table.shop_table.cart td.actions .coupon { flex-direction: column; align-items: stretch; gap: 10px; }
  body.woocommerce-cart table.shop_table.cart td.actions .coupon input#coupon_code { flex: none; max-width: none; width: 100% !important; }
  body.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"],
  body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] { width: 100%; margin: 0; }
  .thd-cart-under { padding: 28px 0 0; }
  .thd-cart-under .thd-trust { grid-template-columns: 1fr; }
  body.woocommerce-cart .thd-cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .thd-cross-sells { margin-top: 40px; padding-top: 36px; }
  .thd-cart-footer { margin-top: 32px; padding: 16px; }
  .thd-cart-footer .thd-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =====================================================================
   CHECKOUT PAGE
   ===================================================================== */
body.woocommerce-checkout .woocommerce { max-width: var(--thd-container); margin: 0 auto; }

/* Login / coupon forms above the checkout form */
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--thd-teal) !important;
  font-family: var(--thd-serif);
  font-size: 22px;
  box-shadow: none;
}
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before { display: none; }
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a.showlogin {
  color: var(--thd-teal) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.woocommerce-checkout form.woocommerce-form-login {
  max-width: 560px;
  margin: 0 0 28px !important;
  padding: 24px !important;
  border: 1px solid var(--thd-border) !important;
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon { display: none !important; }

/* --- Grid --- */
body.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "main aside"
    "payment aside"
    "extra extra";
  column-gap: 48px;
  align-items: start;
  margin: 0;
  padding-bottom: 8px;
}
body.woocommerce-checkout form.checkout > .thd-main { grid-area: main; min-width: 0; }
/* Sticky offset: override with `:root { --thd-sticky-top: 120px; }` if your Kadence header is sticky. */
body.woocommerce-checkout form.checkout > .thd-aside { grid-area: aside; position: sticky; top: var(--thd-sticky-top, 32px); align-self: start; min-width: 0; }
body.woocommerce-checkout form.checkout > .thd-section--payment { grid-area: payment; min-width: 0; }
body.woocommerce-checkout form.checkout > *:not(.thd-main):not(.thd-aside):not(.thd-section--payment) { grid-column: 1 / -1; }
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; }

body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after { content: none !important; display: none !important; }
body.woocommerce-checkout #customer_details.col2-set,
body.woocommerce-checkout .col2-set#customer_details,
body.woocommerce-checkout form.checkout .col2-set {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.woocommerce-checkout form.checkout #order_review,
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
body.woocommerce-checkout form.checkout #order_review_heading { float: none !important; width: auto !important; padding: 0 !important; }
/* A leftover "Checkout"/"Cart" heading block above the shortcode */
body.woocommerce-checkout .entry-content > .wp-block-heading:first-child,
body.woocommerce-cart .entry-content > .wp-block-heading:first-child,
body.woocommerce-checkout .entry-content > h1:first-child,
body.woocommerce-cart .entry-content > h1:first-child { display: none !important; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Numbered sections + timeline --- */
.thd-section {
  position: relative;
  margin: 0 0 40px;
  padding-left: 56px;
}
.thd-main .thd-section:not(:last-child)::before,
.thd-sections .thd-section:not(:last-child)::before,
#customer_details .thd-section::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -40px;
  width: 1px;
  background: var(--thd-sage);
}
.thd-section--payment::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 175px;
  width: 1px;
  background: var(--thd-sage);
}
.thd-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  min-height: 32px;
}
.thd-section__num {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--thd-teal);
  color: var(--thd-white);
  font-family: var(--thd-serif);
  font-size: 15px;
  line-height: 1;
}
.thd-section__title {
  margin: 0 !important;
  font-family: var(--thd-serif) !important;
  font-weight: 400 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  color: var(--thd-teal) !important;
}
.thd-section__aside {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--thd-teal);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.thd-section__aside .thd-icon { font-size: 14px; }
.thd-section__sub {
  margin: -8px 0 14px;
  color: var(--thd-teal);
  font-size: 12px;
  font-weight: 600;
}
.thd-section__lede { margin: -6px 0 16px; color: var(--thd-muted); font-size: 13px; }

/* Hide WooCommerce's default headings we replaced */
body.woocommerce-checkout .woocommerce-billing-fields > h3:not(.thd-section__title),
body.woocommerce-checkout .woocommerce-shipping-fields > h3#ship-to-different-address,
body.woocommerce-checkout h3#order_review_heading,
body.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none !important; }

/* --- Form fields --- */
.thd-fields-grid,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-account-fields,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
body.woocommerce-checkout .form-row {
  grid-column: span 2;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}
body.woocommerce-checkout .form-row.thd-half,
body.woocommerce-checkout #billing_email_field,
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field,
body.woocommerce-checkout #billing_address_2_field,
body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_postcode_field,
body.woocommerce-checkout #shipping_first_name_field,
body.woocommerce-checkout #shipping_last_name_field,
body.woocommerce-checkout #shipping_address_2_field,
body.woocommerce-checkout #shipping_city_field,
body.woocommerce-checkout #shipping_state_field,
body.woocommerce-checkout #shipping_postcode_field,
body.woocommerce-checkout #account_password_field { grid-column: span 1; }
body.woocommerce-checkout .form-row label,
body.woocommerce-checkout form .form-row label {
  display: block;
  margin: 0 0 6px !important;
  color: var(--thd-ink) !important;
  font-family: var(--thd-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
body.woocommerce-checkout .form-row label .required { display: none; }
body.woocommerce-checkout .form-row label .optional { color: var(--thd-muted); font-weight: 400; }
body.woocommerce-checkout .form-row.thd-check-row .optional,
body.woocommerce-checkout .form-row label.checkbox .optional { display: none; }
body.woocommerce-checkout .form-row .woocommerce-input-wrapper { display: block; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row input[type="text"],
body.woocommerce-checkout .form-row input[type="email"],
body.woocommerce-checkout .form-row input[type="tel"],
body.woocommerce-checkout .form-row input[type="password"],
body.woocommerce-checkout .form-row input[type="number"],
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row .select2-container .select2-selection--single {
  box-sizing: border-box;
  width: 100%;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 0 14px !important;
  border: 1px solid var(--thd-input-border) !important;
  border-radius: var(--thd-radius-sm) !important;
  background: var(--thd-white) !important;
  box-shadow: none !important;
  color: var(--thd-ink) !important;
  font-family: var(--thd-sans) !important;
  font-size: 14px !important;
  line-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.woocommerce-checkout .form-row textarea {
  height: auto !important;
  min-height: 96px;
  padding: 12px 14px !important;
  line-height: 1.5;
  resize: vertical;
}
body.woocommerce-checkout .form-row input::placeholder,
body.woocommerce-checkout .form-row textarea::placeholder { color: #9AA8A7; opacity: 1; }
body.woocommerce-checkout .form-row input:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row .select2-container--focus .select2-selection--single,
body.woocommerce-checkout .form-row .select2-container--open .select2-selection--single {
  outline: none;
  border-color: var(--thd-teal) !important;
  box-shadow: 0 0 0 3px rgba(2, 89, 96, 0.12) !important;
}
body.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .form-row.woocommerce-invalid select,
body.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection--single { border-color: #C0392B !important; }
body.woocommerce-checkout .form-row.woocommerce-validated input.input-text,
body.woocommerce-checkout .form-row.woocommerce-validated select { border-color: var(--thd-input-border) !important; }
body.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 42px;
  color: var(--thd-ink);
  font-family: var(--thd-sans);
  font-size: 14px;
}
body.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
body.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow b { border-color: var(--thd-teal) transparent transparent; }
body.woocommerce-checkout .form-row .thd-field-help,
body.woocommerce-checkout form .form-row .thd-field-help {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--thd-muted);
  font-size: 12px;
  line-height: 1.5;
}
body.woocommerce-checkout .form-row span.description::before { display: none; }

/* Checkbox rows rendered by woocommerce_form_field */
body.woocommerce-checkout .form-row.thd-check-row,
body.woocommerce-checkout .form-row.form-row-wide.thd-check-row { grid-column: span 2; }
body.woocommerce-checkout .form-row label.checkbox,
body.woocommerce-checkout .form-row label.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--thd-ink);
  cursor: pointer;
}
body.woocommerce-checkout .form-row input[type="checkbox"],
body.woocommerce-checkout input.woocommerce-form__input-checkbox,
body.woocommerce-checkout .thd-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0 !important;
  border: 1.5px solid var(--thd-sage);
  border-radius: 5px;
  background: var(--thd-white);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
body.woocommerce-checkout .form-row input[type="checkbox"]:checked,
body.woocommerce-checkout input.woocommerce-form__input-checkbox:checked,
body.woocommerce-checkout .thd-check input[type="checkbox"]:checked { background: var(--thd-teal); border-color: var(--thd-teal); }
body.woocommerce-checkout .form-row input[type="checkbox"]:checked::after,
body.woocommerce-checkout input.woocommerce-form__input-checkbox:checked::after,
body.woocommerce-checkout .thd-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Account fields */
body.woocommerce-checkout .woocommerce-account-fields { margin-top: 14px; }
body.woocommerce-checkout .woocommerce-account-fields .create-account { grid-column: span 2; }
body.woocommerce-checkout .woocommerce-account-fields .create-account .form-row { margin-top: 12px !important; }

/* Contact section */
#thd-contact .thd-contact-fields #thd_newsletter_field { margin-top: 2px !important; }
#thd-contact .thd-contact-fields label.checkbox { font-size: 13px; }

/* Billing = shipping toggle + hidden billing block */
.thd-billing-toggle { margin-top: 16px; }
.thd-billing-address {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--thd-border);
  border-radius: var(--thd-radius);
  background: var(--thd-mint-light);
}
.thd-billing-address.is-hidden { display: none; }
.thd-billing-address__title {
  margin: 0 0 14px !important;
  font-family: var(--thd-serif) !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  color: var(--thd-teal) !important;
}

/* --- Section 3: delivery method --- */
#thd-shipping-methods { margin: 0; }
.thd-ship__empty {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px dashed var(--thd-sage);
  border-radius: var(--thd-radius);
  color: var(--thd-muted);
  font-size: 13px;
}
ul.thd-ship__list {
  margin: 0 0 4px !important;
  padding: 0 !important;
  list-style: none !important;
}
ul.thd-ship__list li.thd-ship__item {
  position: relative;
  display: block;
  margin: 0 0 10px !important;
  padding: 14px 16px 14px 46px !important;
  border: 1px solid var(--thd-border);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
ul.thd-ship__list li.thd-ship__item.is-selected,
ul.thd-ship__list li.thd-ship__item:has(input:checked) {
  padding: 13px 15px 13px 45px !important;
  border: 2px solid var(--thd-teal);
  background: var(--thd-mint-light);
}
ul.thd-ship__list li.thd-ship__item input.shipping_method[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 16px;
  top: 17px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  border: 1.5px solid var(--thd-sage);
  border-radius: 50%;
  background: var(--thd-white);
  cursor: pointer;
}
ul.thd-ship__list li.thd-ship__item input.shipping_method[type="radio"]:checked {
  border-color: var(--thd-teal);
  box-shadow: inset 0 0 0 4.5px var(--thd-teal);
}
ul.thd-ship__list li.thd-ship__item input.shipping_method:focus-visible { outline: 3px solid rgba(2, 89, 96, 0.3); outline-offset: 2px; }
ul.thd-ship__list li.thd-ship__item label {
  display: block;
  margin: 0;
  padding-right: 84px;
  color: var(--thd-muted);
  font-family: var(--thd-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}
ul.thd-ship__list li.thd-ship__item .thd-ship__title {
  display: inline;
  margin-right: 8px;
  color: var(--thd-teal);
  font-family: var(--thd-serif);
  font-size: 16px;
  line-height: 1.3;
}
ul.thd-ship__list li.thd-ship__item .thd-badge { vertical-align: 2px; }
ul.thd-ship__list li.thd-ship__item .thd-ship__desc { display: block; margin-top: 4px; }
ul.thd-ship__list li.thd-ship__item .thd-ship__arrives { display: block; margin-top: 2px; color: var(--thd-teal); font-weight: 700; }
ul.thd-ship__list li.thd-ship__item .thd-ship__price {
  position: absolute;
  right: 16px;
  top: 14px;
  color: var(--thd-teal-mid);
  font-family: var(--thd-serif);
  font-size: 16px;
}
ul.thd-ship__list li.thd-ship__item .thd-ship__price .woocommerce-Price-amount { color: inherit; font-weight: 400; }
ul.thd-ship__list li.thd-ship__item .thd-ship__price small.tax_label { display: block; font-size: 10px; font-family: var(--thd-sans); color: var(--thd-muted); }
#thd-delivery .thd-note { margin-top: 14px; }
.thd-notes-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--thd-border);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
.thd-notes-card .woocommerce-additional-fields__field-wrapper { display: block; }
.thd-notes-help { display: block; margin-top: 8px; color: var(--thd-muted); font-size: 12px; line-height: 1.5; }
.thd-notes-help strong { color: var(--thd-teal); }

/* --- Section 4: order protection (Route) --- */
#thd-protect.is-empty { display: none; }
.thd-protect-slot > * { margin: 0 !important; }
.thd-protect-slot .thd-protect-empty { color: var(--thd-muted); font-size: 13px; }

/* --- Keep it cold --- */
.thd-cold-card {
  padding: 18px 20px;
  border: 1px solid var(--thd-border);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
.thd-cold-card .thd-check { align-items: flex-start; }
.thd-cold-card .thd-check strong { display: block; color: var(--thd-ink); font-weight: 700; }
.thd-cold-card .thd-check span.thd-check__desc { display: block; margin-top: 2px; color: var(--thd-muted); font-size: 13px; }
.thd-cold-card .thd-note { margin-top: 14px; }

/* Next step */
.thd-next { width: calc(100% - 56px); margin: 8px 0 0 56px; }
.thd-section--cold { margin-bottom: 20px; }

/* --- Section 5: payment --- */
.thd-section--payment { margin-top: 8px; }
.thd-section--payment.is-collapsed { display: none; }
body.woocommerce-checkout #payment.woocommerce-checkout-payment,
body.woocommerce-checkout #payment {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
body.woocommerce-checkout #payment ul.wc_payment_methods,
body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
  background: transparent;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method,
body.woocommerce-checkout #payment ul.payment_methods li {
  position: relative;
  margin: 0 0 10px !important;
  padding: 16px 18px 16px 48px !important;
  border: 1px solid var(--thd-border) !important;
  border-radius: var(--thd-radius);
  background: var(--thd-white);
  line-height: 1.5;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method.is-selected,
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method:has(> input:checked) {
  padding: 15px 17px 15px 47px !important;
  border: 2px solid var(--thd-teal) !important;
  background: var(--thd-mint-light);
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"],
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input.input-radio,
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"]:first-child {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  left: 18px !important;
  top: 19px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border: 1.5px solid var(--thd-sage) !important;
  border-radius: 50% !important;
  background: var(--thd-white) !important;
  cursor: pointer;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"]:checked,
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"]:first-child:checked {
  border-color: var(--thd-teal) !important;
  box-shadow: inset 0 0 0 4.5px var(--thd-teal) !important;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label,
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"]:first-child:checked + label,
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label:hover,
body.woocommerce-checkout #payment ul.wc_payment_methods li:first-child:last-child > label {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--thd-teal) !important;
  font-family: var(--thd-serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  cursor: pointer;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label::before { content: none !important; display: none !important; }
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label img {
  float: none !important;
  max-height: 24px !important;
  width: auto;
  margin: 0 0 0 4px !important;
  vertical-align: middle;
}
body.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label a { font-family: var(--thd-sans); font-size: 12px; font-weight: 600; color: var(--thd-teal); }
body.woocommerce-checkout #payment div.payment_box {
  position: static;
  width: auto;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--thd-muted) !important;
  font-family: var(--thd-sans);
  font-size: 13px;
  line-height: 1.6;
}
body.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
body.woocommerce-checkout #payment div.payment_box p { margin: 0 0 10px; color: var(--thd-muted); }
body.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
body.woocommerce-checkout #payment div.payment_box fieldset { padding: 0; margin: 0; border: 0; }
body.woocommerce-checkout #payment div.payment_box .form-row { margin-bottom: 12px !important; }
body.woocommerce-checkout #payment div.payment_box .form-row label { color: var(--thd-ink); }
body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form,
body.woocommerce-checkout #payment div.payment_box .wc-payment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form .form-row { margin: 0 !important; }
body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form .form-row-wide { grid-column: span 2; }
body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form .form-row-first,
body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form .form-row-last { grid-column: span 1; }
body.woocommerce-checkout #payment div.payment_box .wc-stripe-elements-field,
body.woocommerce-checkout #payment div.payment_box .wc-payment-form .wc-stripe-elements-field,
body.woocommerce-checkout #payment div.payment_box .StripeElement,
body.woocommerce-checkout #payment div.payment_box .wcpay-upe-element {
  padding: 12px 14px;
  border: 1px solid var(--thd-input-border);
  border-radius: var(--thd-radius-sm);
  background: var(--thd-white);
}

/* Statement note + section 6 + place order */
.thd-statement { margin: 4px 0 0; }
.thd-statement strong { color: var(--thd-teal); }
body.woocommerce-checkout #payment .place-order {
  display: flex;
  flex-direction: column;
  margin: 34px 0 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
}
body.woocommerce-checkout #payment .place-order > * { order: 6; }
body.woocommerce-checkout #payment .place-order > .thd-statement { order: 1; margin-bottom: 26px; }
body.woocommerce-checkout #payment .place-order > .thd-section__head { order: 2; }
body.woocommerce-checkout #payment .place-order > .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout #payment .place-order > noscript { order: 3; }
body.woocommerce-checkout #payment .place-order > #place_order { order: 4; }
body.woocommerce-checkout #payment .place-order > .thd-confirm-note { order: 5; }
body.woocommerce-checkout #payment .place-order .thd-section__head { margin-bottom: 18px; }
body.woocommerce-checkout #payment .place-order .thd-section__num { left: 0; }
body.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper { margin: 0 0 16px; font-size: 13px; color: var(--thd-muted); }
body.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper .form-row { grid-column: auto; }
body.woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text p { margin: 0 0 14px; font-size: 12px; color: var(--thd-muted); line-height: 1.6; }
body.woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text a { color: var(--thd-teal); }
body.woocommerce-checkout #payment .place-order button#place_order,
body.woocommerce-checkout #payment .place-order #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: 100%;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--thd-goldfish) !important;
  color: var(--thd-white) !important;
  font-family: var(--thd-serif) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  box-shadow: none !important;
  cursor: pointer;
}
body.woocommerce-checkout #payment .place-order button#place_order:hover { background: var(--thd-goldfish-dark) !important; }
body.woocommerce-checkout #payment .place-order button#place_order[disabled] { opacity: 0.6; }
.thd-confirm-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 14px 0 0;
  color: var(--thd-muted);
  font-size: 12px;
  text-align: center;
}
.thd-confirm-note .thd-icon { color: var(--thd-goldfish); font-size: 13px; }
.thd-confirm-note a { color: var(--thd-teal); font-weight: 700; text-decoration: none; }

/* --- Aside: order summary card --- */
.thd-summary-card {
  border: 1px solid var(--thd-teal);
  border-radius: 12px;
  background: var(--thd-white);
  overflow: hidden;
}
body.woocommerce-checkout #order_review.woocommerce-checkout-review-order,
body.woocommerce-checkout #order_review { margin: 0; padding: 0; background: transparent; border: 0; }
body.woocommerce-checkout table.thd-summary,
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-radius: 0;
  background: transparent;
  font-family: var(--thd-sans);
}
body.woocommerce-checkout table.thd-summary th,
body.woocommerce-checkout table.thd-summary td {
  padding: 8px 16px !important;
  border: 0 !important;
  background: transparent !important;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.45;
  color: var(--thd-ink);
}
body.woocommerce-checkout table.thd-summary th { width: 50%; text-align: left; font-weight: 400; color: var(--thd-muted); }
body.woocommerce-checkout table.thd-summary td { text-align: right; font-weight: 700; }
body.woocommerce-checkout table.thd-summary td .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
body.woocommerce-checkout table.thd-summary thead th { padding: 0 !important; width: auto; }
.thd-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--thd-teal);
  color: var(--thd-white);
}
.thd-summary__title { font-family: var(--thd-serif); font-size: 17px; line-height: 1.2; }
.thd-summary__count { font-size: 12px; opacity: 0.9; }
.thd-summary__count a { color: var(--thd-white); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }

body.woocommerce-checkout table.thd-summary tr.cart_item:first-child td { padding-top: 14px !important; }
body.woocommerce-checkout table.thd-summary tr.cart_item td { padding: 6px 16px 0 !important; text-align: left; }
body.woocommerce-checkout table.thd-summary tr.cart_item:last-of-type td { padding-bottom: 8px !important; }
.thd-item__row {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--thd-border-light);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
.thd-item__row .thd-thumb { width: 56px; height: 56px; }
.thd-item__body { flex: 1; min-width: 0; }
.thd-item__name { display: block; color: var(--thd-teal); font-size: 13px; font-weight: 700; line-height: 1.35; }
.thd-item__name .thd-each { display: block; margin-top: 2px; color: var(--thd-muted); font-size: 12px; font-weight: 400; }
.thd-item__name .thd-badge { display: inline-flex; margin-top: 4px; }
.thd-item__meta { display: block; margin-top: 2px; color: var(--thd-muted); font-size: 12px; font-weight: 400; }
.thd-item__meta dl.variation { margin: 0; }
.thd-item__meta dl.variation dt, .thd-item__meta dl.variation dd, .thd-item__meta dl.variation p { display: inline; margin: 0; padding: 0; font-weight: 400; }
.thd-item__meta dl.variation dt { margin-right: 3px; }
.thd-item__meta dl.variation dd::after { content: " "; }
.thd-item__controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.thd-item__controls .thd-qty { height: 30px; }
.thd-item__controls .thd-qty__btn { width: 28px; font-size: 14px !important; }
.thd-item__controls .thd-qty input { width: 30px !important; font-size: 12px !important; }
.thd-item__qty-static { color: var(--thd-muted); font-size: 12px; }
.thd-item__price { margin-left: auto; color: var(--thd-ink); font-size: 13px; font-weight: 700; }
.thd-item__price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.thd-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--thd-border) !important;
  border-radius: 50%;
  background: var(--thd-white) !important;
  color: var(--thd-teal-muted) !important;
  font-size: 11px;
  cursor: pointer;
  box-shadow: none !important;
}
.thd-item__remove:hover { border-color: var(--thd-teal) !important; color: var(--thd-teal) !important; }
.thd-item__remove .thd-icon { font-size: 11px; }

/* Coupon row in the aside */
body.woocommerce-checkout table.thd-summary tr.thd-coupon-row td {
  padding: 10px 16px !important;
  border-top: 1px solid var(--thd-border-light) !important;
  border-bottom: 1px solid var(--thd-border-light) !important;
  text-align: left;
}
.thd-coupon { display: flex; gap: 8px; }
.thd-coupon input.thd-coupon__input {
  flex: 1;
  min-width: 0;
  height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid var(--thd-sage) !important;
  border-radius: 999px !important;
  background: var(--thd-white) !important;
  box-shadow: none !important;
  font: 400 13px/1 var(--thd-sans) !important;
  color: var(--thd-ink) !important;
}
.thd-coupon input.thd-coupon__input:focus { outline: none; border-color: var(--thd-teal) !important; }
.thd-coupon .thd-btn { min-height: 40px; padding: 0 22px; font-size: 14px; }
.thd-coupon__msg { margin: 8px 0 0; font-size: 12px; font-weight: 400; color: var(--thd-muted); }
.thd-coupon__msg .woocommerce-error, .thd-coupon__msg .woocommerce-message, .thd-coupon__msg .woocommerce-info,
.thd-coupon__msg ul { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; list-style: none; font-size: 12px; box-shadow: none; }
.thd-coupon__msg .woocommerce-error li { color: #C0392B; }
.thd-coupon__msg .woocommerce-message { color: var(--thd-teal); }
.thd-coupon__msg li::before { display: none; }

/* Subtotal, shipping summary, fees, taxes, total */
body.woocommerce-checkout table.thd-summary tr.cart-subtotal th,
body.woocommerce-checkout table.thd-summary tr.cart-subtotal td {
  padding-top: 12px !important;
  font-family: var(--thd-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--thd-teal);
}
body.woocommerce-checkout table.thd-summary tr.cart-discount th { color: var(--thd-teal); font-weight: 600; }
body.woocommerce-checkout table.thd-summary tr.cart-discount td .woocommerce-remove-coupon { display: block; font-size: 11px; font-weight: 400; color: var(--thd-muted); text-decoration: underline; }
body.woocommerce-checkout table.thd-summary tr.thd-progress-row td { padding: 6px 16px 10px !important; text-align: left; }
body.woocommerce-checkout table.thd-summary tr.thd-progress-row .thd-progress { padding: 12px 14px; }
body.woocommerce-checkout table.thd-summary tr.thd-ship-row th { color: var(--thd-ink); font-weight: 700; font-size: 13px; width: 24%; }
body.woocommerce-checkout table.thd-summary tr.thd-ship-row td { text-align: right; font-weight: 400; }
.thd-ship-summary { display: block; }
.thd-ship-summary__method { display: block; color: var(--thd-ink); font-size: 12px; }
.thd-ship-summary__method .thd-ship__desc, .thd-ship-summary__method .thd-badge, .thd-ship-summary__method .thd-ship__arrives { display: none; }
.thd-ship-summary__method .thd-ship__title { color: var(--thd-ink); }
.thd-ship-summary__price { display: block; margin-top: 2px; color: var(--thd-teal); font-weight: 700; font-size: 12px; }
.thd-ship-summary__price .woocommerce-Price-amount { color: inherit; }
.thd-ship-summary__arrives { display: block; color: var(--thd-teal); font-size: 11px; font-weight: 700; margin-top: 2px; }
.thd-ship-summary__dest { display: block; margin-top: 4px; color: var(--thd-muted); font-size: 11px; }
.thd-ship-summary__dest strong { color: var(--thd-teal); }
body.woocommerce-checkout table.thd-summary tr.thd-toggle-row th { color: var(--thd-muted); }
body.woocommerce-checkout table.thd-summary tr.fee th,
body.woocommerce-checkout table.thd-summary tr.tax-rate th,
body.woocommerce-checkout table.thd-summary tr.tax-total th { color: var(--thd-muted); }
body.woocommerce-checkout table.thd-summary tr.tax-rate th small,
body.woocommerce-checkout table.thd-summary tr.tax-total th small { display: block; font-size: 10px; }
body.woocommerce-checkout table.thd-summary tr.order-total th,
body.woocommerce-checkout table.thd-summary tr.order-total td {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-top: 1px solid var(--thd-teal) !important;
  font-family: var(--thd-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--thd-teal) !important;
}
body.woocommerce-checkout table.thd-summary tr.order-total td strong { font-weight: 400; }
body.woocommerce-checkout table.thd-summary tr.order-total td small.includes_tax { display: block; font-family: var(--thd-sans); font-size: 10px; color: var(--thd-muted); }
body.woocommerce-checkout table.thd-summary tr.thd-final-row td { padding: 0 !important; text-align: left; background: var(--thd-mint) !important; }
body.woocommerce-checkout table.thd-summary tr.thd-cta-row td { padding: 4px 16px 16px !important; background: var(--thd-mint) !important; text-align: left; }
body.woocommerce-checkout table.thd-summary tr.thd-cta-row .thd-installments { margin: 4px 0 12px; }
body.woocommerce-checkout table.thd-summary tr.thd-cta-row .thd-btn { width: 100%; }
.thd-aside-extras { padding: 18px 16px 20px; border-top: 1px solid var(--thd-border-light); }
.thd-aside-extras .thd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.thd-aside-extras .thd-trust__item { font-size: 12px; }
.thd-aside-extras .thd-hand { padding: 16px; gap: 12px; }
.thd-aside-extras .thd-hand__icon { width: 40px; height: 40px; font-size: 17px; }
.thd-aside-extras .thd-hand__title { font-size: 17px !important; }
.thd-aside-extras .thd-hand__text { font-size: 12px; }

/* --- "Order With Confidence" band --- */
.thd-band {
  margin-top: 72px;
  padding: 64px 20px;
  background: var(--thd-linen);
}
.thd-band.thd-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.thd-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  max-width: var(--thd-container);
  margin: 0 auto;
}
.thd-band .thd-page-head { grid-column: 1 / -1; margin-bottom: 8px; }
.thd-band__inner.no-image { grid-template-columns: 1fr; }
.thd-band__inner.no-image .thd-band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thd-band__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--thd-white);
  color: var(--thd-teal-muted);
  overflow: hidden;
}
.thd-band__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thd-band__image .thd-icon { font-size: 48px; }
.thd-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.thd-band__card {
  padding: 20px;
  border: 1px solid var(--thd-border-light);
  border-left: 4px solid var(--thd-goldfish);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
.thd-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--thd-mint);
  color: var(--thd-teal);
  font-size: 16px;
}
.thd-band__card h3 {
  margin: 0 0 6px !important;
  font-family: var(--thd-serif) !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  color: var(--thd-teal) !important;
}
.thd-band__card p { margin: 0; color: var(--thd-muted); font-size: 13px; line-height: 1.6; }

/* --- FAQ --- */
.thd-faq { max-width: 680px; margin: 64px auto 24px; padding: 0 20px; }
.thd-faq .thd-page-head { margin-bottom: 24px; }
.thd-faq details { border-bottom: 1px solid var(--thd-border); }
.thd-faq details:first-of-type { border-top: 1px solid var(--thd-border); }
.thd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  color: var(--thd-teal);
  font-family: var(--thd-serif);
  font-size: 18px;
  line-height: 1.3;
}
.thd-faq summary::-webkit-details-marker { display: none; }
.thd-faq summary::after {
  content: "+";
  flex: none;
  color: var(--thd-goldfish);
  font-family: var(--thd-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.thd-faq details[open] summary::after { content: "\2212"; }
.thd-faq__body { padding: 0 0 20px; color: var(--thd-ink); font-size: 14px; line-height: 1.7; }
.thd-faq__body p { margin: 0 0 10px; }
.thd-faq__body p:last-child { margin-bottom: 0; }

/* --- Mobile sticky "Place order" bar --- */
.thd-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--thd-border);
  background: var(--thd-white);
  box-shadow: 0 -8px 24px rgba(17, 61, 60, 0.12);
  text-align: center;
  font-family: var(--thd-sans);
}
.thd-sticky-bar .thd-btn { width: 100%; min-height: 50px; }
.thd-sticky-bar__note { display: block; margin-top: 6px; color: var(--thd-muted); font-size: 11px; }

/* --- Checkout: mobile --- */
@media (max-width: 960px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "payment" "aside" "extra";
    column-gap: 0;
  }
  body.woocommerce-checkout form.checkout > .thd-aside { position: static; margin-top: 8px; }
  .thd-section { padding-left: 46px; margin-bottom: 32px; }
  .thd-next { width: 100%; margin-left: 0; }
  .thd-main .thd-section:not(:last-child)::before,
  .thd-sections .thd-section:not(:last-child)::before,
  #customer_details .thd-section::before,
  .thd-section--payment::before { display: none; }
  .thd-section__head { flex-wrap: wrap; gap: 8px 16px; }
  .thd-section__aside { margin-left: 0; width: 100%; padding-left: 0; white-space: normal; }
  .thd-section__title { font-size: 22px !important; }
  .thd-band { margin-top: 48px; padding: 44px 16px; }
  .thd-band__inner { grid-template-columns: 1fr; gap: 24px; }
  .thd-band__grid,
  .thd-band__inner.no-image .thd-band__grid { grid-template-columns: 1fr; }
  .thd-faq { margin: 40px auto 16px; padding: 0; }
  .thd-sticky-bar.is-visible { display: block; }
  body.woocommerce-checkout.thd-has-sticky { padding-bottom: 110px; }
  body.woocommerce-checkout #payment .place-order .thd-section__num { left: 0; }
}
@media (max-width: 600px) {
  .thd-fields-grid,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.woocommerce-checkout #billing_email_field,
  body.woocommerce-checkout #billing_phone_field,
  body.woocommerce-checkout #billing_address_2_field,
  body.woocommerce-checkout #billing_city_field,
  body.woocommerce-checkout #shipping_address_2_field,
  body.woocommerce-checkout #shipping_city_field { grid-column: span 2; }
  .thd-title { font-size: 34px !important; }
  .thd-eyebrow { font-size: 26px; }
  .thd-steps__item { font-size: 15px; }
  .thd-steps__sep { width: 20px; margin: 0 10px; }
  .thd-steps { margin: 20px auto 26px; }
  .thd-section { padding-left: 42px; }
  .thd-section__num { width: 30px; height: 30px; font-size: 14px; }
  ul.thd-ship__list li.thd-ship__item label { padding-right: 0; }
  ul.thd-ship__list li.thd-ship__item .thd-ship__price { position: static; display: block; margin-top: 4px; }
  body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form { grid-template-columns: 1fr; }
  body.woocommerce-checkout #payment div.payment_box .wc-credit-card-form .form-row-wide { grid-column: auto; }
  body.woocommerce-checkout #payment .place-order .thd-section__num { left: 0; }
}

/* =====================================================================
   ORDER RECEIVED (thank you)
   ===================================================================== */
body.woocommerce-order-received .entry-hero,
body.woocommerce-order-received .entry-header { display: none !important; }
body.woocommerce-order-received .woocommerce-order { max-width: var(--thd-container); margin: 0 auto; font-family: var(--thd-sans); color: var(--thd-ink); }
body.woocommerce-order-received .woocommerce-order > .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview { display: none !important; }

.thd-thanks { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.thd-thanks__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 2px solid var(--thd-teal);
  border-radius: 50%;
  color: var(--thd-teal);
  font-size: 24px;
}
.thd-thanks .thd-eyebrow { font-size: 34px; }
.thd-thanks .thd-title { font-size: 40px !important; }
.thd-thanks .thd-rule { width: 180px; }
.thd-thanks__meta { margin: 20px auto 0; max-width: 560px; color: var(--thd-ink); font-size: 15px; line-height: 1.7; }
.thd-thanks__meta strong { color: var(--thd-teal); font-weight: 700; }

.thd-thanks-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 48px;
}
.thd-thanks-cards.has-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
.thd-card {
  padding: 22px 24px;
  border: 1px solid var(--thd-border);
  border-radius: var(--thd-radius);
  background: var(--thd-white);
}
.thd-card__title {
  margin: 0 0 10px !important;
  font-family: var(--thd-serif) !important;
  font-weight: 400 !important;
  font-size: 19px !important;
  color: var(--thd-teal) !important;
  line-height: 1.25;
}
.thd-card p { margin: 0 0 8px; color: var(--thd-muted); font-size: 13px; line-height: 1.65; }
.thd-card p:last-child { margin-bottom: 0; }
.thd-card p strong { color: var(--thd-teal); font-weight: 700; }
.thd-card a { color: var(--thd-teal); font-weight: 700; text-decoration: none; }

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid var(--thd-border);
  border-radius: 12px;
  background: var(--thd-white);
}
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-customer-details h2,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 14px !important;
  font-family: var(--thd-serif) !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  color: var(--thd-teal) !important;
}
body.woocommerce-order-received table.woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-collapse: collapse;
}
body.woocommerce-order-received table.woocommerce-table--order-details th,
body.woocommerce-order-received table.woocommerce-table--order-details td {
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--thd-border-light) !important;
  background: transparent !important;
  font-size: 13px;
  color: var(--thd-ink);
}
body.woocommerce-order-received table.woocommerce-table--order-details thead th { color: var(--thd-teal); font-weight: 700; font-size: 12px; }
body.woocommerce-order-received table.woocommerce-table--order-details td.woocommerce-table__product-name a { color: var(--thd-teal); font-weight: 700; text-decoration: none; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot th { color: var(--thd-muted); font-weight: 400; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot td { text-align: right; font-weight: 700; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: 0 !important;
  font-family: var(--thd-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--thd-teal);
}
body.woocommerce-order-received .woocommerce-customer-details address {
  padding: 0;
  border: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: var(--thd-ink);
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column { float: none !important; width: auto !important; }

@media (max-width: 960px) {
  .thd-thanks-cards, .thd-thanks-cards.has-2 { grid-template-columns: 1fr; gap: 14px; }
  .thd-thanks .thd-title { font-size: 34px !important; }
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
}
