/* Souci Mall — cart drawer + cart/checkout page chrome */

/* Drawer chrome */
.sm-cart-drawer {
  position: fixed; inset: 0; z-index: 1200;
  pointer-events: none;
}
.sm-cart-drawer.is-open { pointer-events: auto; }
.sm-cart-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity .2s;
}
.sm-cart-drawer.is-open .sm-cart-drawer__scrim { opacity: 1; }
.sm-cart-drawer__panel {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(420px, 95vw);
  background: var(--sm-bg);
  border-left: 1px solid var(--sm-line);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.sm-cart-drawer.is-open .sm-cart-drawer__panel { transform: translateX(0); }
.sm-cart-drawer__head {
  padding: 20px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--sm-line);
}
.sm-cart-drawer__close {
  width: 36px; height: 36px;
  border-radius: 18px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ---- Mini cart (drawer body) ------------------------------------- */
.sm-cart-drawer__body ul.sm-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
/* Reset WooCommerce's `.cart_list li` + `.product_list_widget li *` defaults
 * that aggressively position-absolute the remove button, float-right the
 * img, add ::before/::after clearfix tables, and pad-left 2em the row.
 * Those defaults assume the legacy `[remove][a>thumb+name][qty]` markup;
 * with our 3-column grid they fight every column and produce the broken
 * "image floats right, name squeezed to one-letter-per-line" layout. */
.sm-cart-drawer__body .sm-mini-cart__item {
  display: grid !important;
  grid-template-columns: 64px 1fr 28px;
  gap: 14px;
  padding: 14px 0 !important;
  padding-left: 0 !important;
  border-bottom: 1px solid var(--sm-line);
  align-items: center;
  position: static !important;
}
.sm-cart-drawer__body .sm-mini-cart__item::before,
.sm-cart-drawer__body .sm-mini-cart__item::after { content: none !important; display: none !important; }
.sm-cart-drawer__body .sm-mini-cart__item img {
  float: none !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.sm-cart-drawer__body .sm-mini-cart__remove {
  position: static !important;
  font-weight: 400 !important;
}
.sm-cart-drawer__body .sm-mini-cart__name {
  display: block !important;
  font-weight: 700 !important;
}
.sm-cart-drawer__body .sm-mini-cart__item:first-child { padding-top: 4px; }
.sm-cart-drawer__body .sm-mini-cart__item:last-child  { border-bottom: 0; }

.sm-cart-drawer__body .sm-mini-cart__thumb {
  display: block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sm-surface-alt);
}
.sm-cart-drawer__body .sm-mini-cart__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.sm-cart-drawer__body .sm-mini-cart__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-cart-drawer__body .sm-mini-cart__name {
  font-family: var(--sm-display-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--sm-ink);
  text-decoration: none;
  /* clamp to 2 lines so long names don't push qty/price to wrap */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.sm-cart-drawer__body .sm-mini-cart__name:hover { color: var(--sm-accent); }
.sm-cart-drawer__body .sm-mini-cart__variations {
  font-size: 11px;
  font-family: var(--sm-mono-font);
  color: var(--sm-ink-muted);
  letter-spacing: 0.4px;
}
.sm-cart-drawer__body .sm-mini-cart__variations p { margin: 0; }
.sm-cart-drawer__body .sm-mini-cart__qty-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.sm-cart-drawer__body .sm-mini-cart__qty {
  font-family: var(--sm-mono-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--sm-ink-muted);
}
.sm-cart-drawer__body .sm-mini-cart__price {
  font-family: var(--sm-display-font);
  font-weight: 800;
  font-size: 14px;
  color: var(--sm-ink);
  margin-left: auto;
  white-space: nowrap;
}
.sm-cart-drawer__body .sm-mini-cart__price ins,
.sm-cart-drawer__body .sm-mini-cart__price del {
  text-decoration: none;
  background: transparent;
}
.sm-cart-drawer__body .sm-mini-cart__price del { color: var(--sm-ink-muted); font-weight: 500; font-size: 12px; margin-right: 4px; }

.sm-cart-drawer__body .sm-mini-cart__remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--sm-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--sm-ink-muted);
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.sm-cart-drawer__body .sm-mini-cart__remove:hover {
  background: color-mix(in srgb, var(--sm-danger) 10%, transparent);
  border-color: var(--sm-danger);
  color: var(--sm-danger);
  transform: scale(1.05);
}

/* Subtotal row */
.sm-cart-drawer__body .sm-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sm-display-font);
  font-size: 16px;
  padding: 18px 0 16px;
  margin-top: 6px;
  border-top: 1px solid var(--sm-line-strong);
  margin-bottom: 0;
}
.sm-cart-drawer__body .sm-mini-cart__total strong {
  font-weight: 600;
  color: var(--sm-ink-soft);
  letter-spacing: 0.2px;
}
.sm-cart-drawer__body .sm-mini-cart__total span,
.sm-cart-drawer__body .sm-mini-cart__total .woocommerce-Price-amount {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--sm-ink);
}

/* Buttons (View cart / Checkout) — stack with checkout on top */
.sm-cart-drawer__body .sm-mini-cart__buttons {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sm-cart-drawer__body .sm-mini-cart__buttons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sm-body-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--sm-button-tracking);
  text-decoration: none;
  text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.sm-cart-drawer__body .sm-mini-cart__buttons .checkout {
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--sm-accent) 65%, transparent);
}
.sm-cart-drawer__body .sm-mini-cart__buttons .checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--sm-accent) 70%, transparent);
}
.sm-cart-drawer__body .sm-mini-cart__buttons .wc-forward:not(.checkout) {
  background: var(--sm-surface);
  color: var(--sm-ink);
  border: 1px solid var(--sm-line);
}
.sm-cart-drawer__body .sm-mini-cart__buttons .wc-forward:not(.checkout):hover {
  border-color: var(--sm-accent);
  color: var(--sm-accent);
}

/* Empty-cart state — rendered inside .sm-cart-drawer__body */
.sm-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 24px;
  gap: 10px;
}
.sm-cart-empty__badge {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sm-accent) 0%, var(--sm-accent-2) 100%);
  color: var(--sm-accent-ink, #fff);
  margin-bottom: 8px;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--sm-accent) 65%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.sm-cart-empty__pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--sm-accent);
  opacity: 0;
  animation: sm-cart-empty-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes sm-cart-empty-pulse {
  0%   { transform: scale(0.85); opacity: 0.55; }
  70%  { transform: scale(1.4);  opacity: 0;    }
  100% { transform: scale(1.4);  opacity: 0;    }
}
@media (prefers-reduced-motion: reduce) {
  .sm-cart-empty__pulse { animation: none; }
}
.sm-cart-empty__title {
  font-family: var(--sm-display-font);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 2px 0 4px;
  color: var(--sm-ink);
}
.sm-cart-empty__sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sm-ink-soft);
  max-width: 300px;
  margin: 0 0 16px;
}
.sm-cart-empty__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sm-cart-drawer__privacy {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--sm-line);
  background: var(--sm-surface);
}
.sm-cart-drawer__dot {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sm-accent) 18%, transparent);
  color: var(--sm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-cart-drawer__dot::before { content: '◆'; color: var(--sm-accent); }

/* Cart line-item thumbnail — desktop. WC default is ~32px and unrounded;
 * Bourbon wants a more product-photo feel, so we bump to 88px square
 * with 10px radius and a subtle gold inset border. Mobile rules in the
 * @media block further down keep their 80px sizing. */
.woocommerce-cart table.shop_table td.product-thumbnail img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface-alt);
  display: block;
}
.woocommerce-cart table.shop_table td.product-thumbnail {
  width: 110px;
  padding: 18px 12px 18px 22px !important;
}

/* Cart page & checkout — inherit button/input styles from base.css but scope a few tweaks */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3 {
  font-family: var(--sm-display-font);
  font-weight: var(--sm-display-weight);
  letter-spacing: var(--sm-display-tracking);
}

/* `.cart_totals` is the right-hand summary card on /cart/. WC ships it
 * as a bare div with the totals table + checkout button as siblings,
 * which makes the gold-bordered table look amputated and the checkout
 * button look like it's bleeding off the side of the card. Wrap the
 * whole thing in one Bourbon panel and inset every child so the layout
 * reads as a single self-contained summary. */
.woocommerce-cart .cart_totals {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-card);
  padding: 28px 28px 24px;
  box-sizing: border-box;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 22px;
  margin: 0 0 18px;
  text-transform: uppercase;
  color: var(--sm-ink);
}
.woocommerce-cart .cart_totals .shop_table {
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 0 22px;
}
.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td {
  background: transparent;
  border-bottom: 1px solid var(--sm-line);
  padding: 14px 0;
}
.woocommerce-cart .cart_totals .shop_table tr:last-child th,
.woocommerce-cart .cart_totals .shop_table tr:last-child td {
  border-bottom: 0;
}

