/* ============================================================================
   ORGANPARTS - SHOP UI (account dropdown · auth modal · cart drawer · Woo pages)
   Built on styles/ds.css tokens. Structure mirrors WooCommerce + the
   "Login/Register Popup" (xoo-el) plugin so real plugin markup drops in.
   ========================================================================== */

/* ============================================================ ACCOUNT MENU */
.acct { position: relative; }
.acct__panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 90;
  width: 288px; background: var(--surface);
  border: var(--bw) solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.acct.is-open .acct__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.acct__panel::before {
  content: ""; position: absolute; top: -6px; right: 20px; width: 12px; height: 12px;
  background: var(--surface); border-left: var(--bw) solid var(--hairline); border-top: var(--bw) solid var(--hairline);
  transform: rotate(45deg);
}
.acct__head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: var(--bw) solid var(--hairline); }
.acct__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.acct__avatar svg { width: 20px; height: 20px; }
.acct__hi b { font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; color: var(--ink); display: block; line-height: 1.1; }
.acct__hi span { font-size: var(--text-xs); color: var(--text-muted); }
.acct__actions { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.acct__links { display: grid; gap: 1px; }
.acct__links a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--gray-700); transition: background .18s var(--ease), color .18s var(--ease); }
.acct__links a:hover { background: var(--paper-2); color: var(--ink); }
.acct__links a svg { width: 17px; height: 17px; color: var(--gold-deep); flex-shrink: 0; }
.acct__note { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-3); }
.acct[data-state="in"] .acct--out { display: none; }
.acct[data-state="out"] .acct--in { display: none; }

/* logged-in dot on the icon */
.icon-btn .acct-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); display: none; }
.acct[data-state="in"] .acct-dot { display: block; }

/* ================================================================ AUTH MODAL */
/* xoo-el structure preserved; skin overrides below */
.xoo-el-container { position: fixed; inset: 0; z-index: 200; display: none; }
.xoo-el-container.is-open { display: block; }
.xoo-el-opac { position: absolute; inset: 0; background: rgba(10,8,5,.62); backdrop-filter: blur(3px); }
.xoo-el-modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(440px, 92vw); max-height: 92vh; overflow: auto; }
.xoo-el-inmodal { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.xoo-el-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--gray-500); background: var(--paper-2); transition: background .2s, color .2s; }
.xoo-el-close:hover { background: var(--ink); color: var(--paper); }
.xoo-el-close::before { content: "✕"; font-size: 15px; }
.xoo-el-icon-cross { font-family: var(--font-sans); }

.xoo-el-form-container { padding: 0; }
.auth-brand { background: var(--ink); padding: var(--space-6) var(--space-6) var(--space-5); text-align: center; }
.auth-brand img { height: 40px; margin: 0 auto var(--space-3); filter: brightness(0) invert(1); opacity: .95; }
.auth-brand p { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); }

.xoo-el-tabs { display: flex; gap: 0; list-style: none; margin: 0; padding: 0 var(--space-6); border-bottom: var(--bw) solid var(--hairline); }
.xoo-el-tabs li { flex: 1; text-align: center; padding: var(--space-4) 0; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small); color: var(--text-muted); cursor: pointer; position: relative; transition: color .2s var(--ease); }
.xoo-el-tabs li.xoo-el-active { color: var(--ink); }
.xoo-el-tabs li.xoo-el-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

.xoo-el-section { display: none; padding: var(--space-6); }
.xoo-el-section.xoo-el-active { display: block; }
.xoo-el-form-txt { display: block; font-size: var(--fs-small); color: var(--gray-700); line-height: var(--lh-relaxed); margin-bottom: var(--space-5); }

.xoo-aff-group { margin-bottom: var(--space-4); }
.xoo-aff-input-group { position: relative; display: flex; align-items: center; }
.xoo-aff-input-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--gray-400); display: grid; place-items: center; font-size: 14px; pointer-events: none; }
.xoo-aff-field { width: 100%; height: 54px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 0 44px 0 42px; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.xoo-aff-field:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.xoo-aff-field::placeholder { color: var(--text-subtle); }
.xoo-aff-checkbox_single .xoo-aff-field { height: auto; border: 0; padding: 0; }
.xoo-aff-checkbox_single label { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--gray-700); line-height: 1.5; cursor: pointer; }
.xoo-aff-checkbox_single label span { display: inline; }
.xoo-aff-checkbox_single input { margin-top: 3px; accent-color: var(--gold-deep); width: 16px; height: 16px; }
.xoo-aff-checkbox_single a { color: var(--gold-deep); text-decoration: underline; }
.xoo-aff-pw-toggle { position: absolute; right: 12px; cursor: pointer; color: var(--gray-400); font-size: 15px; }
.xoo-aff-pw-toggle:hover { color: var(--ink); }
.xoo-aff-pwtog-hide { display: none; }

