:root {
  --magenta: #c93778;
  --magenta-dark: #9e215c;
  --magenta-deep: #7a1848;
  --gold: #f5e34e;
  --cream: #faf6e8;
  --ink: #2a161c;
  --ink-soft: #5c3a46;
  --font-serif: "Cormorant Garamond", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
}

.order-app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  margin: 0 auto;
}

.order-header {
  background: var(--magenta);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 4.25rem;
}
.order-header img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.order-header a {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mode-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.mode-badge[hidden] {
  display: none;
}
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  min-height: 3rem;
  min-width: 3rem;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--magenta-deep);
}

.order-disclaimer {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
  background: #fff8e8;
  border-bottom: 1px solid rgba(201, 55, 120, 0.15);
  position: sticky;
  top: 4.25rem;
  z-index: 4;
}
.order-terms-link {
  text-align: center;
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
}
.order-terms-link a { color: var(--magenta-dark); }

.pickup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(201, 55, 120, 0.2);
}
.pickup-form[hidden] { display: none; }
.pickup-form p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.pickup-form input {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--magenta);
  border-radius: 0.6rem;
  min-height: 3rem;
}
.pickup-form button {
  background: var(--magenta);
  color: var(--gold);
  border: 0;
  font-weight: 700;
  border-radius: 0.6rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  min-height: 3rem;
}

.transcript {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  font-size: 1.12rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.bubble.bot {
  background: #fff;
  border: 1px solid rgba(201, 55, 120, 0.15);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}
.bubble.user {
  background: var(--magenta);
  color: var(--gold);
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}
.bubble.readback {
  font-variant-numeric: tabular-nums;
  background: #fffaf0;
  border-color: var(--magenta);
}

.composer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, var(--cream) 14%);
}
.mic-round {
  width: min(13.5rem, 72vw);
  height: min(13.5rem, 72vw);
  min-width: 10rem;
  min-height: 10rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--magenta-deep);
  border: 4px solid var(--magenta-deep);
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.4vw, 1.12rem);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  text-align: center;
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 28px rgba(122, 24, 72, 0.3);
}
.mic-round .mic-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.mic-round:hover,
.mic-round:focus-visible {
  background: #fff3a3;
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}
.mic-round.is-live {
  background: #fff;
  color: var(--magenta);
  box-shadow: 0 0 0 4px var(--gold), 0 12px 28px rgba(122, 24, 72, 0.3);
}
.speech-fallback-note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--magenta-deep);
  text-align: center;
}
.type-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.type-row {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  align-items: stretch;
}
.type-row input {
  flex: 1;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--magenta);
  min-height: 3rem;
  background: #fff;
  color: var(--ink);
}
.type-row button {
  background: var(--magenta);
  color: var(--gold);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 3rem;
  min-width: 3rem;
}
body.type-fallback .mic-round {
  display: none;
}
body.type-fallback .type-label {
  font-size: 1.12rem;
  color: var(--ink);
}
body.type-fallback .type-row input {
  border-width: 3px;
  font-size: 1.2rem;
  min-height: 3.4rem;
  box-shadow: 0 8px 20px rgba(122, 24, 72, 0.12);
}

body.kiosk {
  background: var(--magenta-deep);
}
body.kiosk .order-app {
  max-width: none;
  min-height: 100dvh;
  background: var(--cream);
}
body.kiosk .bubble {
  font-size: 1.35rem;
}
body.kiosk .type-row input,
body.kiosk .type-row button {
  font-size: 1.35rem;
  min-height: 3.6rem;
}
body.kiosk .mic-round {
  width: min(16rem, 70vw);
  height: min(16rem, 70vw);
  font-size: 1.25rem;
}
body.kiosk .home-link {
  display: none;
}

.order-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}
.order-soon[hidden] {
  display: none;
}
.order-soon p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--magenta-deep);
}
.order-soon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
body.ordering-soon .order-disclaimer,
body.ordering-soon .transcript,
body.ordering-soon .pickup-form,
body.ordering-soon .composer {
  display: none !important;
}