/* Proceed-to-checkout area — sits inside the cart_totals card now. */
.woocommerce-cart .wc-proceed-to-checkout {
  margin: 0;
  padding: 0;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 16px 24px !important;
  font-size: 13px;
  letter-spacing: var(--sm-button-tracking);
}

/* Stripe Express Checkout (Apple Pay / Google Pay) — Apple/Google brand
 * buttons themselves are locked-down assets (we cannot restyle the logo
 * or the button surface, by their guidelines). What we CAN control is
 * spacing, the optional divider, and the wrapper's relationship to the
 * surrounding surface. Tightens the gap with the primary CTA and adds
 * a subtle "OR PAY WITH" divider. */
.woocommerce-cart .cart_totals .wc-stripe-product-checkout-container,
.woocommerce-cart .cart_totals .wc-stripe-payment-request-button,
.woocommerce-cart .cart_totals #wc-stripe-payment-request-button,
.wc-stripe-applepay-checkout,
.wc-stripe-googlepay-checkout {
  margin-top: 12px;
}
.wc-stripe-applepay-checkout + .wc-stripe-googlepay-checkout {
  margin-top: 8px;
}
/* Stripe button hosts (apple-pay-button / div.gpay-button) — full width
 * to match the gold "Proceed to checkout" button above. The button
 * inside is still rendered by Apple/Google. */
.wc-stripe-applepay-checkout apple-pay-button,
.wc-stripe-applepay-checkout .apple-pay-button,
.wc-stripe-googlepay-checkout .gpay-button,
.wc-stripe-googlepay-checkout > div {
  display: block !important;
  width: 100% !important;
  --apple-pay-button-width: 100% !important;
  --apple-pay-button-height: 52px !important;
  --apple-pay-button-border-radius: 0 !important;
}
/* Optional "OR PAY WITH" divider injected by Stripe (or our own) — caps + gold rule */
.woocommerce-cart .cart_totals .wc-stripe-payment-request-divider,
.sm-stripe-divider {
  margin: 16px 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--sm-ink-muted);
  text-transform: uppercase;
  text-align: center;
  position: relative;
}
.sm-stripe-divider::before,
.sm-stripe-divider::after {
  content: '';
  display: inline-block;
  width: 32%;
  height: 1px;
  background: var(--sm-line);
  vertical-align: middle;
  margin: 0 12px;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-card);
  overflow: hidden;
}
.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
  background: var(--sm-surface);
  color: var(--sm-ink-muted);
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
}
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--sm-line);
  vertical-align: middle;
}
.woocommerce button.button,
.woocommerce-page button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sm-ink);
  color: var(--sm-bg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--sm-button-tracking);
  text-transform: var(--sm-display-transform);
  border: none;
}
/* Primary CTAs across cart / checkout — covers anchor `<a class="button alt">`
 * (Proceed to checkout), `<button class="button alt">` (Update cart, Place
 * order) and the explicit `#place_order`. The previous selector only
 * matched <button> tags, leaving the anchor-style "Proceed to checkout"
 * to fall back to whatever button.alt the global stylesheet ships —
 * which renders as the WC-blocks purple. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce button.button[name="update_cart"],
.woocommerce #place_order {
  background: var(--sm-accent) !important;
  color: var(--sm-accent-ink) !important;
  border: 1px solid var(--sm-accent) !important;
  border-radius: var(--sm-radius-pill, 999px);
  font-family: var(--sm-body-font);
  font-weight: 700;
  letter-spacing: var(--sm-button-tracking);
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background .15s, color .15s, border-color .15s;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce button.button[name="update_cart"]:hover,
.woocommerce #place_order:hover {
  background: var(--sm-accent-3) !important;
  border-color: var(--sm-accent-3) !important;
  color: var(--sm-accent-ink) !important;
}

/* Secondary buttons (Update cart, Apply coupon) — gold outline so they
 * read as actions but don't compete with Proceed to checkout. The
 * `name="update_cart"` button sits under cart actions and we already
 * tint it accent above; here we override it back to outline since
 * "Update bag" is a secondary action. */
.woocommerce-cart .actions button.button[name="update_cart"],
.woocommerce-cart button.button[name="apply_coupon"] {
  background: transparent !important;
  color: var(--sm-accent) !important;
  border: 1px solid var(--sm-accent) !important;
}
.woocommerce-cart .actions button.button[name="update_cart"]:hover,
.woocommerce-cart button.button[name="apply_coupon"]:hover {
  background: color-mix(in srgb, var(--sm-accent) 14%, transparent) !important;
  color: var(--sm-accent-3) !important;
}

/* Coupon input — was 100px which clipped placeholders. Widen + brand it. */
.woocommerce-cart .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart .coupon input[name="coupon_code"] {
  min-width: 220px !important;
  flex: 1 1 220px;
  background: var(--sm-surface) !important;
  border: 1px solid var(--sm-line-strong) !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  color: var(--sm-ink) !important;
  font-family: var(--sm-body-font);
  font-size: 14px !important;
}
.woocommerce-cart .coupon input[name="coupon_code"]:focus {
  border-color: var(--sm-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 20%, transparent);
}
.sm-discreet-notice {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface);
  border-radius: var(--sm-radius-card);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.sm-discreet-notice strong { color: var(--sm-ink); font-family: var(--sm-display-font); }

/* ============================================================
 * Quantity stepper — pill style (-)[n](+). Applies everywhere
 * WC renders its default `.quantity` wrapper.
 * ============================================================ */
.woocommerce .quantity,
.sm-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 999px;
  padding: 3px;
  height: 40px;
  position: relative;
}
.woocommerce .quantity .qty,
.sm-qty input {
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--sm-mono-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--sm-ink);
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.sm-qty input::-webkit-outer-spin-button,
.sm-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sm-qty__btn {
  width: 34px; height: 34px;
  border-radius: 17px;
  background: var(--sm-surface-alt);
  color: var(--sm-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  user-select: none;
}
.sm-qty__btn:hover { background: var(--sm-accent); color: var(--sm-accent-ink); }
.sm-qty__btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Cart-page larger variant */
.woocommerce-cart .product-quantity .quantity,
.woocommerce-cart .product-quantity .sm-qty {
  height: 44px;
}

/* ============================================================
 * Checkout — two-column with sticky summary
 * ============================================================ */
.sm-checkout-head {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sm-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 1024px) {
  .sm-checkout__grid { grid-template-columns: 1fr; }
}

.sm-checkout__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.sm-checkout__card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-card);
  padding: 24px 26px;
  position: relative;
}
.sm-checkout__step-badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--sm-ink);
  color: var(--sm-bg);
  font-family: var(--sm-mono-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.sm-checkout__step-title {
  font-family: var(--sm-display-font);
  font-weight: var(--sm-display-weight);
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 0 0 18px;
  color: var(--sm-ink);
  text-transform: var(--sm-display-transform);
}
.sm-checkout__step-body .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.sm-checkout__step-body label {
  font-family: var(--sm-mono-font);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sm-ink-muted);
}
.sm-checkout__step-body label .required { color: var(--sm-accent-2); }
.sm-checkout__step-body .form-row-first,
.sm-checkout__step-body .form-row-last {
  width: calc(50% - 7px);
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
}
.sm-checkout__step-body .form-row-first { margin-right: 14px; }
@media (max-width: 600px) {
  .sm-checkout__step-body .form-row-first,
  .sm-checkout__step-body .form-row-last { width: 100%; margin-right: 0; }
}

.sm-checkout__step-body .select2-container,
.sm-checkout__step-body .select2-selection {
  min-height: 50px !important;
  border-radius: 12px !important;
}

/* ============================================================
 * Checkout · Payment methods — go native
 *
 * Decision: hand the whole payment area off to WooCommerce + the active
 * payment plugin's CSS. Stripe / PayPal / etc. ship payment-method
 * surfaces that have been tested across browsers, screen readers, dark
 * patterns, and 3DS modals; reskinning them theme-side ends up fighting
 * the plugin update lifecycle. The only theme overrides left here are
 * the bare minimum needed to keep the surrounding step 03 card readable
 * and the place-order button on-brand.
 * ============================================================ */

/* Tame the bottom margin Woo's payment-methods ul leaves before
 * .place-order so the place-order block doesn't drift halfway down the
 * step card. Keep WC's own padding/background/borders intact. */
