/* Front Desk UI. Each site themes it with these variables (set on :root): */
:root {
  --fd-accent: #111; --fd-accent-ink: #fff; --fd-surface: #fff; --fd-ink: #16151a; --fd-muted: #6d6a73;
  --fd-line: rgba(0,0,0,.1); --fd-soft: rgba(0,0,0,.04); --fd-radius: 16px; --fd-font: inherit;
}
.fd-lock { overflow: hidden; }
[data-fd-menu], [data-fd-booking], .fd-overlay, .fd-cart-btn, .fd-toast { font-family: var(--fd-font); }

/* Buttons & fields */
.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1.1 var(--fd-font); text-decoration: none; background: var(--fd-soft); color: var(--fd-ink); transition: transform .15s, filter .15s, background .15s; }
.fd-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.fd-btn:disabled { opacity: .55; cursor: default; transform: none; }
.fd-primary { background: var(--fd-accent); color: var(--fd-accent-ink); width: 100%; }
.fd-link { background: none; border: 0; color: var(--fd-accent); font: 600 .95rem var(--fd-font); cursor: pointer; text-decoration: underline; padding: 4px; }
.fd-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; margin: 0 0 12px; color: var(--fd-ink); }
.fd-field small { font-weight: 400; color: var(--fd-muted); }
.fd-field input, .fd-field select, .fd-field textarea { width: 100%; min-height: 48px; font: 400 1rem var(--fd-font); padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--fd-line); background: var(--fd-surface); color: var(--fd-ink); }
.fd-field input:focus, .fd-field select:focus { outline: none; border-color: var(--fd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-accent) 20%, transparent); }
.fd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .fd-two { grid-template-columns: 1fr; } }
.fd-err { color: #c0341d; font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }
.fd-muted { color: var(--fd-muted); }
.fd-fine { color: var(--fd-muted); font-size: .85rem; text-align: center; margin: 10px 0 0; }
.fd-demo { font-size: .85rem; background: color-mix(in srgb, #ffb13d 22%, transparent); color: var(--fd-ink); padding: 10px 12px; border-radius: 10px; margin: 12px 0 0; }
.fd-tag { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--fd-accent) 16%, transparent); color: var(--fd-accent); vertical-align: middle; }

/* Menu */
.fd-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.fd-tabs button { flex: none; min-height: 42px; border: 0; border-radius: 999px; padding: 9px 16px; font: 600 .95rem var(--fd-font); cursor: pointer; background: var(--fd-soft); color: var(--fd-ink); }
.fd-tabs button[aria-selected="true"] { background: var(--fd-accent); color: var(--fd-accent-ink); }
.fd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fd-item { display: grid; grid-template-columns: 1fr; border-radius: var(--fd-radius); overflow: hidden; background: var(--fd-surface); border: 1px solid var(--fd-line); transition: transform .25s, box-shadow .25s; }
.fd-item[hidden] { display: none; }
.fd-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.fd-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fd-item-b { padding: 14px 16px 16px; display: grid; gap: 6px; }
.fd-item h3 { margin: 0; font-size: 1.08rem; color: var(--fd-ink); }
.fd-item p { margin: 0; color: var(--fd-muted); font-size: .93rem; line-height: 1.45; }
.fd-item-f { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: var(--fd-ink); }
.fd-add { min-height: 40px; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--fd-accent); color: var(--fd-accent-ink); font: 700 .92rem var(--fd-font); cursor: pointer; transition: transform .15s; }
.fd-add:active, .fd-added { transform: scale(.94); }
.fd-added::after { content: " ✓"; }

/* Floating cart */
.fd-cart-btn { position: fixed; z-index: 70; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 10px;
  border: 0; border-radius: 999px; background: var(--fd-accent); color: var(--fd-accent-ink); font: 700 1rem var(--fd-font); cursor: pointer; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); }
.fd-cart-btn[hidden] { display: none; }
@media (min-width: 900px) { .fd-cart-btn { bottom: 24px; } }
.fd-cart-ico { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--fd-accent-ink) 18%, transparent); }
.fd-cart-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fd-cart-ico b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--fd-accent-ink); color: var(--fd-accent); font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }
.fd-bump { animation: fd-bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes fd-bump { 40% { transform: scale(1.08); } }

/* Sheet */
.fd-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,14,.5); display: flex; justify-content: flex-end; opacity: 0; transition: opacity .25s; }
.fd-overlay.fd-in { opacity: 1; }
.fd-sheet { width: min(460px, 100%); height: 100%; background: var(--fd-surface); color: var(--fd-ink); display: flex; flex-direction: column; transform: translateX(30px); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); }
.fd-in .fd-sheet { transform: none; }
@media (max-width: 640px) {
  .fd-overlay { align-items: flex-end; }
  .fd-sheet { height: auto; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
}
.fd-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.fd-sheet-h h2 { margin: 0; font-size: 1.35rem; }
.fd-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--fd-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--fd-ink); }
.fd-sheet-b { overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.fd-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.fd-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fd-line); }
.fd-lines li b { display: block; } .fd-lines small { color: var(--fd-muted); }
.fd-empty { color: var(--fd-muted); justify-content: center !important; }
.fd-qty { display: flex; align-items: center; gap: 8px; }
.fd-qty button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--fd-line); background: var(--fd-surface); color: var(--fd-ink); font-size: 1.2rem; cursor: pointer; }
.fd-qty span { min-width: 20px; text-align: center; font-weight: 700; }
.fd-row { display: flex; justify-content: space-between; padding: 10px 0; }
.fd-total { font-size: 1.15rem; border-top: 1px solid var(--fd-line); margin: 6px 0 12px; padding-top: 14px; }
.fd-tips { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.fd-tips legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.fd-tips label, .fd-amounts label { cursor: pointer; }
.fd-tips input, .fd-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.fd-tips span, .fd-amounts span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--fd-line); font-weight: 600; }
.fd-tips input:checked + span, .fd-amounts input:checked + span { background: var(--fd-accent); color: var(--fd-accent-ink); border-color: var(--fd-accent); }
.fd-tips input:focus-visible + span, .fd-amounts input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--fd-accent) 40%, transparent); }

