/* Shire Coffee brand: green #435243, stone #c7bea9 */
:root {
  --bg: #c7bea9;
  --card: #fbf9f5;
  --ink: #273027;
  --muted: #5e665b;
  --line: #ddd5c5;
  --accent: #435243;      /* buttons, selected options */
  --accent-ink: #ffffff;
  --soft: #efe9de;
  --bad: #a33a2b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.embed { background: transparent; }
.wrap { max-width: 520px; margin: 0 auto; padding: 28px 18px 48px; }
.brand { text-align: center; margin-bottom: 22px; }
.brand img { width: 96px; height: 96px; display: block; margin: 0 auto 12px; }
.brand .eyebrow { color: var(--accent); font-weight: 700; }
.brand h1 { color: var(--accent); }
.brand .sub { color: var(--ink); opacity: .75; margin-bottom: 0; }
body.embed .brand img { width: 72px; height: 72px; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 6px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.card { background: var(--card); border: 1px solid rgba(67,82,67,.12); box-shadow: 0 1px 2px rgba(39,48,39,.06); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
label.lbl { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* party size pills */
.pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.pill, .slot {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 10px; padding: 10px 0; font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .12s, border-color .12s, transform .05s;
}
.pill:hover, .slot:hover, .date:hover { border-color: var(--accent); }
.pill:active, .slot:active { transform: scale(.97); }
.pill[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot[disabled] { color: #c4bbb0; background: #faf8f4; cursor: not-allowed; text-decoration: line-through; border-style: dashed; }

/* date strip */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: 0 0 62px; scroll-snap-align: start; appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 8px 0 9px; font: inherit; cursor: pointer; text-align: center;
}
.date .dw { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date .dn { font-size: 20px; font-weight: 700; line-height: 1.2; }
.date .dm { font-size: 11px; color: var(--muted); }
.date[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.date[aria-pressed="true"] .dw, .date[aria-pressed="true"] .dm { color: inherit; opacity: .8; }
.date[disabled] { opacity: .35; cursor: not-allowed; }
.more-dates { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.more-dates input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.empty { color: var(--muted); font-size: 15px; padding: 6px 0; }

input.f, textarea.f {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); margin-bottom: 12px;
}
input.f:focus, textarea.f:focus, .pill:focus-visible, .slot:focus-visible, .date:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea.f { min-height: 74px; resize: vertical; }
.btn {
  appearance: none; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  padding: 14px 18px; border-radius: 12px; width: 100%; cursor: pointer; font-size: 16px;
}
.btn[disabled] { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.summary small { display: block; font-weight: 400; color: var(--muted); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.err { color: var(--bad); font-size: 14px; margin: 4px 0 12px; }
.note { font-size: 14px; color: var(--ink); opacity: .75; margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 28px 18px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 14px; font-size: 28px; }
.small { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
a { color: var(--accent); font-weight: 600; }
a.btn { display: block; text-decoration: none; text-align: center; }