.sm-checkout__payment ul.payment_methods {
  margin-bottom: 12px;
}

/* WC + Stripe paint the payment area in `#ebe9eb` / `#dcd7e2` cool greys
 * baked into the plugin CSS (`#payment` and `#payment .payment_box`).
 * Those clash hard with Bourbon black. Override the wrapper + the
 * expanding payment_box so selected gateways (Apple Pay info card etc.)
 * read as part of the dark page. The radio + label markup itself stays
 * native — we only touch the surfaces. */
#payment.sm-checkout__payment {
  background: transparent !important;
}
/* Layout the row as a single flex line: [native radio (visually hidden)]
 * + [label fills rest, with logo strip pushed right]. WC ships the
 * <input> as a sibling of <label>, so making <li> a flex container is
 * the only way to keep them on one row regardless of label content. */
.sm-checkout__payment .wc_payment_method,
.sm-checkout__payment li.wc_payment_method {
  background: var(--sm-surface) !important;
  border: 1px solid var(--sm-line) !important;
  border-radius: var(--sm-radius-card) !important;
  margin-bottom: 10px !important;
  padding: 18px 22px !important;
  color: var(--sm-ink) !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
}

/* Hide the native radio — kept in DOM for keyboard / a11y, painted
 * circle below replaces it. flex-shrink:0 makes sure it doesn't get
 * squeezed by long labels. */
.sm-checkout__payment li.wc_payment_method input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px; height: 1px;
}

.sm-checkout__payment li.wc_payment_method label {
  color: var(--sm-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  margin: 0 !important;
  padding: 0 0 0 38px !important;     /* leave 38px on the left for our painted dot */
  cursor: pointer;
  position: relative;
  min-height: 24px;
}

/* Painted radio — 22px gold ring at the left edge of the label.
 * checked state fills with brand gold + 4px halo. Pure CSS, no JS. */
.sm-checkout__payment li.wc_payment_method label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--sm-line-strong);
  background: transparent;
  transition: border-color .15s, background .15s, box-shadow .15s;
  flex-shrink: 0;
}
.sm-checkout__payment li.wc_payment_method:has(input:checked) label::before {
  border-color: var(--sm-accent);
  background: radial-gradient(circle, var(--sm-accent) 0 6px, transparent 7px 100%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sm-accent) 18%, transparent);
}

.sm-checkout__payment li.wc_payment_method:hover {
  border-color: var(--sm-line-strong) !important;
}
.sm-checkout__payment li.wc_payment_method:has(input:checked) {
  border-color: var(--sm-accent) !important;
  background: color-mix(in srgb, var(--sm-accent) 5%, var(--sm-surface)) !important;
}

/* Logo strip — push to right side of the label. */
.sm-checkout__payment li.wc_payment_method label img,
.sm-checkout__payment li.wc_payment_method label .wc-stripe-card-icons-container,
.sm-checkout__payment li.wc_payment_method label .wc-stripe-paymentRequest-icons-container {
  margin-left: auto;
}
.sm-checkout__payment li.wc_payment_method label img:first-of-type:not(:last-of-type) {
  margin-left: auto;
}
.sm-checkout__payment li.wc_payment_method label img + img {
  margin-left: 6px;
}

/* Expanded payment_box must fill the row beneath the label, not sit
 * inline next to it (flex parent would otherwise wrap it as a sibling
 * column). flex-basis:100% achieves that. */
.sm-checkout__payment li.wc_payment_method .payment_box {
  flex-basis: 100%;
  margin-top: 12px !important;
}
.sm-checkout__payment .payment_box,
#payment.sm-checkout__payment .payment_box,
#payment .payment_box {
  background: var(--sm-bg-alt) !important;
  border: 1px solid var(--sm-line) !important;
  color: var(--sm-ink-soft) !important;
  border-radius: 10px !important;
  margin-top: 12px !important;
}
/* Hide the WC default callout triangle on payment_box (which assumed light bg) */
.sm-checkout__payment .payment_box::before,
#payment .payment_box::before { display: none !important; }

/* Stripe Elements labels — the plugin renders "Card number" / "Expiration
 * date" / "Security code" as plain <label>s with a hard-coded slate
 * colour designed for white backgrounds. On Bourbon dark they read as
 * barely-visible blue smudges. Force them to ink so they're readable. */
.sm-checkout__payment .payment_box label,
.sm-checkout__payment .payment_box .form-row label,
#payment .payment_box label,
.sm-checkout__payment .wc-stripe-card-form label,
.sm-checkout__payment .wc-stripe-elements-field label,
.sm-checkout__payment .StripeElement-label,
.sm-checkout__payment .wc-stripe-payment-method-label {
  color: var(--sm-ink) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.6px !important;
  background: transparent !important;
}

/* Stripe iframes (StripeElement) — the boxed input inside each field
 * paints a white background by default. Make the box dark + gold-rim
 * so the form sits flush in the dark surface. */
.sm-checkout__payment .StripeElement,
.sm-checkout__payment .wc-stripe-elements-field {
  background: var(--sm-bg) !important;
  border: 1px solid var(--sm-line-strong) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  transition: border-color .15s, box-shadow .15s;
}
.sm-checkout__payment .StripeElement--focus,
.sm-checkout__payment .wc-stripe-elements-field--focus {
  border-color: var(--sm-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 18%, transparent) !important;
}
/* "Secure, fast checkout with Link" Stripe banner — keep Stripe's blue
 * (it's a brand mark) but bring the bar background to dark so the row
 * doesn't show up as a white slab on top of the dark card. */
.sm-checkout__payment .payment_box .stripe-link-banner,
.sm-checkout__payment .payment_box .wc-stripe-link-button-container {
  background: transparent !important;
}
/* Stripe's "Apple Pay selected" expanded card uses an inner white panel */
.sm-checkout__payment .payment_box .wc-stripe-applepay-section,
.sm-checkout__payment .payment_box .wc-stripe-googlepay-section,
.sm-checkout__payment .payment_box .wc-stripe-paymentRequest-section {
  background: transparent !important;
  color: var(--sm-ink-soft) !important;
}

/* Place-order block — pull the WC-default container out of its grey
 * tint and right-align the brand button so it doesn't dominate the
 * step card with full-width pink. */
.sm-checkout__payment .form-row.place-order,
.sm-checkout__place-order {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.sm-checkout__payment .form-row.place-order #place_order,
.sm-checkout__place-order #place_order {
  align-self: flex-end;
  width: auto;
  min-width: 220px;
  padding: 14px 28px;
}
@media (max-width: 640px) {
  .sm-checkout__payment .form-row.place-order #place_order,
  .sm-checkout__place-order #place_order {
    align-self: stretch;
    width: 100%;
  }
}

/* Aside / summary */
.sm-checkout__aside { position: sticky; top: 88px; }
@media (max-width: 1024px) { .sm-checkout__aside { position: static; } }

.sm-checkout__summary {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-card);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sm-checkout__summary-title {
  font-family: var(--sm-display-font);
  font-weight: var(--sm-display-weight);
  font-size: 22px;
  letter-spacing: -0.3px;
  margin: 0;
  text-transform: var(--sm-display-transform);
}
.sm-checkout__summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin: -4px -6px 0;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--sm-line);
}
.sm-checkout__line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
}
.sm-checkout__line-thumb {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 10px;
  background: var(--sm-chroma, var(--sm-surface-alt));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sm-checkout__line-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.sm-checkout__line-qty {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sm-surface-alt);
  color: var(--sm-ink-muted);
  font-family: var(--sm-mono-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.sm-checkout__line-body { min-width: 0; }
.sm-checkout__line-name {
  font-family: var(--sm-display-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--sm-ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-checkout__line-price {
  font-family: var(--sm-mono-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-ink);
  text-align: right;
}

.sm-checkout__coupon summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--sm-ink);
  list-style: none;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--sm-line);
}
.sm-checkout__coupon summary::-webkit-details-marker { display: none; }
.sm-checkout__coupon[open] summary span { transform: rotate(45deg); display: inline-block; transition: transform .2s; }
.sm-checkout__coupon-row {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}
.sm-checkout__coupon-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
}

.sm-checkout__totals {
  font-size: 13px;
  border-top: 1px solid var(--sm-line);
  padding-top: 12px;
}
.sm-checkout__totals table { width: 100%; border-collapse: collapse; }
.sm-checkout__totals tr th,
.sm-checkout__totals tr td { padding: 8px 0; border: 0; font-size: 13px; }
.sm-checkout__totals tr th { text-align: left; color: var(--sm-ink-soft); font-weight: 500; font-family: var(--sm-body-font); text-transform: none; letter-spacing: 0; }
.sm-checkout__totals tr td { text-align: right; font-family: var(--sm-mono-font); color: var(--sm-ink); }
/* Product name cell — keep it left-aligned so multi-line names don't
 * appear indented. The product-total cell stays right-aligned via the
 * generic `tr td` rule above. */
