/* Kwe RinKa menu. One light, warm look on purpose: it is a shop window,
   and the photos were shot to sit on a pale ground. */
:root {
  --brand: #ac481b; /* the logo's own colour */
  --info: #1f7a6e;
  --page: #f6ece1;
  --tile: #fff8f0; /* photos are flattened onto exactly this - see lib/src/photos.dart */
  --ink: #2a1a10;
  --muted: #76604f;
  --line: #e6d4c2;
  --radius: 14px;
  --bar: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Room for the cart bar, which is always there. */
  padding-bottom: calc(var(--bar) + 12px + env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--ink);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* Logo in the middle, ID | EN on the right in a column of its own. The
   two side columns are kept equal so the logo stays centred, and wide
   enough for the switch, so on a phone they can never touch — floated
   over the corner, the switch sat on "RinKa". */
.top {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) minmax(0, 240px) minmax(78px, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 16px 12px 10px;
}

/* ID | EN. The chosen one filled, the other outlined: both readable. */
.lang {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  display: flex;
  overflow: hidden;
  border: 2px solid var(--brand);
  border-radius: 999px;
}

.lang a {
  padding: 4px 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--brand);
  color: #fff;
}

.lang a:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: -3px;
}

.logo {
  grid-column: 2;
  width: 100%;
  height: auto;
}

/* On checkout the logo is also the way back to the menu. */
.logo-link {
  grid-column: 2;
  display: block;
}

/* Tabs: solid colour always, never faded out when not chosen. The chosen
   one is marked by a dark outline instead. */
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 12px;
  background: var(--page);
}

.tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.tab svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-order {
  background: var(--brand);
}

.tab-info {
  background: var(--info);
}

.tab[aria-selected="true"] {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.tab:focus-visible,
.add-photo:focus-visible,
.qty button:focus-visible,
.checkout:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2px 12px 32px;
}

.cat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 4px 10px;
  font-size: 18px;
}

.cat::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--cat, var(--brand));
}

/* Three across on a phone, like the till; more on a wider screen. Every
   tile is the same size whatever its name or quantity, so nothing shifts. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

.tile {
  position: relative;
  min-width: 0;
  padding: 6px 8px 8px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* In the cart: a ring drawn outside the border, not a thicker border, so
   the tile's size does not change by a pixel. */
.tile.in-cart {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

/* Tapping the photo adds one too, as on the till: a shortcut, never the
   only way. */
.add-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tile);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initial {
  font-size: 40px;
  font-weight: 700;
  color: var(--line);
}

.tile.bump .photo {
  animation: bump 0.18s ease-out;
}

@keyframes bump {
  50% {
    transform: scale(0.94);
  }
}

