/* ============================================================================
   Manuka Luxury — CartFlows steps: square corners only  (L2-024)
   ----------------------------------------------------------------------------
   Loaded by mm_luxury_enqueue_checkout() on the CartFlows steps (the checkout
   and the thank-you page), where luxury-global.css is deliberately NOT loaded:
   the buying flow keeps its own layout. So this file carries nothing but the
   square-corner rule of luxury-global.css section 12 — border-radius and one
   focus outline, no layout, no colour. The reasoning, the specificity argument
   and the three shapes that stay round are written there, once.

   Measured on /step/checkout/ before writing (history/L2-024-radius-before.txt):
   125 rounded elements, 73-79 of them rendered, from CartFlows, Additional
   CSS, WPCode #9486, the Elementor kit, Complianz, Power Coupons and WP
   forms.css — plus the 12px that WPCode #9471/#9483 write into style="" with
   !important, which no stylesheet can beat and which is changed at the source.
   1.8.0 (L2-031) adds a second part below: the checkout's colours, buttons
   and fonts, and the thank-you step, which rendered in Merriweather, Open Sans
   and the system font. Measured, not assumed — history/L2-031-audit-before.txt.
   ========================================================================= */

:root{
  --mm-radius:0px;
  /* 1.8.0: the palette, restated because luxury-global.css never loads here. */
  --mm-cream:#fffdf9;
  --mm-cream-deep:#f4efe6;
  --mm-gold:#9b6b18;         /* white on it 4,66:1 */
  --mm-gold-deep:#8a5f15;    /* 5,54:1 on cream */
  --mm-ink:#2e2519;
  --mm-ink-2:#5c5146;
  --mm-muted:#786c58;
  --mm-line:#e3d9c6;
  --mm-error:#a4262c;        /* 7,15:1 on cream — one error red instead of three */
  --mm-sans:'Lato','Lato Fallback',Arial,sans-serif;
  --mm-display:'Cormorant Garamond',Georgia,serif;
}

:is(#mm-sq#mm-sq#mm-sq#mm-sq#mm-sq, :not(input[type="radio"], .instant-checkout-batch)),
:is(#mm-sq#mm-sq#mm-sq#mm-sq#mm-sq, :not(input[type="radio"]))::before,
:is(#mm-sq#mm-sq#mm-sq#mm-sq#mm-sq, :not(.site-header .ast-site-header-cart i.astra-icon))::after{
  border-radius:var(--mm-radius,0px) !important;
}

.cmplz-cookiebanner .cmplz-close:focus-visible{
  outline:2px solid #fff !important;
  outline-offset:2px !important;
}

/* ============================================================================
   PART 2 — CHECKOUT AND THANK-YOU IN THE LUXURY PALETTE  (L2-031, 1.8.0)
   ----------------------------------------------------------------------------
   What the audit found on /step/checkout/ (5 languages x 1280/390):
     - the page was wider than the screen: 1655px at 1280, 592px at 390, so a
       phone could scroll sideways. The cause is the LP Express locker <select>
       that select2 hides (.select2-hidden-accessible, 1px wide by design):
       Additional CSS line 1244 gives `select.woo_lithuaniapost_lpexpress_
       terminal_id` width:100% !important, so the hidden select became a full
       viewport wide, absolutely placed at the locker column (x=375 / 202).
       Measured by forcing it back to 1px from first paint: 1280 and 390 exactly;
     - "Apmokėti" and "Pritaikyti" in #d9a441 (CartFlows setting #f0b54d, hover
       GREEN #6a9739): white on it 2,1:1;
     - the chosen payment radio filled with #8bc34a green;
     - labels #707070 / #333 / #555, three different error reds;
     - section headings text-transform:capitalize ("Pirkėjo Duomenys") and in
       two sizes (20px and 15px);
     - the "+ Įvesti pilną adresą" link (WPCode #9471) inline in the float row,
       so "Vardas" sat to its right and "Pavardė" alone on the next row;
     - Neopay's bank grid 2 x 149px + 8px in a 298px box at 390: the second
       column ran 8px past the frame;
     - the privacy paragraph justified (rivers on a phone);
     - the phone's "Show Order Summary" bar in grey #f9fafb.
   The thank-you step: headings Merriweather 700 capitalised, text the system
   font, the button Open Sans on #d9a441.
   Same device as luxury-global.css section 13: :is(#mm-q x4, X) = (4,0,0).
   ========================================================================= */

/* 2.1 No sideways scroll: a select that select2 has hidden stays 1px wide. */
:is(#mm-q#mm-q#mm-q#mm-q, select.select2-hidden-accessible){
  width:1px !important;
  max-width:1px !important;
}

/* 2.2 One family everywhere on the step (body was -apple-system). */
body.cartflows_step{
  font-family:var(--mm-sans);
  color:var(--mm-ink-2);
}

/* 2.3 Primary buttons: gold, deep gold on hover — never green. */
:is(#mm-q#mm-q#mm-q#mm-q, #place_order, .wcf-submit-coupon, .wcf-ic-button--ty){
  background:var(--mm-gold) !important;
  border:1px solid var(--mm-gold) !important;
  color:#fff !important;
  font-family:var(--mm-sans) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, #place_order, .wcf-submit-coupon, .wcf-ic-button--ty):is(:hover, :focus-visible){
  background:var(--mm-gold-deep) !important;
  border-color:var(--mm-gold-deep) !important;
  color:#fff !important;
}

/* 2.4 The chosen radio: gold, not green. CartFlows paints its own radio (a
   background plus a ::before dot), so accent-color alone would not reach it. */
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout input[type="radio"]:checked){
  background-color:var(--mm-gold) !important;
  border-color:var(--mm-gold) !important;
}
body.cartflows_step{ accent-color:var(--mm-gold); }

/* 2.5 Text colours onto the palette. */
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout label, form.checkout .optional, #shipping_method li label, .woocommerce-privacy-policy-text p, .wc_payment_method > label){
  color:var(--mm-ink-2) !important;                         /* 7,60:1 */
}
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout .checkout-inline-error-message, form.checkout .wcf-field-required-error, form.checkout .woocommerce-invalid label, form.checkout .woocommerce-invalid .woocommerce-terms-and-conditions-checkbox-text){
  color:var(--mm-error) !important;
}

