#order-cart-button{position:fixed;bottom:24px;left:20px;z-index:1000;border:1px solid #b8910e;border-radius:30px;background:#d4a820;color:#20140a;padding:14px 22px;font:600 14px 'DM Sans',sans-serif;cursor:pointer;box-shadow:0 4px 20px #0004}#order-dialog{width:min(680px,calc(100% - 24px));max-height:90dvh;padding:0;border:1px solid #c8af76;border-radius:20px;background:#faf6ee;color:#2c1208;font-family:'DM Sans',sans-serif;box-shadow:0 20px 80px #0006}#order-dialog::backdrop{background:#140a03bb}#order-dialog header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #ded3ba;position:sticky;top:0;background:#faf6ee;z-index:1}#order-dialog h2{font-family:'Cormorant Garamond',serif;font-size:32px;margin:0}#order-dialog h3{font-size:18px;margin:8px 0}#order-dialog p{line-height:1.6;font-size:14px;margin:8px 0}#order-dialog button{cursor:pointer;border:1px solid #c8af76;border-radius:8px;background:#f1e7d2;color:#2c1208;padding:10px 14px;font:500 14px 'DM Sans',sans-serif}#order-dialog button:disabled{opacity:.45;cursor:default}#order-dialog button:focus-visible,#order-dialog input:focus-visible,#order-dialog select:focus-visible{outline:3px solid #b8910e;outline-offset:3px}.order-body{padding:24px}.order-line{border-bottom:1px solid #ded3ba;padding:12px 0}.order-controls,.order-picks{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.order-config{display:grid;gap:12px}.order-config label{display:grid;gap:6px;font-size:14px}.order-config select,.order-config input{padding:12px;border:1px solid #b7a886;border-radius:8px;font:16px 'DM Sans',sans-serif;background:#fff;color:#2c1208}#order-dialog .order-pay,.order-config button[type=submit]{background:#2c1208;color:#faf6ee;width:100%;margin:12px 0}#order-payment{margin-top:20px;min-height:100px}#order-payment iframe{width:100%}
/* Center on desktop; use the full phone width for payment fields. */
#order-dialog{margin:auto;overscroll-behavior:contain}
#order-dialog button{min-height:44px;min-width:44px}
#order-dialog .order-summary{position:sticky;bottom:-24px;background:#faf6ee;padding:12px 0 16px;border-top:1px solid #ded3ba;z-index:2}
#order-dialog .order-summary p{font-size:13px}
#order-dialog .order-pay{min-height:48px;margin:8px 0 0}
.order-controls button{min-width:48px}
#order-dialog.is-checkout .order-line,#order-dialog.is-checkout .order-picks,#order-dialog.is-checkout .order-summary,#order-dialog.is-checkout .order-continue{display:none}
#order-dialog .order-edit{margin-bottom:12px}
.order-loading{padding:16px 0;font-size:14px}
body:has(#order-dialog[open]){overflow:hidden}
@media(max-width:840px){
 #order-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none}
 #order-dialog header{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));min-height:68px}
 #order-dialog h2{font-size:28px}
 .order-body{padding:16px 12px calc(20px + env(safe-area-inset-bottom))}
 #order-dialog.is-checkout .order-body{padding-inline:8px}
 #order-dialog .order-summary{bottom:calc(-20px - env(safe-area-inset-bottom));padding:12px 4px calc(12px + env(safe-area-inset-bottom))}
 #order-payment{margin-top:0;width:100%;min-width:0}
 .order-config input,.order-config select{min-height:48px}
 .order-line{padding:10px 4px}.order-picks{gap:8px}
}
/* Visual pack builder and guided checkout. */
#order-dialog{width:min(1040px,calc(100% - 32px))}
.order-steps{display:flex;gap:8px;padding:12px 24px;border-bottom:1px solid #ded3ba;background:#faf6ee}
#order-dialog .order-steps button{flex:1;padding:8px;font-size:13px}
#order-dialog .order-steps [aria-current=step]{background:#2c1208;color:#faf6ee;font-weight:600}
.jar-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.jar-slot{border:1px solid #d8c9a8;border-radius:14px;padding:12px;min-width:0;background:#f6efdf}
.jar-slot legend{padding:0 6px;font-size:13px;font-weight:600}.jar-slot img{width:100%;height:auto;aspect-ratio:720/479;object-fit:cover;border-radius:10px;margin-bottom:12px}
.jar-options{display:flex;gap:6px;flex-wrap:wrap}.jar-options button{flex:1;font-size:12px!important;padding:8px!important;line-height:1.3}
#order-dialog .jar-options [aria-pressed=true]{background:#2c1208;color:#faf6ee;border-color:#2c1208}
#order-dialog .jar-options button:disabled{opacity:1}
.pack-presets{display:flex;gap:8px;flex-wrap:wrap}.pack-presets button{font-size:12px!important}
#order-dialog .builder-total{font-size:18px;font-weight:600;color:#2c1208}
#order-dialog .order-line{display:grid;grid-template-columns:88px 1fr;gap:14px}
.order-thumbs{display:flex;flex-direction:column;gap:6px}.order-thumbs img{width:88px;height:auto;aspect-ratio:720/479;object-fit:cover;border-radius:8px}
.order-controls{gap:6px}.order-controls button{font-size:12px!important;padding:8px!important}
.delivery-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}
.delivery-form>h3,.delivery-form>p,.delivery-form>.order-summary{grid-column:1/-1}
.delivery-form label{display:grid;gap:6px;font-size:14px}
.delivery-form input{width:100%;min-width:0;min-height:48px;border:1px solid #b7a886;border-radius:10px;padding:10px;font:16px 'DM Sans',sans-serif;color:#2c1208;background:#fff}
#order-dialog .order-savings{color:#326640;font-weight:600}
.payment-layout{display:grid;grid-template-columns:minmax(250px, .8fr) minmax(360px,1.2fr);gap:24px;align-items:start}
.payment-summary{border:1px solid #ded3ba;border-radius:12px;padding:16px;position:sticky;top:0}
.payment-summary summary{cursor:pointer;font-size:16px;font-weight:600;min-height:44px;align-content:center;list-style-position:inside}
#order-dialog.is-checkout .payment-summary .order-line{display:grid}
.payment-panel{min-width:0}
#order-dialog .payment-summary .order-line{grid-template-columns:64px 1fr}.payment-summary .order-thumbs img{width:64px}
@media(max-width:840px){
 #order-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0}
 #order-dialog h2{font-size:24px}.order-steps{padding:8px 12px;gap:6px}.order-steps button{font-size:12px!important}
 .jar-slots{grid-template-columns:1fr;gap:12px}.jar-slot{display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center}.jar-slot img{margin:0}.jar-options{flex-direction:column}
 .delivery-form{grid-template-columns:1fr}.payment-layout{display:block}.payment-summary{position:static;padding:12px;margin-bottom:12px}
 #order-dialog .order-line{grid-template-columns:64px 1fr;gap:10px}.order-thumbs img{width:64px}
 .order-controls button{min-width:44px}.payment-panel{width:100%}
}
#order-dialog .order-steps [aria-current=step]{opacity:1}
.payment-choices{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.payment-choices button{flex:1;min-width:130px}
.save-card-consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.6;padding:16px 0}
.save-card-consent input{width:22px;height:22px;flex-shrink:0;margin-top:3px}
.upsell-offer{padding:20px!important;border:1px solid #b8910e;border-radius:16px;margin:20px 0;background:#f6efdf}
.upsell-offer>img{max-width:240px;height:auto;border-radius:12px;margin:16px auto}
.receipt-item{padding:12px 0;border-bottom:1px solid #ded3ba}
