/* ============================================================
   LAIVYNAS — WooCommerce dizaino pritaikymas.
   Prekių tinklelis, mygtukai, kainos, krepšelis, prekės puslapis —
   suderinta su temos spalvomis (--color-brand) ir kortelių stiliumi.
   Užkraunama tik WooCommerce puslapiuose (žr. inc/enqueue.php).
   ============================================================ */

/* ── Spalvų žetonai ──
   Šiame faile 25 vietose rašoma var(--slate-200,#e2e8f0) ir panašiai, bet
   patys --slate-* niekur nebuvo apibrėžti — visada suveikdavo atsarginė
   reikšmė. Dalis jų nesutapo su Tailwind (pvz. slate-300: mūsų #cbd5e1 vs
   Tailwind #cad5e2), todėl tie patys pilki tonai puslapyje skyrėsi.
   Pririšam prie Tailwind žetonų, kad visa svetainė naudotų vieną skalę. */
:root{
  --slate-50:  var(--color-slate-50,  #f8fafc);
  --slate-100: var(--color-slate-100, #f1f5f9);
  --slate-200: var(--color-slate-200, #e2e8f0);
  --slate-300: var(--color-slate-300, #cad5e2);
  --slate-400: var(--color-slate-400, #90a1b9);
  --slate-500: var(--color-slate-500, #62748e);
  --slate-700: var(--color-slate-700, #314158);
  --slate-800: var(--color-slate-800, #1d293d);
  --slate-900: var(--color-slate-900, #0f172b);
}

/* ── Bendras konteineris ── */
.woocommerce, .woocommerce-page { color: var(--foreground); }
.woocommerce-products-header,
.woocommerce .woocommerce-breadcrumb {
  max-width: 72rem; margin-inline: auto;
}
.woocommerce .woocommerce-breadcrumb {
  font-size: .875rem; color: var(--slate-500, #64748b); margin-bottom: 1.25rem;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--slate-500, #64748b); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--color-brand); }
.woocommerce-products-header__title.page-title {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.25rem); font-weight: 800; color: var(--slate-900, #0f172a);
}
.woocommerce-result-count { font-size: .875rem; color: var(--slate-500, #64748b); }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--slate-300, #cbd5e1); border-radius: .5rem; padding: .4rem .6rem; font-size: .85rem;
}

/* ── Prekių TINKLELIS (li.product jau turi Tailwind klases iš content-product.php) ── */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 2rem !important;
  padding: 0 !important;
}
@media (min-width: 640px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); } }
/* 4 stulpeliai nuo 900px (kad Retina ~1000px ekranai rodytų 4, ne 3). */
@media (min-width: 900px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; clear: none !important;
}
.woocommerce ul.products li.product::before { display: none !important; }

/* „Panašūs produktai" / „Up-sells" — VISADA 4 prekių eilutė (ne 3+1).
   SPRENDIMAS: prekės puslapyje (body.single-product) VIENINTELIS produktų
   sąrašas yra būtent „Panašūs produktai" — tad taikom pagal body klasę,
   nepriklausomai nuo related sekcijos wrapper klasės, ir NEpaliesdami
   parduotuvės archyvo tinklelio. Apima klasikinį IR blokinį markup'ą. */
.single-product ul.products,
.single-product .wc-block-grid__products,
.single-product .wp-block-woocommerce-product-template,
.single-product .wc-block-product-template,
.single-product .related ul,
.single-product .up-sells ul {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: auto !important;
}
.single-product ul.products > li,
.single-product .wc-block-grid__products > li,
.single-product .wc-block-product-template > li,
.single-product .related ul > li,
.single-product .up-sells ul > li {
  width: auto !important; margin: 0 !important; float: none !important; clear: none !important; max-width: none !important;
}
@media (min-width: 700px) {
  .single-product ul.products,
  .single-product .wc-block-grid__products,
  .single-product .wp-block-woocommerce-product-template,
  .single-product .wc-block-product-template,
  .single-product .related ul,
  .single-product .up-sells ul { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Kaina kortelėje (get_price_html) — prekės ženklo spalva, sena kaina perbraukta */
.woocommerce ul.products li.product .price { color: var(--color-brand) !important; font-weight: 700; font-size: .875rem; }
.woocommerce ul.products li.product .price del { color: var(--slate-400, #94a3b8); font-weight: 400; margin-right: .35rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* ── MYGTUKAI (add to cart, submit ir kt.) ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce-page a.button,
.woocommerce-page button.button {
  background-color: var(--color-brand) !important;
  color: #fff !important;
  border-radius: .5rem !important;
  font-weight: 600 !important;
  padding: .6rem 1.1rem !important;
  transition: background-color .2s;
  text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.woocommerce #respond input#submit:hover { background-color: var(--color-brand-dark) !important; }
.woocommerce a.button.wc-forward, .woocommerce .added_to_cart { border-radius: .5rem; }

/* ── PREKĖS PUSLAPIS (single product) ── */
.woocommerce div.product { max-width: 72rem; margin-inline: auto; }
.woocommerce div.product .product_title { font-size: 2rem; font-weight: 800; color: var(--slate-900, #0f172a); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--color-brand); font-weight: 800; font-size: 1.5rem; }
.woocommerce div.product p.price del { color: var(--slate-400, #94a3b8); font-weight: 400; font-size: 1.1rem; }
.woocommerce .woocommerce-tabs ul.tabs li.active { border-color: var(--color-brand); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--color-brand); }
.woocommerce span.onsale {
  background: linear-gradient(to right, #dc2626, #f97316); color: #fff; border-radius: 999px;
  min-height: auto; min-width: auto; line-height: 1; padding: .35rem .6rem; font-weight: 800;
}

/* ── PRANEŠIMAI ── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--color-brand);
  border-radius: .5rem;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--color-brand); }

/* ── KREPŠELIS / APMOKĖJIMAS ── */
.woocommerce table.shop_table { border-radius: .75rem; overflow: hidden; }
.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout .woocommerce h3 { color: #0f172a; font-weight: 700; }
/* :where(:not(.cart)) — tik krepšelio / apmokėjimo / paskyros formoms. Prekės
   pirkimo formos (form.cart, pvz. dovanų kupono laukai) šie seni !important
   stiliai neturi liesti; specifiškumas dėl :where nepakinta. */
.woocommerce form:where(:not(.cart)) .form-row input.input-text,
.woocommerce form:where(:not(.cart)) .form-row textarea,
.woocommerce .select2-container .select2-selection {
  border: 1px solid var(--slate-300, #cbd5e1) !important; border-radius: .5rem !important; padding: .5rem .7rem;
}

/* ── FILTRŲ WIDGET'AI (jei naudojami WooCommerce filtrai) ── */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--color-brand); }
.widget_layered_nav ul li a:hover, .widget_product_categories ul li a:hover { color: var(--color-brand); }

/* ============================================================
   Plaukiojantis krepšelio mygtukas (FAB)
   ============================================================ */
.lv-cart-fab{
  position:fixed; right:20px; bottom:88px; z-index:60;
  display:flex; align-items:center; justify-content:center;
  height:56px; width:56px; border-radius:999px; border:0; padding:0; cursor:pointer;
  background:var(--color-brand); color:#fff;
  box-shadow:0 10px 26px rgba(14,99,214,.38);
  transition:transform .2s ease, background-color .2s ease;
}
.lv-cart-fab:hover{ transform:scale(1.06); background:var(--color-brand-dark); color:#fff; }
.lv-cart-fab .lv-cart-count{
  position:absolute; top:-4px; right:-4px; min-width:22px; height:22px; padding:0 6px;
  display:flex; align-items:center; justify-content:center; border-radius:999px;
  background:#ef4444; color:#fff; font-size:12px; font-weight:800; line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
@media (max-width:640px){ .lv-cart-fab{ right:14px; bottom:20px; height:52px; width:52px; } }

/* Greitas iškylantis krepšelio turinys (popup) — šalia FAB, be pilno ekrano
   fono (lengvesnis nei norų sąrašo stalčius, uždaromas paspaudus šalia). */
.lv-cart-pop{
  position:fixed; right:20px; bottom:156px; z-index:61;
  width:min(360px,90vw); max-height:min(70vh,520px);
  background:#fff; border-radius:1rem; overflow:hidden;
  box-shadow:0 20px 44px -12px rgba(15,23,42,.28), 0 2px 8px rgba(15,23,42,.1);
  display:flex; flex-direction:column;
  transform-origin:bottom right;
  animation:lv-cart-pop-in .18s ease-out;
}
.lv-cart-pop[hidden]{ display:none; }
.lv-cart-pop .lv-col-list{ flex:1; overflow-y:auto; }
@keyframes lv-cart-pop-in{ from{ opacity:0; transform:scale(.92) translateY(8px); } to{ opacity:1; transform:none; } }
/* Mobiliame kontaktų burbulas stumia FAB į bottom:82px (premium.css,
   !important) — popup lieka virš jo (82 + 52 aukštis + 12 tarpas). */
@media (max-width:640px){ .lv-cart-pop{ right:14px; bottom:146px; max-height:min(60vh,440px); } }
/* Palyginimo juosta pakelia FAB iki bottom:142px (premium.css) — popup atitinkamai aukščiau. */
body:has(.lv-cmp-bar:not([hidden])) .lv-cart-pop{ bottom:210px; }
@media (max-width:640px){ body:has(.lv-cmp-bar:not([hidden])) .lv-cart-pop{ bottom:146px; } }

.lv-cart-pop-foot{ border-top:1px solid #e2e8f0; padding:.9rem 1.1rem 1rem; display:flex; flex-direction:column; gap:.6rem; }
.lv-cart-pop-total{ display:flex; align-items:center; justify-content:space-between; font-size:.95rem; color:#334155; }
.lv-cart-pop-total strong{ font-size:1.1rem; color:#0f172a; }
.lv-cart-pop-actions{ display:flex; gap:.5rem; }
.lv-cart-pop-view, .lv-cart-pop-checkout{ flex:1; text-align:center; padding:.6rem .8rem; border-radius:.6rem; font-size:.85rem; font-weight:700; text-decoration:none; }
.lv-cart-pop-view{ background:#f1f5f9; color:#0f172a; }
.lv-cart-pop-view:hover{ background:#e2e8f0; }
.lv-cart-pop-checkout{ background:var(--color-brand); color:#fff; }
.lv-cart-pop-checkout:hover{ background:var(--color-brand-dark); }
.lv-cart-pop-foot .lv-clear-link{ text-align:center; }

/* ============================================================
   Krepšelis ir apmokėjimas — modernus, paprastas (temos stilius)
   ============================================================ */
/* Krepšelis, apmokėjimas ir paskyra nėra straipsniai. page.php turinį deda į
   .lv-prose, kurio max-width:70ch (~640px) — be šio atjungimo visa krepšelio
   lentelė lieka suspausta į kairįjį puslapio kraštą. Vidiniam elementui
   nurodytas max-width čia nepadeda: vaikas negali būti platesnis už tėvą. */
.woocommerce-cart .lv-prose,
.woocommerce-checkout .lv-prose,
.woocommerce-account .lv-prose{
  max-width:none;
  color:inherit;
  font-size:inherit;
  line-height:inherit;
}

.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content,
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce{ max-width:72rem; margin-inline:auto; }

/* premium.css straipsnių lentelėms nustato display:block (kad plačios lentelės
   slinktų savo konteineryje). Tada naršyklė aplink thead/tbody sukuria anoniminę
   lentelę, o width:100% galioja tik išoriniam blokui — pati lentelė susitraukia
   iki turinio pločio. Užsakymo suvestinė dėl to atsiduria siaurame kairiajame
   krašte, o baltas rėmelis aplink lieka platus. WooCommerce lentelėms grąžinam
   tikrą lentelės rodymą.

   OVERFLOW ČIA NELIEČIAM: .woocommerce table.shop_table{overflow:hidden} reikia
   1rem kampų nukirpimui — perrašius jį, pilka antraštės juosta išlįstų kampuose. */
.lv-prose .woocommerce table,
.lv-prose table.shop_table{
  display:table;
  width:100%;
  max-width:100%;
}
/* .lv-prose langeliams deda rėmelį iš visų pusių, o woocommerce.css perrašo tik
   viršutinį — be šito tarp stulpelių liktų vertikalios linijos. */
.lv-prose .woocommerce th,
.lv-prose .woocommerce td{
  border-left:0;
  border-right:0;
  border-bottom:0;
}

/* 2026-09-28 PAŠALINTA. Čia buvo krepšelio išdėstymas, paremtas
   `table.shop_table.cart` lentele ir plūduriuojančiu `.cart-collaterals`.
   Būtent jis ir sukeldavo persidengimą: suvestinės blokas užlipdavo ant
   prekių lentelės ir uždengdavo „Tarpinę sumą" bei „Atnaujinti krepšelį".

   Krepšelį dabar išveda temos šablonas `woocommerce/cart/cart.php`
   (tinklelis, be lentelės ir be float), o jo stiliai gyvena
   `redesign.css` → „KREPŠELIS". Šios taisyklės nebeturėjo ką stilizuoti,
   bet grid'as vis tiek paliko tuščią 400px stulpelį dešinėje. */

.woocommerce table.shop_table{
  border:1px solid var(--slate-200,#e2e8f0) !important; border-radius:1rem !important;
  overflow:hidden; background:#fff; border-collapse:separate !important; border-spacing:0;
}
.woocommerce table.shop_table thead th{ background:var(--slate-50,#f8fafc); font-weight:700; color:var(--slate-700,#334155); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td{ border-top:1px solid var(--slate-100,#f1f5f9) !important; padding:1rem; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce form.checkout_coupon,
.woocommerce .woocommerce-checkout-review-order{
  border:1px solid var(--slate-200,#e2e8f0); border-radius:1rem; background:#fff; padding:1.5rem;
}
.woocommerce-checkout #order_review_heading{ font-size:1.25rem; font-weight:800; color:var(--slate-900,#0f172a); margin-top:1.5rem; }
.woocommerce .cart_totals h2,
.woocommerce-checkout .woocommerce h3{ font-size:1.15rem; font-weight:700; color:#0f172a; }
.woocommerce-checkout .col2-set, .woocommerce .col2-set{ gap:1.5rem; }

/* Įvedimo laukai — švarūs, apvalūs (tik ne prekės pirkimo formoje — žr. aukščiau) */
.woocommerce form:where(:not(.cart)) .form-row input.input-text,
.woocommerce form:where(:not(.cart)) .form-row textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce .select2-container--default .select2-selection--single{
  border:1px solid var(--slate-300,#cbd5e1) !important; border-radius:.6rem !important;
  padding:.65rem .8rem !important; font-size:.95rem; min-height:auto; background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.woocommerce form:where(:not(.cart)) .form-row input.input-text:focus,
.woocommerce-checkout input:focus,
.woocommerce form:where(:not(.cart)) .form-row textarea:focus{
  border-color:var(--color-brand) !important; box-shadow:0 0 0 3px rgba(14,99,214,.12) !important; outline:none;
}
.woocommerce form .form-row label{ font-weight:600; color:var(--slate-700,#334155); margin-bottom:.35rem; }

/* Mokėjimo blokas + „Užsakyti" mygtukas */
.woocommerce #payment{ background:transparent; border-radius:1rem; }
.woocommerce #payment ul.payment_methods{ border:1px solid var(--slate-200,#e2e8f0); border-radius:.75rem; background:#fff; }
.woocommerce #payment div.payment_box{ background:var(--slate-50,#f8fafc); border-radius:.6rem; }
.woocommerce #payment #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width:100%; text-align:center; font-size:1rem !important; padding:.9rem 1.2rem !important; border-radius:.75rem !important;
}
.woocommerce a.remove{ color:var(--color-brand) !important; border-color:transparent; }
.woocommerce a.remove:hover{ background:var(--color-brand) !important; color:#fff !important; }
.woocommerce .quantity input.qty{ border:1px solid var(--slate-300,#cbd5e1); border-radius:.5rem; padding:.4rem; }

/* ============================================================
   Krepšelio / apmokėjimo puslapio KONTEINERIS — tarpai nuo kraštų
   (WooCommerce blokų ir klasikinis variantas)
   ============================================================ */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce{
  max-width:75rem !important;
  margin-inline:auto !important;
  /* Be !important: Redesign šablone šį konteinerį jau apgaubia puslapio
     kortelė su savo vidiniu tarpu (.lv-page--doc.lv-page--shop > article).
     Su !important čia tarpai susidėdavo ir 320 px ekrane krepšelio
     suvestinei likdavo 150 px — „atsiskaitymą" netilpdavo į mygtuką. */
  padding:2rem 1.5rem 3rem;
  box-sizing:border-box;
}
@media (max-width:640px){
  .woocommerce-cart .wp-block-woocommerce-cart,
  .woocommerce-checkout .wp-block-woocommerce-checkout,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce{ padding:1.25rem 1rem 2rem; }
}
/* Blokų krepšelio 2 stulpeliai — tarpai */
.wp-block-woocommerce-cart .wc-block-cart{ gap:2rem; }
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar{
  border:1px solid var(--slate-200,#e2e8f0); border-radius:1rem; background:#fff; padding:1.5rem;
}
.wc-block-cart-items__row, .wc-block-cart-item{ border-color:var(--slate-100,#f1f5f9) !important; }
.wc-block-components-text-input input{
  border:1px solid var(--slate-300,#cbd5e1) !important; border-radius:.6rem !important;
}
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.wc-block-cart .wc-block-cart__submit-container a{
  background:var(--color-brand) !important; border-radius:.75rem !important; font-weight:600 !important;
}

/* ============================================================
   „Naujos prekės" / WooCommerce BLOKŲ produktų tinklelis
   → temos kortelės dizainas (kaip kategorijose)
   ============================================================ */
.wc-block-grid__products,
.wp-block-woocommerce-product-template,
.products-block-post-template{
  display:grid !important;
  grid-template-columns:repeat(2,1fr);
  gap:1rem !important; list-style:none; margin:0; padding:0;
}
@media (min-width:640px){ .wc-block-grid__products,.wp-block-woocommerce-product-template{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:900px){ .wc-block-grid__products,.wp-block-woocommerce-product-template{ grid-template-columns:repeat(4,1fr); } }
.wc-block-grid__product,
.wp-block-woocommerce-product-template li.product,
li.wc-block-product{
  border:1px solid var(--slate-200,#e2e8f0) !important;
  border-radius:.75rem !important; background:#fff !important;
  padding:.75rem !important; margin:0 !important; width:auto !important;
  box-shadow:0 1px 2px rgba(0,0,0,.05); transition:box-shadow .2s ease; text-align:left;
}
.wc-block-grid__product:hover, li.wc-block-product:hover{ box-shadow:0 10px 24px rgba(0,0,0,.1); }
.wc-block-grid__product-image img, .wc-block-components-product-image img{
  border-radius:.5rem; aspect-ratio:1/1; object-fit:contain; background:#fff;
}
.wc-block-grid__product-title, .wc-block-components-product-name{
  font-size:.875rem !important; font-weight:500 !important; color:var(--slate-800,#1e293b) !important;
}
.wc-block-grid__product-price, .wc-block-components-product-price{
  color:var(--color-brand) !important; font-weight:800 !important; font-size:.95rem;
}
.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button,
li.wc-block-product .wp-block-button__link{
  background:var(--color-brand) !important; color:#fff !important; border-radius:.5rem !important;
  font-weight:600 !important; width:100%;
}

/* Krepšelio/checkout puslapiuose plaukiojantis krepšelio mygtukas slepiamas */
body.woocommerce-cart .lv-cart-fab,
body.woocommerce-checkout .lv-cart-fab{ display:none !important; }

/* ============================================================
   Checkout BLOKO laukai (El. paštas, Vardas, Gatvė…) — kylanti etiketė
   ("floating label") ir įvesta reikšmė buvo per arti viena kitos (vos
   keli pikseliai), todėl vizualiai atrodė susiliejančios. Daugiau
   vietos: aukštesnis laukas, etiketė pakelta arčiau viršaus.
   ============================================================ */
/* SVARBU dėl specifiškumo — čia buvo tikroji priežastis.
   Aukščiau esanti „klasikinio" checkout taisyklė naudoja
   `.woocommerce-checkout input[type="email"]` — specifiškumas (0,2,1) — ir
   taikosi TAIP PAT į blokų laukus. Abi taisyklės `!important`, todėl
   nugalėdavo didesnis specifiškumas: laukas gaudavo `padding:.65rem`, o
   pakelta etiketė atsidurdavo tiesiai ant įvesto teksto.
   Todėl pridėtas `body.woocommerce-checkout` → (0,2,2) ir taisyklė laimi. */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input textarea{
  min-height:56px !important;
  padding-top:1.75rem !important;
  padding-bottom:.45rem !important;
  padding-left:.8rem !important;
  padding-right:.8rem !important;
}
body.woocommerce-checkout .wc-block-components-text-input label{
  top:.95rem !important;
}
body.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-text-input input:focus ~ label,
body.woocommerce-checkout .wc-block-components-text-input textarea:focus ~ label{
  top:.35rem !important;
}
/* Šalis / Regionas ir kiti sąrašo laukai — ta pati problema, kitas apvalkalas. */
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-combobox input{
  min-height:56px !important;
  padding-top:1.75rem !important;
  padding-bottom:.45rem !important;
}
body.woocommerce-checkout .wc-block-components-combobox.is-active label{
  top:.35rem !important;
}

/* Krepšelio/checkout puslapiuose slepiam breadcrumb „path" kampe */
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb{ display:none !important; }

/* Krepšelio/checkout: slepiam breadcrumb IR puslapio antraštę ("Cart"/"Checkout") */
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-checkout .wp-block-post-title,
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-cart header.entry-header,
body.woocommerce-checkout header.entry-header{ display:none !important; }

/* Mano „Panašūs produktai" sekcija (laivynas_render_related_products) —
   garantuotas 4-stulpelių tinklelis nuo 700px (kad Retina ~1000px nebūtų 3+1). */
.lv-related > .grid{ display:grid !important; grid-template-columns:repeat(2,1fr) !important; gap:1rem !important; }
@media (min-width:700px){ .lv-related > .grid{ grid-template-columns:repeat(4,1fr) !important; } }

/* ============================================================
   KREPŠELIS IR APMOKĖJIMAS — dizaino tvarkymas
   ------------------------------------------------------------
   Viena taisyklė visam skyriui: kortelė yra TALPYKLA (baltas fonas,
   1px rėmelis, 1rem kampai, 1.5rem vidinis tarpas), o lentelė joje —
   TURINYS. Todėl kortelėje esanti lentelė savo rėmelio, kampų ir fono
   neturi. Anksčiau abu turėjo, tad suvestinė buvo piešiama kaip
   kortelė kortelėje su dvigubu rėmeliu.
   ============================================================ */

/* Tarpų skalė — kad visos kortelės kvėpuotų vienodai. */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce form.checkout_coupon{
  padding:1.5rem;
  box-shadow:0 1px 2px rgba(15,23,43,.04);
}

/* Kortelėje esanti lentelė — be savo rėmelio, kampų ir fono. */
.woocommerce .cart_totals table.shop_table,
.woocommerce-checkout #order_review table.shop_table,
.woocommerce .woocommerce-checkout-review-order table.shop_table{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  margin:0;
}
/* Lentelė prigludusi prie kortelės kraštų — tarpą duoda pati kortelė. */
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td{
  padding:.75rem 0 !important;
  border-top:1px solid var(--slate-100) !important;
}
.woocommerce .cart_totals table.shop_table tr:first-child th,
.woocommerce .cart_totals table.shop_table tr:first-child td,
.woocommerce-checkout #order_review table.shop_table thead th{
  border-top:0 !important;
}
.woocommerce .cart_totals table.shop_table thead th,
.woocommerce-checkout #order_review table.shop_table thead th{
  background:transparent !important;
  padding-bottom:.75rem !important;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--slate-500);
}

/* Antraštė kortelėje — vienodas tarpas nuo viršaus visose kortelėse. */
.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading{
  margin:0 0 1rem !important;
  padding:0;
  font-size:1.15rem;
  font-weight:700;
  color:var(--slate-900);
}

/* Galutinė suma — vienintelė eilutė, kuri turi rėžti akį.
   Selektoriuje būtina palikti `table.shop_table`: bendroji eilučių taisyklė
   aukščiau yra specifiškesnė (…table.shop_table th = 0-3-2), tad be jos
   2px brūkšnys pralaimėtų 1px brūkšniui. */
.woocommerce .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart_totals table.shop_table tr.order-total td,
.woocommerce-checkout #order_review table.shop_table tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tr.order-total td{
  padding-top:1rem !important;
  border-top:2px solid var(--slate-200) !important;
  font-size:1.05rem;
}
.woocommerce .cart_totals table.shop_table tr.order-total td,
.woocommerce-checkout #order_review table.shop_table tr.order-total td{
  font-weight:800;
  color:var(--slate-900);
}
/* PVM eilutė po suma — tik paaiškinimas, ne antra kaina. */
.woocommerce .cart_totals .order-total small,
.woocommerce-checkout #order_review .order-total small{
  display:block;
  margin-top:.15rem;
  font-size:.78rem;
  font-weight:500;
  color:var(--slate-500);
}

/* Pristatymo pasirinkimai — sąrašas be taškų, patogūs paspausti. */
.woocommerce ul#shipping_method{ margin:0; padding:0; list-style:none; }
.woocommerce ul#shipping_method li{
  margin:0;
  padding:.3rem 0;
  display:flex;
  align-items:flex-start;
  gap:.5rem;
}
.woocommerce ul#shipping_method li input[type="radio"]{ margin-top:.25rem; flex:0 0 auto; }
.woocommerce ul#shipping_method li label{ margin:0; line-height:1.45; cursor:pointer; }
.woocommerce .woocommerce-shipping-destination,
.woocommerce .shipping-calculator-button{ font-size:.85rem; color:var(--slate-500); }

/* „Pereiti prie apmokėjimo" — pagrindinis veiksmas, per visą kortelės plotį. */
.woocommerce .wc-proceed-to-checkout{ padding:1.25rem 0 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button{
  display:block;
  width:100%;
  text-align:center;
  padding:.85rem 1rem !important;
  font-size:1rem !important;
  margin:0;
}

/* ── Prekių lentelė ── */
.woocommerce-cart table.shop_table.cart td{ vertical-align:middle; }
.woocommerce-cart table.shop_table.cart td.product-thumbnail img{
  width:56px; height:56px; object-fit:contain; display:block;
}
.woocommerce-cart table.shop_table.cart td.product-name a{
  font-weight:600; color:var(--slate-900); text-decoration:none;
}
.woocommerce-cart table.shop_table.cart td.product-name a:hover{ color:var(--color-brand); }
.woocommerce-cart table.shop_table.cart .quantity input.qty{
  width:64px; min-height:40px; padding:.4rem .5rem;
  border:1px solid var(--slate-300); border-radius:.5rem; text-align:center;
}
/* Šalinimo kryželis — pilkas, paryškėja tik užvedus, kad nerėktų iš lentelės. */
.woocommerce-cart table.shop_table.cart td.product-remove a.remove{
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:999px;
  color:var(--slate-400) !important; background:transparent !important;
  font-size:1.25rem; line-height:1; text-decoration:none;
  transition:color .15s ease, background-color .15s ease;
}
.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover{
  color:#dc2626 !important; background:#fef2f2 !important;
}

/* Kuponas ir „Atnaujinti krepšelį" vienoje eilutėje po lentele. */
.woocommerce-cart table.shop_table.cart td.actions{
  padding:1rem !important;
  background:var(--slate-50);
}
.woocommerce-cart table.shop_table.cart td.actions .coupon{
  display:flex; gap:.5rem; align-items:center; float:none;
}
.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text{
  width:auto; flex:0 1 190px; min-height:40px; margin:0;
}

/* ── Pranešimai ──
   WooCommerce numatytieji pranešimai yra pilkas blokas su 3px viršutine
   linija. Perdarom į kortelę su prekės ženklo kraštu kairėje, kad jie
   atrodytų kaip likusi svetainė, o mygtukas gulėtų toje pačioje eilutėje. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:0 0 1rem !important;
  padding:.9rem 1.1rem !important;
  border:1px solid var(--slate-200) !important;
  border-left:3px solid var(--color-brand) !important;
  border-radius:.75rem !important;
  background:#fff !important;
  color:var(--slate-700);
  font-size:.95rem;
  line-height:1.5;
  box-shadow:0 1px 2px rgba(15,23,43,.04);
}
.woocommerce-error{ border-left-color:#dc2626 !important; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{
  position:static;
  flex:0 0 auto;
  margin:0;
  font-size:1.05rem;
  line-height:1;
}
.woocommerce-error::before{ color:#dc2626; }
/* Mygtukas pranešime — dešiniajame krašte, nenutempiantis teksto.
   WooCommerce jam taiko float:right specifiškesne taisykle; lanksčiame
   išdėstyme float nieko nedaro, o margin-left lieka 0, todėl mygtukas
   prilipdavo prie teksto. Reikia !important. */
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-info .button{
  margin-left:auto !important;
  flex:0 0 auto;
  padding:.5rem .9rem !important;
  font-size:.875rem !important;
}
.woocommerce-error{ flex-wrap:wrap; }
.woocommerce-error li{ flex:1 1 100%; margin:0; list-style:none; }

/* ── Prieinamumas ──
   Matomas fokuso žiedas visiems valdikliams: be jo klaviatūra
   naršantis žmogus nemato, kur yra. */
.woocommerce a:focus-visible,
.woocommerce button:focus-visible,
.woocommerce input:focus-visible,
.woocommerce select:focus-visible,
.woocommerce textarea:focus-visible{
  outline:2px solid var(--color-brand);
  outline-offset:2px;
  border-radius:.35rem;
}

/* ── Siauras ekranas ──
   WooCommerce sukrauna lentelę į korteles (shop_table_responsive), todėl
   1rem tarpai iš visų pusių tampa per dideli, o veiksmų mygtukai turi
   išsitiesti per visą plotį, kad juos būtų patogu paspausti pirštu. */
@media (max-width:768px){
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review,
  .woocommerce form.checkout_coupon{ padding:1.15rem; }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td{ padding:.75rem !important; }

  .woocommerce-cart table.shop_table.cart td.actions .coupon{ flex-wrap:wrap; }
  .woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text{ flex:1 1 100%; }
  .woocommerce-cart table.shop_table.cart td.actions .coupon .button,
  .woocommerce-cart table.shop_table.cart td.actions > .button{ width:100%; min-height:44px; }

  /* Pirštui patogus šalinimo mygtukas. */
  .woocommerce-cart table.shop_table.cart td.product-remove a.remove{ width:44px; height:44px; }

  /* WooCommerce numatytas elgesys visai paslepia prekės nuotrauką siaurame
     ekrane (žr. woocommerce-smallscreen.css) — klientas krepšelyje
     nebematydavo, ką perka. Grąžinam nuotrauką be „Nuotrauka:" etiketės,
     virš prekės pavadinimo. */
  .woocommerce #content table.cart .product-thumbnail,
  .woocommerce table.cart .product-thumbnail,
  .woocommerce-page #content table.cart .product-thumbnail,
  .woocommerce-page table.cart .product-thumbnail{
    display:block !important;
    text-align:center !important;
    padding-top:1.15rem !important;
  }
  .woocommerce table.cart .product-thumbnail::before,
  .woocommerce-page table.cart .product-thumbnail::before{
    content:none !important;
  }
  .woocommerce table.cart .product-thumbnail img,
  .woocommerce-page table.cart .product-thumbnail img{
    display:inline-block;
    width:88px;
    height:auto;
    border-radius:.6rem;
    border:1px solid #e2e8f0;
  }

  .woocommerce-message,
  .woocommerce-info{ flex-wrap:wrap; }
  .woocommerce-message .button,
  .woocommerce-info .button{ margin-left:0; width:100%; text-align:center; min-height:44px; }
}

/* Nematomas „tiltelis" tarp krepšelio mygtuko ir iškylančio langelio.
   Tarp jų yra ~20 px puslapio turinio; be tiltelio pelė, keliaudama link
   „Išvalyti krepšelį", išeidavo iš valdiklio ir langelis užsidarydavo.
   Tiltelis pelės įvykius gaudo TIK kai langelis atidarytas — kitaip jis
   uždengtų turinį po savimi. */
.lv-cart-fab::before{
  content:""; position:absolute; left:-10px; right:-10px; bottom:100%;
  height:120px; pointer-events:none;
}
#lv-cart-widget.is-open .lv-cart-fab::before{ pointer-events:auto; }
