/* Bennet V088 — cart: expand tools UP, keep checkout button visible. */
.cart-drawer__panel { display:flex;flex-direction:column;min-height:0; }
.cart-drawer__items { flex:1 1 auto; min-height:0; overflow-y:auto !important; }
.cart-drawer__footer {
  display:flex; flex-direction:column; flex:0 1 auto;
  min-height:0; max-height:min(76dvh,690px) !important;
  overflow:hidden !important; padding:0 !important;
}
.cart-drawer__footer .bj-cart-tools-scroll {
  flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:9px 14px 4px;
}
.cart-drawer__footer .bj-cart-fixed-checkout {
  flex:0 0 auto; position:relative; z-index:2;
  background:#fff; border-top:1px solid var(--color-border);
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow:0 -3px 12px rgba(0,0,0,.035);
}
.cart-drawer__footer .bj-cart-fixed-checkout .cart-total { margin-top:4px; }
.cart-drawer__footer .bj-cart-fixed-checkout .cart-total__value { font-size:1.16rem; }
.cart-drawer__footer .bj-cart-tools-scroll .cupom-applied,
.cart-drawer__footer .bj-manual-coupon-outside { min-width:0; }
.cart-drawer__footer .bj-manual-coupon-outside {
  display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 7px;padding:7px 10px;
}
.cart-drawer__footer .cupom-auto-tag { color:#1a7446; }
/* Intent is decided from movement direction by native nonpassive touchmove;
   vertical gestures and pinch remain native. */
body.template-product .product-gallery__main { touch-action:auto !important; }
@media(max-height:650px){
  .cart-drawer__footer{max-height:min(81dvh,600px) !important}
  .cart-drawer__footer .bj-cart-tools-scroll{padding-top:6px}
  .cart-drawer__footer .bj-cart-fixed-checkout{padding-top:6px}
}