.sm-checkout__totals tr.cart_item td.product-name,
.sm-checkout__totals td.product-name {
  text-align: left !important;
  font-family: var(--sm-body-font);
  color: var(--sm-ink);
  line-height: 1.45;
}
.sm-checkout__totals td.product-name .product-quantity {
  margin-left: 6px;
  color: var(--sm-ink-muted);
  font-weight: 500;
}
.sm-checkout__totals tr.order-total th,
.sm-checkout__totals tr.order-total td {
  padding-top: 12px;
  border-top: 1px solid var(--sm-line-strong);
  font-family: var(--sm-display-font);
  font-size: 20px;
  font-weight: 900;
}
.sm-checkout__totals tr.order-total td { color: var(--sm-accent); }

.sm-checkout__totals #place_order {
  width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: var(--sm-button-tracking);
  text-transform: var(--sm-display-transform);
  border: 0;
  margin-top: 14px;
  cursor: pointer;
}
.sm-checkout__totals #place_order:hover { filter: brightness(1.05); }

.sm-checkout__totals .woocommerce-terms-and-conditions-wrapper {
  padding-top: 10px;
  border-top: 1px solid var(--sm-line);
  margin-top: 10px;
  font-size: 11px;
  color: var(--sm-ink-soft);
}

.sm-checkout__promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--sm-surface-alt);
  border-radius: 12px;
  font-size: 12px;
  color: var(--sm-ink);
}
.sm-checkout__promise > span {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sm-accent) 18%, transparent);
  color: var(--sm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================================
 * Thank-you page
 * ============================================================ */
.sm-thankyou {
  padding-block: 40px 80px;
}
/* Bourbon order-confirmation hero — restrained dark surface with a
 * single gold accent line. The Candy violet→magenta gradient and
 * decorative orb are gone; the moment a customer just paid is when
 * the brand should feel composed, not party. */
.sm-thankyou__hero {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  color: var(--sm-ink);
  border-radius: var(--sm-radius-card);
  padding: 64px 48px 56px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.sm-thankyou__hero::after { display: none; }  /* kill orb */
.sm-thankyou__eyebrow {
  font-family: var(--sm-body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sm-accent);
}
.sm-thankyou__title {
  font-family: var(--sm-display-font);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 14px 0 16px;
  text-transform: uppercase;
  color: var(--sm-ink);
}
.sm-thankyou__sub {
  font-family: var(--sm-body-font);
  font-size: 14.5px;
  color: var(--sm-ink-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}
.sm-thankyou__id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--sm-line-strong);
  margin-top: 22px;
  font-family: var(--sm-body-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sm-ink-soft);
}
.sm-thankyou__id .woocommerce-Price-amount { color: var(--sm-accent); font-weight: 700; }
.sm-thankyou__hero .sm-btn:not(.is-ghost) {
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  border-color: var(--sm-accent);
}
.sm-thankyou__hero .sm-btn:not(.is-ghost):hover {
  background: var(--sm-accent-3);
  color: var(--sm-accent-ink);
  border-color: var(--sm-accent-3);
}
.sm-thankyou__hero .sm-btn.is-ghost {
  background: transparent;
  color: var(--sm-ink);
  border-color: var(--sm-line-strong);
}
.sm-thankyou__hero .sm-btn.is-ghost:hover {
  background: color-mix(in srgb, var(--sm-accent) 12%, transparent);
  color: var(--sm-accent);
  border-color: var(--sm-accent);
}

/* Optional photo background — heavy ink overlay so the photo is
 * texture, not artwork. Title stays white-on-dark. */
.sm-thankyou__hero[data-bg="1"] {
  background-image:
    linear-gradient(180deg, rgba(8,8,12,0.78) 0%, rgba(8,8,12,0.92) 100%),
    var(--sm-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  .sm-thankyou__hero { padding: 40px 24px; }
  .sm-thankyou__title { font-size: 34px; letter-spacing: -1px; }
}

.sm-thankyou__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .sm-thankyou__grid { grid-template-columns: 1fr; } }

.sm-thankyou__reward {
  background: var(--sm-ink);
  color: var(--sm-bg);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-thankyou__reward h3 {
  font-family: var(--sm-display-font);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0;
  color: var(--sm-bg);
}
.sm-thankyou__reward .sm-btn { align-self: flex-start; margin-top: 8px; }

/* ============================================================
 * Trust signals — under ATC + in cart + checkout aside
 * ============================================================ */
.sm-trust {
  --sm-trust-radius: 12px;
  --sm-trust-pad-y: 16px;
}
.sm-trust--card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-trust-radius);
  padding: var(--sm-trust-pad-y) 18px;
}
.sm-trust--bare { padding: 4px 0; }
.sm-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sm-trust--grid .sm-trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.sm-trust__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.sm-trust__icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-accent);
  flex-shrink: 0;
}
.sm-trust__copy { min-width: 0; }
.sm-trust__title {
  font-family: var(--sm-body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--sm-ink);
  line-height: 1.3;
}
.sm-trust__sub {
  font-family: var(--sm-body-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sm-ink-soft);
  line-height: 1.45;
  margin-top: 3px;
}
.sm-trust__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sm-line);
}
.sm-trust__marks img {
  height: 22px;
  width: auto;
  background: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--sm-line);
}
@media (max-width: 600px) {
  .sm-trust--grid .sm-trust__list { grid-template-columns: 1fr; }
  .sm-trust__title { font-size: 12.5px; }
  .sm-trust__sub { font-size: 11.5px; }
}
.summary .sm-trust { margin-top: 18px; }
.cart-collaterals .sm-trust { margin-top: 0; }

/* `.cart-collaterals` ships from WC as a float-based layout: cart_totals
 * float-right, cross-sells float-left, no gap between them. With our
 * trust-signals card injected as a sibling, the two adjacent cards
 * collapse into each other with ~0px breathing space. Convert to a
 * 2-column grid so the gap is explicit and predictable. */
.woocommerce-cart .cart-collaterals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .sm-trust,
.woocommerce-cart .cart-collaterals .cross-sells {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
/* Force the cards into specific columns regardless of source order or
 * any inline float WC injects. Trust card on the left, totals card on
 * the right, cross-sells (if a plugin emits them) span the full row
 * underneath. */
.woocommerce-cart .cart-collaterals .sm-trust    { grid-column: 1; grid-row: 1; }
.woocommerce-cart .cart-collaterals .cart_totals { grid-column: 2; grid-row: 1; }
.woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 900px) {
  .woocommerce-cart .cart-collaterals { grid-template-columns: 1fr; gap: 18px; }
}
.sm-checkout__totals + .sm-trust { margin-top: 16px; }

/* ============================================================
 * Track order page — split-screen redesign
 * ============================================================ */
.sm-track {
  padding-block: 30px 80px;
}

/* Two-column layout: decorative hero | form card. Equal-height.
 * Width is inherited from `.sm-wrap` (1440px max, 60px side padding) so
 * the track page lines up flush with the homepage and other pages — no
 * narrower content rail, no center drift. */
.sm-track__split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .sm-track__split { grid-template-columns: 1fr; gap: 16px; }
}

/* ---- Left: hero card — Bourbon minimal ---------------------
 * Trim: no decorative orb, no glassy step container, no background
 * gradient. Just the page surface, a thin gold hairline, the title,
 * a quiet 4-step pipeline, and a one-line promise strip. The optional
 * background photo (souci_bg_track_hero) is now restrained to a
 * 28%-mix darken over the surface so it reads as texture, not artwork. */
.sm-track__hero {
  position: relative;
  border-radius: var(--sm-radius-card);
  padding: 36px 36px 28px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  color: var(--sm-ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
}
.sm-track__hero[data-bg="1"] {
  background-image:
    linear-gradient(180deg, rgba(8,8,12,0.78) 0%, rgba(8,8,12,0.92) 100%),
    var(--sm-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sm-track__hero > * { position: relative; z-index: 1; }
.sm-track__hero-top { display: flex; flex-direction: column; gap: 10px; }

/* Small inline icon next to the eyebrow — replaces the standalone
 * 56px badge + pulse ring (too much chrome for an editorial layout). */
.sm-track__badge {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sm-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sm-accent) 40%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-accent);
  margin-bottom: 6px;
}
/* Pulse retained but quieter — same animation, half opacity. */
.sm-track__badge-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sm-accent) 50%, transparent);
  opacity: 0;
  animation: sm-track-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes sm-track-pulse {
  0%   { transform: scale(0.95); opacity: 0.4; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sm-track__badge-pulse { animation: none; } }

.sm-track__hero-eyebrow {
  color: var(--sm-accent);
  letter-spacing: 2.5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.sm-track__hero-title {
  font-family: var(--sm-display-font);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: 0.4px;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  color: var(--sm-ink);
}
.sm-track__hero-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sm-ink-soft);
  max-width: 420px;
}