.xoo-el-login-btm-fields { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.xoo-el-form-label { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--gray-700); cursor: pointer; }
.xoo-el-form-label input { accent-color: var(--gold-deep); width: 15px; height: 15px; }
.xoo-el-lostpw-tgr, .xoo-el-login-tgr, .xoo-el-reg-tgr { font-size: var(--text-sm); color: var(--gold-deep); cursor: pointer; }
.xoo-el-lostpw-tgr:hover { text-decoration: underline; }
.xoo-el-action-btn { width: 100%; height: 54px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-body); cursor: pointer; transition: background .22s var(--ease), transform .22s var(--ease); }
.xoo-el-action-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
.xoo-el-switch { text-align: center; font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-5); }
.xoo-el-switch span { color: var(--gold-deep); cursor: pointer; font-weight: 600; }
.xoo-el-switch span:hover { text-decoration: underline; }
.xoo-el-notice { display: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-small); margin-bottom: var(--space-4); }
.xoo-el-notice.is-error { display: block; background: #fbeaea; color: #8a2020; border: 1px solid #e6c3c3; }

/* ================================================================ CART DRAWER */
.cart-drawer { position: fixed; inset: 0; z-index: 190; display: none; }
.cart-drawer.is-open { display: block; }
.cart-drawer__scrim { position: absolute; inset: 0; background: rgba(10,8,5,.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s var(--ease); }
.cart-drawer.is-open .cart-drawer__scrim { opacity: 1; }
.cart-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .34s var(--ease); }
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: var(--bw) solid var(--hairline); }
.cart-drawer__head h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.cart-drawer__head .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gold-deep); }
.cart-drawer__close { width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--hairline-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--gray-700); transition: background .2s, color .2s; }
.cart-drawer__close:hover { background: var(--ink); color: var(--paper); }
.cart-drawer__close svg { width: 18px; height: 18px; }

/* Woo mini-cart friendly list */
.woocommerce-mini-cart { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6); list-style: none; margin: 0; }
.mini_cart_item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: var(--bw) solid var(--hairline); }
.mini_cart_item .media-frame, .mini_cart_item .ci-img { width: 64px; height: 64px; border-radius: var(--radius-sm); flex-shrink: 0; }
.ci-name { font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; color: var(--ink); line-height: 1.15; }
.ci-sku { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); }
.ci-qtyprice { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ci-stepper { display: inline-flex; align-items: center; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ci-stepper button { width: 26px; height: 28px; border: 0; background: var(--surface); cursor: pointer; color: var(--gray-700); font-size: 14px; }
.ci-stepper button:hover { background: var(--paper-2); color: var(--ink); }
.ci-stepper span { min-width: 26px; text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); }
.ci-line { font-weight: 700; font-size: var(--fs-small); white-space: nowrap; }
.ci-remove { border: 0; background: transparent; color: var(--gray-400); cursor: pointer; font-size: var(--text-xs); margin-top: 4px; text-align: left; padding: 0; }
.ci-remove:hover { color: #8a2020; }
.cart-empty { text-align: center; padding: var(--space-9) var(--space-5); color: var(--text-muted); }
.cart-empty svg { width: 44px; height: 44px; color: var(--gray-300); margin: 0 auto var(--space-4); }
.cart-empty p { font-size: var(--fs-small); margin-bottom: var(--space-5); }

.cart-drawer__foot { border-top: var(--bw) solid var(--hairline); padding: var(--space-5) var(--space-6) var(--space-6); background: var(--surface); }
.cart-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-2); }
.cart-sub span { font-size: var(--fs-small); color: var(--gray-700); }
.cart-sub b { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: 700; }
.cart-vat { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); margin-bottom: var(--space-4); }
.cart-drawer__foot .btn { width: 100%; }
.cart-drawer__foot .btn + .btn { margin-top: var(--space-3); }

/* ================================================================ TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 24px); z-index: 210; background: var(--ink); color: var(--paper); padding: var(--space-4) var(--space-5); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: var(--fs-small); display: flex; align-items: center; gap: var(--space-3); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--gold); }

/* ================================================================ WOO PAGES */
.page-hero { background: var(--paper-2); border-bottom: var(--bw) solid var(--hairline); padding-block: clamp(2.5rem,5vw,4rem); }
.crumbs { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: var(--space-4); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--gold-deep); }
.crumbs span { color: var(--gray-300); }
.page-hero h1 { font-size: clamp(2.2rem,4.5vw,var(--text-3xl)); }
.page-hero p { color: var(--gray-700); margin-top: var(--space-3); max-width: 52ch; }

