/* Flat white ground (no cards): suppress vendor box-shadows, page background is inherited */
body#checkout,
body#checkout #wrapper,
body#checkout #content,
#form_ets_onepagecheckout.ets-opc-modern,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid {
    box-shadow: none !important;
}

#form_ets_onepagecheckout.ets-opc-modern,
#form_ets_onepagecheckout.ets-opc-modern * {
    box-sizing: border-box;
}

/* Page shell — form column beside a persistent order recap.
   Reference: Claude Design "Furni" / Checkout.html.
   The site's own header and footer render around this; the reference's slim
   checkout chrome is deliberately not ported. */
#form_ets_onepagecheckout.ets-opc-modern {
    color: var(--cText);
    font-family: var(--ffPrimary), Arial, sans-serif;
    margin: 0 auto;
    max-width: var(--wDesctopMax);
    padding: 0;
    /* The checkout's body copy is 14px flat at every width (design spec:
       only the section title and the grand total step down at <=576).
       --fz-14 is a shared sitewide token that ramps to 13px in
       responsive/mobile.css, so half of this page's 14px rules rendered 13px
       on mobile while the ones written as literals stayed 14 — the two
       disagreed inside a single recap block. Re-declaring the token on the
       checkout root pins it for this subtree only; the sitewide ramp and
       every other page are untouched. */
    --fz-14: 14px;
    /* Same reasoning as --fz-14 above, for the input font-size: --fz-16 is
       16px sitewide but responsive/mobile.css ramps it to 15px at <=576, and
       the owner's Safari-auto-zoom deviation (16px inputs) depends on it
       staying 16 on this page at every width. Pin it here too, checkout-only. */
    --fz-16: 16px;
}

/* Owner override of the design, which specifies 400px / 80px: the recap column
   is widened to 430px and the gutter tightened to 50px. Recorded as an agreed
   deviation in the checkout design spec so a review does not read it as drift. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid {
    align-items: start;
    display: grid;
    gap: 50px;
    grid-template-columns: minmax(0, 1fr) 430px;
    padding: 0 24px; /* the grid's own gutter (.co-grid), the one place it lives */
}

/* The module's stylesheet adds a clearfix pseudo-element that would otherwise
   become a phantom grid item and open a third column. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid::after {
    content: none;
}

/* gap: 0 is deliberate — sections space themselves with one --section-gap of
   top padding (below), which is also what draws the boundary between them. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__main {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow: visible;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__sidebar {
    min-width: 0;
    position: sticky;
    top: 20px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding-top: 4px;
}

/* No cards. The design puts black text on a white ground and separates
   sections with air alone — no background, no border, no radius, no shadow,
   and explicitly no rule between them.
   This is a reset rather than a deletion because the chrome comes from vendor
   code we may not edit, from two different sources:
   1. onepagecheckout.css:395-397 gives every .block-onepagecheckout a static
      1px #b3ccd1 border and 5px radius (bare class, no !important — our
      selector's higher specificity beats it on its own).
   2. ets_onepagecheckout.php's getCssExtraDesign() inlines
      views/css/color.css into a <style> tag using the shop's admin-configured
      accent color; color.css:107 sets `.block-onepagecheckout { border: 1px
      solid ETS_OPC_DESIGN_COLOR3 !important }`. This one DOES carry
      !important, so the border declaration below needs it too — confirmed by
      testing without it (the coral border from that inline block reappeared).
      border-radius/background/box-shadow have no !important counterpart in
      either vendor source and don't need one. */
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout {
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow: visible;
    padding: 0;
}

/* The single source of inter-section spacing in the form column: one
   --section-gap of top padding per section (40 / 32 / 32 with the sitewide
   token), which also draws the boundary between them. Top-only, so the gap
   between two sections is exactly one token — not two stacked paddings — and
   so the last section doesn't push the column past the recap. The recap
   column's panels are spaced by their own stack, not by this. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__section {
    padding-top: var(--section-gap);
}

/* First visible section leads the column. .block-address rather than
   :first-child because .ets-opc-auth-store precedes it in the markup and is
   display:none — a :first-child rule would land on the hidden one. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__main > .block-address {
    padding-top: 4px;
}

#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .title-heading {
    align-items: center;
    border: 0 !important;
    border-radius: 0; /* vendor's card-era 4px top corners, invisible but still computed */
    color: var(--cBlack) !important;
    display: flex;
    font-family: var(--ffHeading), var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-h3);
    font-weight: 500;
    gap: 14px;
    letter-spacing: var(--ls-heading);
    line-height: 1.1;
    margin: 0 0 26px;
    min-height: 0;
    padding: 0;
    text-transform: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-step-title {
    font-size: var(--fz-h3);
    font-weight: 500;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-step-number {
    align-items: center;
    background: var(--cDanger);
    border-radius: 50%;
    color: var(--cWhite);
    display: inline-flex;
    flex: 0 0 28px;
    font-family: var(--ffHeading), var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-15);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 28px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-step-number--soft {
    background: var(--bgcLight);
    color: var(--cDanger);
}

#form_ets_onepagecheckout.ets-opc-modern .ets_icon_svg {
    color: var(--cDanger, #ee4719) !important;
    height: 20px;
    margin: 0;
    width: 20px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets_icon_svg svg {
    fill: currentColor !important;
    height: 20px;
    width: 20px;
}

/* Flush to the column. The 10px and 24px insets both belonged to the old card
   treatment; with no card edge there is nothing to inset from. */
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .block-content,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .address-selector,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .help-block,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .ets-opc-business-details {
    padding-left: 0;
    padding-right: 0;
}

/* Same flush treatment, but .js-address-form.shipping_address/.invoice_address
   (onepagecheckout.css:1098-1101, vendor — this scoped rule is the fix at the
   only source we own) sit one level deeper, inside .address-selector, so the
   > list above never reaches them. Left as 15px they made every address field
   30px narrower than #delivery_message and the contact fields beside it. The
   15px was only an edge inset from .address-selector, not the gap between
   fields — that's owned by the grid's own column-gap (below) and is untouched
   here, so fields keep their 22px separation. */
#form_ets_onepagecheckout.ets-opc-modern .js-address-form.shipping_address,
#form_ets_onepagecheckout.ets-opc-modern .js-address-form.invoice_address {
    padding-left: 0;
    padding-right: 0;
}

.shipping_address_form {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .help-block {
    color: var(--cTextLight2, #575757);
    font-size: var(--fz-14);
    padding-bottom: 10px;
}

#form_ets_onepagecheckout.ets-opc-modern .form-group.row,
#form_ets_onepagecheckout.ets-opc-modern .row.type-checkout-option {
    margin-left: 0;
    margin-right: 0;
}

/* No margin-bottom here: #customer-login and .js-address-form (below) are both
   CSS grids with their own row-gap:16px, and a same-specificity !important
   margin-bottom used to beat their non-important `> * { margin-bottom: 0 }`
   reset, doubling every row's vertical gap to 32px. Grid row-gap is the only
   spacing mechanism now. */
#form_ets_onepagecheckout.ets-opc-modern .form-group.row {
    display: block;
}

#form_ets_onepagecheckout.ets-opc-modern .form-group.row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex: 0 0 100%;
}

/* Grid layout for inline fields */
#form_ets_onepagecheckout.ets-opc-modern #customer-login,
#form_ets_onepagecheckout.ets-opc-modern .js-address-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
    row-gap: 16px;
}

#form_ets_onepagecheckout.ets-opc-modern #customer-login > *,
#form_ets_onepagecheckout.ets-opc-modern .js-address-form > * {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Make firstname, lastname, city, zip code, phone, country span 1 column */
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name*="firstname"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name*="lastname"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name*="postcode"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name*="city"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name*="phone"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(select[name*="id_country"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(select[name*="id_state"]) {
    grid-column: span 1 !important;
}

/* Specifically for guest layout if it contains multiple rows */
#form_ets_onepagecheckout.ets-opc-modern .block-customer .form-group.row.type-checkout-option {
    margin-bottom: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .block-customer span.checkbox,
#form_ets_onepagecheckout.ets-opc-modern .block-customer .ets_checkinput {
    margin: 0 !important;
    min-height: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .block-customer label.form-control-label.ets_checkinput {
    display: flex !important;
    gap: 8px;
    line-height: 1.35;
    padding: 0 !important;
    width: auto !important;
}

#form_ets_onepagecheckout.ets-opc-modern .block-customer .ets_checkbox {
    flex: 0 0 16px;
    margin-right: 0 !important;
}

/* .co-field is a 6px-gap stack: the label sits directly on the input with
   nothing above it and no side inset. The 8px top margin made every field 8px
   taller than the design (turning the grid's 16px row rhythm into 24px) and
   the 8px padding-left, which reached guest contact labels only, started their
   text 8px right of the address labels below them. */
#form_ets_onepagecheckout.ets-opc-modern label.form-control-label {
    color: var(--cText, #202120);
    display: block;
    font-size: var(--fz-14);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 6px;
    padding: 0;
    text-align: left;
}

/* The required asterisk is the page's only other red; vendor
   (onepagecheckout.css:926) paints it #ff3f3f, off the brand accent. */
#form_ets_onepagecheckout.ets-opc-modern label.form-control-label.required:after {
    color: var(--cDanger, #ee4719);
}

#form_ets_onepagecheckout.ets-opc-modern .form-control,
#form_ets_onepagecheckout.ets-opc-modern input.form-control,
#form_ets_onepagecheckout.ets-opc-modern select.form-control,
#form_ets_onepagecheckout.ets-opc-modern textarea.form-control,
#form_ets_onepagecheckout.ets-opc-modern #delivery_message,
#form_ets_onepagecheckout.ets-opc-modern #gift_message,
#form_ets_onepagecheckout.ets-opc-modern .promo-input {
    background: var(--cWhite, #fff);
    border: 1px solid var(--bdcPrimary, #dee1e0) !important;
    /* Radius and the 12px text inset match every other form on the site (and
       the checkout's own login modal); only the 16px size is checkout-specific.
       !important: onepagecheckout.css:843 forces 4px on the address fields. */
    border-radius: var(--bdrsPrimary, 6px) !important;
    color: var(--cText, #202120);
    font-family: var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-16); /* Figma checkout inputs 16 (also prevents iOS zoom) */
    min-height: 48px; /* spec: guest contact (47) and logged-in address (40) converge here */
    /* 40px on the right is the clearance the .form-ok tick needs: it is
       absolutely positioned at right:28px, and on the wrappers that carry no
       .col-md-8 vendor's own padding-right never applied, so a long value ran
       under the glyph.
       !important: onepagecheckout.css:847 sets `padding: 6px 12px !important`
       on `.block-onepagecheckout .js-address-form .form-control`, which is why
       address fields kept a 12px inset while contact fields took ours — the
       two field groups started their text 2px apart. (color.css, the inlined
       vendor source, declares no padding anywhere, checked before adding
       this.) The textarea and promo-code rules below have to match it. */
    padding: 0 40px 0 12px !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern textarea.form-control,
#form_ets_onepagecheckout.ets-opc-modern #delivery_message,
#form_ets_onepagecheckout.ets-opc-modern #gift_message {
    height: 80px; /* design: .co-input textarea height/min-height 80 (was 104, undone below only) */
    min-height: 80px;
    padding: 13px 12px !important; /* a textarea has no tick to clear, so no right reserve */
    resize: vertical;
}

#form_ets_onepagecheckout.ets-opc-modern .form-control:focus,
#form_ets_onepagecheckout.ets-opc-modern input.form-control:focus,
#form_ets_onepagecheckout.ets-opc-modern select.form-control:focus,
#form_ets_onepagecheckout.ets-opc-modern textarea.form-control:focus,
#form_ets_onepagecheckout.ets-opc-modern #delivery_message:focus,
#form_ets_onepagecheckout.ets-opc-modern #gift_message:focus,
#form_ets_onepagecheckout.ets-opc-modern .promo-input:focus {
    /* Soft grey halo (matches the cart page's own .frn-cart-summary__promo-input:focus).
       Design token is "ink-3", absent from our map; cart-redesign spec's own token
       table resolves ink-3 to var(--cText), so we reuse that rather than invent one.
       box-shadow needs !important: onepagecheckout.css's .js-address-form
       .form-control rule sets box-shadow:none!important unconditionally (not
       scoped to a non-focus state), so a plain declaration here is silently
       beaten by it regardless of our higher-specificity ID selector.
       No `outline` declaration here (or on the base rule): onepagecheckout.css
       already forces `outline: none !important` on the form and every
       descendant, so ours could never do anything. */
    border-color: var(--cText, #202120) !important;
    box-shadow: 0 0 0 3px rgba(45, 55, 50, .07) !important; /* ink-3 @ 7%, literal (no color-mix in 2022 baseline) */
}

/* !important: the flat border above is !important, and the vendor's
   .js-address-form rule forces box-shadow:none!important. */
#form_ets_onepagecheckout.ets-opc-modern .form-error input.form-control,
#form_ets_onepagecheckout.ets-opc-modern .form-error select.form-control,
#form_ets_onepagecheckout.ets-opc-modern .form-error textarea.form-control {
    border-color: var(--cError) !important;
    box-shadow: 0 0 0 2px rgba(196, 50, 10, 0.15) !important;
}

#form_ets_onepagecheckout.ets-opc-modern .form-error .ets_checkbox {
    border-color: var(--cError) !important;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-checkbox--error .frn-checkbox__checkmark {
    border-color: var(--cError) !important;
}

#form_ets_onepagecheckout.ets-opc-modern a {
    color: var(--cDanger, #ee4719);
}

#form_ets_onepagecheckout.ets-opc-modern .opc_hasaccount a {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--cTextLight2, #575757);
    padding: 0 0 4px;
}