/* 4-step pipeline — bare, no card around. Just dots + labels with
 * a thin gold connector line. Lets the title breathe. */
.sm-track__steps {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: track-step;
  position: relative;
}
/* Single continuous connector line that spans every step. Spans from
 * dot-1's center to dot-N's center, sits behind the dots via z-index so
 * each dot punches through cleanly. Replaces the previous segment-per-
 * gap approach which collided with the active dot's box-shadow halo and
 * read as two parallel lines instead of one. */
.sm-track__steps::before {
  content: "";
  position: absolute;
  left: 11px;            /* center of 22px dot */
  top: 11px;             /* center of first dot */
  bottom: 11px;          /* center of last dot */
  width: 1px;
  background: var(--sm-line-strong);
  z-index: 0;
}
.sm-track__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  counter-increment: track-step;
  z-index: 1;            /* sit above the connector line so dots cleanly punch through */
}
.sm-track__step-dot {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sm-line-strong);
  background: transparent;
  color: var(--sm-ink-muted);
}
.sm-track__step-dot .sm-ico { width: 12px; height: 12px; }
.sm-track__step.is-done .sm-track__step-dot {
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  border-color: var(--sm-accent);
}
.sm-track__step.is-now .sm-track__step-dot {
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  border-color: var(--sm-accent);
  /* Subtler halo — collapsed from 4px to 3px so it doesn't overlap the
   * shared connector line and create a visual "bump" mid-line. */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 14%, transparent);
}
.sm-track__step-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.sm-track__step-label {
  font-family: var(--sm-body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--sm-ink);
  text-transform: uppercase;
}
.sm-track__step.is-future .sm-track__step-label { color: var(--sm-ink-muted); font-weight: 400; }
.sm-track__step-sub {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--sm-ink-muted);
  text-transform: none;
  font-weight: 400;
}

/* Promise row collapsed to a single thin line. Still useful as a
 * trust signal but visually quiet. */
.sm-track__promises {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--sm-line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--sm-ink-muted);
  text-transform: uppercase;
}
.sm-track__promises li { white-space: nowrap; }

/* ---- Right: form card ------------------------------------- */
.sm-track__card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sm-shadow-md);
}
.sm-track__card-title {
  font-family: var(--sm-display-font);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.05;
  margin: 4px 0 0;
  color: var(--sm-ink);
}
.sm-track__card-sub {
  font-size: 13px;
  color: var(--sm-ink-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.sm-track__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Floating-label field */
.sm-track__field {
  position: relative;
}
.sm-track__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 44px 10px 16px;
  background: var(--sm-surface);
  border: 1.5px solid var(--sm-line);
  border-radius: 14px;
  font-family: var(--sm-body-font);
  font-size: 15px;
  color: var(--sm-ink);
  line-height: 1.3;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sm-track__field input:focus {
  outline: 0;
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sm-accent) 18%, transparent);
}
.sm-track__field label {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--sm-mono-font);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--sm-ink-muted);
  background: transparent;
  transition: top .18s ease, font-size .18s ease, color .18s ease, transform .18s ease;
}
.sm-track__field input:focus + label,
.sm-track__field.is-filled label,
.sm-track__field input:not(:placeholder-shown) + label {
  top: 10px;
  transform: translateY(0);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sm-accent);
  text-transform: uppercase;
}
.sm-track__field-icon {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--sm-ink-muted);
  pointer-events: none;
  display: inline-flex;
}
.sm-track__field input:focus ~ .sm-track__field-icon { color: var(--sm-accent); }

.sm-track__submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sm-track__submit svg { transition: transform .2s ease; }
.sm-track__submit:hover svg { transform: translateX(3px); }

.sm-track__alt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid var(--sm-line);
  font-size: 12.5px;
  color: var(--sm-ink-muted);
}
.sm-track__alt-link {
  color: var(--sm-accent);
  font-weight: 700;
  text-decoration: none;
}
.sm-track__alt-link:hover { color: var(--sm-accent-2); }

.sm-track__error {
  background: color-mix(in srgb, var(--sm-danger) 10%, var(--sm-surface));
  border: 1px solid color-mix(in srgb, var(--sm-danger) 35%, transparent);
  color: var(--sm-danger);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Result view (matched) — re-use existing acct cards but center the head */
.sm-track__result-head {
  text-align: center;
  margin-bottom: 22px;
  max-width: 720px;
  margin-inline: auto;
}
.sm-track__result-head h1 {
  font-family: var(--sm-display-font);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 6px 0 4px;
  text-transform: var(--sm-display-transform);
}
.sm-track__result-head p { color: var(--sm-ink-muted); font-size: 13px; }

@media (max-width: 700px) {
  .sm-track { padding-block: 16px 64px; }
  .sm-track__hero { padding: 28px 22px 24px; min-height: 0; gap: 20px; border-radius: 20px; }
  .sm-track__hero-title { font-size: 30px; letter-spacing: -0.8px; }
  .sm-track__card { padding: 24px 20px; border-radius: 20px; }
  .sm-track__card-title { font-size: 22px; }
  .sm-track__steps { padding: 14px; gap: 12px; }
  .sm-track__step-label { font-size: 13px; }
  .sm-track__result-head h1 { font-size: 26px; letter-spacing: -0.6px; }
}

/* Public wishlist share page */
.sm-shared-wishlist {
  padding-block: 30px 80px;
}
.sm-shared-wishlist__hero {
  text-align: center;
  padding: 30px 0 24px;
}
.sm-shared-wishlist__hero h1 {
  font-family: var(--sm-display-font);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: var(--sm-display-transform);
  margin: 6px 0;
}
.sm-shared-wishlist__hero p { color: var(--sm-ink-soft); font-size: 13px; }

/* ============================================================
 * WooCommerce native notice restyle
 *   .woocommerce-info    — informational / neutral callouts
 *   .woocommerce-message — success confirmations (cart add, etc.)
 *   .woocommerce-error   — inline validation / payment errors
 *
 * All three default to solid top-border + grey bg + native icon.
 * We replace them with brand surface cards + accent left bar.
 * ============================================================ */
.woocommerce-notices-wrapper { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
ul.woocommerce-error {
  position: relative;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-left: 4px solid var(--sm-accent);
  border-radius: 14px;
  padding: 14px 18px 14px 50px;
  color: var(--sm-ink);
  font-size: 13.5px;
  line-height: 1.55;
  list-style: none;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.18);
  /* Kill WC's default sprite icon */
  background-image: none;
}
/* The native ::before ribbon (blue/green top bar) */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sm-accent);
  color: var(--sm-accent-ink, #fff);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sm-mono-font);
  font-size: 12px; font-weight: 900;
  line-height: 1;
}
.woocommerce-info::before    { content: "i"; }
.woocommerce-message::before { content: "✓"; background: #1F9D55; color: #fff; }
.woocommerce-error::before,
ul.woocommerce-error::before { content: "!"; background: var(--sm-danger, #E5254C); color: #fff; }
.woocommerce-message         { border-left-color: #1F9D55; }
.woocommerce-error,
ul.woocommerce-error         { border-left-color: var(--sm-danger, #E5254C); }

/* "View cart" / "Update cart" button-in-notice */
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button {
  float: right;
  margin-left: 12px;
  padding: 8px 14px;
  background: var(--sm-ink);
  color: var(--sm-bg);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.woocommerce-info .button:hover,
.woocommerce-message .button:hover,
.woocommerce-error .button:hover { opacity: 0.9; }

/* Error list (multiple errors) */
ul.woocommerce-error { padding: 14px 18px 14px 50px; }
ul.woocommerce-error li { margin: 0; padding: 2px 0; }
ul.woocommerce-error li + li { border-top: 1px dashed color-mix(in srgb, var(--sm-danger) 25%, transparent); margin-top: 4px; padding-top: 6px; }

/* Coupon "Click here to enter your code" collapsible card */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--sm-surface-alt);
  border-left-color: var(--sm-accent-2, var(--sm-accent));
}
.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--sm-accent);
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-form-coupon-toggle .woocommerce-info a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .woocommerce-info,
  .woocommerce-message,
  .woocommerce-error,
  ul.woocommerce-error { padding-left: 44px; font-size: 13px; }
  .woocommerce-info::before,
  .woocommerce-message::before,
  .woocommerce-error::before { left: 14px; width: 16px; height: 16px; font-size: 11px; }
  .woocommerce-info .button,
  .woocommerce-message .button,
  .woocommerce-error .button { float: none; display: inline-block; margin: 8px 0 0; }
}

/* ============================================================
 * Country dropdown flags (flag-icons lib via country-flags.js)
 * ============================================================ */
.sm-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.15);
  background-size: cover;
  background-position: 50% 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.sm-flag-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.sm-flag-row__name { font-size: 14px; color: var(--sm-ink); }

/* Select2 results list row (dropdown open) */
.select2-container .select2-results__option .sm-flag-row { padding: 2px 0; }
.select2-container .select2-results__option[aria-selected="true"] .sm-flag-row__name,
.select2-container .select2-results__option--highlighted .sm-flag-row__name { color: inherit; }

/* Selected value display inside the .select2-selection__rendered pill */
.select2-container .select2-selection__rendered .sm-flag-row { padding: 0; }

/* ============================================================
 * Select2 country/state dropdown — override WC's default blue.
 * Targets both select2 and selectWoo variants.
 * ============================================================ */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background: var(--sm-surface);
  border: 1.5px solid var(--sm-line-strong);
  border-radius: 12px;
  min-height: 48px;
  /* Match the address input padding (13 16) so the selected country
   * text aligns flush with the labels above and below — not indented. */
  padding: 0 !important;
  display: flex;
  align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 20%, transparent);
  outline: 0;
}
.select2-container--default .select2-selection__rendered {
  color: var(--sm-ink) !important;
  line-height: 1.35 !important;
  font-size: 15px;
  font-family: var(--sm-body-font);
  /* Pad here, not on the parent — gives Select2 room to absolutely
   * position its dropdown arrow on the right without shifting the
   * rendered content. Left padding matches the regular input padding. */
  padding: 13px 38px 13px 16px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}
