/* Project Timber — checkout page styles (loaded after base.css). */
:root{
    --ink:#211E24; --charcoal:#3B333D; --slate:#5A5560; --graphite:#6E6A74;
    --clay:#B7997F; --sand:#E6D9C7; --stone:#CFC0AC;
    --paper:#F5F5F5; --mist:#F5F5F5; --white:#FFFFFF;
    --accent:#FFFF00; --danger:#a3402c; --ok:#2a8f57;
    --txt:#211E24; --txt-soft:#6E6A74; --on-dark:#F5F5F5; --on-dark-soft:#B7B2BB;
    --r:26px; --r-sm:16px; --maxw:1180px;
    --ease:cubic-bezier(.2,.7,.3,1);
    --e1:0 1px 2px rgba(33,30,36,.06), 0 6px 16px rgba(33,30,36,.06);
    --e2:0 2px 6px rgba(33,30,36,.08), 0 18px 40px rgba(33,30,36,.10);
    --e3:0 10px 30px rgba(33,30,36,.14), 0 30px 70px rgba(33,30,36,.16);
    --font:"F37 Jagger","Trebuchet MS","Segoe UI",system-ui,sans-serif;
  }
  
  
  
  h1,h2,h3,h4{ font-weight:700; line-height:1.1; letter-spacing:-.02em; margin:0; }
   
  

  /* promo + header */
   
  .mainhead{ display:flex; align-items:center; gap:14px; padding:10px 20px; border-bottom:1px solid rgba(33,30,36,.07); position:sticky; top:0; z-index:50; background:rgba(255,255,255,.85); backdrop-filter:saturate(160%) blur(18px); -webkit-backdrop-filter:saturate(160%) blur(18px); }
  .mainhead .logo{ display:inline-flex; margin:0 auto 0 0; } 
  .mainhead .securenote{ margin-left:auto; display:none; align-items:center; gap:7px; font-size:.8rem; color:var(--txt-soft); } .mainhead .securenote svg{ width:15px; height:15px; color:var(--ok); }
  @media(min-width:560px){ .mainhead .securenote{ display:flex; } }

  .co-head{ padding:26px 0 6px; }
  .co-head .crumbs{ font-size:.82rem; color:var(--txt-soft); font-weight:300; margin-bottom:10px; } .co-head .crumbs a{ text-decoration:none; color:var(--txt-soft); } .co-head .crumbs .sep{ margin:0 7px; opacity:.5; } .co-head .crumbs .here{ color:var(--ink); }
  .co-head h1{ font-size:clamp(1.8rem,4vw,2.4rem); }

  /* layout */
  .co-grid{ display:grid; gap:30px; padding:18px 0 70px; grid-template-columns:1fr; }
  @media(min-width:900px){ .co-grid{ grid-template-columns:1fr 400px; gap:48px; align-items:start; } }

  /* form */
  .co-form{ min-width:0; }
  .co-sec{ margin-bottom:34px; }
  .co-sec > h2{ font-size:1.15rem; margin-bottom:4px; }
  .co-sec > .hint{ font-size:.84rem; font-weight:300; color:var(--txt-soft); margin-bottom:16px; }
  .co-row{ display:grid; gap:14px; grid-template-columns:1fr; margin-bottom:14px; } @media(min-width:560px){ .co-row.two{ grid-template-columns:1fr 1fr; } }
  .fld label{ display:block; font-size:.8rem; font-weight:700; margin-bottom:6px; } .fld label .opt{ font-weight:300; color:var(--txt-soft); }
  .fld input, .fld select, .fld textarea{ width:100%; font-family:var(--font); font-size:.92rem; padding:12px 14px; border:1px solid rgba(33,30,36,.18); border-radius:11px; background:#fff; color:var(--ink); }
  .fld textarea{ min-height:84px; resize:vertical; }
  .fld input:focus, .fld select:focus, .fld textarea:focus{ outline:none; border-color:var(--charcoal); }
  .req{ color:var(--danger); }

  .co-check{ display:flex; gap:11px; align-items:flex-start; margin:11px 0; font-size:.88rem; font-weight:300; cursor:pointer; }
  .co-check input{ width:18px; height:18px; margin-top:1px; accent-color:var(--charcoal); flex:0 0 auto; }
  .co-consent{ font-size:.78rem; color:var(--txt-soft); font-weight:300; line-height:1.5; margin:6px 0 0; }
  .co-consent .more{ font-weight:700; color:var(--charcoal); cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
  .co-consent .rest{ display:none; } .co-consent.open .rest{ display:inline; }

  /* Klaviyo marketing opt-ins, relocated into the Contact block (see form-billing.php).
     The plugin renders WC checkbox fields + an unstyled SMS consent block; style them to
     match the design's .co-check / .co-consent, with a CSS-only "Read more" toggle. */
  .co-form .kl_newsletter_checkbox_field,
  .co-form .kl_sms_consent_checkbox_field{ margin:11px 0; padding:0; }
  .co-form .kl_newsletter_checkbox_field label.checkbox,
  .co-form .kl_sms_consent_checkbox_field label.checkbox{ display:flex; gap:11px; align-items:flex-start; margin:0; font-size:.88rem; font-weight:300; cursor:pointer; color:var(--txt); }
  .co-form .kl_newsletter_checkbox_field input,
  .co-form .kl_sms_consent_checkbox_field input{ width:18px; height:18px; margin:1px 0 0; accent-color:var(--charcoal); flex:0 0 auto; }
  .co-form .klaviyo-consent-wrapper{ font-size:.78rem; color:var(--txt-soft); font-weight:300; line-height:1.5; margin:6px 0 0; }
  .co-form #klaviyo-toggle-1{ display:none; }
  .co-form #klaviyo-toggle-1:not(:checked) ~ .klaviyo-consent-wrapper{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .co-form .read-more-label{ display:inline-block; margin-top:2px; font-size:.78rem; font-weight:700; color:var(--charcoal); cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
  .co-form .read-more-label .show-less{ display:none; }
  .co-form #klaviyo-toggle-1:checked ~ .read-more-label .show-more{ display:none; }
  .co-form #klaviyo-toggle-1:checked ~ .read-more-label .show-less{ display:inline; }

  .co-altaddr{ border:1px solid rgba(33,30,36,.12); border-radius:var(--r-sm); padding:4px 16px; margin-top:8px; }
  .co-altaddr summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:11px; padding:13px 0; font-weight:700; font-size:.92rem; } .co-altaddr summary::-webkit-details-marker{ display:none; }
  .co-altaddr summary .box{ width:18px; height:18px; border:1.5px solid rgba(33,30,36,.3); border-radius:5px; display:inline-flex; align-items:center; justify-content:center; } .co-altaddr summary .box svg{ width:13px; height:13px; opacity:0; } .co-altaddr[open] summary .box{ background:var(--charcoal); border-color:var(--charcoal); } .co-altaddr[open] summary .box svg{ opacity:1; color:#fff; }
  .co-altaddr .inner{ padding:6px 0 16px; }

  /* payment */
  .pay-opt{ border:1px solid rgba(33,30,36,.16); border-radius:12px; margin-bottom:10px; overflow:hidden; transition:border-color .2s var(--ease); }
  .pay-opt.sel{ border-color:var(--charcoal); box-shadow:var(--e1); }
  .pay-opt .top{ display:flex; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; }
  .pay-opt .top input{ width:18px; height:18px; accent-color:var(--charcoal); }
  .pay-opt .top .nm{ font-weight:700; font-size:.92rem; } .pay-opt .top .badges{ margin-left:auto; display:flex; gap:5px; flex-wrap:wrap; }
  .pay-opt .top .chip{ font-size:.62rem; font-weight:700; background:var(--mist); border:1px solid rgba(33,30,36,.12); border-radius:5px; padding:3px 7px; color:var(--slate); }
  .pay-card{ display:none; padding:2px 16px 18px; } .pay-opt.sel .pay-card{ display:block; }
  .pay-card .co-row{ margin-bottom:12px; }

  .co-terms{ margin:18px 0; }
  .btn-primary{ width:100%; display:flex; align-items:center; justify-content:center; gap:9px; border:none; cursor:pointer; font-family:var(--font); font-weight:700; background:var(--accent); color:var(--ink); font-size:1.05rem; padding:17px; border-radius:14px; }
  .btn-primary svg{ width:18px; height:18px; } .btn-primary:active{ transform:scale(.99); }
  .co-secure{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; font-size:.8rem; color:var(--txt-soft); font-weight:300; } .co-secure svg{ width:15px; height:15px; color:var(--ok); }

  /* order summary */
  .co-summary{ position:relative; }
  @media(min-width:900px){ .co-summary{ position:sticky; top:90px; } }
  .summary-card{ border:1px solid rgba(33,30,36,.12); border-radius:var(--r); padding:22px; background:var(--white); box-shadow:var(--e1); }
  .summary-card > h2{ font-size:1.1rem; margin-bottom:16px; display:flex; align-items:baseline; justify-content:space-between; } .summary-card > h2 .ed{ font-size:.78rem; font-weight:700; color:var(--charcoal); text-decoration:none; }
  .sum-item{ display:flex; gap:14px; }
  .sum-item .thumb{ width:84px; height:84px; flex:0 0 auto; border-radius:12px; overflow:hidden; background:var(--mist); position:relative; }
  .sum-item .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
  .sum-item .thumb .qty{ position:absolute; top:-8px; right:-8px; min-width:22px; height:22px; border-radius:11px; background:var(--charcoal); color:#fff; font-size:.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 6px; }
  .si-actions{ display:flex; align-items:center; gap:14px; margin-top:8px; flex-wrap:wrap; }
  .qstep{ display:inline-flex; align-items:center; border:1px solid rgba(33,30,36,.2); border-radius:999px; }
  .qstep button{ width:30px; height:30px; border:none; background:none; cursor:pointer; font-size:1.05rem; font-weight:700; color:var(--ink); font-family:var(--font); display:flex; align-items:center; justify-content:center; border-radius:999px; }
  .qstep button:disabled{ color:rgba(33,30,36,.28); cursor:default; }
  @media(hover:hover){ .qstep button:not(:disabled):hover{ background:var(--mist); } }
  .qstep .q-n{ min-width:26px; text-align:center; font-weight:700; font-size:.9rem; }
  .sum-item .si{ flex:1; min-width:0; } .sum-item .si .rng{ font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--clay); }
  .sum-item .si h3{ font-size:.96rem; margin:2px 0 4px; } .sum-item .si .pr{ font-weight:700; }
  .sum-item .si .rm{ margin-top:5px; background:none; border:none; padding:0; cursor:pointer; font-family:var(--font); color:var(--txt-soft); font-size:.78rem; text-decoration:underline; text-underline-offset:2px; }
  /* in-place remove: fade the row while the Store API DELETE is in flight */
  .sum-item.removing{ opacity:.5; pointer-events:none; transition:opacity .18s ease; }
  /* empty state shown when the last item is removed on checkout (no redirect to /cart/) */
  .co-empty{ text-align:center; padding:26px 8px; }
  .co-empty h2{ font-size:1.1rem; margin-bottom:8px; }
  .co-empty p{ color:var(--txt-soft); font-weight:300; margin-bottom:16px; }
  .co-empty .co-empty-cta{ display:inline-flex; align-items:center; justify-content:center; background:var(--charcoal); color:#fff; text-decoration:none; font-weight:700; font-size:.86rem; padding:11px 20px; border-radius:11px; }

  .cfg{ margin-top:16px; border:1px solid rgba(33,30,36,.1); border-radius:var(--r-sm); overflow:hidden; }
  .cfg summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:12px 15px; font-weight:700; font-size:.86rem; background:var(--mist); } .cfg summary::-webkit-details-marker{ display:none; }
  .cfg .chev{ width:15px; height:15px; color:var(--txt-soft); transition:transform .3s var(--ease); } .cfg[open] summary .chev{ transform:rotate(180deg); }
  .cfg .rows{ padding:4px 15px 8px; }
  .crow{ display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:9px 0; border-bottom:1px solid rgba(33,30,36,.06); } .crow:last-child{ border-bottom:none; }
  .crow .k{ font-size:.7rem; text-transform:uppercase; letter-spacing:.04em; color:var(--txt-soft); font-weight:700; }
  .crow .v{ font-size:.86rem; grid-column:1; }
  .crow .p{ grid-row:1 / span 2; align-self:center; font-size:.84rem; font-weight:700; white-space:nowrap; } .crow .p.free{ color:var(--txt-soft); font-weight:400; }
  .crow .sub{ grid-column:1; font-size:.78rem; color:var(--txt-soft); font-weight:300; margin-top:2px; }

  .co-promo{ margin-top:16px; display:flex; gap:8px; }
  .co-promo input{ flex:1; font-family:var(--font); font-size:.88rem; padding:11px 13px; border:1px solid rgba(33,30,36,.18); border-radius:11px; } .co-promo input:focus{ outline:none; border-color:var(--charcoal); }
  .co-promo button{ font-family:var(--font); font-weight:700; font-size:.84rem; letter-spacing:.01em; border:1.5px solid var(--ink,#211e24); background:var(--ink,#211e24); border-radius:11px; padding:0 20px; cursor:pointer; color:#fff; transition:background .18s ease, border-color .18s ease, opacity .18s ease; }
  .co-promo button:hover{ background:#000; border-color:#000; }
  .co-promo button:active{ transform:translateY(1px); }
  .co-promo button:disabled{ opacity:.5; cursor:default; }

  .sum-tot{ margin-top:18px; border-top:1px solid rgba(33,30,36,.1); padding-top:14px; }
  .sum-tot .ln{ display:flex; justify-content:space-between; font-size:.88rem; font-weight:300; color:var(--txt-soft); margin-bottom:7px; } .sum-tot .ln b{ color:var(--ink); font-weight:700; }
  .sum-tot .grand{ display:flex; align-items:baseline; justify-content:space-between; margin-top:8px; } .sum-tot .grand .l{ font-size:1.05rem; font-weight:700; } .sum-tot .grand .v{ font-size:1.5rem; font-weight:700; }
  .sum-tot .vat{ font-size:.74rem; color:var(--txt-soft); font-weight:300; margin-top:3px; }
  .sum-tot .ship-note{ font-size:.74rem; color:var(--txt-soft); font-weight:300; margin-top:8px; line-height:1.45; }
  .co-delnote{ display:flex; gap:10px; align-items:flex-start; background:var(--mist); border-radius:10px; padding:13px 15px; font-size:.82rem; font-weight:300; color:var(--txt-soft); line-height:1.5; margin-top:4px; }
  .co-delnote svg{ width:17px; height:17px; color:var(--charcoal); flex:0 0 auto; margin-top:2px; }
  .co-delnote b{ color:var(--ink); font-weight:700; }
  .sum-assure{ margin-top:16px; display:grid; gap:8px; } .sum-assure .a{ display:flex; align-items:center; gap:9px; font-size:.8rem; color:var(--txt-soft); font-weight:300; } .sum-assure .a svg{ width:15px; height:15px; flex:0 0 auto; color:var(--ok); }

  /* footer (slim) */
  .site-foot{ background:var(--ink); color:var(--on-dark-soft); padding:30px 0; }
  .site-foot .row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
  
  .site-foot .chips{ display:flex; flex-wrap:wrap; gap:7px; } .site-foot .chip{ background:#fff; color:var(--ink); border-radius:6px; padding:5px 10px; font-size:.7rem; font-weight:700; }
  .site-foot .cp{ width:100%; border-top:1px solid rgba(255,255,255,.12); padding-top:16px; margin-top:6px; font-size:.74rem; font-weight:300; }

  /* support widget */
  .support{ position:fixed; left:18px; bottom:18px; z-index:299; }
  
    
    
   
   
  .support .panel{ position:absolute; left:0; bottom:70px; width:300px; max-width:calc(100vw - 36px); background:var(--accent); color:var(--charcoal); border-radius:22px; box-shadow:var(--e3); padding:22px 20px 18px; opacity:0; transform:translateY(10px) scale(.98); transform-origin:0 100%; pointer-events:none; transition:opacity .25s var(--ease), transform .25s var(--ease); }
  
   
   
   

  :focus-visible{ outline:2px solid var(--charcoal); outline-offset:2px; border-radius:6px; }

/* ============================================================
   WooCommerce checkout (WP) — styles WC's REAL checkout markup to the Project
   Timber design. Layout (.co-grid/.co-form/.co-summary/.summary-card) comes
   from form-checkout.php + the rules above; these target WC's own field /
   review / payment markup. First pass — refine against staging render.
   ============================================================ */
.co-form .woocommerce-billing-fields,
.co-form .woocommerce-additional-fields{ margin-bottom:34px; }
.co-form .woocommerce-billing-fields > h3,
.co-form .woocommerce-additional-fields h3{ font-size:1.15rem; margin:0 0 16px; font-weight:700; }

/* form-billing.php splits the billing group into a "Contact" block (email/phone) then
   "Billing details", per the mockup — style the two sub-headings + the contact hint. */
.co-form .pt-contact-title,
.co-form .pt-billing-title{ font-size:1.15rem; margin:0 0 6px; font-weight:700; }
.co-form .pt-contact-hint{ font-size:.84rem; font-weight:300; color:var(--txt-soft); margin:0 0 16px; }
.co-form .pt-billing-title{ margin-top:26px; }

/* "Deliver to a different address?" — WooCommerce shipping toggle (form-shipping.php)
   styled like the design's .co-altaddr (bordered box + custom checkbox). The
   two-class selector overrides the old theme's inline .woocommerce-shipping-fields
   { display:none } (injected in wp_footer), which would otherwise hide the whole
   toggle. The #ship-to-different-address-checkbox input is kept so WC core toggles
   the address fields and the old theme's copy-billing / clear-on-uncheck JS works. */
.co-form .woocommerce-shipping-fields{ display:block; border:1px solid rgba(33,30,36,.12); border-radius:var(--r-sm); padding:4px 16px; margin:0 0 34px; }
.co-form #ship-to-different-address{ margin:0; font-size:.92rem; }
.co-form #ship-to-different-address label{ display:flex; align-items:center; gap:11px; padding:13px 0; margin:0; cursor:pointer; font-weight:700; }
.co-form #ship-to-different-address-checkbox{ position:absolute; opacity:0; width:0; height:0; }
.co-form #ship-to-different-address .altaddr-box{ width:18px; height:18px; border:1.5px solid rgba(33,30,36,.3); border-radius:5px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.co-form #ship-to-different-address .altaddr-box svg{ width:13px; height:13px; opacity:0; color:#fff; }
.co-form #ship-to-different-address-checkbox:checked + .altaddr-box{ background:var(--charcoal); border-color:var(--charcoal); }
.co-form #ship-to-different-address-checkbox:checked + .altaddr-box svg{ opacity:1; }
/* Fields hidden until the box is ticked; WooCommerce core's checkout.js slide-toggles
   .shipping_address (sets inline display) on the #ship-to-different-address checkbox. */
.co-form .shipping_address{ display:none; padding:6px 0 14px; }
/* Shipping fields not in the mockup (Country, Apartment, County, Phone, Email,
   Company) — kept in the form for submission but hidden, per functions.php. */
.co-form .pt-ship-hidden{ display:none !important; }

/* old theme's copy-from-billing button (added via woocommerce_before_checkout_shipping_form)
   carries inline blue styling — restyle it to the design's secondary button. */
.co-form .copy-billing-wrapper{ display:block; padding:0 0 6px; margin:0; }
.co-form .copy-billing-button{ font-family:var(--font) !important; font-weight:700 !important; font-size:.82rem !important; background:#fff !important; color:var(--ink) !important; border:1.5px solid rgba(33,30,36,.22) !important; border-radius:11px !important; padding:9px 14px !important; box-shadow:none !important; transform:none !important; }

.co-form .form-row{ margin:0 0 14px; }
.co-form .form-row label{ display:block; font-size:.8rem; font-weight:700; margin-bottom:6px; }
.co-form .form-row label .required{ color:var(--danger); text-decoration:none; border:0; }
.co-form .form-row label .optional{ font-weight:300; color:var(--txt-soft); }
.co-form .input-text,
.co-form .form-row textarea,
.co-form .form-row select,
.co-form .select2-container .select2-selection{ width:100%; font-family:var(--font); font-size:.92rem; padding:12px 14px; border:1px solid rgba(33,30,36,.18); border-radius:11px; background:#fff; color:var(--ink); box-sizing:border-box; }
.co-form .form-row textarea{ min-height:84px; resize:vertical; }
.co-form .input-text:focus,
.co-form .form-row textarea:focus,
.co-form .form-row select:focus{ outline:none; border-color:var(--charcoal); }
.co-form .select2-container .select2-selection--single{ height:46px; display:flex; align-items:center; }
.co-form .select2-container--default .select2-selection--single .select2-selection__arrow{ height:44px; }

/* Beat WooCommerce core's own field styles. Its selectors (e.g.
   `.woocommerce form .form-row input.input-text`, specificity 0,3,2) out-specify a
   plain `.co-form .input-text` (0,2,0), so the design was losing the cascade. The
   page <body> carries `.woocommerce-checkout`; prefixing with it lifts these rules
   to 0,4,1 — enough to win — without an !important arms race. */
.woocommerce-checkout .co-form .form-row input.input-text,
.woocommerce-checkout .co-form .form-row textarea,
.woocommerce-checkout .co-form .form-row select,
.woocommerce-checkout .co-form .select2-container--default .select2-selection--single{
  width:100%; font-family:var(--font); font-size:.92rem; padding:12px 14px;
  border:1px solid rgba(33,30,36,.18); border-radius:11px; background:#fff;
  color:var(--ink); box-sizing:border-box; box-shadow:none; min-height:46px; line-height:1.4;
}
.woocommerce-checkout .co-form .form-row textarea{ min-height:84px; }
.woocommerce-checkout .co-form .form-row input.input-text:focus,
.woocommerce-checkout .co-form .form-row textarea:focus,
.woocommerce-checkout .co-form .form-row select:focus{ outline:none; border-color:var(--charcoal); box-shadow:none; }
/* select2 country/state dropdown → look like the design's fields */
.woocommerce-checkout .co-form .select2-container--default .select2-selection--single{ display:flex; align-items:center; }
.woocommerce-checkout .co-form .select2-container--default .select2-selection--single .select2-selection__rendered{ padding:0; line-height:normal; color:var(--ink); }
.woocommerce-checkout .co-form .select2-container--default .select2-selection--single .select2-selection__arrow{ height:44px; top:0; right:10px; }
/* single-allowed-country renders as static text — size it like a value, not a heading */
.woocommerce-checkout .co-form .woocommerce-input-wrapper > strong{ font-weight:400; font-size:.95rem; }

/* The old-theme email validator (wc-custom-checkout-functions.php) reserves an
   always-on 18px error line under #billing_email. When the email is valid the line
   is empty but still adds ~23px of dead space above the shipping toggle — collapse
   it while empty so the section spacing matches the design. */
.woocommerce-checkout .co-form .wc-email-inline-error:empty{ min-height:0; margin-top:0; }

/* Delivery section — the lead-time datepicker field (#order_pickup_date_field, from
   woo-lead-time-calculator-control.php) and the order-notes field share WooCommerce's
   .woocommerce-additional-fields wrapper. Match the mockup: heading + hint, then the
   date field, then "Special instructions". The datepicker fires AFTER the notes field
   (woocommerce_after_order_notes), so reorder with flex to put the date first. */
.co-form .woocommerce-additional-fields{ display:flex; flex-direction:column; }
.co-form #order_pickup_date_field{ order:1; }
.co-form .woocommerce-additional-fields__field-wrapper{ order:2; }
/* Delivery-cost disclaimer sits last, snug under "Special instructions" (mockup). Without
   an explicit order it defaults to 0 and floats above the Delivery heading. */
.co-form .woocommerce-additional-fields .co-delnote{ order:3; margin-top:14px; }
.co-form #order_pickup_date_field > h3{ font-size:1.15rem; margin:0 0 4px; font-weight:700; }
.co-form .pt-delivery-hint{ font-size:.84rem; font-weight:300; color:var(--txt-soft); margin:0 0 16px; }
/* Calendar affordance on the (readonly, jQuery-UI) date input, echoing the mockup's native picker. */
.woocommerce-checkout .co-form #datepicker{ cursor:pointer; padding-right:42px; background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236E6A74'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='4'%20width='18'%20height='18'%20rx='2'/%3E%3Cpath%20d='M16%202v4M8%202v4M3%2010h18'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px 18px; }

@media(min-width:560px){
  .co-form .form-row-first{ width:48%; float:left; margin-right:4%; }
  .co-form .form-row-last{ width:48%; float:right; }
  .co-form .woocommerce-billing-fields__field-wrapper::after,
  .co-form .woocommerce-shipping-fields__field-wrapper::after{ content:""; display:table; clear:both; }
}

/* Order summary now uses the design's own markup (woocommerce/checkout/review-order.php:
   .sum-item / .cfg / .co-promo / .sum-tot / .sum-assure), styled by the "order summary"
   block near the top of this file. Only the WC-specific tweaks live here. */

/* WC gives each cart-item image a srcset <img>; pin it into the fixed thumb box. */
.co-summary .sum-item .thumb img{ width:100%; height:100%; object-fit:cover; display:block; max-width:none; }

/* Separate multiple products: every product card after the first (the .cfg block
   may sit between two .sum-item siblings, so use the general-sibling combinator). */
.co-summary .sum-item ~ .sum-item{ margin-top:22px; padding-top:22px; border-top:1px solid rgba(33,30,36,.1); }

/* Promo code field+button in the order summary. Not a <form> — it renders inside
   the main checkout form, so it's a .co-promo <div> and pt-checkout JS applies the
   code via WooCommerce's apply_coupon AJAX. Keep the design's inline layout and
   override WC's block button styling. */
.co-summary .co-promo{ display:flex !important; gap:8px; margin-top:16px; }
.co-summary .co-promo .input-text{ flex:1; width:auto; margin:0; }
/* Matches the mini-cart promo button (.ptc-promo button in base.css). Three classes
   (0,0,3,0) so this beats WooCommerce core's `.woocommerce button.button` (0,0,2,1),
   which otherwise repaints this as the default grey WC button. */
.co-summary .co-promo .button{ flex:0 0 auto; margin:0; font-family:var(--font); font-weight:700; font-size:.85rem; background:#fff; color:var(--ink); border:1.5px solid rgba(33,30,36,.22); border-radius:11px; padding:0 18px; cursor:pointer; transition:border-color .18s ease, opacity .18s ease; }
.co-summary .co-promo .button:hover{ background:#fff; border-color:var(--charcoal); }
.co-summary .co-promo .button:disabled{ opacity:.5; cursor:default; }

/* Configuration breakdown: WC add-on/composite values may arrive as inline markup. */
.co-summary .cfg .crow .v p{ margin:0; }
.co-summary .cfg .crow .v{ overflow-wrap:anywhere; }

/* Applied-coupon discount line in the totals block — green saving, with any
   WC "[Remove]" link kept small and secondary. */
.co-summary .sum-tot .ln.discount b{ color:var(--ok); }
.co-summary .sum-tot .ln.discount .woocommerce-remove-coupon{ margin-left:8px; font-size:.72rem; font-weight:400; color:var(--txt-soft); text-decoration:underline; text-underline-offset:2px; }

#payment_col .co-payment-title{ font-size:1.15rem; margin:0 0 16px; }
#payment.woocommerce-checkout-payment{ background:transparent; border-radius:0; }
#payment ul.payment_methods{ list-style:none; margin:0; padding:0; border:0; display:flex; flex-direction:column; gap:10px; }
#payment ul.payment_methods li{ border:1px solid rgba(33,30,36,.16); border-radius:12px; padding:14px 16px; }
#payment ul.payment_methods li input[type=radio]{ width:18px; height:18px; accent-color:var(--charcoal); margin-right:10px; }
#payment ul.payment_methods li label{ font-weight:700; font-size:.92rem; display:inline; cursor:pointer; }
#payment ul.payment_methods li img{ max-height:24px; margin-left:8px; vertical-align:middle; }
/* WC core sets `.woocommerce-checkout #payment ul.payment_methods{ padding:1em;
   border-bottom:1px }` (specificity 1,2,1), which beat our padding:0 above and
   inset the method cards. Scope with .co-form (1,3,1) to win — cards sit flush
   to the column edges, no side padding, no divider. */
.woocommerce-checkout .co-form #payment ul.payment_methods{ padding:0; border-bottom:0; }
/* WooCommerce core styles div.payment_box with a lavender (#dfdcde) background + a
   ::before pointer tail at specificity (1,2,1) — it out-specified our #payment
   .payment_box (1,1,0), so the card fields sat in a big spaced lavender block.
   Scope with .co-form (1,3,1) to win: transparent, tight, no tail — the gateway's
   card field sits cleanly under the selected option like the design. */
.woocommerce-checkout .co-form #payment div.payment_box{ background:transparent; border:0; border-radius:0; box-shadow:none; margin:8px 0 2px; padding:4px 0 6px; font-size:.86rem; font-weight:300; color:var(--txt-soft); }
.woocommerce-checkout .co-form #payment div.payment_box::before{ display:none; content:none; }
#payment .woocommerce-terms-and-conditions-wrapper{ margin:16px 0; font-size:.88rem; font-weight:300; }
#payment .woocommerce-privacy-policy-text{ font-size:.8rem; color:var(--txt-soft); font-weight:300; }
#payment .form-row.place-order{ margin-top:16px; padding:0; }

/* Lay the submit region out as a flex column so any floated/positioned children
   — WooCommerce's #place_order or the Share Cart plugin button — can't overlap
   the SSL note (flex containers ignore child floats). Order follows source:
   terms → Share Cart → Place Order → SSL note. */
.woocommerce-checkout #payment .form-row.place-order{ display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.woocommerce-checkout #payment .form-row.place-order #place_order{ float:none !important; position:static !important; width:100%; margin:0; }
.woocommerce-checkout #payment .form-row.place-order .co-secure{ margin-top:0; }
/* keep the Share Cart plugin button at its natural size, not stretched full-width */
.woocommerce-checkout #payment .form-row.place-order [class*="wsc"],
.woocommerce-checkout #payment .form-row.place-order .share_cart,
.woocommerce-checkout #payment .form-row.place-order .wc-share-cart{ align-self:flex-start; }
#payment #place_order{ width:100%; display:flex; align-items:center; justify-content:center; gap:9px; border:none; cursor:pointer; font-family:var(--font); font-weight:700; background:var(--accent); color:var(--ink); font-size:1.05rem; padding:17px; border-radius:14px; float:none; }
#payment #place_order:active{ transform:scale(.99); }
#payment #place_order svg{ width:18px; height:18px; flex:0 0 auto; }

.woocommerce-form-coupon-toggle{ margin-bottom:20px; }
.checkout_coupon .form-row{ margin-bottom:10px; }
.checkout_coupon .button{ font-family:var(--font); font-weight:700; background:var(--charcoal); color:#fff; border:0; border-radius:11px; padding:12px 18px; cursor:pointer; }

/* --- checkout validation notices: keep the 2-column grid intact ---
   WooCommerce's checkout JS prepends .woocommerce-NoticeGroup INTO the form
   (.co-grid). As a grid child it would take a column and shove Billing into the
   narrow right column — force it (and any stray notice) to span both columns. */
.co-grid > .woocommerce-NoticeGroup,
.co-grid > .woocommerce-error,
.co-grid > .woocommerce-message,
.co-grid > .woocommerce-info{ grid-column:1 / -1; margin:0 0 22px; }

/* Side gutter for the checkout: the .wrap 20px padding is overridden by
   .pt-page { padding:40px 0 72px } (same specificity, later in base.css), so the
   content had no horizontal gutter and fields touched the screen edges. Restore
   it on the WooCommerce wrapper for the checkout. */
.woocommerce-checkout .pt-page-content .woocommerce{ padding-left:20px; padding-right:20px; }

/* Notices printed ABOVE the checkout form (the persistent voucher message,
   add-to-basket / validation errors) render flush under the header nav — give
   the first one clearance so it doesn't touch the menu. Later stacked notices
   keep their default spacing. */
.woocommerce-checkout .pt-page-content .woocommerce > .woocommerce-message:first-child,
.woocommerce-checkout .pt-page-content .woocommerce > .woocommerce-error:first-child,
.woocommerce-checkout .pt-page-content .woocommerce > .woocommerce-info:first-child,
.woocommerce-checkout .pt-page-content .woocommerce > .woocommerce-notices-wrapper:first-child{ margin-top:26px; }

/* single-allowed-country renders as plain text — keep it field-sized, not a heading */
.co-form #billing_country_field strong,
.co-form #shipping_country_field strong{ font-weight:400; font-size:.95rem; }

/* =====================================================================
   Order received / thank-you (woocommerce/checkout/thankyou.php)
   Scoped under .woocommerce-order so it only affects the thank-you page.
   ===================================================================== */
.ty{ max-width:820px; margin:0 auto; padding:6px 0 64px; }

/* success / fail hero */
.ty .ty-hero{ text-align:center; padding:22px 0 30px; }
.ty .ty-badge{ width:64px; height:64px; margin:0 auto 18px; border-radius:999px; background:var(--ok); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(42,143,87,.30); }
.ty .ty-badge svg{ width:32px; height:32px; }
.ty .ty-badge--fail{ background:var(--danger); box-shadow:0 10px 24px rgba(163,64,44,.30); }
.ty .ty-hero h1{ font-size:clamp(1.7rem,4vw,2.3rem); margin:0 0 10px; }
.ty .ty-sub{ font-size:.95rem; color:var(--txt-soft); font-weight:300; max-width:54ch; margin:0 auto; line-height:1.55; }
.ty .ty-sub b{ color:var(--ink); font-weight:700; }
.ty .ty-actions{ margin:22px 0 0; display:flex; flex-direction:column; align-items:center; gap:12px; }
.ty .ty-actions .btn-primary{ width:auto; padding:15px 34px; }
.ty .ty-link{ color:var(--charcoal); font-weight:700; text-decoration:underline; text-underline-offset:2px; font-size:.9rem; }

/* order overview strip (order no / date / email / total / payment) */
.woocommerce-order .woocommerce-order-overview{ list-style:none; margin:0 0 26px; padding:20px 22px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 24px; border:1px solid rgba(33,30,36,.12); border-radius:var(--r); background:var(--white); box-shadow:var(--e1); }
@media(max-width:560px){ .woocommerce-order .woocommerce-order-overview{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.woocommerce-order .woocommerce-order-overview li{ display:flex; flex-direction:column; gap:4px; margin:0; padding:0; border:0; min-width:0; font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--txt-soft); font-weight:400; }
.woocommerce-order .woocommerce-order-overview li span{ display:block; }
.woocommerce-order .woocommerce-order-overview li strong{ font-size:1rem; text-transform:none; letter-spacing:0; color:var(--ink); font-weight:700; min-width:0; overflow-wrap:anywhere; }
/* the total must never split £ from the amount */
.woocommerce-order .woocommerce-order-overview__total strong{ white-space:nowrap; overflow-wrap:normal; }

/* order details + customer details cards */
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details{ border:1px solid rgba(33,30,36,.12); border-radius:var(--r); padding:22px 24px; background:var(--white); box-shadow:var(--e1); margin:0 0 22px; }
.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-customer-details > h2{ font-size:1.1rem; margin:0 0 16px; font-weight:700; }

/* order details table */
/* strip WooCommerce core's .shop_table box (border, radius, -1px margin, cell
   borders) so it doesn't draw a stray outline/vertical rule against the card. */
.woocommerce-order table.order_details{ width:100%; border-collapse:collapse !important; margin:0 !important; border:0 !important; border-radius:0 !important; }
.woocommerce-order table.order_details th,
.woocommerce-order table.order_details td{ text-align:left; padding:14px 2px; border:0 !important; border-bottom:1px solid rgba(33,30,36,.08) !important; vertical-align:top; font-size:.9rem; }
.woocommerce-order table.order_details thead th{ font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--txt-soft); font-weight:700; padding-top:0; }
.woocommerce-order table.order_details td.product-total,
.woocommerce-order table.order_details th.product-total,
.woocommerce-order table.order_details tfoot td{ text-align:right; white-space:nowrap; }
.woocommerce-order table.order_details .product-name,
.woocommerce-order table.order_details .product-name a{ color:var(--ink); text-decoration:none; font-weight:700; }
.woocommerce-order table.order_details .wc-item-meta,
.woocommerce-order table.order_details .variation{ list-style:none; margin:8px 0 0; padding:0; }
.woocommerce-order table.order_details .wc-item-meta li,
.woocommerce-order table.order_details .variation dt,
.woocommerce-order table.order_details .variation dd{ margin:2px 0; padding:0; border:0; font-size:.84rem; font-weight:300; color:var(--txt-soft); }
.woocommerce-order table.order_details .wc-item-meta strong,
.woocommerce-order table.order_details .variation dt{ font-weight:600; color:var(--txt); }
.woocommerce-order table.order_details tfoot th{ font-weight:300; color:var(--txt-soft); }
.woocommerce-order table.order_details tfoot td{ font-weight:700; color:var(--ink); }
.woocommerce-order table.order_details tfoot tr:last-child th{ font-size:1.05rem; font-weight:700; color:var(--ink); border-bottom:0 !important; padding-top:14px; }
.woocommerce-order table.order_details tfoot tr:last-child td{ font-size:1.25rem; border-bottom:0 !important; padding-top:14px; }

/* addresses */
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:0; }
/* WooCommerce's .col2-set adds clearfix ::before/::after; as a grid they'd become
   stray cells and throw the two addresses onto a diagonal — remove them, and drop
   the core float/48% width so the columns sit as clean grid children. */
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses::before,
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses::after{ content:none; display:none; }
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses > .woocommerce-column{ float:none; width:auto; margin:0; padding:0; }
/* keep the price (£ + amount) on one line in the overview strip */
.woocommerce-order .woocommerce-order-overview .woocommerce-Price-amount{ white-space:nowrap; }
.woocommerce-order .woocommerce-customer-details .woocommerce-column__title{ font-size:.95rem; font-weight:700; margin:0 0 8px; }
.woocommerce-order .woocommerce-customer-details address{ font-style:normal; font-size:.9rem; line-height:1.6; color:var(--txt); font-weight:300; border:0; padding:0; }
.woocommerce-order .woocommerce-customer-details address .woocommerce-customer-details--phone,
.woocommerce-order .woocommerce-customer-details address .woocommerce-customer-details--email{ display:block; margin-top:6px; }
@media(max-width:640px){ .woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses{ grid-template-columns:1fr; } }

/* continue shopping */
.ty .ty-foot{ text-align:center; margin-top:30px; }
.ty .ty-continue{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--ink); text-decoration:none; font-size:.95rem; border:1px solid rgba(33,30,36,.18); border-radius:999px; padding:13px 28px; transition:border-color .15s; }
.ty .ty-continue:hover{ border-color:var(--ink); }