/* --- My Account (woocommerce-account) --- */
.woocommerce-account .account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); }
.woocommerce-account .account-wrap[hidden], .woocommerce-account #acctGate[hidden] { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: sticky; top: 100px; }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: 500; color: var(--gray-700); transition: background .18s var(--ease), color .18s var(--ease); }
.woocommerce-MyAccount-navigation li a svg { width: 18px; height: 18px; color: var(--gray-400); }
.woocommerce-MyAccount-navigation li a:hover { background: var(--paper-2); color: var(--ink); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: var(--paper); }
.woocommerce-MyAccount-navigation li.is-active a svg { color: var(--gold); }
.woocommerce-MyAccount-content .panel { display: none; }
.woocommerce-MyAccount-content .panel.is-active { display: block; }
.acct-greet { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--space-3); }
.acct-greet em { font-style: italic; color: var(--gold-deep); }
.dash-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); margin: var(--space-6) 0; }
.dash-card { border: var(--bw) solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.dash-card b { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--ink); display: block; }
.dash-card span { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

.woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-orders-table th { text-align: left; font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); padding: var(--space-3) var(--space-4); border-bottom: var(--bw-2) solid var(--ink); }
.woocommerce-orders-table td { padding: var(--space-4); border-bottom: var(--bw) solid var(--hairline); font-size: var(--fs-small); vertical-align: middle; }
.woocommerce-orders-table .order-number { font-family: var(--font-mono); color: var(--gold-deep); }
.order-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-2xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--radius-pill); }
.order-status--done { background: #e6f0e6; color: #2f6b34; }
.order-status--proc { background: var(--gold-wash); color: var(--gold-deep); }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.addr-card { border: var(--bw) solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); }
.addr-card h3 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; margin-bottom: var(--space-3); display: flex; justify-content: space-between; }
.addr-card address { font-style: normal; font-size: var(--fs-small); color: var(--gray-700); line-height: 1.7; }
.addr-card .edit { font-size: var(--text-xs); color: var(--gold-deep); }
.woocommerce-MyAccount-content .form-row { display: grid; gap: 6px; margin-bottom: var(--space-4); }
.woocommerce-MyAccount-content .form-row label { font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.woocommerce-MyAccount-content .form-row input, .woocommerce-MyAccount-content .form-row select { height: 52px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); padding: 0 var(--space-4); font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink); background: var(--surface); }
.woocommerce-MyAccount-content .form-row input:focus, .woocommerce-MyAccount-content .form-row select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* --- Checkout (wc-block-checkout) --- */
.wc-block-checkout { display: grid; grid-template-columns: 1fr 400px; gap: var(--space-8); align-items: start; }
.wc-block-checkout > .woocommerce-NoticeGroup, .wc-block-checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; min-width: 0; }
.wc-checkout-main .wc-step { border: var(--bw) solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-5); background: var(--surface); }
.wc-step__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.wc-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; }
.wc-step__head h2 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; }
.wc-block-components-radio-control { display: grid; gap: var(--space-3); }
.wc-radio { display: flex; align-items: center; gap: var(--space-3); border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); padding: var(--space-4); cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.wc-radio:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.wc-radio input { accent-color: var(--gold-deep); width: 18px; height: 18px; }
.wc-radio__label b { font-size: var(--fs-small); display: block; }
.wc-radio__label span { font-size: var(--text-xs); color: var(--text-muted); }
.wc-radio__price { margin-left: auto; font-weight: 700; font-size: var(--fs-small); }

.wc-block-components-order-summary { position: sticky; top: 100px; border: var(--bw-2) solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.summary-head { background: var(--ink); color: var(--paper); padding: var(--space-5) var(--space-6); }
.summary-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--paper); }
.summary-body { padding: var(--space-5) var(--space-6); background: var(--surface); }
.summary-item { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: var(--bw) solid var(--hairline); }
.summary-item .media-frame { width: 52px; height: 52px; border-radius: var(--radius-xs); }
.summary-item .si-name { font-size: var(--text-sm); font-weight: 600; line-height: 1.2; }
.summary-item .si-qty { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); }
.summary-item .si-line { font-weight: 700; font-size: var(--fs-small); white-space: nowrap; }
.summary-totals { padding: var(--space-4) var(--space-6); background: var(--paper-2); }
.summary-totals .row { display: flex; justify-content: space-between; font-size: var(--fs-small); padding: 4px 0; color: var(--gray-700); }
.summary-totals .row--grand { border-top: var(--bw) solid var(--hairline-strong); margin-top: var(--space-2); padding-top: var(--space-3); font-size: var(--text-lg); font-weight: 700; color: var(--ink); }
.summary-totals .row--grand b { font-family: var(--font-sans); }
.coupon-row { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-6); background: var(--surface); border-top: var(--bw) solid var(--hairline); }
.coupon-row input { flex: 1; height: 46px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); padding: 0 var(--space-3); font-family: var(--font-mono); font-size: var(--text-sm); }
.place-order { padding: var(--space-5) var(--space-6); background: var(--surface); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--gray-700); line-height: 1.5; cursor: pointer; margin-bottom: var(--space-3); }
.consent input { margin-top: 3px; accent-color: var(--gold-deep); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--gold-deep); text-decoration: underline; }
.place-order .btn { width: 100%; margin-top: var(--space-2); }
.place-order p { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); text-align: center; margin-top: var(--space-3); }

/* --- Order received / thank you --- */
.woocommerce-order { max-width: 820px; margin-inline: auto; }
.thankyou-badge { width: 88px; height: 88px; border-radius: 50%; background: var(--gold-wash); border: 2px solid var(--gold); display: grid; place-items: center; margin: 0 auto var(--space-6); }
.thankyou-badge svg { width: 42px; height: 42px; color: var(--gold-deep); }
.woocommerce-thankyou-order-received { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; text-align: center; margin-bottom: var(--space-3); }
.woocommerce-thankyou-order-received em { font-style: italic; color: var(--gold-deep); }
.thankyou-sub { text-align: center; color: var(--gray-700); margin-bottom: var(--space-8); max-width: 52ch; margin-inline: auto; }
.woocommerce-order-overview::before, .woocommerce-order-overview::after { content: none !important; display: none !important; }
.woocommerce-order-overview { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: var(--bw) solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.woocommerce ul.order_details li, .woocommerce-order-overview li { float: none; margin: 0; padding: var(--space-5); border-right: var(--bw) solid var(--hairline); }
.woocommerce-order-overview li strong { white-space: nowrap; }
.woocommerce-order-overview li:last-child { border-right: 0; }
.woocommerce-order-overview li > span { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); display: block; margin-bottom: 6px; }
.woocommerce-order-overview li strong span { display: inline; font-family: inherit; font-size: inherit; color: inherit; letter-spacing: 0; text-transform: none; margin: 0; }
.woocommerce-order-overview li strong { font-family: var(--font-display); font-size: var(--text-md); color: var(--ink); }
.order-detail-box { border: var(--bw) solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.order-detail-box h2 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; padding: var(--space-5) var(--space-6); background: var(--paper-2); border-bottom: var(--bw) solid var(--hairline); }
.order-detail-box table { width: 100%; border-collapse: collapse; }
.order-detail-box td { padding: var(--space-4) var(--space-6); border-bottom: var(--bw) solid var(--hairline); font-size: var(--fs-small); }
.order-detail-box td:last-child { text-align: right; font-weight: 600; }
.order-detail-box tfoot td { font-weight: 700; }
.order-detail-box tfoot .grand td { font-size: var(--text-lg); color: var(--ink); }