.select2-container--default .select2-selection__rendered .sm-flag-row,
.select2-container--default .select2-selection__rendered .sm-flag-row__name {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35;
}
/* Arrow lives at the right edge of the selection box, vertically centered.
 * absolute keeps it out of the flex flow so the rendered content
 * isn't shoved by its width. */
.select2-container--default .select2-selection__arrow {
  position: absolute !important;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: auto !important;
  width: 14px;
}
.select2-container--default .select2-selection__arrow { height: 100%; right: 10px; }
.select2-container--default .select2-selection__arrow b { border-color: var(--sm-ink-muted) transparent transparent transparent; }

/* Dropdown panel */
.select2-container--default .select2-dropdown {
  background: var(--sm-bg);
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.25);
  overflow: hidden;
  margin-top: 6px;
}
.select2-container--default .select2-search--dropdown { padding: 10px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--sm-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--sm-surface);
  color: var(--sm-ink);
  font-size: 13px;
  width: 100%;
  outline: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 20%, transparent);
}

/* Results list */
.select2-container--default .select2-results__options { padding: 6px; }
.select2-container--default .select2-results__option {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sm-ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Hover / keyboard-highlighted row — was WC's blue */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
  background: color-mix(in srgb, var(--sm-accent) 12%, transparent) !important;
  color: var(--sm-ink) !important;
}
/* Currently selected row */
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--sm-accent) !important;
  color: var(--sm-accent-ink, #fff) !important;
  font-weight: 600;
}
.select2-container--default .select2-results__option[aria-selected="true"] .sm-flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }

/* Scrollbar inside dropdown — thin */
.select2-container--default .select2-results__options::-webkit-scrollbar { width: 6px; }
.select2-container--default .select2-results__options::-webkit-scrollbar-thumb { background: var(--sm-line-strong, var(--sm-line)); border-radius: 3px; }

/* ============================================================
 * Cookie consent banner
 * Bottom-fixed, brand-tokenized. Slides up on first paint.
 * ============================================================ */
.sm-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	background: var(--sm-surface);
	border-top: 1px solid var(--sm-line-strong);
	box-shadow: 0 -18px 48px -28px rgba(0,0,0,0.25);
	transform: translateY(120%);
	transition: transform .42s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}
.sm-consent[hidden] { display: none; }
.sm-consent.is-visible { transform: translateY(0); }

.sm-consent__inner {
	max-width: var(--sm-max-w, 1440px);
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
}

.sm-consent__copy {
	flex: 1 1 360px;
	min-width: 0;
}
.sm-consent__title {
	margin: 0 0 4px;
	font-family: var(--sm-display-font, system-ui);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sm-ink);
}
.sm-consent__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--sm-ink-soft, var(--sm-ink));
}
.sm-consent__link {
	color: var(--sm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.sm-consent__link:hover { text-decoration-thickness: 2px; }

.sm-consent__options {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px 10px;
	border: 1px dashed var(--sm-line-strong);
	border-radius: 10px;
	background: var(--sm-bg);
	order: 2;
}
/* Each option becomes a single visual pill — the icon IS the toggle.
 * Native checkbox is screen-reader-only; clicking the pill toggles it. */
.sm-consent__opt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
	font-family: var(--sm-mono-font, ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sm-ink-muted);
	cursor: pointer;
	user-select: none;
	transition: color .15s ease, background .15s ease;
}
.sm-consent__opt:hover { background: color-mix(in srgb, var(--sm-accent) 6%, transparent); }
.sm-consent__opt input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.sm-consent__opt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--sm-surface);
	border: 1px solid var(--sm-line);
	color: var(--sm-ink-muted);
	flex-shrink: 0;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.sm-consent__opt input:checked + .sm-consent__opt-icon {
	background: var(--sm-accent);
	border-color: var(--sm-accent);
	color: var(--sm-accent-ink, #fff);
}
.sm-consent__opt input:checked ~ .sm-consent__opt-label { color: var(--sm-ink); }
.sm-consent__opt input:focus-visible + .sm-consent__opt-icon {
	outline: 2px solid color-mix(in srgb, var(--sm-accent) 50%, transparent);
	outline-offset: 2px;
}
.sm-consent__opt-label { line-height: 1; }
.sm-consent__opt.is-locked { cursor: not-allowed; opacity: .85; }
.sm-consent__opt.is-locked .sm-consent__opt-icon {
	background: color-mix(in srgb, var(--sm-ink) 60%, var(--sm-surface));
	border-color: transparent;
	color: var(--sm-bg);
}
.sm-consent__opt.is-locked .sm-consent__opt-label { color: var(--sm-ink-muted); }

.sm-consent__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sm-accent) 0%, var(--sm-accent-2, var(--sm-accent)) 100%);
	color: var(--sm-accent-ink, #fff);
	flex-shrink: 0;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--sm-accent) 50%, transparent),
	            inset 0 1px 0 rgba(255,255,255,0.25);
}