.name,
.price,
.unit {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Name, price and box size centred under the photo (2026-09-15, her
   call). Only on the tiles: in Info Menu the words sit beside the photo. */
.tile .name,
.tile .price,
.tile .unit {
  text-align: center;
}

.name {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.price {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.unit {
  font-size: 12px;
  color: var(--muted);
}

/* The photo's top-left corner, opposite the + badge. A target of its own,
   outside the add button, so tapping it opens Info Menu and never adds.
   Not on the name line: there it cut "Putri Mandi" down to "Putri M…". */
.more {
  position: absolute;
  top: 11px;
  left: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font: italic 700 13px/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
}

/* A bigger target than it looks: a thumb is not a mouse pointer. */
.more::after {
  content: "";
  position: absolute;
  inset: -6px;
}

/* The usual shop card: "+ Tambah" until it is in the cart, then
   − number +. The same height either way, so the tile never changes size
   and the count only ever shows once. */
.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin-top: 6px;
}

.qty .minus,
.qty .count,
.qty .plus,
.tile.in-cart .qty .add-first {
  display: none;
}

.tile.in-cart .qty .minus,
.tile.in-cart .qty .plus {
  display: grid;
}

.tile.in-cart .qty .count {
  display: block;
}

.qty .add-first {
  flex: 1;
  width: 100%;
  border-radius: 16px;
  font-size: 14px;
}

.qty button {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 700 20px/1 system-ui, sans-serif;
  cursor: pointer;
}

.qty .minus {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}

/* 16px: any smaller and iPhones zoom the whole page on tap. */
.count {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 700 16px/1 system-ui, sans-serif;
  text-align: center;
}

.info-list {
  display: grid;
  gap: 8px;
}

/* Photo and name side by side; the description, when there is one, runs
   the full width underneath — beside an 88px photo a phone leaves it
   five words a line. */
.info-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 8px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 80px;
}

.info-row .photo {
  flex: none;
  width: 88px;
}

.info-row .text {
  min-width: 0;
}

.info-row h3 {
  margin: 0;
  font-size: 16px;
}

.info-row .full {
  margin: 2px 0 0;
  color: var(--muted);
}

.info-row .unit {
  margin-top: 4px;
  white-space: normal;
  font-size: 13px;
}

.info-row .desc {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.info-row.flash {
  animation: flash 1.4s ease-out;
}

@keyframes flash {
  from {
    box-shadow: 0 0 0 4px var(--info);
  }
  to {
    box-shadow: 0 0 0 4px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-row.flash {
    animation: none;
    box-shadow: 0 0 0 3px var(--info);
  }
  .tile.bump .photo {
    animation: none;
  }
}

.empty-note {
  margin: 32px 0;
  text-align: center;
  color: var(--muted);
}

footer {
  padding: 8px 12px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* The cart bar: always there, so the page never changes height when the
   first item goes in. Empty, it says how to add. */
.cartbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(42, 26, 16, 0.08);
}

.cartbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 960px;
  height: var(--bar);
  margin: 0 auto;
  padding: 0 12px;
}

.cart-summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-summary.is-empty {
  font-weight: 400;
  color: var(--muted);
}

.checkout {
  flex: none;
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.checkout[aria-disabled="true"],
.checkout:disabled {
  background: #cdb9a8;
  cursor: default;
}

button.checkout {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---- Checkout ---- */

.checkout-page {
  max-width: 640px;
}

.back {
  display: inline-block;
  margin: 4px 0 2px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.checkout-page h1 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.testmode {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff3cd;
  color: #6b4e00;
  font-size: 13px;
}

.box {
  margin: 0 0 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.box h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

/* Delivery or pickup: two big picture cards, like her Backdoor reference.
   The chosen one gets a brand border and a tick; the other stays as it
   was, never faded. */
.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--tile);
  color: var(--brand);
  text-align: center;
  cursor: pointer;
}

.mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-icon {
  width: 72px;
  height: 54px;
}

.mode-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.mode-hint {
  color: var(--muted);
  font-size: 12px;
}

.mode-card.chosen {
  border-color: var(--brand);
  background: #fdeee3;
}

.mode-card.chosen::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mode-card:has(input:focus-visible) {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.field {
  margin: 0 0 12px;
}

.label {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

/* 16px text in every box: any smaller and iPhones zoom the page. */
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6c2b0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #c62828;
}

.hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.error {
  margin: 4px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.error:empty {
  display: none;
}

.address {
  margin: 0 0 8px;
}

/* ---- The delivery pin ---- */

.pin-picker {
  margin: 0 0 12px;
}

/* Google's address suggestions: laid over what is below, never pushing
   the map down, and gone once one is tapped. */
.suggest-wrap {
  position: relative;
}

.suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 6;
  max-height: 264px;
  margin: 4px 0 0;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(42, 26, 16, 0.16);
}

.suggestions button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button:focus-visible {
  background: #fdeee3;
  outline: none;
}

.suggestions strong {
  display: block;
  font-weight: 700;
}

.suggestions small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.suggestions .by {
  padding: 4px 12px 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

/* A fixed-height box: the map never grows or shrinks the form. */
.map-wrap {
  position: relative;
  /* Keeps Google's own layers inside, under the suggestions list. */
  z-index: 0;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9e3db;
}

.map {
  position: absolute;
  inset: 0;
}

/* The pin stays still and the map moves under it; its tip, not its
   middle, marks the spot. */
.center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 36px;
  height: 48px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* Two lines kept for the street name, so the buttons below never jump
   when it arrives. */
.pin-address {
  min-height: 2.8em;
  margin: 8px 0;
  font-size: 14px;
}

.pin-actions {
  display: flex;
  gap: 8px;
}

.pin-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font: 700 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

.pin-button.confirm {
  background: var(--brand);
  color: #fff;
}

.pin-button.confirm:disabled {
  border-color: #cdb9a8;
  background: #cdb9a8;
  cursor: default;
}

.pin-button.confirm.done {
  border-color: #2e7d32;
  background: #2e7d32;
}

.pin-button:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.maps {
  color: var(--info);
  font-weight: 700;
}

/* Hours as chips. The chosen one is filled; the rest stay outlined and
   readable. */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot span {
  display: grid;
  place-items: center;
  height: 40px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.slot input:checked + span {
  background: var(--brand);
  color: #fff;
}

.slot input:focus-visible + span {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* When it should arrive: Google's motorbike ride from her kitchen to the
   confirmed pin, at the chosen hour. */
.eta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e6f2f0;
  color: var(--info);
  font-size: 14px;
  font-weight: 700;
}

.eta strong {
  font-size: 16px;
  font-weight: 800;
}

.note.warn {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdeee3;
  color: var(--ink);
  font-weight: 600;
}

/* The order, looked over first (2026-09-15, her call): photo, name,
   − number +, and what the line comes to. A change here is the cart's. */
.review-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.review-line:first-child {
  padding-top: 0;
}

.review-line .photo {
  flex: none;
  width: 60px;
  border-radius: 8px;
}

.review-line .initial {
  font-size: 24px;
}

.review-line .what {
  flex: 1;
  min-width: 0;
}

.review-line .name {
  margin-top: 0;
}

.review-line .price {
  font-size: 13px;
}

.review-line .side {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 4px;
}

/* Always − number + here: everything on this list is in the cart. */
.review-line .qty {
  width: 112px;
  margin-top: 0;
}

.review-line .qty .minus,
.review-line .qty .plus {
  display: grid;
}

.review-line .qty .count {
  display: block;
}

.line-amount {
  margin: 0;
  min-height: 1.4em; /* an extra at 0 keeps its row the same height */
  font-size: 14px;
  font-weight: 700;
}

/* Extras (2026-09-22): under the order, what already comes free first. */
.addons {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.addons h2 {
  margin: 0 0 4px;
}

.addons .note {
  margin: 0 0 10px;
}

.addons .review-line .photo {
  width: 44px;
}

.review-line .qty .minus:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Under the order: more from the menu on the left, what it comes to on
   the right. Delivery or pickup follows straight after, no extra tap. */
.review-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 10px;
}

.add-more {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.review-total {
  margin: 0;
  font-size: 16px;
}

.review-total strong {
  font-weight: 800;
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.lines .what small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.lines .amount {
  flex: none;
  font-weight: 700;
}

.totals {
  margin: 8px 0 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.totals dt,
.totals dd {
  margin: 0;
}

.totals dd {
  font-weight: 600;
}

.totals .grand {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
}

.send-error {
  margin: 0 0 12px;
  text-align: center;
}

/* ---- After the order ---- */

/* No cart bar on this page, so no room kept for one. */
body.no-bar {
  padding-bottom: 24px;
}

.done-box {
  text-align: center;
}

.order-number {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* WhatsApp's own green: the one button on the page. */
.wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 12px;
  background: #1f9d55;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.wa-button:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.when {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.address-details {
  margin: 0 0 8px;
  color: var(--muted);
}

.facts {
  margin: 12px 0 0;
}

.facts div {
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.card-message {
  white-space: pre-wrap;
}

/* ---- The reseller's own page (2026-09-16) ---- */

.reseller-who {
  margin: -4px 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.qty-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.qty-row:first-of-type {
  border-top: 0;
}

.qty-what {
  min-width: 0;
}

.qty-name {
  font-weight: 600;
}

.qty-unit {
  display: block;
  color: var(--muted);
}

.qty-rule {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-box button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.qty-box button:disabled {
  opacity: 0.4;
  cursor: default;
}

.qty-input {
  width: 84px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-align: center;
}

.qty-row.decided .qty-input {
  background: #f6efe6;
  color: var(--muted);
}

.pickup-time {
  margin: 0 0 6px;
  font-size: 24px;
}

/* ---- The reseller's header line: who they are, and when they ordered ---- */

.reseller-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: -4px 0 16px;
}

.reseller-head .reseller-who {
  margin: 0;
}

.order-date {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.order-date strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

/* ---- The calendar the pick-up day is chosen on (2026-09-16) ---- */

.calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 8px;
}

.cal-head strong {
  font-size: 15px;
}

.cal-move {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cal-move:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekdays {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.cal-day {
  aspect-ratio: 1 / 1;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f2ec;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.cal-day.is-off {
  background: transparent;
  color: #c9c1b7;
  cursor: default;
}

.cal-day.is-today {
  border-color: var(--line);
}

.cal-day.is-season:not(.is-off) {
  background: #fdf0d8;
}

/* A day they have an order on — including one already locked, which they
   can still open to read its number and send the breakdown again. */
.cal-day.is-booked {
  box-shadow: inset 0 -4px 0 var(--brand);
  font-weight: 700;
}

.cal-day.is-selected {
  background: var(--brand);
  color: #fff;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 2px 2px;
  color: var(--muted);
  font-size: 12px;
}

.cal-legend .key {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
}

.cal-legend .key.booked {
  background: #f6f2ec;
  box-shadow: inset 0 -4px 0 var(--brand);
}

.cal-legend .key.season {
  background: #fdf0d8;
}

.cal-legend .key.season:not(:first-child) {
  margin-left: 8px;
}

.chosen-day {
  margin: 10px 0 0;
  font-weight: 600;
}

/* ---- One order, saved on several days ---- */

.copy-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.copy-day {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}

.copy-day small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.copy-send {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.copy-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.send-error.good {
  color: #2f7d32;
}

/* Syarat & Ketentuan (2026-09-17): the same boxes as checkout, with the
   points as a plain list and the link to it under the order total. */
.terms-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.terms-part p,
.terms-part ul {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.terms-part ul {
  padding-left: 20px;
}

.terms-part li + li {
  margin-top: 6px;
}

.note.agree a,
footer a {
  color: var(--brand);
  font-weight: 700;
}

/* ---- Several recipients (2026-09-22, her hampers) ---- */
.package-head {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
}

.count-cards .mode-card {
  padding: 12px 8px;
}

/* The list: one card per recipient, number, who, and what they get. */
.recipient-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.recipient-card {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.recipient-card:first-child {
  padding-top: 0;
}

.recipient-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipient-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.recipient-who {
  flex: 1;
  min-width: 0;
  display: grid;
}

.recipient-who strong,
.recipient-who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-who small {
  color: var(--muted);
}

.recipient-actions {
  flex: none;
  display: flex;
  gap: 4px;
}

.text-button {
  min-height: 36px;
  padding: 4px 10px;
  border: 2px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

.text-button.danger {
  border-color: #c62828;
  color: #c62828;
}

.recipient-card p {
  margin: 4px 0 0 38px;
  font-size: 14px;
}

.recipient-address {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipient-when {
  font-weight: 700;
}

.recipient-custom,
.recipient-card-text {
  color: var(--muted);
}

.recipient-card .recipient-amount {
  font-weight: 800;
}

.add-recipient {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: 800 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

.add-recipient:focus-visible,
.text-button:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.card-choice {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

/* The recipient being written: framed in the brand colour, so it reads
   as one card to fill and save, not more of the page. */
#editor.editing {
  margin: 0 0 12px;
  padding: 8px;
  border: 2px solid var(--brand);
  border-radius: 18px;
  background: #fdeee3;
}

#editor.editing .box:last-of-type {
  margin-bottom: 8px;
}

.custom-lines {
  margin-top: 10px;
}

.editor-actions {
  display: flex;
  gap: 8px;
}

/* Hampers (2026-09-22): a third tab, in a colour of its own. */
.tab-hampers {
  background: #8e3b6e;
}

/* Three tabs on a phone: the icon sits over a smaller word, so "Pesan
   Hampers" is never cut short. */
@media (max-width: 520px) {
  .tabs.three {
    gap: 8px;
  }
  .tabs.three .tab {
    flex-direction: column;
    gap: 2px;
    height: 56px;
    font-size: 13px;
  }
}

/* Recipients from Excel, and the recap to keep (2026-09-22). */
.sheet-tools {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.sheet-tools .note {
  margin: 0 0 8px;
}

.recap-actions {
  display: flex;
  gap: 8px;
}

.recap-actions .pin-button {
  text-align: center;
  text-decoration: none;
}

label.pin-button {
  cursor: pointer;
}

.recipient-card .recipient-warn {
  padding: 6px 8px;
  border-radius: 8px;
  background: #fdeee3;
  color: #c62828;
  font-weight: 700;
}

/* "Segera hadir" (2026-09-22): the menu while the shop is switched off. */
.shop-closed {
  text-align: center;
  padding-top: 48px;
}

.closed-whatsapp {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #1f8f4e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* "Menu saja" (2026-09-22): the menu for looking at, WhatsApp where the
   cart bar was. Two lines of text fit beside the button on a phone. */
.photo-static {
  display: block;
}

.notice-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.notice-whatsapp {
  flex: none;
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: #1f8f4e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* Petunjuk Penyimpanan (2026-09-22): a button in the row's top-right
   corner opens the guide under the text, her line breaks kept. The name
   keeps clear of the button: room is reserved beside it. */
.info-row.has-storage {
  position: relative;
}

.info-row.has-storage .text {
  padding-right: 184px;
}

.info-row .storage {
  grid-column: 1 / -1;
}

.info-row .storage summary {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.info-row .storage summary::-webkit-details-marker {
  display: none;
}

.info-row .storage[open] summary {
  background: var(--brand);
  color: #fff;
}

.info-row .storage .short {
  display: none;
}

.info-row .storage p {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6f4;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

@media (max-width: 520px) {
  .info-row.has-storage .text {
    padding-right: 120px;
  }
  .info-row .storage .long {
    display: none;
  }
  .info-row .storage .short {
    display: inline;
  }
}
