/* Scope layout fixes to the existing Balsam mini-cart drawer. */
.bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item {
  position: relative; min-height: 112px; padding: 12px 38px 18px 98px !important;
  overflow: visible !important; min-width: 0;
}
.bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item > a:not(.remove) {
  display: block; overflow: visible !important; white-space: normal !important;
  overflow-wrap: anywhere; text-overflow: clip; padding: 0 !important; line-height: 1.35;
}
.bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item img {
  position: absolute; left: 0 !important; right: auto !important; top: 12px;
  width: 80px !important; height: 96px !important; max-width: 80px; object-fit: cover; margin: 0;
}
.bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item > a.remove {
  position: absolute; right: 0 !important; left: auto !important; top: 12px; width: 28px; height: 28px;
}
.bhc-header .bhc-cart-drawer .woocommerce-mini-cart-item .ux-mini-cart-qty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0 !important; min-width: 0;
}
.bhc-header .bhc-cart-drawer .ux-mini-cart-qty .product-subtotal {
  display: inline-block; flex: 0 0 auto; width: auto !important; max-width: none !important;
  min-width: max-content; margin-left: auto; overflow: visible !important; white-space: nowrap;
  color: #363636; font-weight: 700;
}
.bhc-header .bhc-cart-drawer .woocommerce-mini-cart-item dl.variation { overflow-wrap: anywhere; }
/* Keep WooCommerce's own View cart and Checkout controls; the fallback remains when they are absent. */
.bhc-header .bhc-cart-drawer:has(.woocommerce-mini-cart__buttons) > .bhc-cart-link { display: none !important; }
/* The marker is attached only to add-to-cart success, leaving errors and unrelated notices intact. */
.woocommerce-message:has(.bhc-add-to-cart-notice-marker),
.wc-block-components-notice-banner:has(.bhc-add-to-cart-notice-marker) { display: none !important; }
@media (max-width: 420px) {
  .bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item { padding-left: 76px !important; padding-right: 32px !important; }
  .bhc-header .bhc-cart-drawer ul.woocommerce-mini-cart > li.woocommerce-mini-cart-item img { width: 64px !important; height: 80px !important; max-width: 64px; }
}
