/* Plain and large: one hand, outdoors, in a hurry. Functional only; Design
   has not styled this app. This half: the page, its controls, the sync line and
   the Sell screen. style2.css, loaded after it, holds the rest. */

:root {
  --ink: #111827;
  --muted: #4b5563;
  --paper: #ffffff;
  --panel: #f3f4f6;
  --line: #d1d5db;
  --brand: #14532d;
  --cash: #166534;
  --card: #1e40af;
  --good: #dcfce7;
  --warn: #fef3c7;
  --bad: #fee2e2;
  --tap: 3.5rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1.0625rem/1.4 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0.75rem calc(5rem + env(safe-area-inset-bottom));
}

button,
.button,
input,
select {
  font: inherit;
  min-height: var(--tap);
  border-radius: 0.75rem;
}

button,
.button {
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  opacity: 0.4;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--card);
  outline-offset: 2px;
}

input,
select {
  border: 2px solid var(--line);
  padding: 0.5rem 0.75rem;
  width: 100%;
  background: var(--paper);
}

.status {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: env(safe-area-inset-top);
  background: var(--paper);
}

.bar {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.bar.good {
  background: var(--good);
}

.bar.warn,
.note.warn {
  background: var(--warn);
}

.bar.bad {
  background: var(--bad);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0 1rem;
}

.heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.sub,
.note {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.note.warn {
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.item {
  position: relative;
  flex-direction: column;
  min-height: 5.5rem;
  /* Room above the name for the count badge. */
  padding: 1.6rem 0.5rem 0.75rem;
  font-weight: 600;
}

.item.picked {
  border-color: var(--brand);
  background: var(--good);
}

.item .price {
  font-weight: 400;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
  background: var(--brand);
  color: var(--paper);
}

.order {
  position: sticky;
  bottom: calc(4.25rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 2px solid var(--line);
  padding-top: 0.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-height: 2.75rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

.pay {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cash,
.card,
.primary {
  color: var(--paper);
  font-weight: 700;
  min-height: 4rem;
}

.cash {
  background: var(--cash);
  border-color: var(--cash);
}

.card {
  background: var(--card);
  border-color: var(--card);
}

.primary {
  background: var(--brand);
  border-color: var(--brand);
}

.big {
  width: 100%;
  font-size: 1.25rem;
}

.quiet {
  background: var(--paper);
}

.small {
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
}
