/* Audit 2 (2026-11-11) – buying and shop fixes (inc/audit2-pirkimas.php). Loaded after the theme CSS on every v3 page. */

/* 1. Cart summary: „Pristatymas“ row (delivery price known before the checkout) */
html body.v3 .cart_totals tr.sm-a2p-ship td{font-weight:500;color:#4A3936}
html body.v3 .cart_totals tr.sm-a2p-ship td strong{font-weight:700;color:#2B1A17}
html body.v3 .cart_totals tr.sm-a2p-ship td small{display:block;font-size:12.5px;font-weight:500;color:#6F5C58}

/* 2. Shop, phones: quick filter chips in the row of „Filtrai“ (the row scrolls sideways, the page does not) */
.sm-fq{display:none}
@media (max-width:700px){
  html body.v3 .v3-fbar[data-fbar] .sm-fq{display:flex;flex:1 1 0;min-width:0;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-right:-16px;padding:2px 16px 2px 0}
  html body.v3 .v3-fbar[data-fbar] .sm-fq::-webkit-scrollbar{display:none}
  html body.v3 .v3-fbar[data-fbar] .sm-fq[hidden]{display:none}
  html body.v3 .sm-fq__c{flex:0 0 auto;min-height:44px;padding:0 16px;border:1px solid #D9BDB5;border-radius:999px;background:#fff;color:#5A3A34;font:600 15px/1 Barlow,"Barlow Fallback",sans-serif;white-space:nowrap;cursor:pointer}
  html body.v3 .sm-fq__c[hidden]{display:none}
  html body.v3 .sm-fq__c.is-on{background:#8E4E58;border-color:#8E4E58;color:#fff}
  html body.v3 .sm-fq__c.is-on::after{content:"×";margin-left:8px;font-weight:400}
  /* „Filtrai“ + chips on one line; the count and the open sheet go below */
  html body.v3 .v3-fbar[data-fbar]{flex-wrap:wrap}
  html body.v3 .v3-fbar[data-fbar] .v3-ftoggle{flex:0 0 auto}
  html body.v3 .v3-fbar[data-fbar] .v3-fbar__foot{flex:1 1 100%}
}

/* 3. Goods with sizes, cheapest size on sale: „nuo 35 € 19 € −46 %“ */
html body.v3 .sm-from{font-size:.78em;font-weight:500;color:#6F5C58}
html body.v3 .sm-pct{display:inline-block;margin-left:4px;padding:2px 7px;border-radius:999px;background:#F6EEEF;color:#8E4E58;font:700 12.5px/1.3 Barlow,"Barlow Fallback",sans-serif;white-space:nowrap;vertical-align:2px}
html body.v3 .summary .price .sm-pct{font-size:14px;padding:3px 9px;vertical-align:4px}

/* 4. Tour cards: next date, between the price and the button */
html body.v3 .v3-card>.v3-card__next{order:3;margin:2px 0 6px;font-size:13.5px;font-weight:600;line-height:1.3;color:#5A3A34}

/* 5. Phone tab bar: the cart with its count (the empty badge is not drawn) */
@media (max-width:960px){
  html body.v3 .v3-tabbar__i--cart .v3-tabbar__n{top:2px;left:calc(50% + 4px);font-size:12px}
  html body.v3 .v3-tabbar__n .cart-count{background:none!important;color:inherit!important;box-shadow:none!important;font:inherit!important;position:static!important;min-width:0!important;height:auto!important;padding:0!important}
  html body.v3 .v3-tabbar__n:has(.cart-count[data-n="0"]){display:none}
}

/* 6. Cart: no newsletter offer („5 % nuolaida pirmajam apsipirkimui“) next to the pay button – the checkout already hides it */
body.v3.woocommerce-cart .v3-footer__news{display:none!important}
@media (max-width:760px){
  /* and no empty band between the suggestions and the footer (56 + 32 + 90 px of stacked paddings and margins) */
  html body.v3.woocommerce-cart:not(.sm-focus) .v3-cartpage .container-fluid{padding-bottom:20px}
  html body.v3.woocommerce-cart:not(.sm-focus) main.site-main{padding-bottom:0}
  html body.v3.woocommerce-cart:not(.sm-focus) .v3-footer{margin-top:16px;padding-top:32px}
}

/* 7. Search suggestions: „Visi rezultatai (N) →“ stays in sight at the bottom of the list (it was the last line of a scrolling box).
      It is a submit button inside the search form, so the round magnifier style of the form's own button (css/fix20-b.css) had
      turned it into a second icon without text – a plain text row again. */
html body.v3 form.v3-search .v3-sugg button.v3-sugg__all[type=submit]{position:sticky!important;bottom:-8px;z-index:1;display:flex!important;align-items:center;justify-content:center;place-items:center;margin:4px -8px -8px!important;width:calc(100% + 16px)!important;height:auto!important;min-height:48px!important;padding:0 12px!important;background:#FCF9F6!important;border:0!important;border-top:1px solid #EFE0DA!important;border-radius:0 0 19px 19px!important;box-shadow:0 -10px 14px -12px rgba(59,26,32,.35)!important;color:#7A463F!important;font-size:13px!important;letter-spacing:.08em!important}
html body.v3 form.v3-search .v3-sugg button.v3-sugg__all[type=submit]::before{content:none!important}
@media (max-width:760px){html body.v3.v3-has-tabbar .v3-sugg:has(.v3-sugg__all){padding-bottom:8px}}

/* 8. Phones: tap areas 44 px and text from 12 px on the shop, product, cart and checkout pages */
@media (max-width:760px){
  html body.v3 .v3-card .v3-badge,html body.v3 .v3-card .v3-card__loc,html body.v3 .v3-insert__kick{font-size:12px}
  html body.v3 .v3-shophead .v3-eyebrow,html body.v3 .v3-shophead .v3-eyebrow span{font-size:12px}
  html body.v3 :is(.v3-steps,.sm-co-steps) li{font-size:12px}
  html body.v3 .v3-cartadd__why{font-size:12px}
  html body.v3 .v3-insert__cta,html body.v3 .related-header>a,html body.v3 .related-header div>a{display:inline-flex;align-items:center;min-height:44px}
  html body.v3 .v3-coupon-toggle{min-height:44px}
  html body.v3 .v3-cartadd__n{display:flex;align-items:center;min-height:44px}
  html body.v3 .sm-co-login a{display:inline-block;padding:13px 0;margin:-13px 0}
  html body.v3 .sm-co-notes-open{min-height:44px}
}

/* Dark mode */
html[data-theme="dark"] body.v3 .cart_totals tr.sm-a2p-ship td{color:#E3CFC8}
html[data-theme="dark"] body.v3 .cart_totals tr.sm-a2p-ship td strong{color:#F5E9E4}
html[data-theme="dark"] body.v3 .cart_totals tr.sm-a2p-ship td small,html[data-theme="dark"] body.v3 .sm-from{color:#CDB5AD}
html[data-theme="dark"] body.v3 .sm-fq__c{background:#36231F;border-color:rgba(235,203,190,.2);color:#F5E9E4}
html[data-theme="dark"] body.v3 .sm-fq__c.is-on{background:#EBCBBE;border-color:#EBCBBE;color:#2B1A17}
html[data-theme="dark"] body.v3 .sm-pct{background:#3A2622;color:#EBCBBE}
html[data-theme="dark"] body.v3 .v3-card>.v3-card__next{color:#E3CFC8}
html[data-theme="dark"] body.v3 form.v3-search .v3-sugg button.v3-sugg__all[type=submit]{background:#241613!important;border-top-color:rgba(235,203,190,.2)!important;color:#EBCBBE!important}
/* add-to-cart popup: „Nespėjate dabar?“ e-mail box (2026-11-11) */
.xoo-cp-container .sm-cp-save{margin:16px 0 4px;padding:12px 14px;border:1px dashed #E3C9C3;border-radius:14px;text-align:left}
.xoo-cp-container .sm-cp-save__t{display:block;margin:0 0 8px;font-size:14px;line-height:1.4;color:#5E2F37;font-weight:500}
.xoo-cp-container .sm-cp-save__row{display:flex;gap:8px}
.xoo-cp-container .sm-cp-save__row[hidden]{display:none}
.xoo-cp-container .sm-cp-save input[type=email]{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid #D9BDB6;border-radius:12px;font-size:16px;background:#fff;color:#2A1715}
.xoo-cp-container .sm-cp-save input[aria-invalid=true]{border-color:#B23A3A}
.xoo-cp-container .sm-cp-save button{flex:none;height:44px;padding:0 16px;border:0;border-radius:12px;background:#8E4E58;color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.xoo-cp-container .sm-cp-save__ok{display:block;font-size:14px;color:#5E2F37;font-weight:600}
.xoo-cp-container .sm-cp-save__ok[hidden]{display:none}
html[data-theme="dark"] .xoo-cp-container .sm-cp-save{border-color:#6B4A45}
html[data-theme="dark"] .xoo-cp-container .sm-cp-save__t,html[data-theme="dark"] .xoo-cp-container .sm-cp-save__ok{color:#EBCBBE}
html[data-theme="dark"] .xoo-cp-container .sm-cp-save input[type=email]{background:#2A1B19;border-color:#6B4A45;color:#F3E6E2}
