/* Barex cart redesign — "Sprendimas" (artifact 86f4a5ff). Monochrome V4 language:
   hairlines #e3e3e0, quiet #fafaf9, mute #8d8d88, generous padding, tabular-nums. */

/* ---------- notices: one quiet strip, never a wall (cart + product pages) ---------- */
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error{
  border:1px solid #e3e3e0;border-left:2px solid #131313;background:#fafaf9;color:#1b1b1b;
  padding:12px 16px;margin:0 0 8px;font-size:13.5px;line-height:1.5;transition:opacity .4s ease}
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
.single-product .woocommerce-notices-wrapper .woocommerce-error{border-left-color:#a4392e}
.woocommerce-cart .woocommerce-notices-wrapper .bcart-fade,
.single-product .woocommerce-notices-wrapper .bcart-fade{opacity:0}

/* ---------- grid ---------- */
/* minmax(0,...) is load-bearing: a bare `60fr 40fr` track keeps an automatic
   minimum of min-content, so ONE unwrappable child (the gift strip's nowrap
   line, a long carrier label, the no-JS gift chooser) stretches its column
   and shoves the order rail off the page. Same guard the checkout grid has. */
.bcart-grid{display:grid;grid-template-columns:minmax(0,60fr) minmax(0,40fr);gap:36px;
  align-items:start;margin:6px 0 40px}
.bcart-railwrap{position:sticky;top:24px}
@media (max-width:960px){
  .bcart-grid{grid-template-columns:minmax(0,1fr);gap:26px}
  .bcart-railwrap{position:static}
}

/* ---------- item rows ---------- */
.bcart-list{border-top:1px solid #e3e3e0}
.bcart-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #eeeeec}
.bcart-thumb{flex:none;width:52px}
.bcart-thumb img{width:52px;height:auto;display:block}
.bcart-name{flex:1;min-width:0;font-size:14px;line-height:1.4}
.bcart-name>a{color:#1b1b1b;font-weight:500;text-decoration:none}
.bcart-name>a:hover{text-decoration:underline;text-underline-offset:2px}
.bcart-unit{display:block;font-size:12px;color:#8d8d88;margin-top:2px;font-variant-numeric:tabular-nums}
.bcart-unit del{color:#b4b3ae}
.bcart-unit ins{text-decoration:none;color:#1b1b1b}
.bcart-unit .amount{color:inherit}
.bcart-pill{display:inline-block;border:1px solid #1b1b1b;color:#1b1b1b;padding:0 7px;font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;margin-left:8px;vertical-align:1px}
.bcart-qty{flex:none;width:96px;text-align:center} /* fixed column: gift rows show static qty here too */
/* theme stepper is transparent/hover-only — make it an explicit bordered control */
.bcart-qty .quantity.wtbx-quantity{height:34px;width:96px;border:1px solid #d8d7d2;border-radius:0;
  float:none;margin:0;display:inline-block;position:relative;overflow:hidden;background:#fff}
.bcart-qty .wtbx-quantity input,.bcart-qty .wtbx-quantity input[type="number"]{height:32px;line-height:32px;
  width:32px;margin:0 32px;padding:0;color:#1b1b1b;font-size:13px;font-weight:500;background:#fff}
.bcart-qty .wtbx-quantity .wtbx-quantity-change{line-height:34px;color:#8d8d88;font-size:14px;width:30px}
.bcart-qty .wtbx-quantity .wtbx-quantity-change:hover{color:#131313;background:#fafaf9}
/* the browser's native number spinners double up with the theme's +/- steppers.
   The theme's own reset ends with `appearance:none`, which Firefox ignores for
   number inputs (it needs `textfield`) — cover every stepper on cart AND
   product pages, plus the gift modal. */
.bcart-qty input.qty,.bcart-modal input.qty,.wtbx-quantity input.qty,
.bcart-qty input[type="number"],.bcart-modal input[type="number"],.wtbx-quantity input[type="number"]{
  -webkit-appearance:none;-moz-appearance:textfield;appearance:textfield}
.bcart-qty input.qty::-webkit-inner-spin-button,.bcart-qty input.qty::-webkit-outer-spin-button,
.wtbx-quantity input::-webkit-inner-spin-button,.wtbx-quantity input::-webkit-outer-spin-button,
.bcart-modal input[type="number"]::-webkit-inner-spin-button,
.bcart-modal input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}
.bcart-sum{flex:none;width:96px;text-align:right;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
/* gift rows: grey struck line total above the black end price (barex_cart_gift_line_subtotal).
   The struck column sums to the rail's "Prekių suma", the black one to "Suma". */
.bcart-sum del.bcart-was{display:block;font-size:11px;font-weight:400;color:#b4b3ae}
.bcart-sum ins.bcart-now{display:block;text-decoration:none;color:inherit}
.bcart-sum .bcart-was .amount,.bcart-sum .bcart-now .amount{color:inherit}
/* SC's own caption, if its filter ever wins again (plugin update, our filter bailing) */
.bcart-sum .wt_sc_bogo_cart_item_discount{display:block;font-size:11px;font-weight:400;color:#2e7d4f;white-space:nowrap}
.bcart-remove{flex:none;width:22px;text-align:right}
.bcart-remove .remove{color:#b4b3ae;font-size:15px;text-decoration:none}
.bcart-remove .remove:hover{color:#1b1b1b}
.bcart-gift .bcart-sum,.bcart-gift .bcart-qty{color:#8d8d88}
/* SC's green gift meta under the name — quiet it */
.bcart-name .wt_sc_giveaway_prd_description,
.bcart-name .wbte_sc_giveaway_desc{display:block;font-size:12px;color:#8d8d88;margin-top:2px}

.bcart-list-foot{display:flex;align-items:center;gap:18px;padding:14px 0 0;font-size:13px}
.bcart-list-foot a{color:#8d8d88;text-decoration:underline;text-underline-offset:2px}
.bcart-list-foot a:hover{color:#1b1b1b}
.bcart-clear{margin-left:auto}

/* no-JS fallback: a real, visible update button; JS (html.bcart-js) hides it
   and takes over with auto-update */
.bcart-update-btn{display:inline-block;background:transparent;color:#1b1b1b;border:1px solid #c9c8c3;
  padding:9px 16px;font-size:13px;cursor:pointer;margin-top:12px}
.bcart-js .bcart-update-btn{position:absolute !important;left:-9999px !important;width:1px;height:1px;
  overflow:hidden;margin:0;padding:0;border:0}

/* ---------- Smart Coupons gift chooser: strip + modal ---------- */
/* no-JS fallback: SC's inline block stays visible in a compact skin;
   with JS (html.bcart-js) it hides here and relocates into the modal */
.bcart-items .wt_sc_giveaway_products_cart_page{border:1px solid #e3e3e0;background:#fafaf9;
  padding:14px 18px;margin:18px 0 0}
.bcart-items .wt_sc_giveaway_products_cart_page .giveaway-title{font-size:13px;font-weight:600;margin:0 0 10px}
.bcart-items .wbte_sc_bogo_products{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.bcart-items .wbte_get_away_product{border:1px solid #d8d7d2;background:#fff;padding:10px;font-size:12px;max-width:170px}
.bcart-items .wbte_get_away_product img{max-width:70px;height:auto}
.bcart-js .bcart-items .wt_sc_giveaway_products_cart_page{display:none}

/* One row per gift, same shape as a deals-block row: icon, name + the deal it
   came from, that gift's own action right-aligned. Nothing here may be nowrap
   or ellipsed -- the column's automatic minimum is min-content, and an
   unwrappable line stretches the whole grid (see the .bcart-grid note). */
.bcart-gift-strip{border:1px solid #e3e3e0;background:#fafaf9;margin:14px 0 0;
  padding:2px 16px;font-size:13px;color:#1b1b1b}
.bcart-gift-row{display:flex;align-items:flex-start;gap:10px;padding:11px 0;
  border-bottom:1px dotted #e6e6e3}
.bcart-gift-row:last-child{border-bottom:0}
.bcart-gift-strip svg{width:16px;height:16px;flex:none;color:#131313;margin-top:2px}
.bcart-gift-txt{flex:1 1 0;min-width:0}
.bcart-gift-name{display:block;font-weight:500}
.bcart-gift-deal{display:block;font-size:12.5px;color:#8d8d88;margin-top:2px}
.bcart-gift-open,.bcart-gift-change{flex:none;margin-left:auto;color:#1b1b1b;font-weight:500;
  text-decoration:underline;text-underline-offset:2px}
/* the action drops under its own row before it would squeeze the gift name */
@media (max-width:560px){
  .bcart-gift-row{flex-wrap:wrap}
  /* basis excludes the indent — a flat 100% would push the row 26px wide */
  .bcart-gift-open,.bcart-gift-change{flex-basis:calc(100% - 26px);margin:6px 0 0 26px}
}


.bcart-modal{position:fixed;inset:0;z-index:100000;display:none;background:rgba(19,19,19,.45);padding:20px}
.bcart-modal.open{display:flex;align-items:center;justify-content:center}
.bcart-modal-card{background:#fff;border:1px solid #e3e3e0;max-width:600px;width:100%;max-height:86vh;
  display:flex;flex-direction:column;box-shadow:0 18px 60px rgba(0,0,0,.18)}
.bcart-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:15px 20px;border-bottom:1px solid #eeeeec;font-size:14.5px;font-weight:600;color:#1b1b1b}
.bcart-modal-close{background:none;border:0;padding:2px 4px;font-size:15px;line-height:1;
  color:#8d8d88;cursor:pointer}
.bcart-modal-close:hover{color:#131313}
.bcart-modal-body{padding:18px 20px;overflow:auto}
/* SC block, re-skinned inside the modal */
.bcart-modal .wt_sc_giveaway_products_cart_page{border:0;background:none;padding:0;margin:0}
.bcart-modal .giveaway-title{display:none} /* modal header already says it */
.bcart-modal-deal{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:#8d8d88;
  margin:14px 0 8px;padding-top:12px;border-top:1px dotted #e6e6e3}
.bcart-modal-deal:first-child{margin-top:0;padding-top:0;border-top:0}
.bcart-modal .wbte_sc_bogo_products{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
@media (max-width:560px){.bcart-modal .wbte_sc_bogo_products{grid-template-columns:1fr}}
.bcart-modal .wbte_get_away_product{border:1px solid #d8d7d2;background:#fff;padding:14px;max-width:none;
  font-size:12.5px;text-align:center}
.bcart-modal .wbte_get_away_product img{max-width:84px;height:auto;margin:0 auto}
.bcart-modal .wbte_get_away_product del{color:#b4b3ae}
.bcart-modal .wbte_get_away_product input[type="checkbox"]{width:16px;height:16px;accent-color:#131313}
.bcart-modal .wbte_get_away_product .quantity{margin:0;float:none;display:inline-block}
.bcart-modal .wbte_get_away_product input.qty,
.bcart-modal .wbte_get_away_product input[type="number"]{width:44px;height:30px;line-height:30px;margin:0;
  padding:0;border:1px solid #d8d7d2;text-align:center;color:#1b1b1b;background:#fff;font-size:12.5px}
.bcart-modal .wbte_sc_bogo_add_to_cart{display:inline-block;background:#131313;color:#fff !important;
  border:1px solid #131313;padding:9px 20px;font-size:13px;cursor:pointer;margin-top:14px}
.bcart-modal .wbte_sc_bogo_add_to_cart:hover{background:#000}

/* ---------- order rail ---------- */
.bcart-rail{border:1px solid #e3e3e0;padding:22px 24px;background:#fff}
.bcart-rail-title{font-size:19px;margin:0 0 14px}
.bcart-line{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:7px 0;font-size:13.5px}
.bcart-line .bcart-v{text-align:right;font-variant-numeric:tabular-nums}
.bcart-line-mu,.bcart-line-mu .bcart-v .amount{color:#6f6f6a}
.bcart-disc,.bcart-disc .amount{color:#2e7d4f}
.bcart-disc>span:first-child{display:flex;align-items:center;gap:7px;min-width:0}
.bcart-ic{flex:none;display:inline-flex;width:15px;height:15px}
.bcart-ic svg{width:100%;height:100%}
.bcart-disc .woocommerce-remove-coupon{display:inline-block;margin-left:8px;font-size:11.5px;color:#8d8d88;
  text-decoration:underline;text-underline-offset:2px}
/* "Suma" — everything except delivery; closes the discount block above it */
.bcart-line.bcart-after{border-top:1px solid #eeeeec;margin-top:5px;padding-top:11px;
  font-weight:500;color:#1b1b1b}
.bcart-grand{border-top:1px solid #e3e3e0;margin-top:10px;padding-top:13px;font-size:16px;font-weight:600;color:#131313}
.bcart-grand .bcart-v strong,.bcart-grand .bcart-v .amount,.bcart-grand .bcart-v bdi{color:#131313}
.bcart-grand .includes_tax{display:block;font-size:11.5px;font-weight:400;color:#8d8d88;margin-top:2px}
.bcart-grand .tax_label{font-weight:400}

/* collapsed shipping tile */
details.bcart-ship{border:1px solid #e3e3e0;margin:10px 0 4px}
details.bcart-ship summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;
  padding:12px 14px;font-size:13px;user-select:none}
details.bcart-ship summary::-webkit-details-marker{display:none}
.bcart-ship-t{font-weight:600}
.bcart-ship-sum{color:#8d8d88;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bcart-ship-sum .amount{color:#8d8d88}
.bcart-ar{margin-left:auto;color:#8d8d88;font-size:10px}
.bcart-ar::before{content:"\25BC"}
details.bcart-ship[open] .bcart-ar::before{content:"\25B2"}
details.bcart-ship[open] summary{border-bottom:1px solid #eeeeec}
.bcart-ship-body{padding:4px 14px 12px}
.bcart-ship-table{width:100%;border-collapse:collapse}
/* scape borders every generic table via table:not(.shop_table):not(.shop_attributes)
   (border-bottom on tr:last-child td, border-right on :last-child cells) at higher
   specificity than our reset — the tile's carrier table must stay borderless */
.bcart-ship-table,.bcart-ship-table th,.bcart-ship-table td{border:0!important}
.bcart-ship-table th{display:none} /* "Shipment" header cell */
.bcart-ship-table td{display:block;width:100%;padding:0;border:0}
.bcart-ship-table ul#shipping_method{list-style:none;margin:0;padding:0}
.bcart-ship-table ul#shipping_method li{margin:0;padding:7px 0;border-bottom:1px dotted #e6e6e3;font-size:13px}
.bcart-ship-table ul#shipping_method li:last-child{border-bottom:0}
.bcart-ship-table ul#shipping_method label{display:inline;font-weight:400;cursor:pointer}
.bcart-ship-table ul#shipping_method li img{display:none} /* carrier logos off — text labels remain */
.bcart-ship-table .omnivalt_terminal_container{margin:8px 0 4px 22px}
.bcart-ship-table .woocommerce-shipping-destination,
.bcart-ship-table .shipping-calculator-button,
.bcart-ship-table .shipping-calculator-form{display:none} /* LT-only shop; checkout re-confirms */

/* coupon */
.bcart-coupon{display:flex;gap:8px;margin:16px 0 0}
.bcart-coupon .input-text{flex:1;min-width:0;border:1px solid #d8d7d2;background:#fff;color:#1b1b1b;
  padding:9px 12px;font-size:13px}
.bcart-coupon .bcart-apply{flex:none;background:transparent;color:#1b1b1b;border:1px solid #c9c8c3;
  padding:9px 16px;font-size:13px;cursor:pointer}
.bcart-coupon .bcart-apply:hover{border-color:#131313}
/* coupon field behind a "Turite nuolaidos kodą?" tile (same skin as shipping) */
details.bcart-coupon-acc{margin:16px 0 0}
details.bcart-coupon-acc .bcart-coupon{margin:6px 0 0}

/* pastel coupon notices relocated into the tile + applied-code chips */
.bcart-coupon-note:empty{display:none}
.bcart-note{padding:9px 11px;font-size:12.5px;line-height:1.45;margin:6px 0 4px;border:1px solid}
.bcart-note-ok{background:#eaf4ee;border-color:#cfe5d8;color:#2e7d4f}
.bcart-note-err{background:#faedec;border-color:#efcfcb;color:#b3392f}
.bcart-note a{color:inherit;text-decoration:underline;font-weight:500}
.bcart-note.bcart-fade{opacity:0;transition:opacity .45s}
.bcart-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.bcart-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfe5d8;background:#eaf4ee;
  color:#2e7d4f;padding:4px 9px;font-size:12px;letter-spacing:.03em}
.bcart-chip-x{color:#2e7d4f;font-size:15px;line-height:1;text-decoration:none}
.bcart-chip-x:hover{color:#b3392f}

/* CTA (child proceed template renders update+checkout buttons; hide its update) */
.bcart-cta{margin:16px 0 0;padding:0}
.bcart-cta .update-cart,.bcart-cta input[name="update_cart"]{display:none}
/* square black CTA matching checkout's #place_order — the theme's wtbx-button
   skin (radius + decorative pseudos) is overridden, not the template */
.bcart-cta .checkout-button{display:flex;align-items:center;justify-content:center;width:100%;
  background:#131313 !important;color:#fff !important;border:1px solid #131313 !important;
  border-radius:0 !important;padding:13px 20px;font-size:14px;font-weight:500;letter-spacing:.02em;
  margin:0;text-align:center;text-indent:0;box-shadow:none !important}
.bcart-cta .checkout-button::before,.bcart-cta .checkout-button::after{
  display:none !important;content:none !important}
.bcart-cta .checkout-button:hover{background:#000 !important}

/* trust line under the CTA — shared by cart and checkout (barex_trust_line) */
.bcart-trust{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin-top:10px;
  font-size:11px;color:#8d8d88}
.bcart-trust span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.bcart-trust svg{flex:none}

/* ---------- mobile sticky bar ---------- */
.bcart-sticky{display:none}
@media (max-width:960px){
  .bcart-sticky{position:fixed;left:0;right:0;bottom:0;z-index:990;display:flex;align-items:center;gap:14px;
    background:#fff;border-top:1px solid #e3e3e0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow:0 -6px 24px rgba(0,0,0,.07)}
  .bcart-sticky-total small{display:block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#8d8d88}
  .bcart-sticky-total strong{font-size:15px;font-variant-numeric:tabular-nums}
  .bcart-sticky-total .includes_tax{display:none}
  .bcart-sticky-btn{margin-left:auto;background:#131313;color:#fff !important;padding:11px 20px;font-size:13.5px;
    text-decoration:none;white-space:nowrap;border-radius:0}
  body.woocommerce-cart{padding-bottom:64px} /* content never hides behind the bar */
  .bcart-row{flex-wrap:wrap}
  .bcart-sum{width:auto;margin-left:auto}
  .bcart-name{flex-basis:calc(100% - 68px)}
}

