/* Ordering: the sentence builder. Builds on site.css; nothing here restyles the chrome. */

/* Opening: text and the burrito stub side by side on desktop, stacked on a phone */
.ord-pic { --ratio: 16 / 9; }
@media (min-width: 56rem) {
  .ord-pic { --ratio: 1 / 1; }
  .opening { align-items: center; }
}

/* The builder section */
.say { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); }
.say__head { max-width: 42rem; margin-bottom: var(--gap); }
.say__head p { margin-bottom: 0; }

.order { --pad: clamp(1.25rem, 3vw, 2rem); }
.order__line {
  margin: 0;
  font: 400 clamp(1.875rem, 1.1rem + 3.4vw, 3.375rem)/1.2 var(--display);
}

/* The slot: every variant stacked in one grid cell, so the widest sets the width.
   Only the chosen one is visible; the others are visibility:hidden. */
.slot {
  display: inline-grid;
  color: var(--hot);
  border-bottom: var(--line) dotted var(--hot);
}
.slot > span { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.slot > .is-on { visibility: visible; }

/* The tag on the tear line: name, dotted leader, price */
.tag { display: grid; font-size: 1.25rem; }
.tag > .leader { grid-area: 1 / 1; visibility: hidden; }
.tag > .leader.is-on { visibility: visible; }
.tag .price { font-size: 1.375rem; }
.order__note { margin: .75rem 0 0; }

/* The five filling stubs: each is a small ticket with its own tear line */
.picker-wrap { margin-top: var(--gap); }
.picker__label { margin: 0 0 .5rem; font-weight: 600; }
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: var(--gap);
}
.pick {
  --pad: .75rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: var(--pad);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.pick .name, .pick .price, .pick .tear { display: block; }
.pick .name { margin: 0; }
.pick:hover, .pick:focus-visible, .pick.is-on { --perf: var(--hot); }
.pick.is-on .price { color: var(--hot); }

/* Without script the picker would do nothing, so it is left out */
html:not(.js) .picker-wrap { display: none; }

/* Call it in */
.callrow { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: var(--gap); }
.callrow p { margin: 0; flex: 1 1 14rem; }
.callrow .btn { gap: .9rem; }
.btn__num { font-weight: 400; font-variant-numeric: tabular-nums; }

/* The two tiles: unequal, stretched to one height */
.tiles { align-items: stretch; }
.tile { display: flex; flex-direction: column; padding: 0; }
.tile .stub { --ratio: 16 / 8; flex: none; }
.tile__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: var(--pad); }
.tile__body > h2 { margin-top: 0; }
.tile__foot { margin-top: auto; padding-top: .25rem; margin-bottom: 0; }
.tile__body .tear + .btn { margin-top: 0; }
.tile .tile__foot .tear { margin-top: var(--pad); margin-bottom: var(--pad); }

/* Closing note and the two links */
.hop { display: grid; gap: var(--gap); }
.tiles .ticket > h2 { margin-top: 0; }
.tiles .ticket > p:last-child { margin-bottom: 0; }
@media (max-width: 55.99rem) {
  .tiles { gap: var(--gap); }
}