@media (max-width: 1000px) {
  .woocommerce-account .account-wrap { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation ul { grid-auto-flow: column; overflow-x: auto; position: static; }
  .wc-block-checkout { grid-template-columns: 1fr; }
  .wc-block-components-order-summary { position: static; order: -1; }
  .dash-cards { grid-template-columns: 1fr; }
  .woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
  .woocommerce-order-overview li:nth-child(2) { border-right: 0; }
  .woocommerce-order-overview li:nth-child(-n+2) { border-bottom: var(--bw) solid var(--hairline); }
}
@media (max-width: 560px) {
  .form-grid-2, .addr-grid { grid-template-columns: 1fr; }
  .woocommerce-order-overview { grid-template-columns: 1fr; }
  .woocommerce-order-overview li { border-right: 0; border-bottom: var(--bw) solid var(--hairline); }
}

/* ============================================================================
   NATIVE WOOCOMMERCE MAPPINGS
   The blocks above skin the design structure; these map WooCommerce's own
   markup (classic checkout, account tables, thankyou page) onto it.
   ========================================================================== */

/* ---------- drawer: Woo mini-cart wrapper ---------- */
.cart-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-drawer__panel { overflow: hidden; }
.mini_cart_item .media-frame.ci-img { width: 64px; height: 64px; border-radius: var(--radius-sm); }
.mini_cart_item .ci-remove { text-decoration: none; }

/* ---------- checkout: classic form mapped to the step design ---------- */
.wc-checkout-main .form-row { display: grid; gap: 6px; margin-bottom: var(--space-4); float: none; width: 100%; padding: 0; }
.wc-checkout-main .form-row label { font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.wc-checkout-main .form-row label .required { color: #8a2020; text-decoration: none; }
.wc-checkout-main .form-row .woocommerce-input-wrapper { display: block; }
.wc-checkout-main .form-row input.input-text,
.wc-checkout-main .form-row select,
.wc-checkout-main .form-row textarea {
  height: 52px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: 0 var(--space-4); font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink); background: var(--surface); width: 100%;
}
.wc-checkout-main .form-row textarea { height: auto; min-height: 100px; padding: var(--space-3) var(--space-4); }
.wc-checkout-main .form-row input.input-text:focus,
.wc-checkout-main .form-row select:focus,
.wc-checkout-main .form-row textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.wc-checkout-main .form-row-first, .wc-checkout-main .form-row-last { width: 100%; }
@media (min-width: 561px) {
  .wc-checkout-main .woocommerce-billing-fields__field-wrapper,
  .wc-checkout-main .woocommerce-shipping-fields__field-wrapper,
  .wc-checkout-main .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
  .wc-checkout-main .form-row-wide, .wc-checkout-main .form-row.notes { grid-column: 1 / -1; }
}
.wc-checkout-main h3 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; margin-bottom: var(--space-4); }
.wc-checkout-main #ship-to-different-address { font-size: var(--fs-small); font-weight: 500; }
.wc-checkout-main #ship-to-different-address label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.wc-checkout-main #ship-to-different-address input { accent-color: var(--gold-deep); width: 16px; height: 16px; }
.wc-checkout-main .select2-container .select2-selection--single { height: 52px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); }
.wc-checkout-main .select2-container .select2-selection--single .select2-selection__rendered { line-height: 50px; padding-left: var(--space-4); }
.wc-checkout-main .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; right: 8px; }

/* order review inside the sticky summary panel */
.wc-block-components-order-summary table.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table thead { display: none; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table td,
.wc-block-components-order-summary .woocommerce-checkout-review-order-table th {
  padding: var(--space-3) 0; border-bottom: var(--bw) solid var(--hairline);
  font-size: var(--fs-small); text-align: left; vertical-align: top;
}
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .product-name { color: var(--ink); font-weight: 600; padding-right: var(--space-3); }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .product-quantity { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); font-weight: 400; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .product-total,
.wc-block-components-order-summary .woocommerce-checkout-review-order-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--gray-700); }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .order-total th,
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .order-total td { border-top: var(--bw) solid var(--hairline-strong); font-size: var(--text-lg); font-weight: 700; color: var(--ink); border-bottom: 0; padding-top: var(--space-3); }
.wc-block-components-order-summary .summary-review { padding: var(--space-4) var(--space-6); background: var(--surface); }

