.choice-group {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.choice-group legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 800;
}

.choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
  gap: 7px;
}

.choice-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf6ef;
  font-size: .88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.choice-options label:has(input:checked) {
  border-color: #b8615c;
  color: var(--red-dark);
  background: var(--blush);
}

.choice-options input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--red);
}

#offer-field[hidden],
#meal-fields[hidden],
#onions-field[hidden] { display: none; }

.choice-help {
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 8px;
}

.line-choices {
  margin-top: 3px;
  color: var(--muted);
  font-size: .83rem;
  overflow-wrap: anywhere;
}

.choice-edit {
  padding-inline: 8px;
  font-size: .82rem;
  color: var(--red-dark);
}

.basket-warning {
  margin: 10px 12px 0;
  padding: 8px;
  border-radius: 7px;
  background: #fff0cc;
  color: #6b400e;
  font-size: .88rem;
}

.basket-warning .button { display: flex; padding-inline: 0; }
.dialog-actions > a { flex: 1; }
.recent-order { flex-shrink: 0; }

.ticket-items .ticket-choices {
  display: grid;
  gap: 2px;
  margin: 3px 0 4px;
  padding: 0;
  list-style: none;
}

.ticket-items .ticket-choices li {
  display: block;
  color: #5b342b;
  font-size: .92rem;
  font-weight: 680;
}

.summary-head { align-items: flex-start; }
.summary-head .field { margin: 0; }
.summary-head input { min-width: 144px; }
.summary-date { margin-top: 4px; color: var(--muted); font-size: .9rem; }

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 10px;
  margin-block: 18px;
}

.summary-stats > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f2e8;
}

.summary-stats > div:first-child {
  background: var(--blush);
  color: var(--red-dark);
}

.summary-stats dt { font-weight: 740; }
.summary-stats dd { margin: 2px 0 0; font: 700 2rem/1.1 var(--display); }

.summary-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.summary-details h3 { margin-bottom: 9px; font-size: 1.15rem; }
.summary-details dl { margin: 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.summary-row small { display: block; color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 800; }

.tracking { max-width: 520px; padding-block: 30px 38px; }

.track-card {
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.track-card h1 { font-size: clamp(2.1rem, 7vw, 2.8rem); text-transform: uppercase; }
.track-card p { margin-block: 4px 8px; color: var(--muted); }

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.track-number {
  color: var(--red-dark);
  font: 700 clamp(2.15rem, 8vw, 3.4rem)/1 var(--display);
  white-space: nowrap;
}

.track-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e1b5b1;
  border-radius: 9px;
  background: var(--blush);
  color: var(--red-dark);
}

.track-banner h2 { font-size: 1.65rem; }
.track-banner p { margin-bottom: 0; color: inherit; }

.track-banner.track-ready {
  border-color: #a4c7a7;
  background: #e4f2e7;
  color: #235a36;
}

.track-steps {
  display: grid;
  gap: 0;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.track-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 6px;
  color: var(--muted);
}

.track-steps li[aria-current=step] { font-weight: 800; color: var(--ink); }

.track-dot {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #c9b8a8;
}

.track-done .track-dot { background: #e4f2e7; color: #235a36; border-color: #a4c7a7; }
.track-steps li[aria-current=step] .track-dot { border: 6px solid var(--red); }

@media (max-width: 550px) {
  .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-details { grid-template-columns: 1fr; gap: 12px; }
  .summary-head { flex-wrap: wrap; }
  .menu-heading:has(.recent-order) { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .add-choices span { display: inline; }
  .add-choices svg { display: none; }
}