.sm-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}
.sm-consent__toggle {
	background: transparent;
	border: 0;
	padding: 8px 6px;
	font-family: var(--sm-mono-font, ui-monospace, monospace);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sm-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.sm-consent__toggle:hover { color: var(--sm-accent); }

/* Reopen trigger inside footer privacy column */
.sm-consent__reopen {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
}
.sm-consent__reopen:hover { color: var(--sm-accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
	.sm-consent__inner {
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		gap: 12px;
	}
	.sm-consent__copy { flex: 1 1 100%; }
	.sm-consent__actions {
		flex: 1 1 100%;
		flex-direction: column;
		align-items: stretch;
	}
	.sm-consent__actions .sm-btn { width: 100%; justify-content: center; }
	.sm-consent__toggle { text-align: center; padding: 10px 6px; }
}

/* ============================================================
 * FAQ accordion ([souci_faq] shortcode)
 * ============================================================ */
.sm-faq { display: flex; flex-direction: column; gap: 28px; padding-block: 20px 60px; }
.sm-faq__group {
  font-family: var(--sm-display-font);
  font-weight: 900;
  letter-spacing: -0.6px;
  font-size: 22px;
  color: var(--sm-ink);
  margin: 0 0 6px;
}
.sm-faq__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.sm-faq__item {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sm-faq__item:hover { border-color: color-mix(in srgb, var(--sm-accent) 35%, var(--sm-line)); }
.sm-faq__details { width: 100%; }
.sm-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--sm-display-font);
  font-weight: 700;
  font-size: 16px;
  color: var(--sm-ink);
  user-select: none;
}
.sm-faq__q::-webkit-details-marker { display: none; }
.sm-faq__chev {
  flex-shrink: 0;
  margin-left: 16px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sm-surface-alt);
  color: var(--sm-ink-muted);
  font-family: var(--sm-mono-font);
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s ease, background .15s ease, color .15s ease;
}
.sm-faq__details[open] .sm-faq__chev {
  transform: rotate(45deg);
  background: var(--sm-accent);
  color: var(--sm-accent-ink, #fff);
}
.sm-faq__a {
  padding: 0 22px 22px;
  color: var(--sm-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.sm-faq__a p { margin: 0 0 8px; }
.sm-faq__a p:last-child { margin-bottom: 0; }
.sm-faq__a a { color: var(--sm-accent); text-decoration: none; }
.sm-faq__a a:hover { text-decoration: underline; }
.sm-faq__empty { color: var(--sm-ink-muted); padding: 20px; text-align: center; }

@media (max-width: 700px) {
  .sm-faq__q { padding: 16px 18px; font-size: 15px; }
  .sm-faq__a { padding: 0 18px 18px; }
}

/* ============================================================
 * Floating customer-service button (FAB) — bottom-right
 * Toggled by Customizer → Customer service
 * ============================================================ */
.sm-cs-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--sm-cs-tint, var(--sm-accent));
  color: #fff;
  text-decoration: none;
  font-family: var(--sm-body-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--sm-cs-tint, var(--sm-accent)) 55%, rgba(0,0,0,0.4)),
              inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .15s ease;
}
.sm-cs-fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #fff;
}
.sm-cs-fab:focus-visible {
  outline: 0;
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--sm-cs-tint, var(--sm-accent)) 55%, rgba(0,0,0,0.4)),
              inset 0 1px 0 rgba(255,255,255,0.25),
              0 0 0 3px color-mix(in srgb, var(--sm-cs-tint, var(--sm-accent)) 35%, transparent);
}
.sm-cs-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.sm-cs-fab__label { padding-right: 4px; }

/* Hide label on small screens (icon stays as a circle) */
@media (max-width: 600px) {
  .sm-cs-fab {
    right: 14px;
    bottom: 80px; /* Stay above mobile bottom nav */
    padding: 0;
    border-radius: 50%;
    width: 56px; height: 56px;
    justify-content: center;
  }
  .sm-cs-fab__label { display: none; }
  .sm-cs-fab__icon { background: transparent; }
}

/* Tiny inline icon helpers used by section heads / promo strips */
.sm-h2 .sm-h2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--sm-accent);
  vertical-align: middle;
}
.sm-mega__promo-icon {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: middle;
  color: var(--sm-accent);
}
.sm-review__helpful {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sm-review__helpful svg { vertical-align: middle; }

/* ============================================================
 * Mobile responsive audit — cart page, drawer, checkout, thank-you,
 * track, wishlist-shared. Touch targets ≥44px, iOS zoom prevention,
 * cart shop_table → card layout on narrow widths.
 * ============================================================ */

/* --- Cart drawer --- */
@media (max-width: 520px) {
  .sm-cart-drawer__panel { width: 100vw; border-left: 0; }
  .sm-cart-drawer__close { width: 44px; height: 44px; border-radius: 22px; }
  .sm-cart-drawer__body .sm-mini-cart__item {
    grid-template-columns: 56px 1fr 32px;
    gap: 12px;
  }
  .sm-cart-drawer__body .sm-mini-cart__thumb img { width: 56px; height: 56px; }
  .sm-cart-drawer__body .sm-mini-cart__remove { width: 32px; height: 32px; font-size: 16px; }
  .sm-cart-drawer__body .sm-mini-cart__buttons a { padding: 15px 22px; min-height: 48px; }
  .sm-cart-drawer__body .sm-mini-cart__total span,
  .sm-cart-drawer__body .sm-mini-cart__total .woocommerce-Price-amount { font-size: 20px; }
}

/* --- Cart page table → cards on narrow widths.
 * Woo's `shop_table_responsive` hides th + flips td into label/value blocks.
 * We restyle that into a clean card. --- */
@media (max-width: 700px) {
  .sm-discreet-notice { margin: 14px 0; padding: 14px; font-size: 12px; gap: 10px; }
  .woocommerce-cart table.shop_table_responsive { border: 0; background: transparent; border-radius: 0; }
  .woocommerce-cart table.shop_table_responsive thead { display: none; }
  .woocommerce-cart table.shop_table_responsive tbody tr.cart_item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 14px;
    background: var(--sm-surface);
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-card);
    padding: 14px;
    margin-bottom: 12px;
  }
  .woocommerce-cart table.shop_table_responsive tbody td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody td::before {
    content: attr(data-title);
    font-family: var(--sm-mono-font);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sm-ink-muted);
    display: block;
    margin-bottom: 2px;
  }
  /* Thumb spans rows 1-3 in the left column */
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail {
    grid-row: 1 / span 3;
    grid-column: 1;
  }
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail::before { display: none; }
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
  .woocommerce-cart table.shop_table_responsive td.product-remove {
    grid-row: 1; grid-column: 2;
    text-align: right !important;
  }
  .woocommerce-cart table.shop_table_responsive td.product-remove::before { display: none; }
  .woocommerce-cart table.shop_table_responsive td.product-remove a.remove {
    display: inline-flex;
    width: 32px; height: 32px;
    border-radius: 16px;
    background: var(--sm-surface-alt);
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--sm-ink-muted);
    margin-left: auto;
  }
  .woocommerce-cart table.shop_table_responsive td.product-name { grid-column: 2; font-size: 14px; font-weight: 700; }
  .woocommerce-cart table.shop_table_responsive td.product-name::before { display: none; }
  .woocommerce-cart table.shop_table_responsive td.product-price,
  .woocommerce-cart table.shop_table_responsive td.product-quantity,
  .woocommerce-cart table.shop_table_responsive td.product-subtotal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .woocommerce-cart table.shop_table_responsive td.product-price::before,
  .woocommerce-cart table.shop_table_responsive td.product-quantity::before,
  .woocommerce-cart table.shop_table_responsive td.product-subtotal::before {
    margin-bottom: 0;
  }
  /* Actions row (coupon + update) — stack vertically */
  .woocommerce-cart table.shop_table_responsive td.actions {
    display: flex; flex-direction: column; gap: 10px;
    grid-column: 1 / -1;
    background: transparent;
    padding: 4px 0 0;
  }
  .woocommerce-cart table.shop_table_responsive td.actions::before { display: none; }
  .woocommerce-cart table.shop_table_responsive td.actions .coupon {
    display: flex; flex-wrap: wrap; gap: 8px;
    width: 100%;
  }
  .woocommerce-cart table.shop_table_responsive td.actions .coupon input[type="text"] {
    flex: 1 1 60%;
    min-width: 0;
    font-size: 16px; /* iOS zoom block */
    min-height: 44px;
  }
  .woocommerce-cart table.shop_table_responsive td.actions .sm-btn { width: 100%; justify-content: center; min-height: 44px; }
  .woocommerce-cart table.shop_table_responsive td.actions tr { display: contents; }
}

/* Cart-totals block on narrow widths */
@media (max-width: 700px) {
  .woocommerce-cart .cart-collaterals { padding-bottom: 24px; }
  .woocommerce-cart .cart_totals h2 { font-size: 24px; }
}