/* 2.6 Section headings: as written (no Title Case), one size. */
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-embed-checkout-form h3, .wcf-embed-checkout-form #ship-to-different-address){
  text-transform:none !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-embed-checkout-form .woocommerce-billing-fields > h3, .wcf-embed-checkout-form #ship-to-different-address){
  font-size:20px !important;
}

/* 2.7 The address toggle gets its own line; the two name fields then pair up. */
:is(#mm-q#mm-q#mm-q#mm-q, #mm-addr-toggle){
  width:100% !important;
  margin:0 0 10px !important;
  color:var(--mm-gold-deep) !important;
}

/* 2.8 Neopay's bank grid fits its frame at every width (3 columns on desktop,
   2 on a phone, as before — only without the overhang). */
:is(#mm-q#mm-q#mm-q#mm-q, .payment_method_neopay .banks_grid){
  grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .payment_method_neopay .bank_item){
  margin-left:0 !important;
  margin-right:0 !important;
  min-width:0 !important;
}

/* 2.9 Ragged right, not justified. */
:is(#mm-q#mm-q#mm-q#mm-q, .woocommerce-privacy-policy-text p){
  text-align:left !important;
}

/* 2.10 The phone's order-summary bar. */
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-order-review-toggle){
  background:var(--mm-cream-deep) !important;
  border-color:var(--mm-line) !important;
  color:var(--mm-ink) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-order-review-toggle-text, .wcf-order-review-toggle-button-wrap){
  color:var(--mm-ink) !important;
  font-family:var(--mm-sans) !important;
}

/* 2.11 Free-shipping notice (WPCode #9486) — same as luxury-global.css 13.3. */
:is(#mm-q#mm-q#mm-q#mm-q, .mm-fsn){
  background:var(--mm-cream-deep) !important;
  border:1px solid var(--mm-line) !important;
  color:var(--mm-ink-2) !important;
  font-family:var(--mm-sans) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .mm-fsn strong){ color:var(--mm-gold-deep) !important; }
