/* Cart drawer, checkout summary and Place Order button.
   (Replaces the previously unlinked order-fix.css rules that were needed.) */

/* Cart drawer sits above the mobile bottom bar so its footer button is always visible */
.bagdad-cart-drawer{z-index:10030 !important}
.bagdad-cart-panel{height:100vh;height:100dvh;max-height:100%}
.bagdad-cart-panel footer{
  flex-wrap:wrap;gap:12px;background:#fff;position:relative;z-index:2;
  padding-bottom:calc(16px + env(safe-area-inset-bottom)) !important;
  box-shadow:0 -6px 16px rgba(0,0,0,.06);
}
.bagdad-cart-panel footer>div{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:16px}
.bagdad-cart-panel footer>div b{font-size:20px;color:#17351f}
.bagdad-cart-panel .bbf-place-order{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;
  border:0;border-radius:12px;background:#087f3e;color:#fff;font:800 16px Inter,Arial,sans-serif;
  letter-spacing:.02em;cursor:pointer;box-shadow:0 10px 24px rgba(8,127,62,.25);touch-action:manipulation;
}
.bagdad-cart-panel .bbf-place-order:hover{background:#066b34}
#bagdadCartLines{min-height:0;-webkit-overflow-scrolling:touch}
.bagdad-cart-line .qty{display:flex;align-items:center;gap:8px;margin-top:6px}
.bagdad-cart-line .qty button{width:34px;height:34px;border:1px solid #d9e2db;background:#fff;border-radius:8px;font-size:18px;line-height:1}

/* Cart page: Place Order sits directly under the order summary */
.checkout-card .cart-place-order{margin-top:0}
.checkout-card #checkoutOpen{margin-bottom:10px}

/* Checkout page: order summary, then Place Order below it */
#checkoutModal{z-index:10040 !important}
.checkout-summary{margin:14px 0 6px;padding:14px 16px;border:1px solid #e2e9e4;border-radius:14px;background:#f8faf8}
.checkout-summary .eyebrow{margin-bottom:8px}
.checkout-items{display:grid;gap:6px;margin-bottom:8px}
.checkout-item{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#26352d}
.checkout-item small{color:#6d7871}
.checkout-item b{color:#17351f;white-space:nowrap}
.checkout-summary .delivery-info-notice{margin:0;background:transparent;border:0;padding:6px 0 0}
#placeOrderButton{position:sticky;bottom:0;z-index:3;min-height:52px;margin-top:10px;box-shadow:0 -10px 18px 6px #fff,0 10px 24px rgba(8,127,62,.25)}
#placeOrderButton:disabled{opacity:1;cursor:pointer}

/* Open / Closed bar: short text, never clipped */
.bbf-open-status{flex-wrap:wrap;row-gap:2px}