/* shipping methods + payment as radio cards */
.wc-block-components-order-summary ul#shipping_method,
.wc-block-components-order-summary ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.wc-block-components-order-summary ul#shipping_method li,
.wc-block-components-order-summary ul.wc_payment_methods li.wc_payment_method {
  border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); transition: border-color .18s var(--ease), background .18s var(--ease);
}
.wc-block-components-order-summary ul#shipping_method li:has(input:checked),
.wc-block-components-order-summary ul.wc_payment_methods li.wc_payment_method:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.wc-block-components-order-summary ul#shipping_method li label,
.wc-block-components-order-summary ul.wc_payment_methods li.wc_payment_method > label { display: inline; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.wc-block-components-order-summary ul#shipping_method input,
.wc-block-components-order-summary ul.wc_payment_methods input { accent-color: var(--gold-deep); margin-right: 8px; }
.wc-block-components-order-summary .wc_payment_methods .payment_box { font-size: var(--text-xs); color: var(--gray-700); background: var(--surface); border-radius: var(--radius-xs); padding: var(--space-3); margin-top: var(--space-2); }
.wc-block-components-order-summary #payment { background: transparent; }
.wc-block-components-order-summary #payment div.form-row.place-order { padding: 0; margin: 0; }
.wc-block-components-order-summary .woocommerce-terms-and-conditions-wrapper { font-size: var(--text-sm); color: var(--gray-700); margin-bottom: var(--space-3); }
.wc-block-components-order-summary #place_order { width: 100%; margin-top: var(--space-2); }
.wc-block-components-order-summary .woocommerce-privacy-policy-text p { font-size: var(--text-2xs); font-family: var(--font-mono); color: var(--text-muted); margin-top: var(--space-3); }

/* coupon toggle (native "Have a coupon?" flow) */
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: var(--space-5); }

/* Checkout "returning customer" login card */
.woocommerce-form-login-toggle .woocommerce-info a { color: var(--gold-deep); text-decoration: underline; }
.woocommerce-checkout form.login { max-width: 560px; }
.woocommerce-checkout form.login > p:first-of-type { color: var(--gray-700); margin-bottom: var(--space-5); }
.woocommerce-checkout form.login .form-row { float: none; width: 100%; display: grid; gap: 6px; margin: 0 0 var(--space-4); padding: 0; }
.woocommerce-checkout form.login .form-row label { font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.woocommerce-checkout form.login .form-row input.input-text {
  height: 52px; border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: 0 var(--space-4); font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink); background: var(--surface); width: 100%;
}
.woocommerce-checkout form.login .password-input { display: block; width: 100%; }
.woocommerce-checkout form.login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.woocommerce-checkout form.login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--gray-700); }
.woocommerce-checkout form.login .woocommerce-form-login__submit {
  height: 48px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--paper); font-weight: 600; cursor: pointer; transition: background .2s var(--ease);
}
.woocommerce-checkout form.login .woocommerce-form-login__submit:hover { background: var(--gold-deep); }
.woocommerce-checkout form.login .lost_password { margin: 0; }
form.checkout_coupon { max-width: 480px; padding: var(--space-4); border: var(--bw) dashed var(--gold-line); border-radius: var(--radius-sm); margin-bottom: var(--space-5); display: none; }
form.checkout_coupon .form-row { display: inline-block; margin: 0 var(--space-2) 0 0; }

/* ---------- account: native Woo markup ---------- */
.woocommerce-account table.woocommerce-orders-table td .woocommerce-button { padding: 0.5rem 0.9rem; font-size: var(--fs-caption); margin-right: 4px; }
.woocommerce-orders-table__cell-order-status { white-space: nowrap; }
.woocommerce-orders-table__row td.woocommerce-orders-table__cell-order-status::before { content: none; }
.woocommerce-orders-table__row .order-status-chip { display: inline-flex; align-items: center; font-size: var(--text-2xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--gray-700); }
.woocommerce-orders-table__row--status-completed .order-status-chip { background: #e6f0e6; color: #2f6b34; }
.woocommerce-orders-table__row--status-processing .order-status-chip,
.woocommerce-orders-table__row--status-on-hold .order-status-chip { background: var(--gold-wash); color: var(--gold-deep); }
.woocommerce-orders-table__row--status-cancelled .order-status-chip,
.woocommerce-orders-table__row--status-failed .order-status-chip { background: #f7e8e4; color: #a4442a; }

.woocommerce-Addresses.col2-set, .woocommerce-Address { float: none; width: auto; }
.woocommerce-Addresses.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.woocommerce-Address { border: var(--bw) solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); }
.woocommerce-Address-title h3 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; margin-bottom: var(--space-3); display: flex; justify-content: space-between; }
.woocommerce-Address-title .edit { font-size: var(--text-xs); color: var(--gold-deep); }
.woocommerce-Address address { font-style: normal; font-size: var(--fs-small); color: var(--gray-700); line-height: 1.7; }
@media (max-width: 560px) { .woocommerce-Addresses.col2-set { grid-template-columns: 1fr; } }

/* Thank-you page: order table alignment, item thumbs, address columns. */
.woocommerce-table--order-details th:last-child,
.woocommerce-table--order-details td:last-child { text-align: right; }
.woocommerce-table__product-name .order-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.order-item__thumb { flex: none; }
.order-item__thumb img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-xs); border: var(--bw) solid var(--hairline); }
.order-item__body { min-width: 0; }
.order-item__body .wc-item-meta { list-style: none; margin: 6px 0 0; padding: 0; font-size: var(--fs-caption); color: var(--gray-500); }
.order-item__body .wc-item-meta li { display: flex; gap: 4px; margin: 0; }
.order-item__body .wc-item-meta p { display: inline; margin: 0; }
.woocommerce-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.woocommerce-columns.col2-set::before, .woocommerce-columns.col2-set::after { content: none !important; display: none !important; }
.woocommerce-columns.col2-set [class*="woocommerce-column--"] { width: auto !important; float: none !important; border: var(--bw) solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); }
.woocommerce-column__title { background: none; padding: 0; font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; margin: 0 0 var(--space-3); }
.woocommerce-columns.col2-set address { font-style: normal; font-size: var(--fs-small); color: var(--gray-700); line-height: 1.8; }
@media (max-width: 560px) { .woocommerce-columns.col2-set { grid-template-columns: 1fr; } }

