.restaurant-question-demo .order-copy h1 { max-width: 13ch; }
.restaurant-question-demo .order-copy .lead { max-width: 38ch; }
.restaurant-question-demo .order-stage { --device-width: 350px; }
.restaurant-question-demo .phone-main { gap: 0; overflow: hidden; }
.restaurant-question-demo .phone-nav .back { width: max(44px, 9cqw); height: max(44px, 9cqw); }

.restaurant-question-app, .restaurant-question-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.restaurant-question-app { gap: 2cqw; }
.restaurant-question-scroll {
  gap: 3cqw;
  padding: 2px 2px 2.5cqw;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.restaurant-question-scroll > * { flex: 0 0 auto; }
.restaurant-question-footer {
  display: grid;
  flex: none;
  gap: 1.65cqw;
  min-width: 0;
}
.restaurant-question-footer .app-btn,
.restaurant-question-app .question-followup .app-btn,
.menu-app-footer .menu-restaurant-question {
  min-height: 44px;
  font-size: max(.875rem, 3.8cqw);
}
.restaurant-question-app .app-btn:disabled {
  border-color: var(--line);
  background: var(--quiet);
  color: var(--dim);
  filter: none;
}
.restaurant-question-app :is(a, button, textarea, summary, .question-bubble):focus-visible { outline-offset: -2px; }
.restaurant-question-app .app-btn:not(.secondary):focus-visible { outline-color: var(--on-accent); }

.restaurant-question-heading { display: grid; gap: 1.4cqw; }
.restaurant-question-demo .restaurant-question-heading h2 {
  font-size: max(1.38rem, 8cqw);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.restaurant-question-heading p, .question-note {
  color: var(--dim);
  font-size: max(.75rem, 3.55cqw);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.question-dish {
  display: flex;
  align-items: center;
  gap: 3cqw;
  min-width: 0;
  padding: 2cqw;
  border: 1px solid var(--line);
  border-radius: 4.25cqw;
  background: var(--card);
  overflow-wrap: anywhere;
}
.question-dish img {
  width: max(44px, 15cqw);
  flex: 0 0 auto;
  aspect-ratio: 1;
  height: auto;
  border-radius: 2.7cqw;
  object-fit: cover;
}
.question-dish strong, .question-dish small { display: block; }
.question-dish strong { font-size: max(.875rem, 4.15cqw); line-height: 1.23; }
.question-dish small { color: var(--dim); font-size: max(.75rem, 3.4cqw); line-height: 1.32; }

.question-options {
  display: grid;
  gap: 1.65cqw;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.question-options legend {
  margin: 0 0 1.2cqw;
  padding: 0;
  font-size: max(.8125rem, 3.8cqw);
  font-weight: 720;
}
.question-option {
  position: relative;
  display: grid;
  cursor: pointer;
}
.question-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.question-option > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2.8cqw;
  min-height: 44px;
  padding: 8px max(9px, 3cqw);
  border: 1px solid var(--line);
  border-radius: 3.6cqw;
  background: var(--card);
  color: var(--ink);
  font-size: max(.8125rem, 3.75cqw);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.question-option > span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.question-option input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.question-option input:checked + span::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 40%, transparent 44%);
}
.question-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.question-option:hover > span { border-color: var(--accent); }

.question-bubble, .question-message {
  min-width: 0;
  font-size: max(.875rem, 4cqw);
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.question-bubble {
  align-self: flex-end;
  width: fit-content;
  max-width: 90%;
  padding: max(9px, 2.8cqw) max(10px, 3.65cqw);
  border-radius: 4cqw 4cqw 1.4cqw 4cqw;
  background: var(--quiet);
}
.question-message {
  display: grid;
  align-self: flex-start;
  gap: 1.6cqw;
  width: 100%;
  padding: max(10px, 3.35cqw);
  border: 1px solid var(--line);
  border-radius: 4.25cqw 4.25cqw 4.25cqw 1.4cqw;
  background: var(--card);
}
.question-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2.1cqw;
  min-width: 0;
}
.question-message-meta strong { color: var(--ink); font-size: max(.875rem, 4.05cqw); font-weight: 760; }
.question-message-meta small { color: var(--dim); font-size: max(.72rem, 3.3cqw); }
.question-waiting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 3px max(7px, 2.3cqw);
  min-height: 38px;
  padding: 2.3cqw 3cqw;
  border-radius: 3.5cqw;
  background: var(--quiet);
  color: var(--dim);
  font-size: max(.76rem, 3.6cqw);
  line-height: 1.32;
}
.question-waiting::before {
  content: "";
  grid-row: span 2;
  width: 7px;
  height: 7px;
  margin-top: .35em;
  border-radius: 50%;
  background: var(--accent);
}
.question-waiting strong { color: var(--ink); }
.question-original { min-width: 0; border-top: 1px solid var(--line); }
.question-original summary, .question-followup summary {
  min-height: 44px;
  padding-block: 11px 9px;
  color: var(--accent);
  font-size: max(.8125rem, 3.75cqw);
  font-weight: 730;
  cursor: pointer;
}
.question-original p {
  padding: 1.5cqw 0 2cqw;
  color: var(--dim);
  font-size: max(.8125rem, 3.72cqw);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.question-followup { min-width: 0; border-top: 1px solid var(--line); }
.question-followup form {
  display: grid;
  min-width: 0;
  gap: 1.7cqw;
}
.question-followup label {
  display: grid;
  gap: 1.5cqw;
  font-size: max(.8125rem, 3.8cqw);
  font-weight: 690;
}
.question-followup textarea {
  width: 100%;
  min-height: 44px;
  max-height: 118px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3.5cqw;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.question-followup textarea::placeholder { color: var(--dim); opacity: 1; }