/* One loader per request, the page-centred one. ETS marks each block .loading
   during its AJAX and paints its own treatment on top: a white veil
   (::before), a 32px spinning ring (::after, recoloured cyan by the inlined
   colour.css) and a 0.6 dim on the block's children — so a carrier change put
   a second and third spinner on screen beside the global one.

   Dropping it rather than the global overlay because the overlay is the one
   that always fires: custom.js hooks jQuery ajaxSend/ajaxComplete and fetch
   globally, excluding only search/autocomplete, so every checkout request is
   covered. The block treatment is redundant here, not a fallback.

   `pointer-events: none` from the vendor rule is deliberately left in place —
   only the visual dim is reset, so the block stays inert while a request is in
   flight even if the overlay is ever scoped down. */
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout.loading::before,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout.loading::after {
    content: none;
}

#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout.loading > * {
    opacity: 1;
}

/* Links darken to plain ink on interaction, as they do on every other page —
   the module tints them teal instead, from two places at once:
   onepagecheckout.css's `#form_ets_onepagecheckout a:hover` (#208094) and the
   admin-configured colour.css inlined by getCssExtraDesign()
   (`#ets_onepagecheckout a:hover`, #427e8d, !important). That inline <style>
   is injected after this file, so source order cannot win the tie — hence both
   the extra class for weight and the !important to match its own. */
#form_ets_onepagecheckout.ets-opc-modern a:hover,
#form_ets_onepagecheckout.ets-opc-modern a:focus,
#form_ets_onepagecheckout.ets-opc-modern a:active {
    color: var(--cText, #202120) !important;
}

/* No !important: neither vendor stylesheet (onepagecheckout.css or the
   inlined color.css, see ets_onepagecheckout.php::getCssExtraDesign()) puts
   an !important border on .delivery-option/.payment-option, only on
   .custom-radio and .block-onepagecheckout — so specificity alone is enough
   for the .is-checked override below to win.
   The delivery half is written as `.delivery-options .row.delivery-option`
   because onepagecheckout.css's `@media (max-width:767px)
   #form_ets_onepagecheckout .row.delivery-option:not(:last-child)` sets a
   15px margin-bottom that a shorter selector loses to — which is why the
   mobile gap between options was 15px, not the 12px declared here. Every
   other rule in this file that targets the option box itself carries the same
   longer selector so this one does not silently outrank them. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option,
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method .payment-option,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .payment-option {
    border: 1px solid var(--bdcPrimary, #dee1e0);
    border-radius: var(--bdrsPrimarySm, 4px);
    margin: 0 0 12px;
    padding: 0 18px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

/* Selected-state row border (design: .co-opt.on, our .is-checked). Toggled by
   assets/js/checkout-control-state.js since the relational pseudo-class
   `:has` is outside our 2022 baseline. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option.is-checked,
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method .payment-option.is-checked,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .payment-option.is-checked {
    border-color: var(--cDanger, #ee4719);
}

/* Was a second, identical-specificity `.delivery-option` rule here (margin:
   0px 10px 10px 15px; padding: 2px 0 2px — card-era residue: the 15px left
   margin cleared the old card's inner padding, and 2px padding was enough
   once the card supplied the rest). Being later in source, it silently won
   over the shared rule above on every property both set, so delivery options
   never got that rule's flush margin/16px padding — only payment options did.
   Deleted at source rather than neutralised with a third rule; the shared
   rule above now reaches .delivery-option like it always should have. */

#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option:hover,
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method .payment-option:hover,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .payment-option:hover {
    border-color: var(--cDanger, #ee4719) !important;
    box-shadow: none;
}

/* .delivery-option's label carries bootstrap's grid class col-sm-12
   (bootstrap.min.css), which brings its own `padding: 0 15px` — on top of the
   option's own intentional 16px (~:341), that was 31px before content
   started. Zeroed here rather than as a one-off: this rule already covers
   .payment-options label too, and that label has no bootstrap col class (no
   padding to disturb), confirmed by measurement.
   The :not() excludes Paysera's bank tiles: they are labels inside
   .payment-options too, but nested a level down inside the picker, where this
   rule's `flex: 1` and zeroed side padding are meant for the option row and
   flattened the tiles' own 10px inset. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-option label,
#form_ets_onepagecheckout.ets-opc-modern .payment-options label:not(.paysera-custom-btn) {
    cursor: pointer;
    margin: 0;
    flex: 1;
    padding-left: 0;
    padding-right: 0;
}

/* Shipping Flex Override */
#form_ets_onepagecheckout.ets-opc-modern .delivery-option label .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    width: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern .delivery-option .left_content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: auto;
    flex: 1;
}

#form_ets_onepagecheckout.ets-opc-modern .delivery-option .right_content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 0; /* .co-opt__end */
    width: auto;
    text-align: right;
}

#form_ets_onepagecheckout.ets-opc-modern .delivery-option .carrier-name-img {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Design draws the ring with a hairline double box-shadow (inset + outset,
   0.6px) rather than a 1px border — border: 0 !important still needed:
   color.css:90-92 (inlined, ETS_OPC_DESIGN_COLOR3, no !important of its own)
   would otherwise draw its own 1px border on top of the shadow ring. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio {
    border: 0 !important;
    border-radius: 50%;
    box-shadow: inset 0 0 0 .6px var(--bdcPrimary, #dee1e0), 0 0 0 .6px var(--bdcPrimary, #dee1e0);
    display: flex;
    flex: 0 0 16px;
    height: 16px;
    margin-right: 0;
    position: relative;
    width: 16px;
}

#form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio input[type="radio"],
#form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio input[type="radio"] {
    cursor: pointer;
    height: 16px !important;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 16px !important;
    z-index: 2;
}

/* left/top 50% + translate(-50%,-50%) centres the dot exactly regardless of
   size — the previous 37%/36% was an eyeballed correction that no longer
   centred a 9px dot (design: inset 3.5px on a 16px ring = a 9px dot). */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio input[type="radio"] + span,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio input[type="radio"] + span {
    background: transparent;
    border-radius: 50%;
    display: block;
    height: 9px;
    left: 50%;
    /* The vendor's :checked rule (onepagecheckout.css:~2260) nudges the dot with
       margin-left/-top: 2px, sized for its own 10px dot at top/left 0. We centre
       with translate instead, so that margin only shows up as a 2px down-right
       drift in the checked state. Zeroed here rather than in our :checked rule so
       both states share one source of truth. */
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
}

#form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio input[type="radio"]:checked + span,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio input[type="radio"]:checked + span {
    background: var(--cDanger, #ee4719) !important;
}

/* Make outer circle orange when checked to match modern UI. !important still
   needed here (unlike the row border above): the base .custom-radio rule
   above (~:432) carries its own !important, so this override must match it
   for specificity to be the tiebreaker. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio.is-checked,
#form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio.is-checked {
    box-shadow: inset 0 0 0 .6px var(--cDanger, #ee4719), 0 0 0 .6px var(--cDanger, #ee4719) !important;
}

/* onepagecheckout.css and the admin-configured colour.css (inlined by
   ets_onepagecheckout.php::getCssExtraDesign(), invisible to a grep of loaded
   stylesheets) both carry `#form_ets_onepagecheckout .row.delivery-option
   span.carrier-delay`. Neither has !important, but both outrank a short
   selector here — so the carrier-delay branch is spelled out at matching
   length instead. Doing that for the colour with !important alone was the
   half-fix that left font-size losing to vendor's 13px. The colour keeps its
   !important because the .carrier-price branch below re-declares it and both
   sides must be weighted the same for specificity to break the tie. */