/* --- Checkout --- */
@media (max-width: 1024px) {
  /* Move summary above the form on narrow viewports for clarity */
  .sm-checkout__grid { gap: 18px; }
}
@media (max-width: 700px) {
  .sm-checkout-head { padding-top: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .sm-checkout__card { padding: 20px 16px; }
  .sm-checkout__step-title { font-size: 18px; margin-bottom: 14px; }
  .sm-checkout__step-badge { left: 16px; }
  .sm-checkout__summary { padding: 18px 16px 14px; border-radius: 16px; }
  .sm-checkout__summary-title { font-size: 18px; }
  /* iOS zoom guard for all WC inputs on the checkout */
  .woocommerce-checkout input[type="text"],
  .woocommerce-checkout input[type="email"],
  .woocommerce-checkout input[type="tel"],
  .woocommerce-checkout input[type="password"],
  .woocommerce-checkout input[type="number"],
  .woocommerce-checkout input[type="search"],
  .woocommerce-checkout select,
  .woocommerce-checkout textarea,
  .woocommerce-checkout .input-text,
  .sm-checkout__coupon-row input {
    font-size: 16px;
    min-height: 48px;
  }
  /* Place-order button: thumb-reach friendly */
  .sm-checkout__totals #place_order { padding: 18px 24px; min-height: 56px; font-size: 15px; }
  /* Coupon row stacks the apply button below the input */
  .sm-checkout__coupon-row { flex-direction: column; }
  .sm-checkout__coupon-row .sm-btn { width: 100%; justify-content: center; min-height: 44px; }
  /* Reserve space above the bottom-nav so primary CTA isn't covered */
  body.woocommerce-checkout { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Make sure 2-col first/last fields stack much earlier
 * (current rule fires at 600px — bump to 700 for tablets) */
@media (max-width: 700px) {
  .sm-checkout__step-body .form-row-first,
  .sm-checkout__step-body .form-row-last { width: 100%; margin-right: 0; }
}

/* --- Thank-you --- */
@media (max-width: 520px) {
  .sm-thankyou { padding-block: 24px 64px; }
  .sm-thankyou__hero { padding: 32px 20px; border-radius: 20px; }
  .sm-thankyou__title { font-size: 28px; letter-spacing: -0.6px; }
  .sm-thankyou__sub { font-size: 14px; }
  .sm-thankyou__id { font-size: 12px; padding: 6px 14px; }
  .sm-thankyou__hero .sm-btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .sm-thankyou__reward { padding: 18px; border-radius: 16px; }
}

/* --- Public shared wishlist hero --- */
@media (max-width: 520px) {
  .sm-shared-wishlist__hero h1 { font-size: 26px; letter-spacing: -0.6px; }
  .sm-shared-wishlist { padding-block: 16px 64px; }
}

/* ============================================================
 * Checkout / cart / track / shared-wishlist — input fields use
 * the active theme tokens. WooCommerce's own CSS hardcodes white
 * backgrounds + dark text, so without these overrides the form
 * fields look out-of-place in dark mode (white boxes against
 * the dark page) AND the typed text becomes invisible against
 * the bright autofill colour Safari paints. Selectors carry
 * enough specificity (2 classes + 1 element / attribute) to win
 * the cascade against WC defaults loaded earlier.
 * ============================================================ */
.woocommerce-checkout .sm-checkout__step-body input[type="text"],
.woocommerce-checkout .sm-checkout__step-body input[type="email"],
.woocommerce-checkout .sm-checkout__step-body input[type="tel"],
.woocommerce-checkout .sm-checkout__step-body input[type="password"],
.woocommerce-checkout .sm-checkout__step-body input[type="number"],
.woocommerce-checkout .sm-checkout__step-body input[type="search"],
.woocommerce-checkout .sm-checkout__step-body input[type="url"],
.woocommerce-checkout .sm-checkout__step-body select,
.woocommerce-checkout .sm-checkout__step-body textarea,
.woocommerce-checkout .sm-checkout__step-body .input-text,
.woocommerce-checkout textarea#order_comments,
.woocommerce-checkout .form-row textarea,
.woocommerce-cart .sm-cart input[type="text"],
.woocommerce-cart .sm-cart .coupon input[type="text"],
.sm-checkout__coupon-row input[type="text"] {
  background: var(--sm-surface) !important;
  color: var(--sm-ink) !important;
  border: 1.5px solid var(--sm-line-strong) !important;
  border-radius: 12px !important;
  padding: 13px 16px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholders — visible in both modes */
.woocommerce-checkout .sm-checkout__step-body input::placeholder,
.woocommerce-checkout .sm-checkout__step-body textarea::placeholder,
.sm-checkout__coupon-row input::placeholder {
  color: var(--sm-ink-muted);
  opacity: 0.85;
}

/* Focus state — branded accent ring */
.woocommerce-checkout .sm-checkout__step-body input:focus,
.woocommerce-checkout .sm-checkout__step-body select:focus,
.woocommerce-checkout .sm-checkout__step-body textarea:focus,
.sm-checkout__coupon-row input:focus {
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 22%, transparent);
}

/* Native select dropdown arrow — keep visible against dark surfaces */
.woocommerce-checkout .sm-checkout__step-body select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sm-ink-muted) 50%),
                    linear-gradient(135deg, var(--sm-ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

/* Webkit autofill — Safari/Chrome paint a yellow background that ignores
 * our colour tokens. Inset shadow trick blanks it back to our surface.
 * The 5000s transition delay defers the autofill repaint long enough that
 * the user effectively never sees the override flash. */
.woocommerce-checkout .sm-checkout__step-body input:-webkit-autofill,
.woocommerce-checkout .sm-checkout__step-body input:-webkit-autofill:hover,
.woocommerce-checkout .sm-checkout__step-body input:-webkit-autofill:focus,
.woocommerce-checkout .sm-checkout__step-body input:-webkit-autofill:active,
.woocommerce-checkout .sm-checkout__step-body select:-webkit-autofill,
.woocommerce-checkout .sm-checkout__step-body textarea:-webkit-autofill,
.sm-track__field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--sm-surface) inset;
          box-shadow: 0 0 0 1000px var(--sm-surface) inset;
  -webkit-text-fill-color: var(--sm-ink);
  caret-color: var(--sm-ink);
  border-color: var(--sm-line-strong);
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

/* Select2 — country dropdown native widget — match field tokens */
.sm-checkout__step-body .select2-container .select2-selection--single,
.sm-checkout__step-body .select2-selection {
  background: var(--sm-surface) !important;
  border: 1.5px solid var(--sm-line-strong) !important;
  border-radius: 12px !important;
  color: var(--sm-ink) !important;
}
.sm-checkout__step-body .select2-selection__rendered {
  color: var(--sm-ink) !important;
  line-height: 48px !important;
  padding-left: 16px !important;
}
.sm-checkout__step-body .select2-selection__arrow {
  height: 50px !important;
  right: 12px !important;
}
.sm-checkout__step-body .select2-container--open .select2-selection {
  border-color: var(--sm-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 22%, transparent) !important;
}
/* select2 dropdown popover — also dark in dark mode */
.select2-container--default .select2-dropdown {
  background: var(--sm-surface);
  border: 1.5px solid var(--sm-line-strong);
  border-radius: 12px;
  overflow: hidden;
}
.select2-container--default .select2-results__option {
  color: var(--sm-ink);
  padding: 10px 14px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: color-mix(in srgb, var(--sm-accent) 14%, var(--sm-surface));
  color: var(--sm-ink);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--sm-surface-alt);
  border: 1.5px solid var(--sm-line);
  color: var(--sm-ink);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ============================================================
 * Track page — live carrier event stream
 * Rendered below the 4-step pipeline when 17track / Track718
 * webhook events are present on `_souci_tracking` meta.
 * ============================================================ */
.sm-track__live {
  margin-top: 20px;
  padding: 18px;
  background: var(--sm-surface-alt);
  border: 1px solid var(--sm-line);
  border-radius: 14px;
}
.sm-track__live-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sm-track__live-eyebrow {
  color: var(--sm-accent);
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.sm-track__live-time {
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--sm-ink-muted);
  text-transform: uppercase;
}
.sm-track__live-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.sm-track__live-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--sm-line-strong);
}
.sm-track__live-item {
  position: relative;
  padding-left: 22px;
  padding-bottom: 14px;
}
.sm-track__live-item:last-child { padding-bottom: 0; }
.sm-track__live-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 6px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line-strong);
}
.sm-track__live-item.is-latest .sm-track__live-dot {
  background: var(--sm-accent);
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 14%, transparent);
}
.sm-track__live-body { min-width: 0; }
.sm-track__live-desc {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sm-ink);
  line-height: 1.4;
}
.sm-track__live-item.is-latest .sm-track__live-desc {
  font-weight: 600;
  color: var(--sm-ink);
}
.sm-track__live-item:not(.is-latest) .sm-track__live-desc {
  color: var(--sm-ink-soft);
}
.sm-track__live-meta {
  margin: 0;
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--sm-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sm-track__live-sep { color: var(--sm-line-strong); }

/* ============================================================
 * Track page — lookup mode tabs (order # / tracking #)
 * Toggles which form is visible. Default = order # form.
 * ============================================================ */
.sm-track__tabs {
  display: inline-flex;
  margin: 12px 0 18px;
  padding: 4px;
  background: var(--sm-surface-alt);
  border: 1px solid var(--sm-line);
  border-radius: 999px;
  gap: 2px;
}
.sm-track__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sm-ink-muted);
  font-family: var(--sm-mono-font);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.sm-track__tab:hover { color: var(--sm-ink); }
.sm-track__tab[aria-selected="true"] {
  background: var(--sm-accent);
  color: var(--sm-accent-ink, #fff);
}
.sm-track__form--number { display: none; }
.sm-track__card[data-mode="number"] .sm-track__form--order  { display: none; }
.sm-track__card[data-mode="number"] .sm-track__form--number { display: block; }