/* account forms reuse the design field look */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 560px; }
.woocommerce-MyAccount-content fieldset { border: var(--bw) solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); margin: var(--space-6) 0; }
.woocommerce-MyAccount-content fieldset legend { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-h5); padding: 0 var(--space-2); }

/* ---------- thankyou: native order details ---------- */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details { border: var(--bw) solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-customer-details h2 { font-family: var(--font-sans); font-size: var(--fs-h5); font-weight: 600; padding: var(--space-5) var(--space-6); background: var(--paper-2); border-bottom: var(--bw) solid var(--hairline); margin: 0; }
.woocommerce-order-received table.woocommerce-table--order-details { width: 100%; border-collapse: collapse; border: 0; }
.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td { padding: var(--space-4) var(--space-6); border-bottom: var(--bw) solid var(--hairline); font-size: var(--fs-small); text-align: left; }
.woocommerce-order-received .woocommerce-table--order-details td:last-child { text-align: right; font-weight: 600; }
.woocommerce-order-received .woocommerce-table--order-details tfoot th { font-weight: 500; }
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td { font-size: var(--text-lg); font-weight: 700; color: var(--ink); }
.woocommerce-order-received .woocommerce-customer-details address { font-style: normal; padding: var(--space-5) var(--space-6); font-size: var(--fs-small); color: var(--gray-700); line-height: 1.8; border: 0; }
.thankyou-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--space-7); }

/* ---------- withdrawal page ---------- */
.withdrawal-wrap { max-width: 860px; margin-inline: auto; }

/* ============================================================ XOO-EL PLUGIN GLUE */
/* The plugin opens its popup with .xoo-el-popup-active (the design skin used
   .is-open); honour both. */
.xoo-el-container.xoo-el-popup-active { display: block; }

/* The plugin's settings inject button styling onto trigger elements - keep
   the theme's own controls in the design's colors. */
.header__cta.xoo-el-login-tgr { background: var(--gold) !important; color: var(--ink) !important; }
.header__cta.xoo-el-login-tgr:hover { background: var(--gold-deep) !important; color: var(--paper) !important; }
.acct__actions .btn.xoo-el-login-tgr { background: var(--ink) !important; color: var(--paper) !important; width: auto; height: auto; }
.acct__actions .btn.xoo-el-login-tgr:hover { background: var(--gold-deep) !important; }
.acct__actions .btn-ghost.xoo-el-reg-tgr { background: transparent !important; color: var(--ink) !important; border: var(--bw) solid var(--hairline-strong) !important; width: auto; height: auto; }
.acct__actions .btn-ghost.xoo-el-reg-tgr:hover { background: var(--ink) !important; color: var(--paper) !important; }
.mobile-nav__panel a.xoo-el-login-tgr { background: none !important; color: var(--ink) !important; width: auto; height: auto; }

/* Higher-specificity copies of the modal skin so the plugin's generated
   stylesheet (loaded after the theme) cannot restyle the essentials. */
.xoo-el-form-container .xoo-el-tabs li { background: transparent !important; color: var(--text-muted) !important; font-family: var(--font-sans) !important; font-size: var(--fs-small) !important; padding: var(--space-4) 0 !important; }
.xoo-el-form-container .xoo-el-tabs li.xoo-el-active { color: var(--ink) !important; }
.xoo-el-form-container .xoo-aff-field { height: 54px !important; border: var(--bw) solid var(--hairline-strong) !important; border-radius: var(--radius-sm) !important; background: var(--surface) !important; color: var(--ink) !important; }
.xoo-el-form-container .xoo-el-action-btn { height: 54px !important; border-radius: var(--radius-sm) !important; background: var(--ink) !important; color: var(--paper) !important; font-family: var(--font-sans) !important; font-weight: 600 !important; }
.xoo-el-form-container .xoo-el-action-btn:hover { background: var(--gold-deep) !important; }