#form_ets_onepagecheckout.ets-opc-modern .carrier-price,
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option span.carrier-delay {
    color: var(--cTextLight2, #575757) !important;
    font-size: var(--fz-14); /* design: .co-opt__end and its small are both 14, flat at every band */
    margin: 0;
    padding-left: 0 !important;
}

/* Split out of the rule above, which it used to share. The `padding-left: 0
   !important` there existed only to cancel vendor's inset on this element
   (onepagecheckout.css gives it `padding-left: 20px`, and 2rem in the column
   variant) — but an !important cannot then be reopened by the panel rules
   below, which need real padding on all four sides. Every
   .additional-information on the page sits inside .ets_payment_method and gets
   a panel, so the cancel is no longer needed; the panel supplies the inset and
   outweighs vendor on specificity alone. */
#form_ets_onepagecheckout.ets-opc-modern .additional-information {
    color: var(--cTextLight2, #575757) !important;
    font-size: var(--fz-14);
    margin: 0;
}

/* .co-opt__end small: the price is the emphasised line (500/ink/block), the
   delay text beneath it stays plain — inverted from how it used to render. */
#form_ets_onepagecheckout.ets-opc-modern .carrier-price {
    color: var(--cText, #202120) !important;
    display: block;
    font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Payment option panels — design: .co-opt-wrap + .banks

   The design draws the bank grid as part of the payment option it belongs to:
   one outline wraps the row and the grid together. Applied to every payment
   method's additional information, not only Paysera's — bank-transfer
   instructions and the cash-on-delivery line are the same kind of content,
   belonging to the option above them, and reading them as one control is what
   the owner asked for. (The design keeps those two flat, as .co-flat; this is
   a deliberate departure.)

   ETS renders the two halves as siblings inside .ets_payment_method
   (payment_methods.tpl: .payment-option, then .additional-information), so the
   join has to be drawn rather than nested — the row gives up its bottom edge
   and lower corners, and the panel picks the outline back up with no top
   border.

   .has-nested-info is set by assets/js/checkout-control-state.js on any
   .ets_payment_method whose additional information is non-empty; a method with
   nothing to say must not draw an empty box. It can't be `:has()` for the same
   reason .is-checked exists: relational selectors are outside our 2022
   baseline.
   --------------------------------------------------------------------------- */
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method.has-nested-info .additional-information {
    border: 1px solid var(--cDanger, #ee4719);
    border-radius: 0 0 var(--bdrsPrimarySm, 4px) var(--bdrsPrimarySm, 4px);
    border-top: 0;
    margin-top: 0;
    padding: 16px 18px 18px;
}

/* :hover is spelled out and !important-ed only for the bottom edge: the shared
   .payment-option:hover rule (~:449) sets border-color on all four sides with
   !important, which would otherwise redraw the edge this join removes. */
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method.has-nested-info .payment-option.is-checked,
#form_ets_onepagecheckout.ets-opc-modern .ets_payment_method.has-nested-info .payment-option.is-checked:hover {
    border-bottom-color: transparent !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* The panel owns the inset now, so the .co-flat paragraph rule's own 12px
   symmetric padding would double it. Paragraphs keep their rhythm through
   margin between siblings instead. */
#form_ets_onepagecheckout.ets-opc-modern .has-nested-info .additional-information p {
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .has-nested-info .additional-information p + p {
    margin-top: 10px;
}

/* The same join on the delivery side — design: .co-nest. The courier's add-on
   services (z_offers, rendered into #courier-additional-services-wrapper by
   shippings.tpl) belong to the option that owns them. The marker sits on the
   option row itself here, not on a parent: the carrier list has no per-option
   wrapper, and adding one would change a structure ETS's own JS walks. */
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option.has-nested-info.is-checked,
#form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option.has-nested-info.is-checked:hover {
    border-bottom-color: transparent !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    /* The panel's outline appears at once when z_offers answers; a fading bottom
       edge would cross the join for 0.16s. */
    transition: box-shadow 0.16s ease;
}

/* The 12px that separated the option from the next one moves down here, so the
   joined pair keeps the list's rhythm. custom.js hides the wrapper whenever a
   carrier other than the courier is selected, which is also when the row above needs its own
   bottom edge back — hence keying the rule above on .is-checked.
   .has-offers (checkout-control-state.js) draws the outline only once z_offers has filled
   the wrapper: it arrives empty and is filled ~1s later over AJAX, and the bare outline
   showed as a detached 35px box under the still-closed option row. */
#form_ets_onepagecheckout.ets-opc-modern #courier-additional-services-wrapper.has-offers {
    border: 1px solid var(--cDanger, #ee4719);
    border-radius: 0 0 var(--bdrsPrimarySm, 4px) var(--bdrsPrimarySm, 4px);
    border-top: 0;
    margin-bottom: 12px;
    padding: 16px 18px 18px;
}

/* The tile rules stay on Paysera's own namespace rather than the checkout
   scope: .paysera-payment-choice-extension is emitted by the module's
   hookPaymentOptions, so it also renders on PrestaShop's native order
   controller, and the grid should look the same there. */
.paysera-payment-choice-extension .paysera-container {
    padding: 0;
}

/* design: .banks__t — a muted caption, not a heading; it labels the grid
   rather than opening a section, so it stays at body size and body weight.
   The checkout-scoped twin carries an id because `.block-onepagecheckout
   .additional-information p` (~:1900, the .co-flat rule for the plain
   descriptions other payment methods render) matches this paragraph too, sits
   later in the file, and would otherwise impose its own margin and 12px
   symmetric padding — the caption needs space below it only. */
.paysera-payment-choice-extension .paysera-custom-title,
#form_ets_onepagecheckout .paysera-payment-choice-extension .paysera-custom-title {
    color: var(--cTextLight2, #575757);
    font-size: var(--fz-14);
    font-weight: 400;
    margin: 0 0 12px;
    padding: 0;
}

/* Tiles are sized to the owner's 170px, which is what decides how many fit per
   row — four in the widest payment column, so six banks wrap to 4 + 2 rather
   than sitting on one line. Every track is the same width either way, so both
   rows match.

   auto-FIT, not auto-fill: the bank list is configuration-driven, so the row
   has to survive a bank being added or dropped — but auto-fill keeps the empty
   tracks it created, leaving dead space trailing the row instead of letting
   the tiles stretch to the panel's full width. */
.paysera-payment-choice-extension .paysera-custom-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* The checkout-scoped twin outweighs onepagecheckout.css's
   `body#checkout section.checkout-step .payment-options label{ display:block }`
   — a block tile centres nothing. That selector is (1,2,3), so the twin needs
   both the id and .ets-opc-modern to win on the class column; the id alone
   ties and loses on element count. */
.paysera-payment-choice-extension .paysera-custom-btn,
#form_ets_onepagecheckout.ets-opc-modern .paysera-payment-choice-extension .paysera-custom-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--bdcPrimary, #dee1e0);
    border-radius: var(--bdrsPrimarySm, 4px);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    position: relative;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

/* Grey, not the accent: hover on a tile must not read as "selected" when five
   siblings sit next to it. */
.paysera-payment-choice-extension .paysera-custom-btn:hover {
    border-color: var(--cTextLight, #6f6a68);
}

/* Transparent but tile-sized, rather than the 0×0 it used to be, so the focus
   ring below traces the tile instead of collapsing to a dot in its corner. */
.paysera-payment-choice-extension .paysera-custom-btn input[type="radio"] {
    cursor: pointer;
    height: 100%;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.paysera-payment-choice-extension .paysera-custom-btn.is-checked {
    border-color: var(--cDanger, #ee4719);
    box-shadow: inset 0 0 0 1px var(--cDanger, #ee4719);
}

/* onepagecheckout.css blanket-kills focus rings for the whole form
   (`form#form_ets_onepagecheckout *{ outline: none !important }`). That is an
   id selector, so no number of classes outranks it — the checkout-scoped
   selector is spelled out alongside the module-scoped one purely to carry an
   id of its own. The :not(:focus-visible) pair is the usual progressive
   fallback: browsers without :focus-visible drop that rule as invalid and keep
   the ring on every focus, which is the safe way to fail. */
.paysera-payment-choice-extension .paysera-custom-btn input[type="radio"]:focus,
#form_ets_onepagecheckout .paysera-custom-btn input[type="radio"]:focus {
    outline: 2px solid var(--cText, #202120) !important;
    outline-offset: 2px;
}

.paysera-payment-choice-extension .paysera-custom-btn input[type="radio"]:focus:not(:focus-visible),
#form_ets_onepagecheckout .paysera-custom-btn input[type="radio"]:focus:not(:focus-visible) {
    outline: none !important;
}

.paysera-payment-choice-extension .paysera-custom-img-wrap {
    align-items: center;
    display: flex;
    height: auto;
    justify-content: center;
    max-width: 100%;
}

/* Capped to one optical height so no single wordmark out-shouts the row.
   margin:0 is load-bearing, not tidying: onepagecheckout.css gives every image
   under .js-additional-information `margin-right:8px; margin-bottom:5px` (sized
   for the inline logo it expects beside a payment label). On a centred flex
   item that margin is counted in the centring, so the mark sat 4px left and
   2.5px high of the tile's middle — half of each margin, on every tile. */
.paysera-payment-choice-extension .paysera-custom-img-wrap img {
    display: block;
    margin: 0;
    max-height: 22px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

/* Paysera's Inbank images share the banks' 150×38 canvas, but the mark fills
   only its middle, so at the banks' 22px cap it read visibly smaller. A taller
   cap evens the marks out; the tile box itself is unchanged. */
.paysera-payment-choice-extension.furni-paysera-financing .paysera-custom-img-wrap img {
    max-height: 38px;
}

#form_ets_onepagecheckout.ets-opc-modern .custom-radio input[type="radio"],
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout .custom-radio input[type=radio] {
    accent-color: var(--cDanger, #ee4719);
}

/* Not a panel: the terms line and the CTA sit directly in the recap column,
   flush with its edges, so the button spans the full width. Owner set the gap
   above it to 10px, replacing the stack's since-removed 26px. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__footer {
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    margin-top: 10px;
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve {
    margin: 0 0 18px;
}

/* The terms row is a flex line; the unticked-terms message (added by
   ets-onepagecheckout-modern.js) wraps onto its own line under it, its icon
   at the row's left edge like every other field error (owner, 2026-11-19). */
#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve li {
    flex-wrap: wrap;
}

#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve .frn-terms-error {
    flex-basis: 100%;
}

/* .frn-checkbox/.frn-checkbox__checkmark (all_styles.css) are shared
   sitewide, so the terms row is re-styled here rather than at that shared
   source. Two changes ship together, coupled: raising line-height to 1.5
   only optically centres a 16px box against the (now taller) text line if
   the box also leaves position:absolute for an in-flow flex item with its
   own margin-top — doing one without the other misaligns the box. */
#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve label.frn-checkbox {
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    padding-left: 0;
}

/* The terms link sits inside the consent sentence, so it drops the base
   rule's leading gap (the template already has a space before it). */
#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve .frn-checkbox a {
    margin-left: 0;
}

#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve .frn-checkbox__checkmark {
    border: 0;
    box-shadow: inset 0 0 0 1px var(--cBlack, #1a1b1a);
    flex: 0 0 16px;
    height: 16px;
    margin-top: 2px;
    /* relative, not static: still an in-flow flex item, but stays the
       positioning context for its own :after checkmark glyph (top/left) */
    position: relative;
    width: 16px;
}

#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve ul,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve li {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

#form_ets_onepagecheckout.ets-opc-modern .checkout.card-block {
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .btn-primary,
#form_ets_onepagecheckout.ets-opc-modern button[name="submitCompleteMyOrder"] {
    border-radius: 24px;
    color: var(--cWhite, #fff);
    font-family: var(--ffHeading), var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-16);
    font-weight: 500;
    padding: 7px 18px;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

#form_ets_onepagecheckout.ets-opc-modern button[name="submitCompleteMyOrder"] {
    width: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern .btn-primary:hover,
#form_ets_onepagecheckout.ets-opc-modern button[name="submitCompleteMyOrder"]:hover {
    background: #2f3232e6 !important;
    border-color: #2f3232e6 !important;
}

#form_ets_onepagecheckout.ets-opc-modern .safe_icon {
    display: block;
    margin: 12px auto 0;
    max-height: 28px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .cart-grid,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .row,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .card {
    margin-left: 0;
    margin-right: 0;
}

/* Bootstrap column padding on the recap's wrappers. Zeroed at every width, not
   only below 996: the leftover 10px pushed the product line and the totals
   block 10px right of the recap heading and the submit button, giving one
   column three left edges. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .cart-grid-body,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .col-xs-12,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary .col-lg-12 {
    float: none;
    max-width: none;
    padding: 0;
    width: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-overview,
#form_ets_onepagecheckout.ets-opc-modern .cart-container,
#form_ets_onepagecheckout.ets-opc-modern .cart-summary {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
}

#form_ets_onepagecheckout.ets-opc-modern hr,
#form_ets_onepagecheckout.ets-opc-modern .separator {
    border-style: solid !important;
    border-color: var(--bdcPrimaryLight, #f0f2f1) !important;
}

#form_ets_onepagecheckout.ets-opc-modern hr.separator {
    display: none !important;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-overview .cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-item {
    border-bottom: 1px solid var(--bdcPrimary, #dee1e0);
    margin: 0;
    padding: 0 0 18px;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-item:last-child {
    border-bottom: 0;
}

/* "Rodyti visas prekes" under a long cart (setupCartMore). CSS cuts the lines
   after the 3rd, so the first paint is already clipped and the totals do not
   jump when the deferred script runs; cart.tpl renders the button for the same
   count and the script only toggles .is-expanded. An <hr> the vendor adds after
   a multi-customization line goes with its line. While clipped, the 3rd line
   is not :last-child, so its own border-bottom separates the button; once
   expanded the last line has none and the button draws it. */
#form_ets_onepagecheckout.ets-opc-modern #ets-opc-cart-items:not(.is-expanded) .cart-items > li:nth-of-type(n+4),
#form_ets_onepagecheckout.ets-opc-modern #ets-opc-cart-items:not(.is-expanded) .cart-items > li:nth-of-type(n+4) + hr,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more[hidden] {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more {
    align-items: center;
    background: none;
    border: 0;
    color: var(--cText);
    cursor: pointer;
    display: flex;
    font-family: var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-14);
    font-weight: 500;
    justify-content: center;
    letter-spacing: normal;
    padding: 14px 0;
    width: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more[aria-expanded="true"] {
    border-top: 1px solid var(--bdcPrimary, #dee1e0);
}

@media (hover: hover) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more:hover .ets-opc-cart-more__label {
        text-decoration: underline;
    }
}

/* !important for the same reason as the Paysera radio focus rule above: the
   vendor's id-scoped `outline: none !important` covers the whole form. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more:focus {
    outline: 2px solid var(--cText, #202120) !important;
    outline-offset: 2px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more:focus:not(:focus-visible) {
    outline: none !important;
}

/* margin, not flex gap: older Safari/Chromium ignore gap on flex rows. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more__chevron {
    flex-shrink: 0;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more[aria-expanded="true"] .ets-opc-cart-more__chevron {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-more__chevron {
        transition: none;
    }
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid {
    align-items: flex-start;
    display: grid !important;
    gap: 16px;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line > [id^="js-product-line-alert--"] {
    grid-column: 1 / -1;
    min-width: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line > .clearfix {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__body,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-left,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-body,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-right {
    float: none !important;
    max-width: none !important;
    padding: 0 !important;
    width: auto !important;
}

/* margin: vendor gives the thumb's wrapper a 10px right margin, which inside
   the fixed thumb track pushed the image out of its own column. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-left {
    grid-column: 1;
    margin: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__body,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-body {
    grid-column: 2;
    min-width: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-right {
    min-width: 0;
}

/* 3:2 landscape, not a square: the cart thumbnail PrestaShop serves here is
   cart_default (188x125 = 3:2), so a square box cropped every product image.
   Sized off the line's own body, which measures 106px tall with a one-line
   title and ~124px with two — 88px keeps the image the tallest thing in the
   thumb column without outgrowing the text beside it. Stated as explicit
   width/height rather than aspect-ratio, which the older Chromium versions in
   this shop's traffic don't support (see the mobile compatibility audit). */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image .product-image,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-left .product-image {
    background: var(--cWhite, #fff);
    box-sizing: border-box;
    border: 1px solid var(--bdcPrimaryLight, #f0f2f1);
    border-radius: var(--bdrsPrimarySm, 4px); /* .co-thumb: 2px in the design, 4px is the project's input/box radius */
    display: block;
    height: 88px;
    margin: 0; /* vendor's layout_4 rule hangs a 15px bottom margin off the image */
    overflow: hidden;
    width: 132px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image img,
#form_ets_onepagecheckout.ets-opc-modern .product-line-grid-left .product-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.block-onepagecheckout .product-line-grid-body .product-line-info {
    margin-bottom: 0;
}

.block-onepagecheckout .product-line-grid .product-line-grid-body {
    font-size: var(--fz-14);
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__top,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions {
    display: flex !important;
    justify-content: space-between;
    gap: 10px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__top {
    align-items: flex-start;
}

/* .co-line__foot: the quantity and the price sit on one shared baseline.
   `flex-end` (the design's literal value) lines up the two boxes, which is not
   the same thing when they carry different type — 14px/21.7 against 16px/24.8
   left the price's text riding 1.1px above the quantity's even though the box
   bottoms matched exactly. `baseline` aligns the text itself, so it holds at
   every width and would survive either side changing size. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions {
    align-items: baseline;
    margin-top: 10px;
}

#form_ets_onepagecheckout.ets-opc-modern .product_info_name .label {
    color: var(--cText, #202120) !important;
    display: block;
    font-size: var(--fz-14);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 5px;
    padding: 0;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line .product-price,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line .current-price,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line .price {
    color: var(--cText, #202120) !important;
    font-weight: 600;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__attributes,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__customizations {
    color: var(--cTextLight2, #575757);
    font-size: var(--fz-14);
    line-height: 1.35;
    margin-top: 6px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__attributes .label,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__attributes .value {
    color: inherit;
    display: inline;
    font-size: inherit;
    font-weight: 400;
    padding: 0;
    white-space: normal;
    word-break: normal;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__attributes .product-line-info {
    display: block;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-line-product-actions .remove-from-cart {
    align-items: center;
    color: var(--cTextLight, #989695);
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-line-product-actions .remove-from-cart:hover {
    color: var(--cDanger, #ee4719);
}

#form_ets_onepagecheckout.ets-opc-modern .cart-line-product-actions .ets_icon_svg,
#form_ets_onepagecheckout.ets-opc-modern .cart-line-product-actions svg {
    height: 16px;
    width: 16px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions .qty {
    flex: 0 0 auto;
}

/* Quantity picker Figma style */
#form_ets_onepagecheckout.ets-opc-modern .qty .input-group.bootstrap-touchspin {
    display: flex;
    align-items: center;
    border: 1px solid var(--bdcPrimaryLight, #f0f2f1) !important;
    border-radius: var(--bdrsPrimarySm, 4px) !important;
    height: 32px;
    width: 90px;
    background: #fff;
    overflow: hidden;
}

#form_ets_onepagecheckout.ets-opc-modern .qty .input-group-btn {
    height: 100%;
}

#form_ets_onepagecheckout.ets-opc-modern .qty .btn-touchspin {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--cText, #202120) !important;
    height: 100%;
    width: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#form_ets_onepagecheckout.ets-opc-modern .qty .btn-touchspin:hover {
    color: var(--cDanger, #ee4719) !important;
}

#form_ets_onepagecheckout.ets-opc-modern .form_total_price {
    color: var(--cText, #202120) !important;
    font-size: var(--fz-16); /* Figma "Toliau:" total 16 Medium */
    font-weight: 400;
    margin-left: auto;
    text-align: right;
}

/* margin-top explicitly zeroed (not just omitted): onepagecheckout.css:754
   sets margin-top:10px on this exact selector and, lacking !important, would
   otherwise still win merely because our rule no longer contests the
   property. The 18px gap above the totals rule is the last recap line's own
   padding-bottom (.cart-item, ~:613) — stacking the vendor's 10px on top of
   that doubled it to 26px. */
#form_ets_onepagecheckout.ets-opc-modern .cart-detailed-totals {
    border-top: 1px solid var(--bdcPrimary, #dee1e0);
    margin-top: 0;
    padding-top: 16px;
}

/* .frn-cart-summary__total/__rows/__vat (cart.css) are shared with the
   /krepselis cart page, which has its own, separately-approved spec
   (docs/superpowers/plans/2026-07-29-cart-redesign.md) pinning these at
   18/18, 12px and 8px respectively — those values are correct there and
   must not change. The checkout design spec wants different numbers
   (5/16, 11px, 11px), so they're overridden here, scoped to the checkout
   form only, rather than edited at the shared source. */
#form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__total {
    margin-top: 5px;
    padding-top: 16px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__rows {
    gap: 11px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__vat {
    margin-top: 11px;
}

/* Owner override of the design's .co-eta 9px and the cart's 11px wrapper: in
   the checkout recap the delivery line is just the next line under the product
   code, on the same rhythm as the rows around it. Both margins collapsed into
   one 11px step, so both have to go. cart.css keeps its 11px for /krepselis. */
#form_ets_onepagecheckout.ets-opc-modern .frn-product-item-cart__estimate {
    margin-top: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-detailed-totals .card-block {
    padding: 0;
}

/* The only remaining consumer of this class is the applied-voucher row
   (cart-voucher.tpl) — the itemised total rows moved to
   .frn-cart-summary__row (~:851) after the shared-partial refactor, leaving
   this rule's 16px stale and inconsistent with every row around it. */
#form_ets_onepagecheckout.ets-opc-modern .cart-summary-line {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--cText, #202120);
    font-size: var(--fz-14);
    margin: 0 0 10px;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-summary-line .label,
#form_ets_onepagecheckout.ets-opc-modern .cart-summary-line .value {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    padding: 0;
    text-align: right;
    white-space: normal;
}

#form_ets_onepagecheckout.ets-opc-modern .cart-summary-line > .label {
    margin-right: auto;
    text-align: left;
}

/* Hides the shipping row's hook-output wrapper when displayCheckoutSubtotalDetails renders
   nothing. Retargeted from .cart-summary-line to .frn-cart-summary__row: the totals rows moved
   to that class (reused from cart.css) so the recap reads as the same component as the cart;
   this is the only remaining consumer of the div>small shape, so the selector moves with it. */
#form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__row > div:empty,
#form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__row > div:has(small:empty) {
    display: none !important;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-cart-summary__voucher {
    margin-top: 0;
    margin-bottom: 0;
}

/* Zeroed, not inherited: .block-promo does not exist in the server-rendered
   page — the vendor's on-load `?ajax=1&action=refresh` inserts it. Any vertical
   margin here therefore appears mid-load and drops everything below it, which
   is what made the CTA visibly jump on every refresh. onepagecheckout.css
   carries its own 5px copy under ≤767, so this has to hold at all widths. */
#form_ets_onepagecheckout.ets-opc-modern .block-promo {
    margin-bottom: 0;
    margin-top: 5px;
}

#form_ets_onepagecheckout.ets-opc-modern .block-promo .promo-code form {
    display: flex;
    gap: 8px;
    margin: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .block-promo .promo-input {
    min-width: 0;
    border-style: solid !important;
    padding: 0 12px !important; /* no validation tick on this field, so no right-hand reserve */
}

/* Consolidated with a second, identical-selector copy further down (only set
   min-height: 40px) — same shape as the other duplicate-selector fixes in
   this file: that later rule silently won the min-height tie-break, so 40px
   (not 42px) is what has actually been rendering. Merged into one rule at
   that already-live value rather than leaving two copies of the same
   selector to re-diverge later. */
#form_ets_onepagecheckout.ets-opc-modern .block-promo .btn-primary {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
}

#form_ets_onepagecheckout.ets-opc-modern .block-promo .ets_icon_scices {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-promo-toggle-wrap {
    margin-bottom: 0;
}

