/* Coffee Orders — styled after lifeministry.church. Mobile-first, no external assets. */

/* Montserrat (SIL Open Font License, see fonts/OFL.txt) stands in for the
   church site's Proxima Nova, which is a licensed Adobe font. */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #222222;
  --muted: #5f6670;
  --border: #e1e4e8;
  --header-bg: #000000;
  --header-text: #ffffff;
  --hero-bg: #141414;
  --hero-text: #ffffff;
  --accent: #239ca8;          /* the site's teal button colour */
  --accent-hover: #1d8590;
  --accent-text: #ffffff;
  --accent-ink: #18727b;      /* teal dark enough for text on white */
  --accent-soft: #e2f3f4;
  --indigo: #484ccf;          /* the site's indigo band colour */
  --danger: #c1202f;
  --danger-soft: #fbe7e9;
  --ready: #18727b;
  --ready-soft: #e2f3f4;
  --pending: #8a5a00;
  --pending-soft: #fdf1d8;
  --chart-bar: #239ca8;       /* validated: in the lightness band, 3.3:1 on white */
  --radius: 4px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  --font: "Montserrat", "Proxima Nova", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --surface: #1a1c20;
    --text: #eceef1;
    --muted: #a3a9b2;
    --border: #2c3036;
    --hero-bg: #000000;
    --accent: #2bb3c0;
    --accent-hover: #3cc3cf;
    --accent-text: #061416;
    --accent-ink: #4cc9d4;
    --accent-soft: #12302f;
    --indigo: #8f92ff;
    --danger: #f2808a;
    --danger-soft: #3a1a1e;
    --ready: #4cc9d4;
    --ready-soft: #12302f;
    --pending: #f0c060;
    --pending-soft: #3a2f17;
    --chart-bar: #26a6b2;     /* validated against the dark surface */
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}

h1, h2 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }

a { color: var(--accent-ink); }

/* Header: black bar with a bold uppercase wordmark, like the church site. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 16px;
  background: var(--header-bg);
  color: var(--header-text);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--header-text);
}
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--accent); }
.header-link {
  color: var(--header-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.header-link:hover { color: var(--accent); }
.header-link-active { color: var(--accent); }
.admin-nav { display: flex; align-items: center; gap: 1.1rem; }
.admin-nav form { margin: 0; }

/* Hero band: big uppercase heading with an outlined word and a letterspaced subtitle. */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  padding: 2.25rem 16px 2rem;
  border-bottom: 4px solid var(--accent);
}
.hero h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.25rem); }
/* The variable font draws letters from overlapping shapes, so a plain stroke shows
   seams inside them. Painting a double-width stroke under a fill in the hero colour
   hides the seams and leaves a clean outline. */
