/* Solis Vero ordering screen
   Palette and feel follow the Solis design direction: light, warm, calm.
   No black, no gloss, no hard shadow, no bright accent. */

:root {
  --soft-white: #FBF8F4;
  --cream: #F7F2EC;
  --beige: #E9DFD4;
  --blush: #E3CCC3;
  --sage: #C9CEBE;
  --pale-oak: #D9C4A4;
  --nickel: #B9B4AC;
  --taupe: #A3827B;
  --ink: #4A4039;
  --ink-soft: #6F635A;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 20px;
  --max: 560px;

  --wash: 0 1px 0 rgba(74, 64, 57, 0.06);
  --lift: 0 6px 24px rgba(74, 64, 57, 0.07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--soft-white);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 140px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- header */

header.masthead {
  padding: 34px var(--gutter) 10px;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 6px;
}

/* The Solis wordmark sits with the product name on one baseline, divided by a
   hairline. The mark is the brand's own file and is never recoloured. */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.brand .wordmark {
  display: block;
  width: auto;
  height: 15px;
  flex: none;
}

.brand .eyebrow {
  margin: 0;
  padding-left: 11px;
  border-left: 1px solid var(--beige);
  line-height: 1.2;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.studio {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--taupe);
  margin: 30px 0 12px;
}

/* ----------------------------------------------------------------- cards */

.card {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
}

.drink {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 140ms ease, border-color 140ms ease;
}

.drink:hover, .drink:focus-visible { background: var(--beige); border-color: var(--pale-oak); outline: none; }
.drink[disabled] { opacity: 0.45; cursor: not-allowed; }

.drink .body { flex: 1; min-width: 0; }
.drink .name { font-size: 17px; font-weight: 500; margin: 0 0 3px; }
.drink .desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.drink .price { font-size: 16px; white-space: nowrap; padding-top: 1px; }

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blush);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 7px;
}

.badge.out { background: var(--nickel); color: var(--soft-white); }

/* --------------------------------------------------------------- photos */

/* A photograph is always optional. These rules only ever apply to an element
   the script put there, so a menu with no pictures keeps exactly the layout
   it had before pictures existed.

   Every frame carries the beige wash underneath, so a photo that is still
   loading is a warm square rather than a white hole, and a photo with a
   pale background has an edge. */

.shot {
  display: block;
  flex: none;
  overflow: hidden;
  background: var(--beige);
  border-radius: var(--radius);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-card { width: 74px; height: 74px; }

/* The photographed row keeps the picture beside the text and puts the price
   on its own line underneath, so the ingredients get the full width. */
.drink.has-shot { align-items: flex-start; }
.drink .price.under { margin: 8px 0 0; font-size: 15px; color: var(--ink); }
.shot-row { width: 38px; height: 38px; border-radius: 11px; }

/* The item screen leads with the drink, so the picture is the widest thing
   on the page and sits at the top. 5:4 rather than square: a tall crop
   pushes the size and add in choices below the fold on a small phone. */
.shot-hero {
  overflow: hidden;
  background: var(--beige);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 4;
  margin: 8px 0 14px;
}

.shot-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Lines in the order and on the pickup screen put the thumbnail beside the
   name. A line carrying one centres instead of sitting on the text baseline,
   which would hang the amount off the bottom of the picture. Browsers
   without :has keep the old alignment, which is only slightly off. */
.line .what { display: flex; align-items: center; gap: 11px; min-width: 0; }
.line:has(.shot) { align-items: center; }

/* --------------------------------------------------------------- options */

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--beige);
  cursor: pointer;
}

.option-row:last-child { border-bottom: none; }
.option-row input { accent-color: var(--taupe); width: 19px; height: 19px; flex: none; }
.option-row .label { flex: 1; }
.option-row .sub { display: block; font-size: 13px; color: var(--ink-soft); }
.option-row .amount { color: var(--ink-soft); font-size: 15px; }
.option-row.disabled { opacity: 0.45; pointer-events: none; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease;
}

.btn-primary { background: var(--taupe); color: var(--soft-white); }
.btn-primary:hover { background: #937069; }
.btn-primary[disabled] { background: var(--nickel); cursor: not-allowed; }

.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--beige);
}
.btn-quiet:hover { background: var(--cream); }

.btn + .btn { margin-top: 10px; }

.link {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
}

.back {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 10px 0 2px;
}

/* ----------------------------------------------------------------- totals */

.totals { font-size: 15px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-soft); }
.totals .row.grand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  border-top: 1px solid var(--beige);
  margin-top: 8px;
  padding-top: 14px;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--beige);
}
.line:last-of-type { border-bottom: none; }
.line .qty { color: var(--ink-soft); font-size: 14px; }

/* ----------------------------------------------------------------- footer */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(251, 248, 244, 0), var(--soft-white) 38%);
  padding: 28px var(--gutter) max(20px, env(safe-area-inset-bottom));
}

.sticky .wrap { padding: 0; }

/* ---------------------------------------------------------------- pickup */

.pickup {
  text-align: center;
  padding: 26px 18px 30px;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
}

.pickup .number {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 6px 0 2px;
}

.pickup .for { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  background: var(--soft-white);
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 9px 16px;
}

.status.ready { background: var(--sage); border-color: var(--sage); color: var(--ink); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pale-oak);
  animation: pulse 1.8s ease-in-out infinite;
}

.status.ready .dot { background: var(--ink); animation: none; }

@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ----------------------------------------------------------------- notes */

.note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 14px 0 0;
}

.alert {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 14px;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 54px 18px;
}

.skeleton {
  background: var(--cream);
  border-radius: var(--radius-lg);
  height: 86px;
  margin-bottom: 12px;
  animation: pulse 1.6s ease-in-out infinite;
}

.hidden { display: none !important; }

#stripe-card {
  background: var(--soft-white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 14px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