#form_ets_onepagecheckout.ets-opc-modern #promo-code {
    margin-top: 12px;
    margin-bottom: 12px;
}

#form_ets_onepagecheckout.ets-opc-modern .js-toggle-promo-code {
    color: var(--cText, #202120);
    font-size: var(--fz-14);
    text-decoration: underline;
    display: inline-block;
}

#form_ets_onepagecheckout.ets-opc-modern .js-toggle-promo-code:hover {
    color: var(--cDanger, #ee4719);
}

/* margin-top matches .js-toggle-promo-code's own 14px (the design's .co-code,
   the gap for whatever follows the summary). These two swap places: with no
   voucher the toggle link sits 14px under the last totals row, and once one is
   accepted this list takes that slot — it was landing flush against the VAT
   line with nothing between them.

   `ul` is in the selector to carry weight, not to describe: the generic list
   reset at ~:897 (`.block-onepagecheckout ul { margin: 0 }`) is (1,3,1) and
   beat a classes-only selector here. Matching its shape ties the specificity,
   which source order then settles in this rule's favour. The reset keeps
   owning list-style and padding — only the margin is reopened. */
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout ul.promo-name,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout ul.promo-discounts {
    margin-bottom: 12px;
    margin-top: 14px;
}

/* Amount and remove control sit on one line beside the voucher name. The
   wrapper was a plain block, so in the ~66px the name left it the trash icon
   dropped under the figure; as an inline flex row it takes its own width and
   the name wraps instead, which it has the room to do. */
