/* Audit 13 speed fixes (inc/fix-speed.php enqueues this on the home page, cart and checkout). */

/* Home hero arch: fade-in only (owner rule 2026-10-23 – no clip-path reveal, no zoom on arch photos).
   The clip/scale opening made desktop LCP 5–7 s although the photo had loaded at 1.3–2 s. */
@media (prefers-reduced-motion: no-preference){
  html.v3-js:not(.a11y-calm) body.v3.v4 .v4-prologue__media[data-hero]{clip-path:none!important;transition:opacity .6s ease!important}
  html.v3-js:not(.a11y-calm) body.v3.v4 .v4-prologue__media[data-hero] img{transform:none!important;transition:none!important}
}

/* Cart: the coupon box starts closed (js/v3.js used to close it after the first paint – CLS 0.098) */
body.v3 .woocommerce-cart-form .actions .coupon[hidden]{display:none!important}

/* Checkout: address rows MultiParcels hides for parcel lockers start hidden (CLS 0.077); its own show()/hide() take over */
body.woocommerce-checkout .sm-mp-start-hidden{display:none!important} /* the class is removed after the first checkout update (inc/fix-speed.php) */

/* Checkout notes behind „+ Pridėti pastabą“ on phones from the first paint (the link is printed by PHP) */
body.woocommerce-checkout .sm-co-notes-open{display:none}
@media (max-width:640px){
  body.v3.woocommerce-checkout .sm-co-notes-open{display:inline-block}
  body.v3.woocommerce-checkout #order_comments_field:not(.is-open){display:none!important}
}
