/* =========================================================
   BoostroGO Commerce RC70 — final cart layout stabilizer
   Purpose: override older high-specificity cart/shipping rules
   that still squeeze the Furgonetka / InPost cards and the
   product subtotal column.
========================================================= */

body.woocommerce-cart .bg-woo-cart-v2{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:24px!important;
  width:100%!important;
  max-width:100%!important;
  margin:34px auto 0!important;
}

body.woocommerce-cart .bg-woo-cart-v2__products,
body.woocommerce-cart .bg-woo-cart-v2__summary,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart-collaterals,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals{
  width:100%!important;
  max-width:none!important;
}

body.woocommerce-cart .bg-woo-cart-v2__products{overflow:visible!important}

/* ---------- product list / price column ---------- */
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart{
  width:100%!important;
  table-layout:fixed!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart col.bg-cart-col-total{
  width:156px!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart col.bg-cart-col-remove{
  width:64px!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-name{
  padding-right:16px!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal{
  width:156px!important;
  min-width:156px!important;
  padding-right:10px!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .bg-cart-line-price{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-width:126px!important;
  max-width:100%!important;
  min-height:44px!important;
  padding:0 16px!important;
  border:1px solid rgba(28,36,75,.08)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5f8fc 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 16px rgba(28,36,75,.05)!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .bg-cart-line-price,
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .bg-cart-line-price *,
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal bdi,
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .woocommerce-Price-currencySymbol{
  display:inline!important;
  color:#1c244b!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-remove{
  width:64px!important;
  min-width:64px!important;
  text-align:right!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-remove .remove{
  margin-left:auto!important;
}

/* ---------- summary title ---------- */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals h2{
  margin:0 0 14px!important;
  padding:18px 20px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#1c244b 0%,#293872 58%,#722454 100%)!important;
  color:#fff!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}

/* ---------- shipping section root ---------- */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(28,36,75,.10)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(28,36,75,.04)!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card.is-selected,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card.is-selected,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card:has(input:checked),
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card:has(input:checked){
  border-color:rgba(251,4,68,.28)!important;
  background:linear-gradient(145deg,#fff 0%,#fff7f9 100%)!important;
  box-shadow:0 10px 24px rgba(251,4,68,.08)!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__main,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__main{
  display:grid!important;
  grid-template-columns:22px 72px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:84px!important;
  padding:14px 16px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__choice,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__choice{
  display:grid!important;
  place-items:center!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card input[type="radio"],
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card input[type="radio"]{
  width:18px!important;
  height:18px!important;
  margin:0!important;
  accent-color:#fb0444!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:72px!important;
  height:48px!important;
  overflow:hidden!important;
  border:1px solid rgba(28,36,75,.08)!important;
  border-radius:12px!important;
  background:#fff!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo.is-parcel,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo.is-parcel{
  background:#ffd000!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo img,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  margin:0!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo.is-courier,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__logo.is-courier{
  height:40px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__label,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__label{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name{
  display:block!important;
  color:#1c244b!important;
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:950!important;
  letter-spacing:-.018em!important;
  white-space:normal!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name *,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name *{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  word-break:normal!important;
  white-space:normal!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name .woocommerce-Price-amount,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name .woocommerce-Price-currencySymbol,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name bdi,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name .woocommerce-Price-amount,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name .woocommerce-Price-currencySymbol,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__name bdi{
  display:inline!important;
  color:#fb0444!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__hint,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__hint{
  display:block!important;
  margin-top:6px!important;
  color:#7b849b!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:700!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__selected-badge,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__selected-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#fb0444!important;
  color:#fff!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-slot,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-slot{
  display:block!important;
  width:100%!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-slot:empty,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-slot:empty{
  display:none!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup{
  display:grid!important;
  grid-template-columns:minmax(220px,260px) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:0 16px 16px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__button,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:46px!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:14px!important;
  background:#1c244b!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
  box-shadow:0 9px 20px rgba(28,36,75,.13)!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__selected,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__selected{
  display:block!important;
  width:100%!important;
  min-height:46px!important;
  padding:12px 14px!important;
  border:1px dashed rgba(28,36,75,.14)!important;
  border-radius:14px!important;
  background:#f8fafc!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__selected.is-selected,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__selected.is-selected{
  border-style:solid!important;
  border-color:rgba(251,4,68,.18)!important;
  background:linear-gradient(180deg,#fff 0%,#fff7f9 100%)!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-title,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-title{
  color:#717b95!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-name,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-name{
  margin-top:4px!important;
  color:#1c244b!important;
  font-size:14px!important;
  line-height:1.3!important;
  font-weight:900!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-code,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__point-code{
  margin-top:2px!important;
  color:#707b94!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__empty,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__empty{
  color:#707b94!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:700!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__error,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup__error{
  grid-column:1 / -1!important;
  color:#fb0444!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:800!important;
}

/* ---------- address / calculator ---------- */
body.woocommerce-cart .bg-cart-destination{
  margin-top:14px!important;
  padding:16px!important;
  border:1px solid rgba(28,36,75,.08)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fbfdff 0%,#f6f9fc 100%)!important;
}

body.woocommerce-cart .bg-cart-destination__title{
  color:#1c244b!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}

body.woocommerce-cart .bg-cart-destination__copy,
body.woocommerce-cart .bg-cart-destination .woocommerce-shipping-destination{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:6px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#6f7a93!important;
  font-size:13px!important;
  line-height:1.5!important;
  font-weight:700!important;
  text-align:left!important;
}

body.woocommerce-cart .bg-cart-destination .woocommerce-shipping-destination::before{
  content:none!important;
}

body.woocommerce-cart .bg-cart-destination .shipping-calculator-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  margin:12px 0 0!important;
  padding:0 14px!important;
  border:1px solid rgba(28,36,75,.12)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#1c244b!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
}

/* ---------- proceed button ---------- */
body.woocommerce-cart .bg-woo-cart-v2__summary .wc-proceed-to-checkout .checkout-button{
  min-height:54px!important;
  border-radius:16px!important;
  font-size:15px!important;
  line-height:1.1!important;
  font-weight:950!important;
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart tbody,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart tr,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td{
    display:block!important;
    width:100%!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart thead,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart colgroup,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-price{
    display:none!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart tr.cart_item{
    position:relative!important;
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:12px 16px!important;
    padding:18px!important;
    border:1px solid rgba(28,36,75,.09)!important;
    border-radius:20px!important;
    background:#fff!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart tbody tr.cart_item td{
    padding:0!important;
    border:0!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-thumbnail{
    grid-column:1!important;
    grid-row:1 / span 3!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-thumbnail a{
    width:92px!important;
    height:92px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-name{
    grid-column:2!important;
    padding-right:34px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-name > a{
    font-size:17px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-quantity,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal{
    grid-column:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    text-align:right!important;
    width:100%!important;
    min-width:0!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-quantity::before,
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal::before{
    content:attr(data-title)!important;
    color:#717b95!important;
    font-size:11px!important;
    font-weight:800!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .bg-cart-line-price{
    min-width:118px!important;
    padding:0 12px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-remove{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    width:34px!important;
    min-width:34px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__main,
  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__main{
    grid-template-columns:20px 60px minmax(0,1fr)!important;
    gap:10px!important;
    padding:12px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__selected-badge,
  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-shipping-method-card__selected-badge{
    grid-column:3!important;
    justify-self:start!important;
    margin-top:2px!important;
  }

  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup,
  body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li.bg-shipping-method-card .bg-furgonetka-pickup{
    grid-template-columns:1fr!important;
    padding:0 12px 12px!important;
  }
}