/* Booking. min-width:0 so the scrolling day strip scrolls inside a grid/flex column instead of stretching it. */
[data-fd-booking], [data-fd-menu], .fd-days { min-width: 0; max-width: 100%; }
.fd-booking { background: var(--fd-surface); color: var(--fd-ink); border-radius: calc(var(--fd-radius) + 6px); padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 70px -40px rgba(0,0,0,.45); }
.fd-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: s; }
.fd-steps li { flex: 1; font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fd-muted); padding-top: 10px; border-top: 3px solid var(--fd-line); }
.fd-steps .fd-now { color: var(--fd-ink); border-color: var(--fd-accent); }
.fd-steps .fd-ok { color: var(--fd-accent); border-color: color-mix(in srgb, var(--fd-accent) 45%, transparent); }
.fd-services { display: grid; gap: 6px; }
.fd-service { text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 1px; padding: 11px 14px; border-radius: var(--fd-radius); border: 1.5px solid var(--fd-line); background: var(--fd-surface); color: var(--fd-ink); cursor: pointer; font: inherit; transition: border-color .15s; }
.fd-service:hover { border-color: var(--fd-accent); }
.fd-service b { font-size: 1rem; font-weight: 600; } .fd-service span { grid-column: 2; grid-row: 1; color: var(--fd-muted); font-size: .88rem; white-space: nowrap; } .fd-service small { grid-column: 1 / -1; color: var(--fd-muted); font-size: .85rem; }
.fd-picked { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--fd-soft); font-weight: 600; margin-bottom: 14px; }
.fd-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.fd-days button { flex: none; width: 62px; scroll-snap-align: start; display: grid; gap: 2px; justify-items: center; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--fd-line); background: var(--fd-surface); color: var(--fd-ink); cursor: pointer; font: inherit; }
.fd-days small { font-size: .75rem; color: var(--fd-muted); text-transform: uppercase; font-weight: 700; } .fd-days b { font-size: 1.25rem; }
.fd-days [aria-selected="true"] { background: var(--fd-accent); border-color: var(--fd-accent); color: var(--fd-accent-ink); }
.fd-days [aria-selected="true"] small { color: inherit; opacity: .85; }
.fd-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; min-height: 60px; }
.fd-slots p { grid-column: 1 / -1; margin: 8px 0; }
.fd-slots button { min-height: 46px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--fd-accent) 40%, var(--fd-line)); background: var(--fd-surface); color: var(--fd-accent); font: 700 .98rem var(--fd-font); cursor: pointer; transition: background .15s, color .15s; }
.fd-slots button:hover { background: var(--fd-accent); color: var(--fd-accent-ink); }
.fd-slots .fd-taken, .fd-slots .fd-taken:hover { display: grid; place-items: center; gap: 0; line-height: 1.1; border-style: dashed; border-color: var(--fd-line); background: var(--fd-soft); color: var(--fd-muted); text-decoration: line-through; cursor: not-allowed; opacity: .85; }
.fd-slots .fd-taken small { font-size: .72rem; font-weight: 600; text-decoration: none; }
.fd-frame { width: 100%; min-height: 700px; border: 0; border-radius: var(--fd-radius); }
.fd-cal { min-height: 620px; }

/* Done states */
.fd-done { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 10px 0; }
.fd-done p { margin: 4px 0; }
.fd-big { font-size: 1.4rem; font-weight: 800; }
.fd-recap { list-style: none; padding: 0; margin: 6px 0; color: var(--fd-muted); }
.fd-check svg { width: 64px; height: 64px; fill: none; stroke: var(--fd-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fd-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: fd-draw .6s ease forwards; }
.fd-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: fd-draw .35s .5s ease forwards; }
@keyframes fd-draw { to { stroke-dashoffset: 0; } }
.fd-done .fd-btn { margin-top: 12px; }

/* Gift cards */
.fd-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fd-amounts span { font-size: 1.1rem; padding: 12px 20px; }

/* Toast */
.fd-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(170px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; transition: .3s; background: var(--fd-ink); color: var(--fd-surface);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.fd-toast.fd-in { opacity: 1; transform: translate(-50%, 0); }
.fd-toast.fd-bad { background: #c0341d; color: #fff; }
@media (min-width: 900px) { .fd-toast { bottom: 100px; } }
@media (prefers-reduced-motion: reduce) { .fd-overlay, .fd-sheet, .fd-toast, .fd-item, .fd-cart-btn { transition: none; animation: none; } .fd-check circle, .fd-check path { animation: none; stroke-dashoffset: 0; } }
