/* „Greitas pirkimas“ – product / tour / voucher pages + shop cards. STAGING ONLY (loaded by inc/fastbuy.php when sm_fastbuy_on()).
   Markup: inc/fastbuy-product.php, behaviour: js/fastbuy-product.js. Colours: rose fills #C48A7E, rose text on light #9C6158. */

/* ---------- 1. Buy box: trust lines under the main button ---------- */
.sm-fb-trust{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:7px}
.sm-fb-trust li{display:flex;align-items:flex-start;gap:10px;margin:0;padding:0;font-size:14.5px;line-height:1.35;color:#4A3936}
.sm-fb-trust li::before{content:none!important}
.sm-fb-trust svg{flex:none;width:18px;height:18px;margin-top:1px;color:#9C6158}
/* the old delivery / free-shipping lines say the same – the trust lines replace them (packaging, maker, product notes stay) */
body.sm-fb .summary .product-features>li:has(>div>.pf-highlight){display:none}
/* e-mailed vouchers / tickets: no „Turime sandėlyje“ (the trust line says how it arrives) */
body.sm-fb-virtual .summary .stock-info.in-stock{display:none}
/* tour booking box */
body.sm-fb .experience-cart .sm-fb-trust{margin:18px 2px 0}

/* ---------- 2. Variation options as pills ---------- */
body.sm-fb form.variations_form table.variations td.value{position:relative}
html body.sm-fb form.variations_form select.sm-fb-select{position:absolute!important;left:0;top:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.sm-fb-opt{margin:2px 0 12px}
.sm-fb-opt__h{margin:0 0 8px;font:700 12.5px/1.25 Barlow,"Barlow Fallback",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#9C6158}
.sm-fb-pills{display:flex;flex-wrap:wrap;gap:8px}
.sm-fb-pills+.sm-fb-pills{margin-top:8px}
html body.sm-fb .sm-fb-pill{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:100%;min-width:56px;min-height:44px;margin:0;padding:8px 18px;border:1px solid #D9B8B2;border-radius:999px;background:#fff;box-shadow:none;color:#3B2A27;font:600 15px/1.2 Barlow,"Barlow Fallback",sans-serif;letter-spacing:0;text-transform:none;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s}
html body.sm-fb .sm-fb-pill b{font-weight:700}
html body.sm-fb .sm-fb-pill small{display:block;font-size:12.5px;font-weight:500;line-height:1.3;color:#6A5552}
html body.sm-fb .sm-fb-pill__p{font-size:13.5px;font-weight:700;color:#9C6158;white-space:nowrap}
html body.sm-fb .sm-fb-pill__p del{font-weight:500;color:#9C8580;margin-right:2px}
html body.sm-fb .sm-fb-pill__p ins{text-decoration:none}
html body.sm-fb .sm-fb-pill:hover{border-color:#B47468;background:#fff}
html body.sm-fb .sm-fb-pill.is-on{border-color:#9C6158;background:#F6EEEF;box-shadow:inset 0 0 0 1px #9C6158;color:#2B1A17}
html body.sm-fb .sm-fb-pill:disabled{opacity:.42;cursor:not-allowed;background:#fff}
html body.sm-fb .sm-fb-pill:disabled b{text-decoration:line-through}
html body.sm-fb .sm-fb-pill:focus-visible{outline:2px solid #C48A7E;outline-offset:2px}
/* long options (bowl: „M – skersmuo apie 25 cm …“): one per row, the size big, the measures wrap under it, the price on the right */
html body.sm-fb .sm-fb-pills.is-long{display:grid;grid-template-columns:minmax(0,1fr)}
html body.sm-fb .sm-fb-pills.is-long .sm-fb-pill{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:14px;width:100%;padding:10px 18px;border-radius:18px;text-align:left}
html body.sm-fb .sm-fb-pills.is-long .sm-fb-pill b{font-size:18px;min-width:22px}
html body.sm-fb .sm-fb-pills.is-long .sm-fb-pill b:only-child{grid-column:1/-1;font-size:15px}
/* „choose first“ (js/v3.js marks the hidden select): the pills show it */
html body.sm-fb .sm-fb-opt:has(+select.is-needed) .sm-fb-pill:not(:disabled){border-color:#B3261E}
/* variable goods: − / + next to the button, like simple products */
html body.sm-fb form.variations_form .variations_button>.flex:has(>.sm-fb-qty){display:flex!important;flex-wrap:wrap;gap:12px;align-items:stretch}
body.sm-fb form.variations_form .variations_button .quantity-container{flex:1 1 200px;min-width:0} /* like simple products: side by side on computers, the button on its own row on phones */
body.sm-fb .sm-fb-qty{flex:none}
html body.sm-fb form.variations_form .variations_button .quantity-container .single_add_to_cart_button{min-width:0}
/* group tours: the time rows' price says „/ asm.“ too */
body.sm-fb-pertour .experience-cart .event-price::after{content:var(--sm-fb-per);font-size:.8em;font-weight:500;color:#6A5552;white-space:nowrap}
body.sm-fb .sm-fb-qty[hidden]{display:none}

/* ---------- 3. Tours ---------- */
/* hero: the nearest dates as big pills (replace the single „Rinktis datą ir laiką“ button) */
html body.sm-fb .page-header .ph-info-footer{flex-wrap:wrap}
.sm-fb-dates{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:6px}
.sm-fb-dates__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:900px){.sm-fb-dates__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
html body.sm-fb .sm-fb-date:nth-child(n+5){display:none}
html body.sm-fb .sm-fb-date{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:9px 12px;border:1px solid rgba(255,255,255,.7);border-radius:16px;background:rgba(255,252,250,.95);color:#2B1A17;text-decoration:none;text-shadow:none;line-height:1.2;box-shadow:0 8px 22px -14px rgba(43,20,24,.6);transition:transform .15s,background-color .15s}
html body.sm-fb .sm-fb-date:hover{background:#fff;transform:translateY(-1px)}
html body.sm-fb .sm-fb-date:focus-visible{outline:2px solid #fff;outline-offset:2px}
.sm-fb-date__d{font-size:15.5px;font-weight:700}
.sm-fb-date__d small{font-size:12.5px;font-weight:600;color:#9C6158;text-transform:uppercase;letter-spacing:.06em;margin-left:2px}
.sm-fb-date__t{display:flex;flex-wrap:wrap;column-gap:8px;font-size:13.5px;font-weight:500;color:#4A3936}

.sm-fb-date__p{white-space:nowrap}
.sm-fb-date__t ins{text-decoration:none;font-weight:700;color:#9C6158}
.sm-fb-date__t del{color:#9C8580}
.sm-fb-date__t .sm-per{font-size:12px;color:#6A5552}
html body.sm-fb .sm-fb-dates__more{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px;color:#fff;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px;text-shadow:0 1px 2px rgba(43,20,24,.55),0 2px 14px rgba(43,20,24,.45)}
@media (max-width:767px){
  html body.sm-fb .page-header .ph-info-footer{margin-top:12px}
  html body.sm-fb .sm-fb-date{min-height:56px;padding:8px 11px}
  .sm-fb-date__d{font-size:15px}
  .sm-fb-date__t{font-size:13px}
}
/* booking box: the date list is the main control; the calendar only after „Daugiau datų“ */
html body.v3.sm-fb .v3-sale-dates:not(.is-all) button.v3-sale-dates__d:nth-of-type(n+5){display:none!important}
html body.v3.sm-fb .v3-sale-dates button.v3-sale-dates__all{display:block;grid-column:1/-1;width:100%;margin:10px 0 0;padding:12px!important;min-height:44px;background:none!important;border:1px dashed #C9958A!important;border-radius:999px!important;color:#7A463F!important;font:700 14px/1 Barlow,"Barlow Fallback",sans-serif;letter-spacing:.04em;text-transform:none!important;box-shadow:none!important;cursor:pointer}
html body.sm-fb .experience-cart:has(.v3-sale-dates):not(.sm-fb-cal) #datepicker{display:none}
html body.sm-fb .experience-cart:has(.v3-sale-dates):not(.sm-fb-cal) .event-calendar{grid-template-columns:minmax(0,1fr)!important}

/* ---------- 4. Shop / category grid on phones: the first prices on the first screen ---------- */
@media (max-width:700px){
  html body.v3.sm-fb .v3-shophead{padding:14px 0 12px}
  html body.v3.sm-fb .v3-shophead .v3-eyebrow{margin:0;font-size:11px}
  html body.v3.sm-fb .v3-shophead .v3-h2{margin-top:4px;font-size:30px!important;line-height:1.08}
  html body.v3.sm-fb .v3-shophead__desc{margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px}
  html body.v3.sm-fb .v3-catnav{margin-top:12px}
  html body.v3.sm-fb .v3-shop{padding-top:12px}
  /* „Filtrai“ and the sort list on one row; the count („164 dovanos“ = the title line) only once filters are on */
  html body.v3.sm-fb .v3-shoptools{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}
  html body.v3.sm-fb .v3-shoptools .v3-fbar{width:auto!important;flex:0 1 auto;min-width:0}
  html body.v3.sm-fb .v3-shoptools .v3-fbar.is-open{flex:1 1 100%;width:100%!important}
  html body.v3.sm-fb .v3-shoptools .v3-shop__bar{width:auto!important;flex:1 1 150px;min-width:0;margin:0!important}
  html body.v3.sm-fb .v3-shop__bar select.orderby{width:100%;min-height:44px;font-size:15px}
  html body.v3.sm-fb .v3-fbar[data-fbar] .v3-fbar__count{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html body.v3.sm-fb .v3-fbar[data-fbar] .v3-fbar__clear:not([hidden])~.v3-fbar__count{position:static!important;width:auto;height:auto;overflow:visible;clip:auto}
  /* card buttons: the short label wraps instead of „UŽKLAUSTI D…“ */
  html body.v3.sm-fb .v3-card .v3-card__row .v3-add,html body.v3.sm-fb .v3-card .v3-add{height:auto!important;min-height:44px!important;padding:6px 10px!important}
  html body.v3.sm-fb .v3-card .v3-add .v3-add__s{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;text-align:center}
  /* home first-screen cards: icon + a short word, never an icon alone */
  html body.sm-fb .v4-firstbuy__add{width:auto;min-width:48px;height:auto;min-height:48px;flex-direction:column;gap:2px;padding:5px 10px;border-radius:999px}
  html body.sm-fb .v4-firstbuy__add::after{content:var(--sm-fb-add);font:700 10.5px/1.1 Barlow,"Barlow Fallback",sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
  html body.sm-fb .v4-firstbuy__go::after{content:var(--sm-fb-dates)}
}

/* ---------- dark mode (staging) ---------- */
html[data-theme="dark"] .sm-fb-trust li{color:#E3CFC8}
html[data-theme="dark"] .sm-fb-trust svg,html[data-theme="dark"] .sm-fb-opt__h{color:#EBCBBE}
html[data-theme="dark"] body.sm-fb .sm-fb-pill{background:#36231F;border-color:#5C423C;color:#F5E9E4}
html[data-theme="dark"] body.sm-fb .sm-fb-pill:hover{background:#432C27;border-color:#EBCBBE}
html[data-theme="dark"] body.sm-fb .sm-fb-pill.is-on{background:#432C27;border-color:#EBCBBE;box-shadow:inset 0 0 0 1px #EBCBBE;color:#F5E9E4}
html[data-theme="dark"] body.sm-fb .sm-fb-pill small{color:#E3CFC8}
html[data-theme="dark"] body.sm-fb .sm-fb-date{background:rgba(46,29,25,.94);border-color:rgba(235,203,190,.35);color:#F5E9E4}
html[data-theme="dark"] .sm-fb-date__d small,html[data-theme="dark"] .sm-fb-date__t ins{color:#EBCBBE}
html[data-theme="dark"] .sm-fb-date__t,html[data-theme="dark"] .sm-fb-date__t .sm-per{color:#E3CFC8}
/* the old delivery list keeps its padding/background when all its rows are hidden – hide it then */
body.sm-fb .summary .product-features:not(:has(>li:not(:has(>div>.pf-highlight)))){display:none}

/* Add-to-cart popup (moved from css/fastbuy-checkout.css – that file now loads only on cart/checkout, audit 12) */
html body.v3.sm-fb .xoo-cp-container .xoo-cp-atcn.xoo-cp-success{font-family:var(--serif,'Playfair Display',serif)!important;font-size:21px!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;color:#4A2722!important}
html body.v3.sm-fb .xoo-cp-container .sm-fb-tourline{margin:4px 0 0;font-size:14px;line-height:1.35;color:#5A3A36}
html body.v3.sm-fb .xoo-cp-container .sm-fb-ppl{font-weight:700;white-space:nowrap}
html body.v3.sm-fb .xoo-cp-container .sm-fb-per{font-size:.85em;font-weight:500;color:#9C6158;white-space:nowrap}
html body.v3.sm-fb .xoo-cp-container .xoo-cp-pprice{white-space:nowrap}
/* primary „Mokėti →“, then two quiet text buttons on one line */
html body.v3.sm-fb .xoo-cp-container .sm-cp-more.sm-cp-more{justify-content:space-between;gap:4px 14px}
html body.v3.sm-fb .xoo-cp-container .sm-cp-more a.xcp-btn.sm-cp-keep.sm-cp-keep.sm-cp-keep.sm-cp-keep:not(.v3-add){display:inline-flex!important;align-items:center;min-height:44px;padding:0 2px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#9C6158!important;font-family:inherit;font-size:15px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html body.v3.sm-fb .xoo-cp-container .sm-cp-more .sm-cp-cart.sm-cp-cart{display:inline-flex;align-items:center;min-height:44px;flex:0 0 auto;font-size:14px;font-weight:500;color:#7A463F!important}