:is(#mm-q#mm-q#mm-q#mm-q, .mm-fsn-bar){ background:var(--mm-line) !important; }
:is(#mm-q#mm-q#mm-q#mm-q, .mm-fsn-fill){ background:var(--mm-gold) !important; }
:is(#mm-q#mm-q#mm-q#mm-q, .mm-fsn.mm-fsn-done){ border-color:var(--mm-gold) !important; color:var(--mm-gold-deep) !important; }

/* 2.12 Thank-you step (CartFlows instant layout; body.woocommerce-order-received). */
:is(#mm-q#mm-q#mm-q#mm-q, body.woocommerce-order-received :is(h1, h2, h3)){
  font-family:var(--mm-display) !important;
  font-weight:500 !important;
  text-transform:none !important;
  color:var(--mm-ink) !important;
}
/* Scoped to the order-received body class: the checkout carries wcf-ic-* too,
   and a blanket family there would reach CartFlows' icon-font spans. */
:is(#mm-q#mm-q#mm-q#mm-q, body.woocommerce-order-received :is(p, label, address, td, th, li, .amount, .wcf-ic-cart-totals__label span, .wcf-ic-cart-totals__currency-badge, .wcf-order-review-toggle-text)){
  font-family:var(--mm-sans) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, body.woocommerce-order-received p, .wcf-ic-review-customer__content, .wcf-ic-review-customer__content p, .wcf-ic-review-customer__content address, .wcf-ic-updates p, .wcf-ic-cart-totals__label span, .wcf-ic-cart-totals__value, .wcf-ic-cart-totals__value .amount){
  color:var(--mm-ink-2) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-ic-review-customer__label label){
  color:var(--mm-ink) !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-ic-cart-totals__currency-badge){
  border-color:var(--mm-line) !important;
  color:var(--mm-muted) !important;
}

/* 2.13 Complianz "always active" (literal green) — as luxury-global.css 13.8. */
:is(#mm-q#mm-q#mm-q#mm-q, .cmplz-cookiebanner .cmplz-always-active){
  color:var(--mm-line) !important;
}

/* =========================================================================
   Part 3 — L2-032 (1.8.1): load shift and the locker picker.
   ----------------------------------------------------------------------------
   Measured on /step/checkout/ as a guest with one line in the cart
   (assets/checkout-cls.mjs, same live page A/B):
     - load CLS 0.083 at 1280 (0.021 at 390), identical on every run. Two jumps:
       at DOMContentLoaded WPCode MM-PASTOMAT collapses the optional invoice
       address rows (243px); after the first update_checkout WooCommerce hides
       the "ship to a different address" block (620px -> 65px). Both are now
       rendered in their final state from the first frame;
     - the free-shipping bar (.mm-fsn) and the shipping block sat after the
       floated billing rows without clearing them: the bar's background ran
       1084px up behind the whole form, "Pristatymas" touched its left edge;
     - the LP Express locker select2 squeezed next to its label (158px at 390),
       its text running under the arrow.
   ========================================================================= */

/* 3.1 "Ship to a different address" unchecked: the block is hidden before
   WooCommerce's script hides it. Checked, the rule stops matching. */
.woocommerce-shipping-fields:has(#ship-to-different-address-checkbox:not(:checked)) .shipping_address{
  display:none !important;
}

/* 3.2 Optional invoice-address rows start collapsed until MM-PASTOMAT inserts
   its toggle; from then on its own class decides (reveal keeps working). */
form.checkout:not(:has(#mm-addr-toggle)) :is(#billing_address_1_field, #billing_address_2_field, #billing_city_field, #billing_state_field, #billing_postcode_field):not(.validate-required){
  display:none !important;
}

/* 3.3 The shipping block and the free-shipping bar clear the floated rows. */
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout .wcf-customer-shipping, form.checkout .mm-fsn){
  clear:both !important;
}

/* 3.4 Locker picker on its own full-width line under "LP Express paštomatas: 2,50 €",
   text clear of the arrow. */
:is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li:has(select.woo_lithuaniapost_lpexpress_terminal_id)){
  flex-wrap:wrap !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li:has(select.woo_lithuaniapost_lpexpress_terminal_id) > br){
  display:none !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li label[for="woo_lithuaniapost_lpexpress_terminal_id"]){
  display:block !important;
  float:none !important;
  flex:0 0 100% !important;
  width:100% !important;
  margin:0 !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .woo_lithuaniapost_lpexpress_terminal_select_container){
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:8px 0 0 !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container){
  display:block !important;
  width:100% !important;
  max-width:100% !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection__rendered){
  padding-right:36px !important;
}

/* ============================================================================
   Part 4 — L2-033 (1.8.2): the locker picker on a real iPhone.
   ----------------------------------------------------------------------------
   Evaldas's iPhone screenshot 2026-09-24 12:26 (live 1.8.0), reproduced in
   Playwright WebKit, iPhone 13 profile (390x844, DPR 3), locker
   "Maxima - Žalioji g. 36, Gindulių k., Klaipėdos r.": the page scrolled to
   475px - the select2 sat beside "LP Express paštomatas: 2,50 €" at x 175..475
   (label, container and selection all 300px). Part 3 (1.8.1) already moves it
   to its own line (scrollWidth 390); this part keeps it there when the name is
   long, when :has() is missing, and when the list is open.
   ========================================================================= */

/* 4.1 Nothing in the locker line may be wider than the line: flex items drop
   their min-content floor, the chosen name ends in "..." instead of pushing. */
:is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li label[for="woo_lithuaniapost_lpexpress_terminal_id"], .woo_lithuaniapost_lpexpress_terminal_select_container, .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container, .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection){
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection__rendered){
  display:block !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}

/* 4.2 Browsers without :has() (iOS Safari before 15.4) never match 3.4's row
   rule: let the shipping rows wrap so the full-width label goes below. */
@supports not selector(:has(a)){
  :is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li){
    flex-wrap:wrap !important;
  }
  :is(#mm-q#mm-q#mm-q#mm-q, #shipping_method li > br){
    display:none !important;
  }
}

