:root{--order-ink:#302421;--order-paper:#faf4ed;--order-accent:#6c363b}
body.order-open{overflow:hidden}
#order-overlay{position:fixed;inset:0;z-index:200;color:var(--order-ink)}
#order-overlay[hidden]{display:none}
.order-backdrop{position:absolute;inset:0;background:#1b1014a8}
#order-panel{position:absolute;right:0;top:0;bottom:0;width:min(520px,100%);overflow:auto;background:var(--order-paper);padding:28px;box-shadow:-12px 0 50px #100b0c33;animation:order-enter 450ms cubic-bezier(.16,1,.3,1)}
@keyframes order-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
.order-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #30242133;padding-bottom:18px}
.order-head h2{font:normal 42px/1 var(--serif);margin:0}
.order-close,.order-secondary{border:1px solid currentColor;border-radius:999px;padding:10px 16px;min-height:44px}
.order-body{padding:16px 0 48px}.order-body p{line-height:1.5}.order-subtitle,.order-hint{color:#624e46;font-size:13px}
.order-preview{height:180px;position:relative;display:grid;place-items:center;background:radial-gradient(circle,#e9d2c2,transparent 68%);overflow:hidden}
.order-preview img{height:95%;max-width:75%;object-fit:contain;transition:transform 350ms ease}.ice-preview{position:absolute;right:22%;bottom:20%;font-size:24px;color:#697f80}
.option-group{border:0;padding:0;margin:22px 0}.option-group legend{font-weight:700;margin-bottom:10px}.option-row{display:flex;flex-wrap:wrap;gap:8px}
.option-pill input{position:absolute;opacity:0}.option-pill span,.filter-pill{display:flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid #8d7770;border-radius:999px;cursor:pointer;font-size:13px}
.option-pill input:checked+span,.filter-pill[aria-pressed=true]{background:var(--order-accent);border-color:var(--order-accent);color:white}.option-pill input:focus-visible+span{outline:3px solid #9d6660;outline-offset:2px}
.sweet-meter{height:4px;background:#e8d7cd}.sweet-meter span{display:block;height:100%;background:#a65c59;transform-origin:left}
.addon{display:flex;gap:10px;align-items:center;min-height:44px}.addon input{width:20px;height:20px;accent-color:var(--order-accent)}
.order-field{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-weight:600}.order-field input,.order-field select,#menu-search{font:inherit;color:var(--order-ink);background:white;border:1px solid #9a8780;border-radius:9px;padding:12px;min-height:44px}
.quantity,.cart-actions{display:flex;align-items:center;gap:12px}.quantity button,.cart-actions button{min-width:40px;min-height:40px;border:1px solid #a99388;border-radius:999px}
.order-primary{display:block;width:100%;min-height:48px;margin:24px 0 12px;background:var(--order-ink);color:white;border-radius:999px;padding:12px 20px}.order-secondary{margin:10px 8px 0 0}
.cart-item{display:flex;gap:14px;border-bottom:1px solid #cbb9af;padding:18px 0}.cart-item img{width:74px;height:94px;object-fit:contain}.cart-item h3{margin:0;font:normal 26px var(--serif)}.cart-item p{font-size:13px}.cart-actions{flex-wrap:wrap;font-size:12px}.total-line{display:flex;justify-content:space-between;margin:16px 0}
.demo-notice{background:#ead9ca;padding:14px;border-radius:9px;font-size:13px}.order-error{color:#9b1c24;font-weight:700}.tracker{font-size:24px;font-weight:700}
#order-toast{position:fixed;z-index:220;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#302421;color:white;padding:14px 20px;border-radius:999px;transition:opacity 200ms,transform 200ms}#order-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}#order-toast button{color:white;text-decoration:underline}
.cart-button{min-height:44px;white-space:nowrap}#cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border:1px solid currentColor;border-radius:50%;font-size:11px}
.menu-tools{margin-top:36px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.menu-tools label{font-weight:700}#menu-filters{display:flex;flex-wrap:wrap;gap:7px}.order-add{align-self:flex-start;margin:0 24px 24px;padding:10px 20px;border:1px solid;border-radius:999px;min-height:44px}.order-add:disabled{opacity:.6;cursor:not-allowed}.favorite{position:absolute;right:18px;top:18px;z-index:3;font-size:25px;min-width:44px;min-height:44px}.drink-card[hidden]{display:none}
@media(max-width:620px){#order-panel{top:auto;bottom:0;width:100%;max-height:92dvh;border-radius:24px 24px 0 0;padding:22px;animation-name:order-enter-mobile}.header-actions .order-link{padding:7px;font-size:12px}.cart-button{font-size:12px}.menu-tools{align-items:stretch}.menu-tools input{width:100%}}
@keyframes order-enter-mobile{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#order-panel{animation:none}.order-preview img,#order-toast{transition:none}}
body.still #order-panel{animation:none}

.flying-drink{position:fixed;z-index:250;object-fit:contain;pointer-events:none}
.tracker-line{height:4px;background:#d8c5b7;margin:20px 0}.tracker-line span{display:block;width:100%;height:100%;background:#7a4846;transform-origin:left;transition:transform 450ms ease}
body.still .tracker-line span{transition:none}
@media(prefers-reduced-motion:reduce){.tracker-line span{transition:none}}

#order-panel,.order-head h2,.cart-item h3,.order-primary,.order-secondary,.option-group,.order-field,.cart-button{font-family:var(--sans)}
#order-panel h2,#order-panel h3{font-weight:600}
#order-panel p,#order-panel input,#order-panel select{font-size:15px;line-height:1.55}
.total-line strong,.cart-item strong{font-variant-numeric:tabular-nums}

/* Customization dialog */
#order-overlay:has(.custom-stage) .order-backdrop{backdrop-filter:blur(6px)}
#order-panel:has(.custom-stage){--space:24px;display:grid;grid-template-columns:42% 58%;grid-template-rows:minmax(0,1fr) auto;inset:0;margin:auto;width:min(980px,94vw);height:min(740px,88dvh);padding:0;overflow:hidden;border-radius:28px;box-shadow:0 32px 88px #24181945,0 8px 25px #24181929;animation:custom-open 450ms cubic-bezier(.16,1.12,.3,1)}
@keyframes custom-open{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:none}}
#order-panel:has(.custom-stage) .order-head{position:absolute;right:12px;top:8px;border:0;padding:0;z-index:2}
.custom-stage{grid-row:1/3;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(155deg,color-mix(in srgb,var(--tint) 55%,white),#faf4ed);padding:24px;text-align:center}
.custom-art{position:relative;height:min(38vh,310px);display:grid;place-items:center;background:transparent}
.custom-art>span{position:absolute;font:500 clamp(48px,6vw,82px)/1 var(--serif);opacity:.08}
.custom-art>img:first-of-type{position:relative;width:60%;height:92%;object-fit:contain;transition:scale .25s}
.custom-art .custom-garnish{position:absolute;width:13%;height:17%;object-fit:contain}.garnish-0{top:17%;left:9%;rotate:-17deg}.garnish-1{bottom:17%;right:6%;rotate:32deg}
.custom-ice{position:absolute;right:10%;top:45%;max-width:22%;font-size:20px}
#order-panel .custom-info h2{font:450 clamp(28px,3vw,46px)/1.04 var(--serif);margin:16px 0 8px}.custom-info p{margin:6px 0}.custom-info small{font-weight:700}.custom-info strong{display:block;font:600 24px var(--serif)}.custom-info meter{width:68px;height:8px}
.custom-options{overflow:auto;overscroll-behavior:contain;padding:56px 32px 24px;min-height:0}
.custom-options .option-group,.custom-sugar{display:block;margin:0 0 24px;padding:0 0 20px;border:0;border-bottom:1px solid #38282122;min-width:0}
.custom-options legend,.custom-sugar b{font:700 11px var(--sans);text-transform:uppercase;letter-spacing:.12em}
.custom-options .option-pill{position:relative;cursor:pointer}.custom-options .option-pill input{width:1px;height:1px}
.custom-options [data-option=size] .option-row,.custom-options [data-option=ice] .option-row,.custom-options [data-option=temperature] .option-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.custom-options .option-pill span{justify-content:center;font-size:13px;min-height:44px}
.custom-options [data-option=size] span,.custom-options [data-option=ice] span{flex-direction:column;gap:4px;border-radius:12px}
.custom-options .option-pill input:checked+span{background:#efe1d6;color:#342520;border-color:var(--choice-color);box-shadow:inset 0 0 0 1px var(--choice-color)}
.custom-options [data-option=size] input:checked+span::after{content:'✓';position:absolute;right:8px;top:4px}
.cup-icon{width:18px;height:19px;border:1.5px solid;border-radius:2px 2px 6px 6px;display:block}
.custom-options :disabled+span,.custom-options fieldset:disabled{opacity:.5}
.custom-sugar output{float:right;font-weight:700}.custom-sugar input{display:block;width:100%;height:44px;accent-color:#704843}.custom-sugar small{display:block;text-align:center}.custom-sugar p{margin:4px 0}
.custom-options summary{cursor:pointer;min-height:44px}.custom-options textarea{display:block;width:100%;min-height:80px;padding:12px;font:inherit}
.custom-footer{display:flex;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #38282122;background:#fffaf4}.custom-footer .order-primary{margin:0}.custom-footer .quantity{gap:6px}.custom-footer .quantity button{min-width:44px;height:44px}
@media(max-width:899px){
 #order-panel:has(.custom-stage){inset:auto 0 0;width:100%;height:min(92dvh,780px);max-height:92dvh;grid-template-columns:100%;grid-template-rows:auto minmax(0,1fr) auto;border-radius:28px 28px 0 0}
 .custom-stage{grid-row:auto;display:grid;grid-template-columns:76px 1fr;align-items:center;padding:24px 72px 12px 12px;text-align:left;position:relative;touch-action:none}
 .custom-stage::before{content:'';position:absolute;top:8px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:#735f5280}
 .custom-art{height:88px}.custom-art>span,.custom-description,.custom-info small{display:none}.custom-info p{font-size:12px!important}.custom-info meter{display:none}.custom-info strong{font-size:18px}
 #order-panel .custom-info h2{margin:0;font-size:24px}.custom-options{padding:20px}.custom-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
}
body.still #order-panel:has(.custom-stage){animation:none}
@media(prefers-reduced-motion:reduce){#order-panel:has(.custom-stage){animation:none}.custom-art img{transition:none!important}}
.custom-options [data-option=temperature] .option-row{position:relative;isolation:isolate;gap:0;background:#eee6de;border-radius:12px}
.custom-options [data-option=temperature] .option-row::before{content:'';position:absolute;inset:2px auto 2px 0;width:calc(100% / var(--segments));background:#fffaf6;border-radius:10px;box-shadow:0 1px 4px #36231c22;transform:translateX(calc(var(--segment)*100%));transition:transform 220ms ease}
.custom-options [data-option=temperature] .option-pill span,.custom-options [data-option=temperature] input:checked+span{border:0;background:transparent;box-shadow:none}
.custom-sugar{position:relative}.custom-sugar output{position:relative;display:block;float:none;left:clamp(18px,var(--sugar),calc(100% - 18px));transform:translateX(-50%);width:max-content;font-size:12px;border-radius:12px;padding:3px 8px;background:#eadcd2}
.custom-options .option-pill:active span,.custom-footer button:active{transform:scale(.98)}
.custom-options .option-pill input:focus-visible+span,#order-panel :focus-visible{outline:2px solid #70483f;outline-offset:2px}
@media(hover:hover){.custom-options .option-pill:hover span{border-color:#70483f}}
@media(prefers-reduced-motion:reduce){.custom-options [data-option=temperature] .option-row::before{transition:none}}
body.still .custom-options [data-option=temperature] .option-row::before{transition:none}
html:has(body.order-open){overflow:hidden}
/* Ordering studio */
#order-panel:has(.custom-stage) {background:linear-gradient(118deg,#faf4e9,var(--studio-tint));color:#241e18}
.custom-kicker {font:700 11px var(--sans);letter-spacing:.23em;text-transform:uppercase}
#order-panel .custom-info h2 {font-style:italic}
.custom-options,.custom-footer {background:#fbf7f1}
.custom-options legend,.custom-sugar b {font:700 clamp(17px,1.5vw,22px)/1.3 var(--sans);letter-spacing:-.025em;text-transform:none}
.custom-options [data-option=size] span,.custom-options [data-option=ice] span {background:#fffaf480;border:1px solid #c9beb1;border-radius:16px}
.custom-options .option-pill input:checked+span {background:#d6e2b6;color:#221e17;border-color:var(--choice-color);box-shadow:inset 0 0 0 1px var(--choice-color)}
.custom-options [data-option=size] input:checked+span::after {border-radius:50%;background:var(--choice-color);color:white;width:20px;line-height:20px;top:6px;text-align:center}
.custom-options [data-option=temperature] .option-row,.custom-options [data-option=temperature] .option-row::before,.custom-options [data-option=temperature] .option-pill span {border-radius:99px}
.custom-sugar input {accent-color:var(--choice-color)}
.custom-sugar output,.custom-footer .order-primary {background:var(--choice-color);color:white}
.custom-footer .quantity {background:#fffaf4;border:1px solid #d7cbbd;border-radius:99px;padding:3px}
.custom-footer .order-primary {border-radius:99px;min-height:52px}
.custom-art :is(.studio-prev,.studio-next){position:absolute;top:50%;width:44px;height:44px;border-radius:50%;background:#fffaf4;color:#33291d;box-shadow:0 3px 12px #312b1822;font:28px/1 var(--sans)}
.studio-prev{left:2%}.studio-next{right:2%}
@media(min-width:900px){
 #order-panel:has(.custom-stage){width:min(1440px,98vw);max-width:none;height:min(980px,96dvh);max-height:96dvh;padding:20px;gap:0 18px;grid-template-columns:minmax(0,38fr) minmax(0,62fr)}
 .custom-stage{position:relative;isolation:isolate;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;align-content:center;padding:clamp(16px,3vh,38px) 8px;background:radial-gradient(ellipse at 45% 48%,#fff9e7 12%,transparent 67%);min-height:0}
 .custom-info{display:contents}.custom-kicker{grid-row:1}.custom-info h2{grid-row:2}.custom-info small{grid-row:3}.custom-art{grid-row:4;width:100%;height:100%;min-height:0}.custom-info p:not(.custom-description){grid-row:5}.custom-info strong{grid-row:6;font-size:clamp(32px,3vw,48px)}
 .custom-description,.custom-info meter,.custom-art>span{display:none}
 .custom-art>img:first-of-type{width:78%;height:85%;min-height:0;filter:drop-shadow(3px 6px 6px #41321c24)}
 .custom-options{border-radius:28px 28px 0 0;padding:54px clamp(24px,3vw,52px) 20px}
 .custom-options [data-option=size] span{min-height:108px}.custom-options [data-option=ice] span{min-height:68px}
 .custom-footer{border-radius:0 0 28px 28px;padding:20px clamp(24px,3vw,52px)}
 #order-panel:has(.custom-stage) .order-head{top:28px;right:32px;background:none}
}
@media(max-width:899px){.custom-kicker,.custom-art :is(.studio-prev,.studio-next){display:none}.custom-stage{background:linear-gradient(120deg,var(--studio-tint),#fff6e9)}}
#order-panel:has(.custom-stage){--choice-color:#40581c}
.custom-options,.custom-footer{background:#eff3e6;color:#26351c}
.custom-options .option-pill span,.custom-options textarea,.custom-footer .quantity{background:#f8faf2;border-color:#a9b79a}
.custom-options [data-option=temperature] .option-row{background:#e0e7d4}
.custom-options [data-option=temperature] .option-row::before{background:#d6e2b6}
.custom-options :is(input,textarea,summary):focus-visible,.custom-options .option-pill input:focus-visible+span{outline-color:#40581c}