.hero .outline {
  color: var(--hero-bg);
  -webkit-text-stroke: 3px var(--hero-text);
  paint-order: stroke fill;
}
.hero-sub {
  margin: 0.75rem 0 0;
  font-size: clamp(0.75rem, 3.4vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero-compact { padding: 1.25rem 16px; }
.hero-compact h1 { font-size: clamp(1.5rem, 6vw, 2rem); }

.container { max-width: 560px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.container.narrow { max-width: 400px; }
.container.medium { max-width: 820px; }
.container.wide { max-width: 1040px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: 0 0 1rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 0 0 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Flash messages */
.flashes { margin-bottom: 1rem; }
.flash {
  margin: 0 0 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius);
  border-left: 4px solid currentColor; font-weight: 500;
}
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-success { background: var(--ready-soft); color: var(--ready); }

/* Form fields */
.field { display: block; margin-bottom: 0.9rem; }
.field:last-child { margin-bottom: 0; }
.field > span {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

input[type="text"], input[type="password"], select {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid #c9ced5;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  min-height: 46px;
}
@media (prefers-color-scheme: dark) {
  input[type="text"], input[type="password"], select { border-color: var(--border); }
}
input:focus, select:focus { border-color: var(--accent); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

/* Drink rows */
.drink-row { position: relative; border: 1px solid var(--border); min-width: 0; }
.drink-row-title {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 0.35rem; margin-left: -0.35rem;
}
.remove-drink { position: absolute; top: 0.75rem; right: 1.25rem; color: var(--danger); }

.extras summary {
  cursor: pointer;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  list-style-position: inside;
}
.extras[open] summary { margin-bottom: 0.9rem; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.extras-grid .field { margin-bottom: 0.9rem; }
.field-wide { grid-column: 1 / -1; }

/* Buttons: squared-off, bold uppercase, teal — like the site's "I'M NEW" button. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button-primary { background: var(--accent); color: var(--accent-text); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.button-secondary:hover { background: var(--accent-soft); }
.button-danger { background: transparent; color: var(--danger); border-color: currentColor; }
.button-danger:hover { background: var(--danger-soft); }
.button-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.button-ghost:hover { color: var(--text); border-color: var(--muted); }
.button-small { padding: 0.35rem 0.8rem; min-height: 36px; font-size: 0.75rem; border-width: 1.5px; }
.button-icon { min-width: 36px; padding: 0.35rem 0.5rem; font-size: 1rem; }
.button:disabled { opacity: 0.35; cursor: default; filter: none; }

.order-form > .button { width: 100%; margin-bottom: 0.75rem; }

.link-button {
  background: none; border: 0; padding: 0.25rem; font: inherit; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; text-decoration: underline;
}

/* Customer "your order" view */
.my-order-name { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; margin: 0; }
.my-order > .muted { margin: 0 0 0.75rem; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-top: 1px solid var(--border);
}

.badge {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: var(--radius);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.badge-pending { background: var(--pending-soft); color: var(--pending); }
.badge-ready { background: var(--ready-soft); color: var(--ready); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }

/* Admin */
.admin-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--border); }
.tab {
  padding: 0.5rem 0; text-decoration: none; color: var(--muted);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab-active { color: var(--text); border-bottom-color: var(--accent); }
.summary { margin: 0 0 0.5rem; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.empty { padding: 2rem 1rem; }

.orders-table { width: 100%; border-collapse: collapse; box-shadow: var(--shadow); }
.orders-table th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--header-text); background: var(--header-bg); padding: 0.7rem 0.75rem;
}
.orders-table td { padding: 0.8rem 0.75rem; vertical-align: top; }
.orders-table tbody tr { background: var(--surface); border-top: 1px solid var(--border); }
.orders-table tr.row-completed td { color: var(--muted); }
.cell-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.cell-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.cell-actions form { margin: 0; }

/* On phones, show each order as a stacked card. */
@media (max-width: 720px) {
  .orders-table { box-shadow: none; }
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; }
  .orders-table tbody tr {
    border: 1px solid var(--border); border-top: 4px solid var(--accent);
    border-radius: var(--radius); margin-bottom: 0.75rem; padding: 0.5rem 0; box-shadow: var(--shadow);
  }
  .orders-table tr.row-completed { border-top-color: var(--border); }
  .orders-table td { padding: 0.3rem 1rem; }
  .orders-table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); font-weight: 600;
  }
  .orders-table td.cell-name::before { display: none; }
  .orders-table td.cell-name { font-size: 1.1rem; }
  .orders-table td.cell-actions { display: flex; justify-content: flex-start; padding-top: 0.5rem; }
}

/* Admin: drink menu editor */
.menu-intro { margin: 0 0 1.25rem; font-size: 0.9rem; }
.menu-heading { font-size: 1rem; margin: 0 0 0.75rem; }
.menu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.menu-row input[type="text"] { flex: 1 1 9rem; width: auto; min-width: 0; min-height: 40px; padding: 0.45rem 0.65rem; }
.menu-row select { flex: 0 1 8.5rem; min-width: 0; width: auto; min-height: 40px; padding: 0.45rem 0.65rem; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.menu-actions .button-small { padding-left: 0.65rem; padding-right: 0.65rem; }
.menu-toggle { min-width: 4rem; }
/* Drink name box; the "Hidden" badge sits inside its right-hand end. */
.menu-name { position: relative; display: flex; flex: 1 1 9rem; min-width: 0; }
.menu-name .badge { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.menu-item.is-hidden .menu-name input[type="text"] { padding-right: 5.5rem; }
.menu-group { scroll-margin-top: 1rem; }
.menu-group-head { padding-bottom: 0.75rem; border-bottom: 2px solid var(--text); }
.menu-group-head .menu-group-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.menu-item.is-hidden input[type="text"] { color: var(--muted); background: var(--bg); }
.menu-empty { margin: 0.75rem 0; }
.menu-add { margin-top: 0.75rem; }

/* Customer: orders closed */
.closed-card { padding: 2rem 1.25rem; }
.closed-message { font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }

/* Admin: taking orders on/off */
.ordering-status { border-left: 4px solid var(--ready); }
.ordering-status.is-closed { border-left-color: var(--danger); background: var(--danger-soft); }
.ordering-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.9rem; }
.ordering-state .badge { font-size: 0.8rem; padding: 0.3rem 0.75rem; }
.ordering-status.is-closed .badge { background: var(--danger); color: var(--surface); }
.ordering-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Admin: stats */
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 0.5rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.filter-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.filter-group .tabs { flex-wrap: wrap; row-gap: 0; }
.period-range { margin: 0 0 1.5rem; }

.stat-heading { font-size: 0.85rem; letter-spacing: 0.08em; margin: 1.5rem 0 0.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.9rem 1rem;
}
.stat-label { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.stat-value { margin: 0.15rem 0 0; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-note { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted); line-height: 1.35; }

.chart-card { margin: 1.5rem 0 0; min-width: 0; }
.chart-pair { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.chart-pair .chart-card { margin-top: 1.5rem; }
@media (min-width: 860px) {
  .chart-pair { grid-template-columns: 1fr 1fr; }
}
.chart-title { font-size: 0.95rem; margin: 0; }
.chart-note { margin: 0.25rem 0 0; }
.chart { margin-top: 1rem; min-height: 40px; }
.chart-svg { display: block; overflow: visible; }
.chart-bar { fill: var(--chart-bar); transition: opacity 0.1s; }
.chart-bar.is-active { opacity: 0.7; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-baseline { stroke: var(--muted); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--text); font-size: 12px; }
.chart-value { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart-hit { fill: transparent; outline: none; }
.chart-hit:focus-visible { stroke: var(--indigo); stroke-width: 2; }
.chart-empty { margin: 1rem 0; }
.chart-tooltip {
  position: fixed; z-index: 10; pointer-events: none;
  display: flex; flex-direction: column; gap: 0.1rem;
  background: var(--header-bg); color: var(--header-text);
  padding: 0.4rem 0.65rem; border-radius: var(--radius); font-size: 0.8rem; box-shadow: var(--shadow);
}
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong { font-size: 0.9rem; }
.chart-tooltip span { opacity: 0.8; }

.chart-table { margin-top: 0.75rem; }
.chart-table summary { cursor: pointer; color: var(--accent-ink); font-size: 0.8rem; font-weight: 600; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.85rem; }
.chart-table th, .chart-table td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--border); }
.chart-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chart-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Barista screen: large touch tiles and a fixed footer of tools. */
.container.barista-main { max-width: none; padding: 1rem 16px 8.5rem; }

.tile-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px;
}
.tile-grid li { display: flex; }
.tile-form { display: flex; width: 100%; margin: 0; }
.tile {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.3rem;
  width: 100%; min-height: 190px; padding: 0.9rem 1rem 0.8rem;
  font: inherit; text-align: left; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border); border-top: 6px solid var(--accent); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  /* Touch: no double-tap zoom, no text selection or grey flash, clear pressed state. */
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, opacity 0.18s, background-color 0.12s;
}
.tile:active { transform: scale(0.97); background: var(--accent-soft); }
.tile.is-done { opacity: 0; transform: scale(0.92); pointer-events: none; }
.tile.is-new { animation: tile-arrive 1.2s ease-out 2; }
@keyframes tile-arrive {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile.is-new { animation: none; outline: 3px solid var(--accent); }
}
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.tile-position { font-weight: 800; color: var(--muted); font-size: 0.9rem; }
.tile-wait { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile.is-late { border-top-color: var(--pending); }
.tile.is-late .tile-wait { color: var(--pending); font-weight: 800; }
.tile-name {
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 1.15; overflow-wrap: anywhere;
}
.tile-drink { font-size: 1.25rem; font-weight: 700; color: var(--accent-ink); line-height: 1.2; }
.tile-extras { font-size: 1.05rem; font-weight: 600; }
.tile-note { font-size: 1rem; font-style: italic; overflow-wrap: anywhere; }
.tile-bottom { margin-top: auto; padding-top: 0.5rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.tile-part {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent-ink); padding: 0.15rem 0.5rem; border-radius: var(--radius);
}
.tile-hint { margin-left: auto; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.barista-empty { text-align: center; padding: 4rem 1rem; }
.barista-empty-title { font-size: 1.75rem; font-weight: 800; text-transform: uppercase; margin: 0 0 0.5rem; }
.barista-closed {
  margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--danger); color: var(--surface); font-weight: 700; text-align: center;
}
.barista-toast-host {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom)); width: min(92vw, 480px);
}
/* Without JavaScript the messages stay at the top of the board. */
#barista-board > .barista-toasts { margin-bottom: 1rem; }
.barista-toasts .flash { box-shadow: 0 4px 16px rgb(0 0 0 / 0.2); background: var(--surface); }

.barista-footer {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; align-items: stretch;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg); color: var(--header-text);
  border-top: 4px solid var(--accent);
}
.footer-slot { display: flex; margin: 0; flex: 1 1 0; min-width: 0; }
.footer-slot[hidden] { display: none; }
.footer-button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 64px; padding: 0.5rem 0.75rem;
  font: inherit; color: var(--header-text); text-align: left;
  background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: var(--radius); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent;
}
.footer-button:active { background: #2c2c2c; transform: scale(0.98); }
.footer-button:disabled { opacity: 0.4; cursor: default; transform: none; }
.footer-button.is-off { background: var(--danger); border-color: var(--danger); }
.footer-icon { font-size: 1.6rem; line-height: 1; }
.footer-text { display: flex; flex-direction: column; min-width: 0; }
.footer-text strong { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.footer-text small { font-size: 0.75rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.footer-dot.is-on { background: #3ddc84; border-color: #3ddc84; }
.footer-count { flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; padding: 0 0.75rem; text-align: center; }
.footer-count strong { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.footer-count span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }

/* Phones: two rows of tools, undo full width on top. */
@media (max-width: 560px) {
  .barista-footer { flex-wrap: wrap; }
  .footer-undo { flex-basis: 100%; }
  .footer-button { min-height: 56px; }
  .container.barista-main { padding-bottom: 10.5rem; }
  .barista-toast-host { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