/* 4.3 The open list (select2 puts it under <body>) stays on screen and shows
   each locker's full name, wrapped. */
body.cartflows_step .select2-container--open .select2-dropdown{
  max-width:calc(100vw - 16px) !important;
  box-sizing:border-box !important;
}
body.cartflows_step .select2-container--open .select2-results__option{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

/* 4.4 2.1's 1px select was still 34-180px wide: border-box keeps its padding.
   At 1280 the copy in the order-summary table (x 1231..1411) widened the page
   to 1411px after the first payment switch. */
:is(#mm-q#mm-q#mm-q#mm-q, select.select2-hidden-accessible){
  padding:0 !important;
  min-width:0 !important;
}

/* ============================================================================
   Part 5 — L2-034 (1.8.3): the delivery block as one more luxury field.
   ----------------------------------------------------------------------------
   Evaldas 09-24: on desktop the block looked "unnatural", on the iPhone still
   not pretty. Measured on live 1.8.2 (WebKit 390, Chromium 1280): the locker
   box is already the country box (66px, 1px #e7d9c7, same arrow, text at 16px),
   but the line above it was 16px/400 grey "LP Express paštomatas:" with a
   black price, 16px above the box - where every other field has a 12px/500
   label 5px above. A free locker (L1-044) showed no price at all.
   manuka-luxury.php now wraps the name, a colon and "Nemokamai" in spans
   (.mm-ship-name / .mm-ship-sep / .mm-ship-free); this part lays them out in
   the form's delivery block only - the order summary keeps its own line.
   ========================================================================= */

/* 5.1 Name left, price right, one line, the field-label type. */
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method li > label:not([for="woo_lithuaniapost_lpexpress_terminal_id"])){
  display:flex !important;
  align-items:baseline !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 0 5px !important;
  padding:0 0 0 3px !important;
  font-family:var(--mm-sans) !important;
  font-size:12px !important;
  font-weight:500 !important;
  line-height:1.3 !important;
  color:#7a5b1e !important;                                  /* = "Šalis / Regionas" */
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method .mm-ship-name){
  min-width:0 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method .mm-ship-sep){
  display:none !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method li > label .amount){
  flex:none !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:600 !important;
  color:var(--mm-ink) !important;
}
/* 5.2 Free: the word in gold, where the price would be. */
:is(#mm-q#mm-q#mm-q#mm-q, .mm-ship-free){
  flex:none !important;
  white-space:nowrap !important;
  font-weight:600 !important;
  color:var(--mm-gold-deep) !important;                     /* 5,54:1 on cream */
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method .mm-ship-free){
  font-size:13px !important;
}
/* 5.3 The box sits 5px under its label, as the country box does (3.4's 8px
   margin plus the row's 8px flex gap made it 16). */
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping .woo_lithuaniapost_lpexpress_terminal_select_container){
  margin:0 !important;
}
:is(#mm-q#mm-q#mm-q#mm-q, .wcf-customer-shipping #shipping_method li){
  row-gap:0 !important;
}
/* 5.4 The free-shipping notice sits under the field, in the form's text size.
   Its emoji is removed by manuka-luxury.php (mm_luxury_fsn_no_emoji). */
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout .mm-fsn){
  margin:14px 0 0 !important;
  font-size:13px !important;
}

/* 1.13.0 (L2-051) soft opt-in: the notice sits on its own line above the "no offers" box,
   in the box label's own type, so the two read as one block. */
:is(#mm-q#mm-q#mm-q#mm-q, form.checkout .mm-optout .mm-optin-note){
  display:block;
  margin:0 0 6px;
  font-size:12px;
  line-height:1.5;
  color:var(--mm-ink-2, #5c5146);
}
