/* Nom ordering: option chips in the drink sheet, the bag button, the cart panel and the "added" toast.
   Same language as the rest of the site: white room, black ink, pills, Montserrat Black for the headings, Montserrat Regular for the rest. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- options inside a drink ---------- */
.opts { display: grid; gap: 22px; margin-top: 26px; }
.og-h { margin: 0 0 10px; font-size: 15px; font-weight: 900; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.og-h em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: #f3f2ee; color: var(--ink); font: inherit; font-size: 15px; letter-spacing: -.01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
.opt:hover { background: #e9e7e1; }
.opt:active { transform: scale(.96); }
.opt-p { font-size: 13px; color: var(--mute); transition: color .25s var(--ease); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.opt[aria-pressed="true"] .opt-p, .opt[aria-checked="true"] .opt-p { color: rgba(255,255,255,.72); }
.opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.off, .opt:disabled { cursor: default; opacity: .45; background: #f3f2ee; color: var(--ink); }
.opt.off .opt-n { text-decoration: line-through; }

/* the sticky buy bar: quantity, then the add button with the live price */
.sheet-buy { display: flex; align-items: center; gap: 12px; }
.sheet-buy .add { flex: 1; width: auto !important; justify-content: space-between; padding: 0 24px; }
.sheet-buy .add:disabled { background: #e9e7e1; color: #8f8f8c; cursor: default; transform: none; }
.add-p { font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 2px; height: 58px; padding: 0 6px; border-radius: 999px; background: #f3f2ee; }
.q-btn, .cl-q button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 17px; }
.q-btn:hover:not(:disabled), .cl-q button:hover:not(:disabled) { background: #e6e4de; }
.q-btn:disabled, .cl-q button:disabled { opacity: .3; cursor: default; }
.q-n { min-width: 22px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- bag button in the bar ---------- */
.bagbtn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #f3f3f1; color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: background-color .3s, color .3s; }
.bagbtn:hover { background: var(--ink); color: var(--paper); }
.bag-n { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--paper); transform: scale(0); transition: transform .4s var(--ease); }
.bagbtn.has .bag-n { transform: scale(1); }
.bagbtn.bump { animation: bag-bump .6s var(--ease); }
@keyframes bag-bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.96); } }

/* ---------- the cart panel: from the right on big screens, from the bottom on phones ---------- */
.cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: none; max-width: none; overflow-x: hidden; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  box-shadow: -30px 0 90px rgba(0,0,0,.12); overscroll-behavior: contain;
  transform: translateX(40px); opacity: 0; transition: opacity .35s var(--ease), transform .55s var(--ease), overlay .55s allow-discrete, display .55s allow-discrete; }
.cart[open] { display: flex; flex-direction: column; transform: none; opacity: 1; }
@starting-style { .cart[open] { transform: translateX(40px); opacity: 0; } }
.cart::backdrop { background: rgba(255,255,255,.7); opacity: 0; transition: opacity .35s var(--ease), overlay .55s allow-discrete, display .55s allow-discrete; }
.cart[open]::backdrop { opacity: 1; }
@starting-style { .cart[open]::backdrop { opacity: 0; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.cart-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.045em; }
.cart-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f3f3f1; display: grid; place-items: center; cursor: pointer; font-size: 18px; color: var(--ink); }
.cart-x:hover { background: var(--ink); color: var(--paper); }
.cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 12px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "fig txt p" "fig q rm"; column-gap: 14px; row-gap: 8px; align-items: center; padding: 16px 0; border-top: 1px solid #efeeea; }
.cl:first-child { border-top: 0; }
.cl-fig { grid-area: fig; position: relative; width: 64px; height: 76px; align-self: start; }
.cl-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.cl-txt { grid-area: txt; display: grid; gap: 3px; min-width: 0; }
.cl-txt b { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 1.12; letter-spacing: -.025em; }
.cl-txt span { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.cl.bad .cl-txt span { color: #b3261e; }
.cl.bad .cl-fig { opacity: .45; }
.cl-p { grid-area: p; align-self: start; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-q { grid-area: q; display: inline-flex; align-items: center; gap: 2px; width: fit-content; padding: 0 4px; border-radius: 999px; background: #f3f2ee; }
.cl-q button { width: 34px; height: 34px; font-size: 15px; }
.cl-q output { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }
.cl-rm { grid-area: rm; justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--mute); display: grid; place-items: center; cursor: pointer; font-size: 17px; }
.cl-rm:hover { background: #f3f2ee; color: var(--ink); }
.cart-empty { display: grid; justify-items: start; gap: 18px; padding: 30px 0; }
.cart-empty p { margin: 0; font-size: 17px; color: var(--mute); }
.cart-foot { flex: none; display: grid; gap: 12px; padding: 16px 24px max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px)); border-top: 1px solid #efeeea; background: var(--paper); }
.cart-foot[hidden] { display: none; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-sum b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cart-who label { display: grid; gap: 6px; min-width: 0; font-size: 13px; color: var(--mute); }
.cart-who input { width: 100%; min-width: 0; height: 46px; border-radius: 14px; border: 0; background: #f3f2ee; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
.cart-who input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.cart-pick, .cart-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.cart-err { margin: 0; font-size: 14px; line-height: 1.45; color: #b3261e; }
.cart-err a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cart-go { width: 100%; height: 58px; font-size: 16px; justify-content: space-between; padding: 0 24px; }
.cart-go:disabled { background: #e9e7e1; color: #8f8f8c; cursor: default; transform: none; }
.cart-go.busy { opacity: .7; cursor: progress; }

/* ---------- "added" toast ---------- */
/* pinned between both screen edges (not left:50%, which would squeeze it into half the screen), then centred */
.toast { position: fixed; left: 16px; right: 16px; width: fit-content; max-width: calc(100vw - 32px); margin: 0 auto; bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 56px)); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 16px 40px rgba(0,0,0,.2);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.toast[hidden] { display: none; }
.toast-t { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 600; }
.toast-t .ic { flex: none; font-size: 17px; }
.toast-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { overflow: hidden; white-space: nowrap; }
.toast.in { animation: toast-grow .75s var(--ease) both; }
.toast.in .toast-w, .toast.in .toast-go { animation: toast-fade .45s var(--ease) .22s both; }
@keyframes toast-grow { from { max-width: 56px; } to { max-width: calc(100vw - 32px); } }
@keyframes toast-fade { from { opacity: 0; } }
.tg-s { display: none; }
/* phones under 400px: a shorter button and slightly smaller type leave room for long drink names */
@media (max-width: 399px) { .tg-l { display: none; } .tg-s { display: inline; } .toast { font-size: 14px; gap: 10px; padding-left: 16px; } .toast-go { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .toast.in, .toast.in .toast-w, .toast.in .toast-go { animation: none; } }
.toast.in { transform: none; opacity: 1; }
.toast-go { border: 0; border-radius: 999px; height: 40px; padding: 0 16px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }

@media (max-width: 820px) {
  .cart { inset: auto 0 0 0; width: 100vw; height: auto; max-height: calc(100dvh - 54px); border-radius: 28px 28px 0 0; transform: translateY(60px); box-shadow: 0 -20px 60px rgba(0,0,0,.12); }
  @starting-style { .cart[open] { transform: translateY(60px); opacity: 0; } }
  .cart-head h2 { font-size: 30px; }
  .cart-who { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bagbtn { width: 42px; height: 42px; font-size: 19px; }
  .sheet-buy { gap: 8px; }
  .qty { height: 54px; }
  .sheet-buy .add { height: 54px; padding: 0 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .cart, .cart::backdrop, .toast, .bag-n, .opt { transition: none; } .bagbtn.bump { animation: none; } }
.bagbtn.float { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 55; width: 58px; height: 58px; background: var(--ink); color: var(--paper); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.bagbtn.float .bag-n { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.bagbtn.float:not(.has) { display: none; }

/* ---------- thank-you page ---------- */
.thanks-in { min-height: 78vh; min-height: 78svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding-top: calc(var(--gap-sec) * .9); }
.thanks-in .h2 { font-size: clamp(54px, 9vw, 140px); }
.thanks-in .note { max-width: 34ch; margin: 10px auto 0; }
.thanks-in .btns { justify-content: center; }
.thanks-ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- the receipt: a little paper slip that prints in, scalloped at the bottom ---------- */
.rcpt-wrap { width: min(440px, 100%); margin: 22px auto 8px; text-align: left; }
.rcpt-wrap[hidden] { display: none; }
.rcpt { position: relative; padding: 26px 24px 36px; background: #f6f5f1; border-radius: 22px 22px 0 0;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 96%, #000 100%) 0 0 / 18px 100% repeat-x;
  mask: radial-gradient(circle 7px at 50% 100%, transparent 96%, #000 100%) 0 0 / 18px 100% repeat-x;
  animation: rcpt-print 1.3s var(--ease) .25s both; }
.rcpt.still { animation: none; }
@keyframes rcpt-print { from { clip-path: inset(0 0 100% 0); translate: 0 -16px; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
.rcpt-h { display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 18px; border-bottom: 1px dashed #d6d4cc; }
.rcpt-logo { display: block; width: 112px; height: auto; margin: 0 auto 20px; }
.rcpt-for { margin: 0; font-size: 15px; color: var(--mute); }
.rcpt-for b { color: var(--ink); }
.rcpt-no { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 8vw, 58px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rcpt-st { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 6px 12px; border-radius: 999px; background: #ebe9e3; font-size: 13px; font-weight: 600; color: var(--mute); }
.rcpt-st.ok { background: var(--ink); color: var(--paper); }
.rcpt-st.no { background: #f6e3dc; color: #8a2b14; }
.thanks-in .note a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rcpt-st .ic { font-size: 15px; }
.rcpt-lines { list-style: none; margin: 0; padding: 6px 0; }
.rcpt-lines li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed #e2e0d9; }
.rcpt-lines li:last-child { border-bottom: 0; }
.rq { font-weight: 600; font-variant-numeric: tabular-nums; }
.rn { display: grid; gap: 3px; font-size: 16px; font-weight: 900; letter-spacing: -.025em; }
.rn small { font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--mute); line-height: 1.4; }
.rp { font-size: 15px; font-variant-numeric: tabular-nums; }
.rcpt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 15px; }
.rcpt-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.rcpt-meta { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); text-align: center; }
@media (prefers-reduced-motion: reduce) { .rcpt { animation: none; } }

/* ---------- "View receipt": a small pill under the bar, and a card in the empty bag ---------- */
.lastorder { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 4px;
  border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 28px rgba(0,0,0,.18); animation: lo-in .8s var(--ease) .6s both; white-space: nowrap; }
.lastorder.float { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); z-index: 55; }
.lastorder a { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 14px; color: inherit; font-size: 14px; }
.lastorder a b { padding: 0 12px; height: 28px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; }
.lastorder button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: rgba(255,255,255,.7); display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.lastorder button:hover { color: #fff; background: rgba(255,255,255,.12); }
@keyframes lo-in { from { opacity: 0; translate: -50% -10px; } to { opacity: 1; translate: -50% 0; } }
.lastorder.float { animation-name: lo-in; }
.cart-last { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 4px; padding: 16px 18px; border-radius: 20px; background: #f3f2ee; color: var(--ink); }
.cart-last > span:first-child { display: grid; gap: 3px; font-size: 15px; }
.cart-last small { font-size: 13px; color: var(--mute); }
.cart-last-go { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .lastorder { animation: none; } }