#form_ets_onepagecheckout.ets-opc-modern .promo-name .cart-summary-line .float-xs-right {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

#form_ets_onepagecheckout.ets-opc-modern .promo-name .cart-summary-line .label {
    min-width: 0;
}

/* Centring the link is not the same as centring the glyph inside it: the icon
   is vertical-align: baseline, so a 16px mark sat on the baseline of the
   link's 21px line box and rendered 2.75px above the figure beside it. Making
   the link a flex box collapses it to the icon's own height, which the row's
   align-items then centres against the amount for real. */
#form_ets_onepagecheckout.ets-opc-modern .promo-name .cart-summary-line .float-xs-right a {
    align-items: center;
    display: flex;
}

#form_ets_onepagecheckout.ets-opc-modern .promo-name .cart-summary-line .float-xs-right a .material-icons {
    display: block;
    line-height: 1;
}

#form_ets_onepagecheckout.ets-opc-modern .block-comment label,
#form_ets_onepagecheckout.ets-opc-modern .block-gift label {
    color: var(--cText, #202120);
    font-size: var(--fz-14);
    font-weight: 400;
}

#form_ets_onepagecheckout.ets-opc-modern .block-displayReassurance {
    padding: 18px;
}

#form_ets_onepagecheckout.ets-opc-modern .alert {
    border-radius: var(--bdrsPrimary, 6px);
}

.block-onepagecheckout ul.cart-items {
 border:none !important;
}

.block-onepagecheckout .block-promo .promo-code form {
    padding: 0 !important;
}

.cart-voucher.ets-cart-voucher {
    padding: 0;
}

#ets_onepagecheckout > aside > div > div.block-onepagecheckout.block-comment.ets-opc-modern__summary-card > div.block-content {
    padding: 0;
}

.payment-option img,.js-additional-information img {
    max-width: 100% !important;
}

/* This rule and .payment-options > div (below, near the other payment-options
   rules) both matched the same three elements — .ets_payment_method is the
   only kind of direct-child div .payment-options ever has (verified against
   the template; the sole exception is a "no payment methods" fallback .alert,
   handled separately below). Same-specificity + later source order meant
   `> div` always won, silently discarding this declaration's 10px 15px 0px on
   every side. Scoped like its neighbours (this bare selector was the odd one
   out in the file) so it actually wins now, and consolidated into one rule:
   0 left/right removes the vendor-shaped card inset, 10px bottom is kept
   because it is the only thing separating stacked payment methods (they carry
   no margin of their own). */
#form_ets_onepagecheckout.ets-opc-modern .payment-options .ets_payment_method {
    padding: 0 0 12px;
}

.ets_payment_method label {
    font-size: var(--fz-14);
    font-weight: 500;
}

#form_ets_onepagecheckout .row.delivery-option .carrier-name {
    font-size: var(--fz-14);
    font-weight: 500;
}

.block-onepagecheckout.block-address div#delivery-addresses input.form-control, .block-onepagecheckout.block-address div#invoice-addresses input.form-control, .block-onepagecheckout.block-address div#delivery-addresses select.form-control, .block-onepagecheckout.block-address div#invoice-addresses select.form-control, .type-checkout-option input.form-control {
    font-size: var(--fz-16);
}

.frn-button-login {
    font-size: var(--fz-14)!important;
    color: var(--cWhite) !important;
    background-color: #1a1b1a !important;
    width: unset;
    padding: 13px 30px !important;
    text-transform: unset !important;
}

.frn-button-login:hover {
    color: var(--cWhite) !important;
    background-color: #2f3232e6 !important;
}

.js-payment-option-form {
    border: none;
    padding: 0 !important;
}

/* Mid-band tier — design spec "### 577–996px". Our two pre-existing
   breakpoints are 991 and 767; 996 is 5px from 991 and is given its own tier
   here rather than a third near-duplicate number folded awkwardly into 991.
   This tier's range (577–996) genuinely overlaps the "≤991" tier below
   (577–991, not just a sliver near 991) — both are real @media blocks, so at
   any width ≤991 BOTH apply. Resolved the ordinary CSS way: ≤991 is declared
   AFTER this tier, so it wins the properties both set (grid-template-columns,
   gap), while this tier's other properties (card/title/fields/line/thumb
   sizing, the grid's own gutter) are untouched by ≤991 and keep applying down
   through 577. Only the 992–996px sliver ever renders this tier's own
   two-column grid-template-columns/gap on their own — one of our required
   test widths (992) lands inside it, so it is exercised, not theoretical. */
@media (max-width: 996px) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid {
        gap: 44px;
        grid-template-columns: minmax(0, 1fr) 330px; /* owner decision for this band (see checkout design spec) */
        padding: 0 20px; /* the ONE gutter for the grid — per-block insets below are deleted, not duplicated */
    }

    /* Section spacing is not restated per tier: --section-gap already steps
       down to 32px on its own at the sitewide tablet/mobile breakpoints. */

    #form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .title-heading {
        font-size: 24px; /* checkout-scoped: spec keeps 24 down to 577; --fz-h3's shared tablet/mobile steps (20/18) don't. See agent_rules Rule #5 — not touching the sitewide token. */
        margin-bottom: 20px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__total span:last-child {
        font-size: 20px; /* checkout-scoped: --fz-h4 (shared sitewide, 20/18/18) doesn't match this spec's flatter ramp (20 down to 577, 19 only <=576) */
    }

    /* .ets-opc-contact-grid's own gap: NOT set here — its base declaration
       (~line 1407, "Step 1 guest labels" section) sits after this block in
       the file and would win the tie at equal specificity. Set instead in a
       second, small 996-tier block near the end of the file, after every
       base rule it could tie with. */
    #form_ets_onepagecheckout.ets-opc-modern #customer-login,
    #form_ets_onepagecheckout.ets-opc-modern .js-address-form {
        gap: 14px 18px;
    }

    /* Thumb keeps its base 132x88; only the gutter beside it opens up, because
       the recap panel is wider here than the 430px desktop sidebar. */
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line,
    #form_ets_onepagecheckout.ets-opc-modern .product-line-grid {
        column-gap: 18px;
    }
}

