/* UX audit 2026-11-22 – cart and checkout (inc/ux-1122-checkout.php). Cart, checkout and thank-you: loaded normally after css/checkout-v2.css;
   other pages: loaded without blocking, for the add-to-cart popup only. */

/* 10. popup: „Pristatymas ir mokėjimas →“ on one line */
html body.v3 .xoo-cp-container .xoo-cp-btns a.sm-cp-pay{gap:10px;font-size:14px!important;letter-spacing:.05em!important;white-space:nowrap;padding-left:14px!important;padding-right:14px!important}

/* 6. tour lines in the summary card: kind on one line, „gruodžio 5 d., šeštadienis · 17:00 · 2 asm.“ under it */
.sm-co2-sum__n small{white-space:pre-line}

/* 4. delivery rows: logo above, name on one line, price on the right, the whole row is the button, 22 px radio */
html body.v3.sm-co2 #sm-co2-where ul#shipping_method>li{position:relative;display:block!important;padding:0!important}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method .shipping_method_selector{position:relative;display:grid!important;grid-template-columns:22px minmax(0,1fr);column-gap:14px;align-items:start;padding:14px 16px 12px;min-height:56px}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method input.shipping_method[type="radio"]{width:22px!important;height:22px!important;min-width:22px;margin:2px 0 0!important;accent-color:#B76E79;cursor:pointer}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method input.shipping_method[type="hidden"]+label{grid-column:1/-1}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li label,
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li label:has(.multiparcels-carrier-icon-image-holder){display:block!important;position:static;margin:0!important;padding-right:0;font-size:17px;line-height:1.3;white-space:normal!important;cursor:pointer}
/* the label stretched over the whole row: a tap anywhere picks the way */
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li label::after{content:"";position:absolute;inset:0;z-index:1}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method .multiparcels-carrier-icon-image-holder{display:flex!important;justify-content:flex-start!important;align-items:center;width:auto!important;height:22px!important;margin:0 92px 4px 0}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method .multiparcels-carrier-icon-image-holder img{max-width:84px!important;max-height:20px!important;width:auto!important;height:auto!important;object-fit:contain;object-position:left center;margin:0!important;padding:0!important}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method img.multiparcels_carrier_icon_lp_express{max-height:14px!important}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li label .woocommerce-Price-amount{position:absolute;top:14px;right:16px;padding:0!important;font-weight:700;white-space:nowrap!important;text-align:right}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li:has(input.shipping_method:checked){background:#F6EEEF}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li>div:not(.shipping_method_selector):not(:has(*)){display:none}
html body.v3.sm-co2 #sm-co2-where ul#shipping_method .sm-co2-when{margin:0!important;padding:0 16px 12px 52px!important;font-size:15px}
@media (min-width:600px){
html body.v3.sm-co2 #sm-co2-where ul#shipping_method li label{white-space:nowrap!important}
}
html[data-theme="dark"] body.v3.sm-co2 #sm-co2-where ul#shipping_method li:has(input.shipping_method:checked){background:#3A2620}

/* 8. tap targets: 22 px boxes inside a 44 px high label; the newsletter opt-out readable */
html body.v3 form.checkout label:has(>input[type="checkbox"]),html body.v3 form.checkout label.checkbox{display:flex!important;align-items:center;gap:12px;min-height:44px;margin:0;padding:4px 0;cursor:pointer}
html body.v3 form.checkout input[type="checkbox"]{flex:0 0 22px;width:22px!important;height:22px!important;margin:0!important;accent-color:#B76E79;cursor:pointer}
html body.v3 form.checkout .sm-nl-soft .sm-nl-soft__t{font-size:14px!important;line-height:1.5!important;color:#5A4743!important}
html body.v3.woocommerce-checkout #payment .sm-nl-optin label.checkbox,html body.v3.woocommerce-checkout #payment .sm-nl-optin label.checkbox span{display:flex!important;align-items:center;min-height:44px;padding:4px 0 4px 34px!important;font-size:14px!important;line-height:1.4!important;color:#4A3936!important;cursor:pointer}
html body.v3.woocommerce-checkout #payment .sm-nl-optin label.checkbox span{display:inline!important;min-height:0;padding:0!important}
html body.v3.woocommerce-checkout #payment :is(.woocommerce-terms-and-conditions-wrapper,.sm-nl-optin) label.checkbox input[type=checkbox]{width:22px!important;height:22px!important;top:50%!important;transform:translateY(-50%);left:0}
html[data-theme="dark"] body.v3 form.checkout .sm-nl-soft .sm-nl-soft__t,html[data-theme="dark"] body.v3.woocommerce-checkout #payment .sm-nl-optin label.checkbox,html[data-theme="dark"] body.v3.woocommerce-checkout #payment .sm-nl-optin label.checkbox span{color:#E6D3CC!important}

/* 9. phone checkout: no empty band under the pay card (page paddings + footer gap ≈ 140 px) */
@media (max-width:1023px){
html body.v3.sm-co2 main.site-main{padding-bottom:0!important}
html body.v3.sm-co2 main.site-main article>.container-fluid{padding-bottom:16px!important}
html body.v3.sm-co2 .sm-co-wide{padding-bottom:0!important;margin-bottom:0!important}
html body.v3.sm-co2 form.sm-co2-form>#sm-co2-pay{margin-bottom:0}
html body.v3.sm-co2 footer.v3-footer{margin-top:0!important;display:flow-root} /* the first block's top margin stays inside the footer */
html body.v3.sm-co2 .sm-co-wide>div>p.wp-block-paragraph:last-child:not(:has(*)){margin:0!important}
}

/* 3. computer (≥ 1024 px): the steps 1 → 2 → 3 in the left column, only „Jūs perkate“ on the right, following the scroll */
@media (min-width:1024px){
html body.v3.sm-co2 .woocommerce:has(>form.sm-co2-form){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,400px);column-gap:28px;align-items:start;max-width:1160px}
html body.v3.sm-co2 .woocommerce:has(>form.sm-co2-form)>*{grid-column:1}
html body.v3.sm-co2 .woocommerce:has(>form.sm-co2-form)>.sm-co2-sum{grid-column:2;grid-row:1/span 40;position:sticky;top:24px;align-self:start;margin:0!important}
html body.v3.sm-co2 .woocommerce:has(>form.sm-co2-form)>script{display:none}
html body.v3.sm-co2 .sm-co-wide form.checkout.sm-co2-form,html body.v3.sm-co2 .woocommerce form.checkout.sm-co2-form{display:block!important;max-width:none}
html body.v3.sm-co2 form.sm-co2-form>.sm-co2-step{grid-column:auto;grid-row:auto}
}