/* Inline auth form on the account page (logged out): centered card. */
.xoo-el-form-container.xoo-el-form-inline {
  max-width: 460px; margin: 0 auto;
  background: var(--surface); border: var(--bw) solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.xoo-el-form-inline .xoo-el-section { padding: var(--space-6); }
.xoo-el-form-inline .xoo-el-tabs { display: flex; padding: 0 var(--space-6); border-bottom: var(--bw) solid var(--hairline); margin: 0; list-style: none; }

/* ---------- native auth modal additions ---------- */
.xoo-el-notice.is-success { display: block; background: #e6f0e6; color: #2f6b34; border: 1px solid #c4dcc4; }
.xoo-el-close { border: 0; font-size: 15px; }
.xoo-aff-pw-toggle { border: 0; background: none; display: grid; place-items: center; padding: 0; }
.xoo-aff-pw-toggle svg { width: 18px; height: 18px; }
.auth-brand .brand__logo { height: 40px; width: auto; margin: 0 auto var(--space-3); filter: brightness(0) invert(1); opacity: .95; display: block; }
.xoo-el-action-form .g-recaptcha, .xoo-el-action-form [id^="rcfwc"] { margin-bottom: var(--space-4); }

/* ============================================================ WOO CORE IMMUNITY */
/* woocommerce-layout.css scopes generic rules to .woocommerce-page bodies
   (`img { height: auto }`, widget-list item floats) which only exist on shop
   pages - pin the theme components against them. */
img.brand__logo,
.woocommerce-page img.brand__logo { height: 44px !important; width: auto !important; max-width: none !important; }
.brand__logo-tile img,
.woocommerce-page .brand__logo-tile img { height: 38px !important; width: auto !important; }

.woocommerce-page img.media-frame { height: 100%; }
.woocommerce-page .media-frame img { height: 100%; width: 100%; }
.woocommerce-page .used-row img.media-frame,
.woocommerce-page .used-row .media-frame { height: 64px; }

.cart-drawer ul.woocommerce-mini-cart li.mini_cart_item {
  display: grid !important; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0 !important; margin: 0 !important; list-style: none;
  border-bottom: var(--bw) solid var(--hairline);
}
.cart-drawer .mini_cart_item .ci-img {
  width: 64px !important; height: 64px !important; float: none !important; margin: 0 !important;
}
.cart-drawer .mini_cart_item img {
  float: none !important; width: 100% !important; height: 100% !important;
  margin: 0 !important; box-shadow: none;
}
.search-suggest__item .media-frame { width: 44px !important; height: 44px !important; }
.search-suggest__item .media-frame img { width: 100% !important; height: 100% !important; float: none !important; margin: 0 !important; }

/* ---------- drawer: neutralise Woo's cart-list clearfixes & remove-link ---------- */
/* Woo's ::before/::after clearfixes become grid items inside the drawer rows. */
.cart-drawer .mini_cart_item::before,
.cart-drawer .mini_cart_item::after,
.cart-drawer .woocommerce-mini-cart::before,
.cart-drawer .woocommerce-mini-cart::after { content: none !important; display: none !important; }
.cart-drawer ul.woocommerce-mini-cart { padding: var(--space-4) var(--space-6) !important; margin: 0 !important; }
.cart-drawer a.remove.ci-remove {
  display: inline !important; width: auto !important; height: auto !important;
  border-radius: 0 !important; background: none !important;
  font-size: var(--text-xs) !important; font-weight: 400 !important;
  color: var(--gray-400) !important; text-align: left; place-items: unset;
}
.cart-drawer a.remove.ci-remove:hover { color: #8a2020 !important; background: none !important; }
.cart-drawer .ci-name a { display: inline !important; font-weight: 600 !important; color: var(--ink) !important; }

/* ---------- checkout: pin against Woo layout floats & generic table skin ---------- */
.wc-checkout-main .form-row,
.wc-checkout-main .form-row-first,
.wc-checkout-main .form-row-last,
.wc-checkout-main .form-row-wide { width: 100% !important; float: none !important; clear: none !important; }
/* Woo's billing template prints its own heading - the step header already says it. */
.wc-checkout-main .woocommerce-billing-fields > h3 { display: none; }

.wc-block-components-order-summary table.shop_table {
  border: 0 !important; border-radius: 0 !important; background: transparent !important; overflow: visible;
}
.wc-block-components-order-summary .woocommerce-checkout-review-order-table th {
  background: transparent !important; font-family: var(--font-sans) !important;
  font-size: var(--fs-small) !important; text-transform: none !important;
  letter-spacing: 0 !important; color: var(--gray-700) !important; font-weight: 500;
  padding: var(--space-3) 0 !important; border-bottom: var(--bw) solid var(--hairline);
}
.wc-block-components-order-summary .woocommerce-checkout-review-order-table td {
  background: transparent !important; padding: var(--space-3) 0 !important;
}
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .order-total th,
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .order-total td {
  font-size: var(--text-lg) !important; font-weight: 700 !important; color: var(--ink) !important;
  border-top: var(--bw) solid var(--hairline-strong); border-bottom: 0;
}

/* ---------- checkout form & summary geometry ---------- */
.wc-checkout-main .form-row { grid-template-columns: 1fr !important; justify-items: stretch; text-align: left; }
.wc-checkout-main .form-row input.input-text,
.wc-checkout-main .form-row select,
.wc-checkout-main .form-row textarea { width: 100% !important; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table { table-layout: fixed; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table th,
.wc-block-components-order-summary .woocommerce-checkout-review-order-table td { overflow-wrap: break-word; }
.wc-block-components-order-summary .woocommerce-checkout-review-order-table .product-name { font-weight: 600; color: var(--ink); }
.wc-block-components-order-summary ul#shipping_method li { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); }


.wc-block-components-order-summary ul#shipping_method li {
  max-width: 100%; box-sizing: border-box; white-space: normal;
  font-weight: 400; color: var(--gray-700); line-height: 1.5;
}
.wc-block-components-order-summary .payment_box::before,
.wc-block-components-order-summary #payment div.payment_box::before { content: none !important; display: none !important; border: 0 !important; }
.wc-block-components-order-summary .wc_payment_methods .payment_box { border: var(--bw) solid var(--hairline); margin-top: var(--space-2); }

/* ---------- single product: gallery full width, add-ons layout ---------- */
.product-media .woocommerce-product-gallery,
.product-media div.images { width: 100% !important; float: none !important; }

.product-buy .wc-pao-addons-container { flex-basis: 100%; width: 100%; margin-bottom: var(--space-2); }
.product-buy .wc-pao-addon { margin-bottom: var(--space-4); }
.product-buy label.wc-pao-addon-name {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  color: var(--gray-700); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.product-buy .wc-pao-addon-wrap { margin: 0; }
.product-buy select.wc-pao-addon-field,
.product-buy input.wc-pao-addon-field:not([type="checkbox"]):not([type="radio"]),
.product-buy textarea.wc-pao-addon-field {
  width: 100%; max-width: 420px; height: 52px;
  border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: 0 var(--space-4); font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink); background-color: var(--surface);
}
.product-buy select.wc-pao-addon-field {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a7160' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-4) center; padding-right: var(--space-8);
}
.product-buy textarea.wc-pao-addon-field { height: auto; min-height: 90px; padding: var(--space-3) var(--space-4); }
.product-buy .wc-pao-addon-description { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.product-buy #product-addons-total { flex-basis: 100%; width: 100%; margin: 0 0 var(--space-2); }


.wc-block-components-order-summary ul#shipping_method,
.wc-block-components-order-summary ul#shipping_method li { width: 100%; box-sizing: border-box; text-align: left; }

/* ---------- payment method: label band padded, wrapper flush ---------- */
.wc-block-components-order-summary ul.wc_payment_methods li.wc_payment_method { padding: 0 !important; overflow: hidden; }
.wc-block-components-order-summary ul.wc_payment_methods li.wc_payment_method > label {
  display: block !important; padding: var(--space-3) var(--space-4) !important; font-weight: 600; cursor: pointer;
}
.wc-block-components-order-summary .wc_payment_methods .payment_box {
  margin: 0 !important; border: 0 !important; border-top: var(--bw) solid var(--hairline) !important;
  border-radius: 0 !important; padding: var(--space-3) var(--space-4) !important; background: var(--surface);
}
.wc-block-components-order-summary .payment_box p { margin: 0; }

/* ---------- select2 in the site's field style (dropdown mounts on body) ---------- */
.select2-container--default .select2-selection--single {
  height: 52px; border: var(--bw) solid var(--hairline-strong);
  border-radius: var(--radius-sm); background: var(--surface);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px; padding-left: var(--space-4); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-subtle); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash);
}
.select2-dropdown {
  border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); background: var(--surface); font-family: var(--font-sans); overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-xs);
  padding: 8px 10px; font-family: var(--font-sans); font-size: var(--fs-small); outline: none;
}
.select2-results__option { padding: 8px 14px; font-size: var(--fs-small); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--gold-wash); color: var(--ink); }
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] { background: var(--paper-2); color: var(--ink); }