@media (max-width: 991px) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid {
        gap: 0;
        grid-template-columns: 1fr;
    }

    /* .co-side collapsed-layout separator — previously nothing marked where
       the recap begins once it drops below the form; only the grid's own gap
       (now zeroed above) separated them. */
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__sidebar {
        border-top: 1px solid var(--bdcPrimary, #dee1e0);
        margin-top: 44px;
        padding-top: 34px;
        position: static;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__footer:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    #form_ets_onepagecheckout.ets-opc-modern .block-promo .promo-code form {
        flex-direction: column;
    }
    .product-line-grid-right .qty:before,.product-line-grid-right .form_price:before,.product-line-grid-right .form_total_price:before,.ets_onepagecheckout_col .product-line-grid-right.product-line-actions:before {
        content: none !important;
    }

    .ets_remove_cart {
        display: none;
    }
}

/* Custom layout for Create Account / Guest 2x2 grid and Login 1x2 grid */
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name="customer_create[email]"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name="customer_create[password]"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name="customer_login[email]"]),
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name="customer_login[password]"]),
#form_ets_onepagecheckout.ets-opc-modern .field-password-policy:has(input[name="customer_create[password]"]) {
    grid-column: span 1 !important;
}

#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input[name="customer_guest[email]"]) {
    grid-column: 1 / -1 !important;
}

/* Checkout tabs styling */
.opc-tabs-container {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    justify-content: flex-start;
}
.opc-tabs-container .hidden-radio {
    display: none;
}
.opc-tabs-container .opc-tab-btn {
    cursor: pointer;
    margin-bottom: 0;
}
.opc-tabs-container .opc-tab-text {
    display: block;
    color: var(--cTextLight2, #575757);
    font-weight: 500;
    font-size: var(--fz-14);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.opc-tabs-container .opc-tab-text:hover {
    color: var(--cDanger, #ee4719);
}
.opc-tabs-container .hidden-radio:checked + .opc-tab-text {
    color: var(--cDanger, #ee4719);
    border-bottom-color: var(--cDanger, #ee4719);
}

/* Login form forgot password and sign in button row */
#form_ets_onepagecheckout.ets-opc-modern .opc_forgot_submit > div:last-child {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-top: 5px;
    padding-bottom: 12px;
}
#form_ets_onepagecheckout.ets-opc-modern .opc_forgot_submit .forgot-password {
    margin: 0;
}

/* Responsive checkout inputs */
@media (max-width: 767px) {
    #form_ets_onepagecheckout.ets-opc-modern #customer-login,
    #form_ets_onepagecheckout.ets-opc-modern .js-address-form {
        grid-template-columns: 1fr;
    }
    
    #form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(input),
    #form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(select),
    #form_ets_onepagecheckout.ets-opc-modern .field-password-policy {
        grid-column: 1 / -1 !important;
    }

    #form_ets_onepagecheckout.ets-opc-modern {
        padding: 0;
    }
    .block-onepagecheckout .form_total_price {
        padding-right: 0;
    }

    /* 15px left/right was its own per-block inset, one of the six the grid-
       level gutter (996-tier, above) now replaces — removed rather than kept
       alongside it. */
    #form_ets_onepagecheckout.ets-opc-modern #conditions-to-approve {
        margin: 0 0 18px;
    }
}

/* Look comes from the shared .form-error component (custom.css); this only
   outranks the vendor's inline-block/12px so the message lays out like every
   other form's, 4px under the field. */
#form_ets_onepagecheckout.ets-opc-modern .ets_opc_error {
    margin-top: 4px !important;
    display: flex !important;
    width: 100%;
    font-size: var(--fz-14);
}

#form_ets_onepagecheckout.ets-opc-modern .type-checkout-option .col-md-8.form-error:before,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout .col-md-8.form-error:before,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout .ets-passw.form-error:before,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout .form-error:before,
#form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout.block-additional-info .form-error:before {
    display: none;
    content: "+";
    font-weight: bolder;
    position: absolute;
    right: 38px;
    top: unset;
    line-height: unset;
    font-size: 25px;
    opacity: 0.8;
    height: 10px;
    pointer-events: none;
    margin-top: 7px;
    color: #f13340;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/* display:none was dead — onepagecheckout.css's own `display:inline-block
   !important` on this exact selector always won, so the tick has always
   rendered regardless. Deleted rather than kept as a no-op (round 1 confirmed
   we want the tick). top:15px is NOT shadowed by !important on either side
   (vendor's own top:9px is a plain declaration) so it IS live — kept and
   re-verified against the 48px input height introduced in round 1 (vendor's
   9px was tuned for their shorter field). */
.block-onepagecheckout .form-ok:before {
    top: 15px;
}

/* Hide invoice address toggle and paragraph */
#form_ets_onepagecheckout.ets-opc-modern .no_invoice_address,
#form_ets_onepagecheckout.ets-opc-modern .form-group.row:has(#use_another_address_for_invoice) {
    display: none !important;
}

/* Was `div#customer-login { padding: 0 15px 5px 15px }` — unscoped, so it
   leaked sitewide, and the 15px was the same per-block card inset the six
   deleted in round 2 were. The login grid now sits flush inside whatever
   contains it (the auth modal supplies its own 30px). */

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-store {
    display: none !important;
}

