/* Principio 5.7.8.16 — Delivery Smart Order cart spacing fix
   Keep the cart summary visible without covering Smart Order recommendations. */
body[data-principio-role="customer-delivery"] .cartDrawer .premiumCartPanel{
  padding-bottom:0 !important;
  scroll-padding-bottom:calc(250px + env(safe-area-inset-bottom, 0px));
}

/* The summary remains anchored to the bottom of the cart scroll container,
   but participates in layout so the Smart Order shelf can scroll fully above it. */
body[data-principio-role="customer-delivery"] .cartDrawer .premiumCartSummary{
  position:sticky !important;
  left:auto !important;
  right:auto !important;
  bottom:0 !important;
  width:auto !important;
  margin-top:14px !important;
  z-index:30 !important;
  flex:0 0 auto;
}

body[data-principio-role="customer-delivery"] .cartDrawer .smartOrderShelf{
  margin-bottom:14px !important;
  flex:0 0 auto;
}

/* The old cart-items reserve was designed for a fixed footer. With the footer
   now sticky/in-flow it only creates an excessive blank area. */
body[data-principio-role="customer-delivery"] .cartDrawer .premiumCartItems{
  padding-bottom:12px !important;
}

@media (max-width:560px){
  body[data-principio-role="customer-delivery"] .cartDrawer .premiumCartPanel{
    scroll-padding-bottom:calc(280px + env(safe-area-inset-bottom, 0px));
  }
  body[data-principio-role="customer-delivery"] .cartDrawer .smartOrderShelf{
    margin-left:12px !important;
    margin-right:12px !important;
  }
}