/* ---------- payment: strip the cart-page chrome inherited in the summary ---------- */
.wc-block-components-order-summary #payment {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; margin-top: var(--space-2);
}
.wc-block-components-order-summary #payment ul.payment_methods {
  padding: 0 !important; border-bottom: 0 !important;
}

/* ---------- summary: shipping as one full-width stacked cell (colspan) ---------- */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td[colspan] {
  text-align: left !important; white-space: normal !important; font-weight: 400 !important;
}
.shipping-label {
  display: block; font-size: var(--fs-small); font-weight: 500;
  color: var(--gray-700); margin-bottom: var(--space-2);
}

/* The consent checkbox row is a bare label - the field pin above must not
   turn its wrapper into a bordered input. */
.xoo-el-form-container .xoo-aff-checkbox_single .xoo-aff-field {
  height: auto !important; border: 0 !important; padding: 0 !important;
  box-shadow: none !important; background: transparent !important;
}

/* Gold action button (withdrawal) - white text. */
.wd-panel { background: var(--surface); border: var(--bw) solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.wd-head { background: var(--ink); padding: var(--space-5) var(--space-6); }
.wd-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--paper); margin: 0 0 6px; }
.wd-head p { color: var(--gray-300); font-size: var(--fs-small); margin: 0; line-height: var(--lh-relaxed); }
.wd-form { padding: var(--space-6); }
.wd-form .consent { margin: 0 0 var(--space-5); }
.wd-success { text-align: center; padding: var(--space-8) var(--space-6); }
.wd-success svg { width: 44px; height: 44px; color: var(--gold-deep); margin: 0 auto var(--space-4); display: block; }
.wd-success strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); display: block; margin-bottom: var(--space-3); }
.wd-success p { font-size: var(--fs-small); color: var(--gray-700); margin: 0 0 var(--space-2); }
.wd-success #wdId { font-family: var(--font-mono); color: var(--gold-deep); }
.fbw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.fbw-field { display: grid; gap: 6px; }
.fbw-field-full { grid-column: 1 / -1; }
.fbw-label { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .06em; }
.fbw-input, .fbw-textarea { border: var(--bw) solid var(--hairline-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 0 var(--space-4); height: 52px; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink); width: 100%; box-sizing: border-box; }
.fbw-textarea { min-height: 120px; padding: var(--space-3) var(--space-4); resize: vertical; }
.fbw-input:focus, .fbw-textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.fbw-actions { display: flex; }
.fbw-button { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-sm); background: var(--gold); color: var(--paper); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-body); cursor: pointer; transition: background .22s var(--ease), transform .22s var(--ease); }
.fbw-button:hover { background: var(--gold-deep); transform: translateY(-2px); }
.fbw-button-secondary { background: transparent; border: var(--bw) solid var(--hairline-strong); color: var(--ink); }
.fbw-error { background: #fbeaea; color: #8a2020; border: 1px solid #e6c3c3; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); margin-bottom: var(--space-4); }
@media (max-width: 640px) { .fbw-grid { grid-template-columns: 1fr; } }

/* Addresses grid: kill Woo clearfix pseudo-elements that steal grid cells. */
.woocommerce-Addresses.col2-set::before,
.woocommerce-Addresses.col2-set::after,
.woocommerce-account .addresses .title::before,
.woocommerce-account .addresses .title::after { content: none !important; display: none !important; }
.woocommerce-Addresses.col2-set .u-column1,
.woocommerce-Addresses.col2-set .u-column2 { width: auto !important; float: none !important; }