/* Same reason — these carried a 24px side margin to clear the card edge. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-panel,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-account-summary {
    margin: 0 0 18px;
}

/* .co-who: the plain prompt reads as mute text; the action link (design's
   "strong") is the only part that should read as ink. The mint ground and the
   10px top/right insets predate the redesign and have no counterpart in the
   design, which separates this row with the bottom rule alone. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-panel__top {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid var(--bdcPrimary, #dee1e0);
    color: var(--cTextLight2, #575757);
    display: flex;
    flex-wrap: wrap;
    font-size: var(--fz-14);
    font-weight: 400;
    justify-content: flex-start;
    margin-bottom: 18px;
    gap: 10px;
    padding: 0 0 18px;
    text-align: left;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-link {
    background: transparent;
    border: 0;
    color: var(--cText, #202120);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* .co-fields: two equal columns, 16px row gap, 22px column gap. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-field {
    margin-bottom: 0 !important;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-field--email {
    grid-column: auto;
}

/* Guest step-1 labels used to be sr-only (placeholder carrying the whole
   burden — not reliably announced, and gone the moment the field is
   focused). Rendering them converges guest onto the same stacked
   label→input pattern the logged-in address form already uses, and is an
   accessibility fix, not just cosmetic. */

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address input::placeholder,
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address textarea::placeholder {
    color: #8f98a3 !important;
    opacity: 1;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .ets-opc-contact-panel {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .ets-opc-contact-field,
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row {
    margin: 0 !important;
}

/* Was `… .js-address-form.shipping_address { gap: 16px }` here. At (1,5,0) it
   outranked both the base grid's `16px 22px` and the mid-band's `14px 18px`,
   so the guest address grid was the only grid on the page with a 16px column
   gap — 3px out of step with the contact grid directly above it, at every
   width. Deleted so both grids share one declaration. */

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row {
    grid-column: 1 / -1 !important;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row:has(#shipping_address_address1) {
    order: 10;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row:has(#shipping_address_city) {
    grid-column: span 1 !important;
    order: 20;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row:has(#shipping_address_postal_code) {
    grid-column: span 1 !important;
    order: 21;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row:has(#shipping_address_company),
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .form-group.row:has(#shipping_address_vat_number),
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .block-address .js-address-form.shipping_address > .shipping_address_customer_type_invoice {
    grid-column: 1 / -1 !important;
    order: 30;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-address-notes {
    padding: 0 0 22px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details {
    display: grid;
    gap: 16px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    order: 30;
    padding: 0 0 30px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details:empty {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details .ets_b2b_toggle_group {
    grid-column: 1 / -1;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details .form-group.row {
    margin: 0 !important;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details .form-group.row:has(#shipping_address_company) {
    grid-column: 1 / -1;
}

/* The generic textarea rule (~:344) now carries this same 80px value, so
   this no longer needs !important to survive a duplicate 104px rule that
   existed only to be undone here — that rule is gone. Kept as a no-op
   safety net: if `.ets-opc-address-notes #delivery_message` ever needs a
   height independent of the generic rule again, this is already scoped
   for it and wins on specificity alone (2,2,0 vs 2,1,0), no source-order
   dependency either way. */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-address-notes #delivery_message {
    height: 80px;
    min-height: 80px;
}

#form_ets_onepagecheckout.ets-opc-modern .block-promo .promo-input::placeholder {
    color: #8f98a3 !important;
}

#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .js-address-form.shipping_address .form-group.firstname,
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .js-address-form.shipping_address .form-group.lastname,
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .js-address-form.invoice_address .form-group.firstname,
#form_ets_onepagecheckout.ets-opc-modern.ets-opc-guest-first .js-address-form.invoice_address .form-group.lastname {
    display: none !important;
}

/* Signed-in twin of .ets-opc-contact-panel__top: same bottom rule and the same
   18px above and below it, so step 1 is split from the address fields
   identically whether the "Turite paskyrą?" prompt or the "Prisijungęs kaip"
   line is standing in that slot. The 18px below comes from the summary's own
   margin (set with .ets-opc-contact-panel above). */
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-account-summary {
    border-bottom: 1px solid var(--bdcPrimary, #dee1e0);
    color: var(--cText, #202120);
    padding-bottom: 18px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-account-summary > div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-account-summary__label {
    color: var(--cTextLight2, #575757);
    font-size: var(--fz-14);
}

.ets-opc-modal-open {
    overflow: hidden;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal,
#ets-opc-auth-modal {
    align-items: center;
    display: flex !important;
    top: 0; right: 0; bottom: 0; left: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal.is-open,
#ets-opc-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__backdrop,
#ets-opc-auth-modal .ets-opc-auth-modal__backdrop {
    background: rgba(26, 27, 26, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    top: 0; right: 0; bottom: 0; left: 0;
    position: absolute;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__dialog,
#ets-opc-auth-modal .ets-opc-auth-modal__dialog {
    background: var(--cWhite, #fff);
    border-radius: var(--bdrsPrimary, 6px);
    box-shadow: 0 22px 60px rgba(26, 27, 26, 0.2);
    max-height: calc(100vh - 40px);
    max-width: 471px;
    overflow: auto;
    padding: 30px;
    position: relative;
    width: min(100%, 471px);
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal.is-open .ets-opc-auth-modal__dialog,
#ets-opc-auth-modal.is-open .ets-opc-auth-modal__dialog {
    transform: scale(1);
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__close {
    align-items: center;
    background: var(--bgcLight, #f4f5f4);
    border: 0;
    border-radius: 50%;
    color: var(--cText, #202120);
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
}

#ets-opc-auth-modal .ets-opc-auth-modal__close {
    background: var(--bgcLight, #f4f5f4);
    border: 0;
    border-radius: 50%;
    color: var(--cText, #202120);
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 37px;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal h2 {
    color: var(--cText, #202120);
    font-family: var(--ffHeading), var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-20);
    font-weight: 500;
    margin: 0 44px 18px 0;
}

#ets-opc-auth-modal h2 {
    color: var(--cText, #202120);
    font-family: var(--ffHeading), var(--ffPrimary), Arial, sans-serif;
    font-size: var(--fz-20);
    font-weight: 500;
    margin: 0 44px 18px 0;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__panel {
    display: none;
}

#ets-opc-auth-modal .ets-opc-auth-modal__panel {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__panel.is-active {
    display: block;
}

#ets-opc-auth-modal .ets-opc-auth-modal__panel.is-active {
    display: block;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__panel .type-checkout-option,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__panel .field-password-policy {
    display: block !important;
}

#ets-opc-auth-modal .ets-opc-auth-modal__panel .type-checkout-option,
#ets-opc-auth-modal .ets-opc-auth-modal__panel .field-password-policy {
    display: block !important;
}

.ets-opc-auth-modal__panel .frn-login__field {
    padding-top: 0 !important;
    margin-right: 0;
    margin-left: 0;
}

.ets-opc-auth-modal__panel .frn-login__actions {
    padding-top: 0 !important;
}

/* Was `.opc_forgot_submit > div { gap: 0; padding: 0 15px }` — deleted as an
   unscoped, presumed card-era 15px. It was not: `.opc_forgot_submit` itself
   carries bootstrap's `.row` class (vendor/bootstrap.min.css `.row { margin:
   0 -15px }`, unowned), and its children carry no `col-*` class to supply the
   offsetting gutter, so removing the padding let the row's negative margins
   push the forgot-password link and submit button 15px past the fields above
   on each side. Restoring a padding here would only re-cancel a margin we can
   fix directly: zero the row's own margins instead. `opc_forgot_submit` is
   unique to this login block (confirmed: no other template uses it), so this
   cannot leak to any other `.row` on the site. These children are `display:
   flex` (not block, as the deleted comment claimed) with vendor's own `gap:
   10px` on `.opc_forgot_submit > div` (onepagecheckout.css:31) now live;
   harmless today since each has exactly one visible child. */
#form_ets_onepagecheckout.ets-opc-modern .opc_forgot_submit,
#ets-opc-auth-modal .opc_forgot_submit {
    margin-left: 0;
    margin-right: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-hidden-field,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__panel .ets-opc-auth-hidden-field {
    display: none !important;
}

#ets-opc-auth-modal .ets-opc-auth-hidden-field {
    display: none !important;
}

/* Was `.delivery-options-list, .payment-options { padding-bottom: 15px; }`
   (ours, unscoped — the same bare-selector shape as the dead .ets_payment_method
   rule, though this one wasn't shadowed). Card-era residue: verified live that
   toggling it off only shortens .delivery-options-list's own box by 15px and
   shifts the next section up by the same 15px, with no collision — sections
   already space themselves with their own --section-gap top padding, so this
   never did any of that spacing. Dropped rather than scoped-and-kept. */

.ets_payment_method:hover {
    background: unset !important;
}

.block-onepagecheckout .payment-option:hover {
    background: #fafafa;
}

/* Design's .co-flat: flat and transparent, not a card. The container
   (.js-additional-information) already matches; only this inner `p` carried
   the grey panel — same class of defect as the mint-green identity row
   (~:1439), ours and not vendor. */
.block-onepagecheckout .additional-information p {
    font-size: var(--fz-14);
    padding: 12px 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: var(--cTextLight2, #575757);
}

/* z_offers' "Papildomos paslaugos" now sits inside the courier option's own
   panel, so the design demotes it from a section heading (.co-sect-h) to the
   panel's caption (.co-nest__t): muted, body weight, and spaced only below —
   the panel supplies the room above. The module's own .frn-heading--h5 (18px)
   is the only thing that renders here, and this hook has exactly one render
   site, so scoping it to the checkout affects nothing else. */
#form_ets_onepagecheckout.ets-opc-modern .z_offers-container .frn-heading--h5 {
    color: var(--cTextLight2, #575757);
    display: block;
    font-size: var(--fz-14);
    font-weight: 400;
    margin: 0 0 10px;
}

.block-onepagecheckout .payment-options {
    font-size: var(--fz-14) !important;
}

/* Was `.block-onepagecheckout .payment-options > div { padding: 0 15px 10px; }`
   — merged into the .ets_payment_method rule above (this matched the exact
   same elements; keeping both was the dead-code trap that made the other
   rule's declaration invisible). */

/* Vendor (onepagecheckout.css:1046-1048) — the only other possible direct
   child of .payment-options is the "no payment methods available" fallback
   .alert; a scoped rule here is the fix at the only source we own. The
   max-width existed only to leave room for the margin, so both need
   neutralising together or the alert stays narrower than the column even
   with 0 margin. */
#form_ets_onepagecheckout.ets-opc-modern .payment-options > .alert {
    margin: 0 0 15px;
    max-width: 100%;
}

#checkout .js-modal-content {
    padding: 10px 25px;
}

/* Both halves size to their content instead of taking a fixed 48% each. The
   row is already `display: flex; justify-content: space-between`, so the
   quantity still sits left and the price right — but the 48% capped the
   quantity at 88px on a 360px screen, where "Kiekis: 2 vnt. × 79 €" needs 122,
   so it wrapped to two lines while the price column sat on 52px of unused
   space beside it. The row has 183px and the pair needs 166px, so it fits on
   one line once neither side is rationed. flex-wrap stays on as the fallback
   for a genuinely long string. */
.block-onepagecheckout .product-line-grid-right .qty,
.block-onepagecheckout .product-line-grid-right .price {
    padding: 0;
    text-align: left;
    width: auto;
}

.frn-product-features {
    color: var(--cTextLight2, #575757);
    margin-top: 2px; margin-bottom: 2px; padding-bottom: 0;
    font-size: var(--fz-14);
    line-height: 1.55;
}

/* .product-quantity (the qty x price line) has no rule of its own and
   inherits size/colour from here too — fixing this fixes that line as well. */
.frn-product-features span.label {
    color: var(--cText, #202120);
    font-weight: 500;
}

@media (max-width: 767px) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-grid {
        grid-template-columns: 1fr;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-business-details {
        grid-template-columns: 1fr;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-panel__top {
        align-items: flex-start;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal,
    #ets-opc-auth-modal {
        align-items: flex-end;
        padding: 0;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal__dialog,
    #ets-opc-auth-modal .ets-opc-auth-modal__dialog {
        border-radius: 8px 8px 0 0;
        max-height: 92vh;
        padding: 22px 16px;
        width: 100%;
        transform: translateY(100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-auth-modal.is-open .ets-opc-auth-modal__dialog,
    #ets-opc-auth-modal.is-open .ets-opc-auth-modal__dialog {
        transform: translateY(0);
    }
}

/* Completes the 996-tier's .co-fields gap: split out from that block (much
   earlier in the file) because .ets-opc-contact-grid's own base declaration
   sits between the two, later in source, and would otherwise win the tie at
   equal specificity — see the comment left in its place. */
@media (max-width: 996px) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-grid {
        gap: 14px 18px;
    }
}

/* ≤576px tier — design spec "### ≤576px". Declared last so it wins ties
   against the 996 and 991 tiers above on every property they share. */
@media (max-width: 576px) {
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__grid {
        padding: 0 16px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .block-onepagecheckout > .title-heading {
        font-size: 22px;
        margin-bottom: 18px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-summary__total span:last-child {
        font-size: 19px; /* checkout-scoped, see the 996-tier comment on the same selector */
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__sidebar {
        margin-top: 36px;
        padding-top: 28px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-step-number {
        flex: 0 0 25px;
        height: 25px;
        width: 25px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-contact-panel__top {
        gap: 4px 8px;
    }

    /* .co-opt rewrap: the price/delay column no longer fits beside the label
       once the row wraps, so the option itself must be allowed to wrap. */
    #form_ets_onepagecheckout.ets-opc-modern .delivery-options .row.delivery-option,
    #form_ets_onepagecheckout.ets-opc-modern .ets_payment_method .payment-option,
    #form_ets_onepagecheckout.ets-opc-modern .payment-options .payment-option {
        align-items: flex-start;
        min-height: 0;
        padding: 12px 14px;
    }

    /* row-gap only shows up on the wrapped case — it is the separation between
       the carrier line and the price line when they do split, and costs
       nothing while they share one line. */
    #form_ets_onepagecheckout.ets-opc-modern .delivery-option label .row {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .delivery-options .custom-radio,
    #form_ets_onepagecheckout.ets-opc-modern .payment-options .custom-radio {
        margin-top: 2px;
    }

    /* .co-opt__end: drops full-width beneath the label, indented to align
       under the label text rather than the option's own left edge.
       flex-basis, not width: vendor markup puts bootstrap's .col-sm-6 on both
       halves of the row, and its `flex: 0 0 50%; max-width: 50%` is what
       actually sizes a flex item — `width: 100%` alone was inert, which is why
       the stack engaged only below 576 where .col-sm-6 stops applying. Both
       halves need the max-width lifted or each is capped at half the row. */
    #form_ets_onepagecheckout.ets-opc-modern .delivery-option .left_content,
    #form_ets_onepagecheckout.ets-opc-modern .delivery-option .right_content {
        max-width: 100%;
    }

    /* `flex: 0 1 auto`, not `1 1 100%`: a 100% basis claimed a whole line
       whether or not one was needed, so "DPD kurjeris — Nemokamai" (78px +
       75px in a 529px row) split in two for no reason. At auto basis the row
       only breaks when the pair genuinely does not fit.

       margin-left is the indent for when it does break, putting the price
       under the carrier name rather than under the radio. 24px is that offset
       derived, not eyeballed — the 16px radio plus .left_content's own 8px
       gap; the previous 29px overshot the name by 5px. On a single line it is
       inert, since justify-content: space-between already parks this half at
       the right edge. */
    #form_ets_onepagecheckout.ets-opc-modern .delivery-option .right_content {
        align-items: center;
        flex: 0 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 24px;
        padding: 0;
        text-align: left;
    }

    /* The two wrapper divs are identical in markup (both `.col-xs-12`) —
       first holds the price, second the delay text. Swapping their visual
       order via first-/last-child (relational pseudo-classes are off-limits
       for new rules here) gives the design's reading order: delay first,
       price trailing as a muted inline suffix. */
    #form_ets_onepagecheckout.ets-opc-modern .right_content > .col-xs-12:first-child {
        order: 2;
    }

    #form_ets_onepagecheckout.ets-opc-modern .right_content > .col-xs-12:last-child {
        order: 1;
    }

    #form_ets_onepagecheckout.ets-opc-modern .carrier-price {
        color: var(--cTextLight2, #575757) !important; /* !important to beat the same selector's own desktop !important, ~line 531 */
        display: inline;
        font-weight: 400;
        margin-left: 6px;
    }

    /* .co-line stays two-column here, same as desktop/tablet — the thumb is
       scaled down rather than stretched full-bleed above the text. 116px is
       the widest 3:2 thumb that still leaves the body a usable column on a
       320px screen (320 - 32 grid gutter - 116 - 14 gap = 158px of text).
       !important to beat the base rule's own !important. */
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line,
    #form_ets_onepagecheckout.ets-opc-modern .product-line-grid {
        column-gap: 14px;
        grid-template-columns: 116px minmax(0, 1fr) !important;
        row-gap: 0;
    }

    /* The delivery estimate and the totals move out from beside the thumbnail
       to full-width rows beneath it. In the 183px body column the estimate
       needed 213px and always broke onto a second line; across both columns it
       has 313px and reads on one.

       The body is dissolved rather than restyled so its children become items
       of the product line's own grid — it carries no box of its own (no
       padding, margin, background or border), so nothing is lost by removing
       it from the box tree. row-gap is zeroed with it because the rows below
       carry their own margins, and an inherited 16px would double them. */
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__body {
        display: contents;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image {
        grid-column: 1;
        grid-row: 1;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__head {
        grid-column: 2;
        grid-row: 1;
    }

    /* Everything after the head spans the full width, in source order. */
    #form_ets_onepagecheckout.ets-opc-modern .frn-product-item-cart__estimate,
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__customizations,
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions {
        grid-column: 1 / -1;
    }

    /* The estimate carries no margin of its own, and row-gap is zeroed above,
       so without this it sits hard against the bottom of the thumbnail. 10px
       matches the margin the totals row already uses, giving the stack one
       even rhythm: image → 10 → estimate → 10 → totals. (The design asks for
       9px on .co-eta and 10px on .co-line__foot; evening them out is a
       deliberate 1px simplification, invisible and easier to keep true.) */
    #form_ets_onepagecheckout.ets-opc-modern .frn-product-item-cart__estimate {
        margin-top: 10px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__image .product-image,
    #form_ets_onepagecheckout.ets-opc-modern .product-line-grid-left .product-image {
        height: 77px;
        width: 116px;
    }

    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-product-line__actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* --fz-16 is shared sitewide and drops to 15px in this same band
       (responsive/mobile.css); scoped literal instead of touching that token. */
    #form_ets_onepagecheckout.ets-opc-modern .ets-opc-modern__footer .frn-button--dark-1,
    #form_ets_onepagecheckout.ets-opc-modern button[name="submitCompleteMyOrder"] {
        font-size: 16px;
    }

    /* The panel follows the option row's own 12px/14px mobile inset (~:2048) so
       the two still read as one box once the row tightens. */
    #form_ets_onepagecheckout.ets-opc-modern .ets_payment_method.has-nested-info .additional-information,
    #form_ets_onepagecheckout.ets-opc-modern #courier-additional-services-wrapper.has-offers {
        padding: 14px 14px 16px;
    }

    /* design: .co-svc at ≤576 — the price drops under the label rather than
       squeezing it into a two-line wrap. */
    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-page__delivery-advance {
        align-items: flex-start;
        min-height: 0;
        padding: 12px 14px;
    }

    /* The wrap has to happen on .z_offers-label-content, not on the row: the
       design has label and price as direct children of .co-svc, while z_offers
       nests them one level further in, where the row's own flex-wrap never
       reaches them. No indent either — this container already starts after the
       checkbox mark, so the price aligns under the label at margin 0. */
    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-page__delivery-advance .z_offers-label-content {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-page__delivery-advance .z_offers-price {
        margin-top: 2px;
        width: 100%;
    }

    /* The mark is absolutely positioned with no `top`, so it lands wherever its
       static position falls — centred against a now two-line row, 14px below
       the label it belongs to. Aligning its flex parent to the start pulls that
       static position back onto the first line. */
    #form_ets_onepagecheckout.ets-opc-modern .frn-cart-page__delivery-advance .frn-checkbox {
        align-items: flex-start;
    }

    /* 170px is a desktop size: held here it would give one bank per row and six
       stacked rows. Back to the smallest track the widest wordmark still reads
       in at its 22px cap, which keeps two per row on a 375 screen. */
    .paysera-payment-choice-extension .paysera-custom-grid {
        gap: 6px;
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }

    /* Both selectors again — the base rule carries a checkout-scoped twin to
       outrank a vendor `display:block`, and a bare selector here would lose to
       it rather than to the media query. */
    .paysera-payment-choice-extension .paysera-custom-btn,
    #form_ets_onepagecheckout.ets-opc-modern .paysera-payment-choice-extension .paysera-custom-btn {
        height: 48px;
        padding: 0 8px;
    }
}

/* The breadcrumb shares the grid's outer box (both 1280 wide, same left edge)
   but not its gutter, so it sat 24px left of the step badges and the recap.
   Mirror .ets-opc-modern__grid's padding at every tier. The gap below is this
   page's answer to the cart's 32px breadcrumb-to-title rhythm: the checkout has
   no page title, so the breadcrumb carries it. */
#checkout .frn-content-block.frn-brdcr {
    padding-bottom: 32px;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 996px) {
    #checkout .frn-content-block.frn-brdcr {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    #checkout .frn-content-block.frn-brdcr {
        padding-bottom: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===========================================================================
   STEP 3a/3b — "Kiek mokate dabar"
   ---------------------------------------------------------------------------
   Rendered by modules/furni_advancepayment/views/templates/hook/
   checkout_payplan.tpl, injected by layout_4.tpl BELOW the method list
   (design change, 2026-08-05 — originally above it).

   The design's accent is this checkout's existing selected-state colour
   (--cDanger, the same one .payment-option.is-checked uses at ~:471), so the
   two questions read as one control group rather than two visual systems.
   The amount outranks the label deliberately: it is the deciding fact.

   The fieldset is server-rendered `hidden` unconditionally; checkout-
   advance-payment.js reveals it only once it confirms the currently checked
   payment radio's data-module-name is on the compatible allowlist, and
   re-hides it (after persisting payplan=full) the moment that stops being
   true. There is no explicit [hidden] rule below because .frn-plan sets no
   `display` of its own — the UA stylesheet's `[hidden] { display: none }`
   already wins with nothing to lose to on specificity.
   =========================================================================== */
#form_ets_onepagecheckout.ets-opc-modern .frn-plan {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__q,
#form_ets_onepagecheckout.ets-opc-modern .ets-opc-method-legend {
    font-family: var(--ffPrimary);
    font-size: var(--fz-14);
    font-weight: 500;
    color: var(--cText);
    margin: 0 0 10px;
    padding: 0;
    width: auto;
    border: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__o {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--bdcPrimary, #dee1e0);
    border-radius: var(--bdrsPrimarySm, 4px);
    cursor: pointer;
    transition: border-color 0.16s ease;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__o:hover {
    border-color: var(--cDanger, #ee4719);
}

/* The native input is kept in the accessibility tree and only visually
   replaced, so keyboard focus and screen readers still work. Positioned
   relative to .frn-plan__o (which carries position: relative above) —
   without that, an absolutely positioned element resolves against the
   nearest ANY positioned ancestor, wherever that happens to be on the page,
   which both mislocates the invisible input and lets keyboard focus land on
   it somewhere the browser then has to scroll to. */
#form_ets_onepagecheckout.ets-opc-modern .frn-plan__i {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__r {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid var(--bdcPrimaryDark, #989695);
    border-radius: 50%;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__i:checked ~ .frn-plan__r {
    border-color: var(--cDanger, #ee4719);
    border-width: 5px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__i:focus-visible ~ .frn-plan__r {
    outline: 2px solid var(--cDanger, #ee4719);
    outline-offset: 2px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__b {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__t {
    font-size: var(--fz-14);
    color: var(--cText);
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__pct {
    color: var(--cDanger, #ee4719);
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__a {
    font-size: var(--fz-18);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cBlack, #1a1b1a);
}

#form_ets_onepagecheckout.ets-opc-modern .frn-plan__s {
    font-size: var(--fz-13);
    color: var(--cTextLight2, #575757);
}

/* Set on its own grey ground, matching the payment note on order-confirmation
   (components/advance-final-payment.css): the tiles above it are a choice to
   make, this explains what follows from it. */
#form_ets_onepagecheckout.ets-opc-modern .frn-plan__note {
    margin: 12px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bgcSecondary, #f7f8f8);
    font-size: var(--fz-14);
    line-height: 1.45;
    color: var(--cTextLight2, #575757);
}

/* [hidden] loses to the display value above on specificity, so it is
   restated rather than relied on. */
#form_ets_onepagecheckout.ets-opc-modern .frn-plan__note[hidden] {
    display: none;
}

@media (max-width: 576px) {
    #form_ets_onepagecheckout.ets-opc-modern .frn-plan__g {
        grid-template-columns: 1fr;
    }
}

/* ===========================================================================
   RECAP — AMOUNT DUE NOW / DUE LATER
   ---------------------------------------------------------------------------
   Rendered by modules/furni_advancepayment/views/templates/hook/
   checkout_recap_rows.tpl inside .cart-summary-totals.

   With a deposit chosen the order total stops being the headline figure: what
   the customer is about to be charged takes the 20px/600 slot and the total
   drops to 14px/500. .frn-advance-active is server-rendered by
   cart-summary-totals.tpl and re-applied on every ETS re-render, never held
   only in the DOM. The design expressed this with :has(); this task uses a
   server-rendered class instead, matching the interactive-state precedent
   checkout-control-state.js already set for .is-checked / .has-nested-info —
   this file still carries pre-existing, unrelated :has() selectors elsewhere
   that predate that constraint and are not touched here.
   =========================================================================== */
#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__now,
#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__later {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 11px;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__now[hidden],
#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__later[hidden] {
    display: none;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__now {
    font-weight: 500;
    color: var(--cText);
}

#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__now span:last-child {
    font-size: var(--fz-20);
    font-weight: 600;
    letter-spacing: -0.01em;
}

#form_ets_onepagecheckout.ets-opc-modern .frn-advance-recap__later span:last-child {
    color: var(--cTextLight2, #575757);
}

#form_ets_onepagecheckout.ets-opc-modern .cart-summary-totals.frn-advance-active .frn-cart-summary__total span:last-child {
    font-size: var(--fz-14);
    font-weight: 500;
}
