/* =========================================================
   BoostroGO Commerce RC71 — delivery choice + price polish
   Loaded after RC70. Keeps Paczkomat and courier mutually
   exclusive visually, shows address controls only for courier,
   and removes the awkward framed line-price pill.
========================================================= */

/* ---------- product price: clean, frameless ---------- */
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal{
  width:160px!important;
  min-width:160px!important;
  padding-right:16px!important;
  text-align:right!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:baseline!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!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{
  color:#1c244b!important;
  font-size:19px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

body.woocommerce-cart .bg-woo-cart-v2__header{
  grid-template-columns:minmax(0,1fr) 180px!important;
}
body.woocommerce-cart .bg-woo-cart-v2__header-amount{
  padding-right:52px!important;
  text-align:right!important;
}

/* ---------- shipping cards: mutual exclusive selection ---------- */
body.woocommerce-cart .bg-shipping-method-card{
  border-color:rgba(28,36,75,.09)!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.woocommerce-cart .bg-shipping-method-card.is-selected,
body.woocommerce-cart .bg-shipping-method-card:has(input.shipping_method:checked){
  border-color:rgba(251,4,68,.34)!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-shipping-method-card:not(.is-selected):not(:has(input.shipping_method:checked)) .bg-shipping-method-card__selected-badge{
  display:none!important;
}

body.woocommerce-cart .bg-shipping-method-card__main{
  min-height:82px!important;
}

/* Furgonetka selector belongs ONLY to the selected pickup card. */
body.woocommerce-cart .bg-shipping-method-card:not(.is-selected) .bg-furgonetka-slot,
body.woocommerce-cart .bg-shipping-method-card.is-courier .bg-furgonetka-slot{
  display:none!important;
}

body.woocommerce-cart .bg-shipping-method-card.is-selected.is-parcel-machine .bg-furgonetka-slot{
  display:block!important;
}

body.woocommerce-cart .bg-furgonetka-pickup{
  border-top:1px dashed rgba(28,36,75,.10)!important;
  padding-top:14px!important;
}

/* ---------- address only when courier is selected ---------- */
body.woocommerce-cart .bg-cart-destination{
  display:none!important;
  margin-top:14px!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active{
  display:block!important;
  padding:18px!important;
  border:1px solid rgba(28,36,75,.09)!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,#fbfdff 0%,#f7f9fc 100%)!important;
}

body.woocommerce-cart .bg-cart-destination__head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
}

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

body.woocommerce-cart .bg-cart-destination__copy{
  margin-top:4px!important;
  color:#758099!important;
  font-size:12.5px!important;
  line-height:1.45!important;
  font-weight:700!important;
}

body.woocommerce-cart .bg-cart-destination__calculator{
  margin-top:14px!important;
  padding-top:14px!important;
  border-top:1px solid rgba(28,36,75,.08)!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p{
  margin:0!important;
  min-width:0!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p.form-row-wide,
body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p:last-child{
  grid-column:1 / -1!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form .input-text,
body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form select,
body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form .select2-container .select2-selection{
  width:100%!important;
  min-height:46px!important;
  border:1px solid rgba(28,36,75,.12)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#1c244b!important;
  box-shadow:none!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form button.button{
  width:auto!important;
  min-height:44px!important;
  padding:0 18px!important;
  border:0!important;
  border-radius:13px!important;
  background:#1c244b!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-button{
  display:none!important;
}

/* ---------- tidy summary ---------- */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals table.shop_table>tbody>tr.cart-subtotal,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals table.shop_table>tbody>tr.order-total{
  padding:16px 18px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals tr.cart-subtotal>td,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals tr.order-total>td{
  font-size:20px!important;
}

@media(max-width:980px){
  body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal{
    width:100%!important;
    min-width:0!important;
    padding-right:0!important;
  }
  body.woocommerce-cart .bg-woo-cart-v2__header{grid-template-columns:1fr!important}
  body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form{
    grid-template-columns:1fr!important;
  }
  body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p,
  body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p.form-row-wide,
  body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form > p:last-child{
    grid-column:1!important;
  }
}
