/* The main site's forms: the booking request (/book) and the pre-order form, pay and receipt pages. Loaded by those
   pages after site.css (SiteLayout's css prop), so the rest of the site doesn't download it. */
/* Booking form (M06) */
.book-form {
  display: grid;
  gap: var(--space-8);
  max-width: 720px;
  margin-top: var(--space-6);
  overflow-wrap: anywhere;
}
.book-form fieldset {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.book-form legend {
  padding: 0;
  margin-bottom: var(--space-3);
  font-weight: 700;
  font-size: var(--step-1);
}
/* A hint about the whole group sits with its legend (/book's "How to reach you"). */
.book-legend-hint {
  display: block;
  margin-top: var(--space-1);
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.book-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
/* /book's "When": the extra dates behind a disclosure, and the times as a smaller group of their own. */
/* A list item keeps the disclosure's triangle; the padding makes it 44 px tall to tap. */
.book-more summary {
  display: list-item;
  padding-block: 10px;
  font-weight: 600;
  cursor: pointer;
}
.book-more-fields {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.book-form .book-times legend {
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
/* One reassurance line above the form on phones; from 1024 px "At your event" stands beside the form instead. */
.book-reassure {
  max-width: var(--measure);
  font-weight: 600;
}
/* What a booking costs and how soon we reply, under the intro. */
.book-terms {
  max-width: var(--measure);
}
.book-aside {
  margin-top: var(--space-12);
}
.book-aside h2 {
  font-size: var(--step-1);
}
@media (min-width: 1024px) {
  /* The page's columns (the trail, the form beside its reasons, the sections below) share the wide wrap. */
  .site-text:has(.book-layout) .site-wrap {
    max-width: calc(72rem + 2 * var(--gutter));
  }
  .book-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(0, 22rem);
    column-gap: var(--space-12);
    align-items: start;
  }
  .book-reassure {
    display: none;
  }
  .book-aside {
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
  }
  .book-aside > :last-child {
    margin-bottom: 0;
  }
}
.book-field {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}
.book-field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.book-field input,
.book-field textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.book-field textarea {
  resize: vertical;
}
.book-field [aria-invalid="true"] {
  border: 2px solid var(--red-ink);
}
.book-hint,
.book-note {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.book-error {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--red-ink);
}
.book-errors,
.book-check {
  max-width: 720px;
  margin-top: 24px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}
.book-errors {
  border: 1px solid var(--red-ink);
  background: var(--err-bg);
}
.book-errors p {
  margin: 0 0 4px;
  font-weight: 700;
}
.book-errors ul {
  margin: 0;
  padding-left: 20px;
}
.book-check {
  border: 1px solid var(--control-border);
  background: var(--surface-alt);
  font-weight: 600;
}
.book-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.book-form .site-btn {
  justify-self: start;
  cursor: pointer;
}
.site .book-call-heading {
  margin-top: var(--space-12);
  font-size: var(--step-1);
}

/* Pre-order for pickup (M08): the order form's lines, and the pay and receipt pages. */
.preorder-facts {
  margin: 12px 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.preorder-intro {
  max-width: var(--measure);
  margin: 16px 0 0;
}
/* Each quantity sits right beside its label (D19), not out at the far edge of a wide form. */
.preorder-form {
  max-width: 36rem;
}
.preorder-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-4);
}
.preorder-line input {
  width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* public/preorder.js's − and + around each box, 44 px square. */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.stepper-btn {
  width: 44px;
  height: 44px;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--text);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.stepper-btn:hover {
  background: var(--surface-alt);
}
.stepper-btn:disabled {
  border-color: var(--control-border);
  color: var(--text-muted);
  cursor: default;
}
.preorder-total {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.preorder-line .book-error {
  grid-column: 1 / -1;
}
/* A product's allergen line (task A01) across the row, under its name and box; body colour, no warning colour. */
.preorder-allergens {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--step--1);
  color: var(--text);
}
/* The order's allergen lines under its summary on Review and pay and the receipt. */
.preorder-allergens-title {
  margin: 16px 0 4px;
  font-size: var(--step-0);
}
.preorder-order-allergens p {
  margin: 0 0 4px;
}
.preorder-price {
  font-weight: 400;
}
/* A size's few words, on their own line under its name and price. */
.preorder-size-words {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
}
/* What happens if plans change, just above the total and "Review and pay". */
.preorder-plans p {
  margin: 0;
  max-width: var(--measure);
}
.preorder-line input:disabled {
  background: var(--surface-alt);
  color: var(--text-muted);
}
/* A long email address wraps instead of widening checkout or the receipt. */
.preorder-pay {
  max-width: 640px;
  overflow-wrap: anywhere;
}
.preorder-pay .preorder-after {
  margin-top: 12px;
}
.preorder-pay h2 {
  margin-top: var(--space-8);
  font-size: var(--step-1);
}
.preorder-event {
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
}
.preorder-summary {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.preorder-summary th,
.preorder-summary td {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}
/* A price never breaks mid-number ("$12.0 / 0") under the page's overflow-wrap; the line's name wraps instead. */
.preorder-summary td {
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  padding-left: var(--space-3);
}
/* The totals stand apart from the lines, as on the fundraiser's checkout: a heavy rule above them, then above Total. */
.preorder-summary tfoot tr:first-child th,
.preorder-summary tfoot tr:first-child td {
  border-top: 2px solid var(--text);
  font-weight: 600;
}
.preorder-summary .is-total th,
.preorder-summary .is-total td {
  font-weight: 700;
  border-top: 2px solid var(--text);
  border-bottom: 0;
}
.pay-button {
  width: 100%;
  margin-top: 16px;
  cursor: pointer;
}
.pay-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.pay-error {
  margin-top: 16px;
}
