/* =========================================================
   BoostroGO Commerce RC72 — cart delivery final polish
========================================================= */

/* One selected badge only: keep the badge inside the card header. */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li:has(input.shipping_method:checked)::after,
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals ul#shipping_method li:has(input.shipping_method:checked)::after{
  content:none!important;
  display:none!important;
}

/* Product row — give quantity its own space so it never sits on the amount. */
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart col.bg-cart-col-quantity{width:118px!important}
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart col.bg-cart-col-total{width:152px!important}
body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart col.bg-cart-col-remove{width:58px!important}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-quantity{
  width:118px!important;
  min-width:118px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  position:relative!important;
  z-index:1!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-quantity .quantity{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:92px!important;
  max-width:92px!important;
  min-width:92px!important;
  margin:0 auto!important;
  position:relative!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-quantity input.qty{
  width:92px!important;
  max-width:92px!important;
  min-width:92px!important;
  padding-left:24px!important;
  padding-right:24px!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal{
  width:152px!important;
  min-width:152px!important;
  padding-left:18px!important;
  padding-right:8px!important;
  position:relative!important;
  z-index:2!important;
  text-align:right!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-subtotal .bg-cart-line-price{
  display:inline-block!important;
  min-width:110px!important;
  text-align:right!important;
}

body.woocommerce-cart .bg-woo-cart-v2 table.shop_table.cart td.product-remove{
  width:58px!important;
  min-width:58px!important;
  padding-left:8px!important;
  padding-right:8px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__header-amount{
  padding-right:38px!important;
}

/* Delivery panel alignment. */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals #shipping_method li.bg-shipping-method-card .bg-shipping-method-card__main{
  grid-template-columns:22px 72px minmax(0,1fr) auto!important;
  column-gap:16px!important;
}

body.woocommerce-cart .bg-shipping-method-card__selected-badge{
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
}

/* Courier address: explicit hierarchy and full street field. */
body.woocommerce-cart .bg-cart-destination.is-courier-active{
  padding:20px!important;
}

body.woocommerce-cart .bg-cart-destination__head{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  align-items:start!important;
  gap:8px 18px!important;
}

body.woocommerce-cart .bg-cart-destination__title{
  font-size:16px!important;
}

body.woocommerce-cart .bg-cart-destination__copy{
  margin:0!important;
  font-size:13.5px!important;
  line-height:1.45!important;
}

body.woocommerce-cart .bg-cart-destination__calculator{
  margin-top:16px!important;
  padding-top:16px!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px 16px!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_country_field,
body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_state_field,
body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_address_1_field,
body.woocommerce-cart .bg-cart-destination.is-courier-active .bg-shipping-calculator-submit{
  grid-column:1/-1!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_city_field,
body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_postcode_field{
  grid-column:auto!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form label{
  display:block!important;
  margin:0 0 7px!important;
  color:#1c244b!important;
  font-size:12px!important;
  font-weight:900!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{
  min-height:48px!important;
  padding:10px 14px!important;
  font-size:14px!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .bg-shipping-calculator-submit{
  margin-top:2px!important;
}

body.woocommerce-cart .bg-cart-destination.is-courier-active .shipping-calculator-form button.button{
  min-height:46px!important;
  padding:0 20px!important;
}

/* Make the final summary breathe a little more. */
body.woocommerce-cart .bg-woo-cart-v2__summary .cart_totals{
  padding-bottom:4px!important;
}

body.woocommerce-cart .bg-woo-cart-v2__summary .wc-proceed-to-checkout{
  margin-top:12px!important;
}

@media(max-width:980px){
  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{
    width:100%!important;
    min-width:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  body.woocommerce-cart .bg-cart-destination__head,
  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 #calc_shipping_country_field,
  body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_state_field,
  body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_address_1_field,
  body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_city_field,
  body.woocommerce-cart .bg-cart-destination.is-courier-active #calc_shipping_postcode_field,
  body.woocommerce-cart .bg-cart-destination.is-courier-active .bg-shipping-calculator-submit{
    grid-column:1!important;
  }
}
