/* Booking a consultation (views/layouts/booking.php, modules/consultations/views/book-*.php): the logo on white, the
   steps as a thin bar under it, then the page on off-white with the area's hexagons over all of it, each step in white
   panels with an anthracite band at the top (the calendar's linen on it), then the footer. One column, at most
   --text-w wide. Chosen answers, days, times and consultants are anthracite. */

body:has(.book-top) {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* fallback for browsers without dvh */
  min-height: 100dvh; /* the footer stays at the bottom of short pages */
  background-color: var(--c-off-white);
}

/* The hexagons reach the screen's edges; nothing may scroll sideways. */
html:has(.book-top),
body:has(.book-top) {
  overflow-x: clip;
}

/* --- The top: logo, and "Consultations" at the right --- */
.book-top {
  background-color: var(--c-page);
  border-bottom: var(--border-1) solid var(--c-line);
}

.book-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.book-top__home {
  display: inline-flex;
  height: var(--logo-h);
  color: var(--c-heading);
}

.book-top__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent-text);
}

/* --- The steps: a thin track in equal parts, a small capital label under each. The current step is anthracite, the
   ones done green with a tick. On phones only the current step's label shows. The done steps that can be gone back
   to are buttons. --- */
.book-steps {
  background-color: var(--c-page);
  border-bottom: var(--border-1) solid var(--c-line);
}

.book-steps__list {
  display: flex;
  gap: var(--sp-2);
  padding-block: var(--sp-4);
}

.book-steps__step {
  flex: 1;
  min-width: 0;
  color: var(--c-text-muted);
}

.book-steps__item {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
  width: 100%;
  padding: 0;
  text-align: left;
}

.book-steps__item--go:hover .book-steps__label {
  text-decoration: underline;
}

.book-steps__bar {
  width: 100%;
  height: var(--sp-1);
  background-color: var(--c-line);
  border-radius: var(--radius-pill);
}

.book-steps__step--done .book-steps__bar {
  background-color: var(--c-tick);
}

.book-steps__step[aria-current="step"] {
  color: var(--c-anthracite);
}

.book-steps__step[aria-current="step"] .book-steps__bar {
  background-color: var(--c-anthracite);
}

.book-steps__label {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap; /* one line: below 992px only the current one shows */
}

.book-steps__step--done .book-steps__label::before {
  content: "\2713\00a0"; /* ✓ and a space that does not break */
  color: var(--c-tick);
}

.book-steps__step[aria-current="step"] {
  flex: 1.6; /* room for its label on phones */
}

.book-steps__step[aria-current="step"] .book-steps__label {
  display: inline;
}

/* Every label from 992px, where each fits its part on one line ("Your account" needs 112px; on tablets its part is
   91-108px, so tablets show only the current one, like phones) */
@media (min-width: 992px) {
  .book-steps__step[aria-current="step"] {
    flex: 1;
  }

  .book-steps__label {
    display: inline;
  }
}

/* The partner or clinic bar (the shop's .shop__from, pages/shop.css) across the very top, above the logo: the shop's
   bar sits out over its page's padding, this one is simply the first thing on the page */
.shop__from.book-from {
  margin: 0;
}

/* --- The page --- */
.book {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* the column never grows past the container for wide content */
  align-content: start;
  gap: var(--sp-6);
  justify-items: center;
  width: 100%;
  padding-block: var(--sp-8) var(--sp-16);
}

.book > * {
  width: 100%;
  max-width: var(--text-w);
}

.book__hex {
  inset: 0 calc(50% - 50vw); /* to the screen's edges */
  z-index: -1;
  width: auto;
  max-width: none;
  background-color: var(--c-hex-area);
  --hex-fade: radial-gradient(140% 120% at 100% 0, rgb(0, 0, 0), rgba(0, 0, 0, 0.7) 55%, rgba(0, 0, 0, 0.15));
}

.book__head {
  display: grid;
  gap: var(--sp-2);
}

.book__title {
  font-size: var(--fs-h2);
  color: var(--c-anthracite);
}

.book__lead {
  color: var(--c-text-muted);
}

/* "Your answers are kept private and secure", above the title */
.book__secure {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.book > .book__secure {
  text-align: center;
}

/* Icons by meaning: green for safe (the lock), deep blue for facts (length, time zone), amber for take note, light
   blue on the dark bands */
.book__secure .bi {
  color: var(--c-tick);
}

/* --- Panels: white, with an anthracite band at the top holding an icon and the panel's name in small capitals, and
   a note at its right (Secure, Question 1 of 6, the price) --- */
.book__panel {
  display: grid;
  gap: var(--sp-4);
  padding: 0 var(--sp-4) var(--sp-6);
  overflow: hidden;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-bar);
}

.book__panel:not(:has(> .book__band)) {
  padding-top: var(--sp-6);
}

/* As much space under the band as at the bottom of the panel: 24px on phones, 32px from 576px (the band's margin
   tops up the panel's gap: 16px, or 20px in a form) */
.book__panel > .book__band {
  margin-bottom: calc(var(--sp-6) - var(--sp-4));
}

.book__form.book__panel > .book__band {
  margin-bottom: calc(var(--sp-6) - var(--sp-5));
}

@media (min-width: 576px) {
  .book__panel {
    padding-inline: var(--sp-8);
    padding-bottom: var(--sp-8);
  }

  .book__panel > .book__band {
    margin-bottom: calc(var(--sp-8) - var(--sp-4));
  }

  .book__form.book__panel > .book__band {
    margin-bottom: calc(var(--sp-8) - var(--sp-5));
  }

  /* A step's main panel (Your account, Check your email, About you, Payment, Check and book, Booked): at least
     --book-panel-min-h tall, its content centred in any space left under the band */
  .book__panel--step {
    display: flex;
    flex-direction: column;
    min-height: var(--book-panel-min-h);
  }

  .book__panel--step > .book__band + * {
    margin-top: auto;
  }

  .book__panel--step > :last-child {
    margin-bottom: auto;
  }

  .book__panel--step > .book__after {
    align-self: flex-end;
  }
}

.book__band {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 calc(-1 * var(--sp-4));
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-page);
  background-color: var(--c-anthracite);
}

.book__band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1)),
    repeating-linear-gradient(-45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1));
}

@media (min-width: 576px) {
  .book__band {
    margin-inline: calc(-1 * var(--sp-8));
    padding-inline: var(--sp-8);
  }
}

.book__band-title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: inherit;
}

.book__band-title .bi,
.book__band-title svg {
  flex: none;
  opacity: 0.8;
}

.book__band-title .bi {
  color: var(--c-bar);
}

/* The lock on a band: a light green, as the darker green is hard to see on anthracite */
.book__band-note .bi-lock-fill {
  color: var(--c-success-border);
}

.book__band-note {
  flex: none;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-on-dark-muted);
}

/* The longer words of a band's note, left out on phones ("Question 1 of 6" is "1 of 6"; "Secure" is just the lock) */
@media (max-width: 575.98px) {
  .book__band-long {
    display: none;
  }
}

/* --- Forms --- */
.book__form {
  display: grid;
  gap: var(--sp-5);
}

.book__pair {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 576px) {
  .book__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.book__small {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.book__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent-text);
}

.book__link {
  padding: 0;
  font: inherit;
  color: var(--c-action);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

/* The buttons sit at the right: Back first, the main button last */
.book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.book__actions [name="back"] {
  order: -1;
}

/* The line under the buttons: "Already have an account? Sign in", "No email? ... send a new code". 20px under the
   buttons, the same as between the fields: the form's own gap, plus 4px for "No email?", which sits in the panel
   (16px gap) rather than in the form. */
.book__after {
  justify-self: end;
  font-size: var(--fs-small);
  text-align: right;
  color: var(--c-text-muted);
}

.book__panel:not(.book__form) > .book__after {
  margin-top: var(--sp-1);
}

/* Small headings inside a form: Date of birth, Gender */
.book__label {
  margin-bottom: calc(-1 * var(--sp-2));
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Gender's heading is a legend, which its fieldset's grid gap does not reach: the same 12px under it as Date of birth */
.book__ask > legend.book__label {
  margin-bottom: var(--sp-3);
}

/* A select whose empty choice is chosen keeps its label in the middle, like an empty text field (About you's month,
   gender and country, the time zone); it floats up once something is chosen. */
.book select.field__input:has(option[value=""]:checked):not(:focus) ~ .field__label {
  transform: none;
}

/* Labels with a shorter version on phones: Day / DD, Month / MM, Year / YYYY, Country code / Code */
.book__short {
  display: none;
}

@media (max-width: 575.98px) {
  .book__long {
    display: none;
  }

  .book__short {
    display: inline;
  }
}

/* --- Choose: the kinds of consultation, the name and (paid) price on the band --- */
.book__types {
  display: grid;
  gap: var(--sp-6); /* 24px, the same as between the page's other panels */
}

.book__type form {
  justify-self: end;
}

.book__type-length {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--c-anthracite);
}

.book__type-length .bi {
  font-size: var(--fs-lead);
  color: var(--c-accent-text);
}

.book__ticks {
  display: grid;
  gap: var(--sp-2);
  color: var(--c-text-muted);
}

.book__ticks .bi {
  color: var(--c-tick);
}

/* --- Your account: the consent as a switch in a box, the shield turning green when on --- */
.book__consent {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1);
  cursor: pointer;
}

.book__consent:has(:checked) {
  border-color: var(--c-anthracite);
}

.book__consent:has([aria-invalid="true"]) {
  border-color: var(--c-error);
}

.book__consent-icon {
  flex: none;
  font-size: var(--fs-h4);
  color: var(--c-text-muted);
}

.book__consent:has(:checked) .book__consent-icon {
  color: var(--c-tick);
}

.book__consent-text {
  flex: 1;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  text-wrap: pretty; /* no word alone on the last line */
}

@media (min-width: 576px) {
  .book__consent-text {
    text-wrap: balance;
  }
}

.book__switch {
  position: relative;
  flex: none;
}

.book__switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.book__switch-track {
  display: block;
  width: var(--sp-10);
  height: var(--sp-6);
  background-color: var(--c-line);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) var(--ease);
}

.book__switch-track::after {
  content: "";
  position: absolute;
  top: var(--sp-1);
  left: var(--sp-1);
  width: var(--sp-4);
  height: var(--sp-4);
  background-color: var(--c-page);
  border-radius: var(--radius-pill);
  transition: transform var(--duration-fast) var(--ease);
}

.book__switch :checked + .book__switch-track {
  background-color: var(--c-anthracite);
}

.book__switch :checked + .book__switch-track::after {
  transform: translateX(var(--sp-4));
}

.book__switch :focus-visible + .book__switch-track {
  box-shadow: var(--focus-ring);
}

.book__forgot {
  margin-top: calc(-1 * var(--sp-2));
  font-size: var(--fs-small);
}

/* --- Check your email: the code; on phones the buttons stack, Confirm on top --- */
.book__code {
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-caps);
}

@media (max-width: 575.98px) {
  .book__actions--stack {
    flex-direction: column;
    align-items: stretch;
  }

  .book__actions--stack [name="back"] {
    order: 0;
  }
}

/* --- About you: the date of birth in one row, the phone's country code beside the number. Gender: choices from
   576px, a select on phones. --- */
.book__dob {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--sp-3);
}

.book__dob .field__error {
  grid-column: 1 / -1;
}

.book__phone {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--sp-3);
}

@media (min-width: 576px) {
  .book__phone {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.book__gender-select {
  display: none;
}

/* The phone's label stays on one line in its narrow column */
.book__phone .field__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .book__ask.book__gender {
    display: none;
  }

  /* Narrow selects (the month, the country code): the chevron closer to the edge, so "03" and "BE +32" fit */
  .book__dob select.field__input,
  .book__phone select.field__input {
    padding-right: var(--sp-6);
    background-position: right var(--sp-2) center;
  }

  .book__gender-select {
    display: grid;
  }
}

/* --- Questions: each in its own panel; each answer a pill (a radio or tick box with its words beside it) --- */
.book__questions {
  display: grid;
  gap: var(--sp-4);
}

.book__ask {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  border: 0;
}

.book__question {
  display: grid;
  gap: var(--sp-1);
  padding: 0;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

/* A question's box ("If yes: which medication?") shows only once the answer that asks for more is chosen */
.book__ask:has([data-opens]):not(:has([data-opens]:checked)) > .field {
  display: none;
}

.book__hint {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-text-muted);
}

.book__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.book__pill {
  position: relative;
  display: inline-flex;
}

.book__pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.book__pill span {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-small);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
  background-color: var(--c-page);
  cursor: pointer;
}

.book__pill input:checked + span {
  color: var(--c-page);
  background-color: var(--c-anthracite);
  border-color: var(--c-anthracite);
}

.book__pill input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.book__pill input[aria-invalid="true"] + span {
  border-color: var(--c-error);
}

.book__pill--time span {
  font-variant-numeric: tabular-nums;
}

.book__rows {
  display: grid;
}

.book__row {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  border-bottom: var(--border-1) solid var(--c-line);
}

@media (min-width: 576px) {
  .book__row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.book__row-name {
  font-size: var(--fs-small);
}

.book__scale {
  display: flex;
  gap: var(--sp-1);
}

.book__pill--score span {
  display: grid;
  place-items: center;
  width: var(--sp-10);
  padding: var(--sp-2) 0;
}

/* A quiet note in a white box: the urgent note, "No time suits me" */
.book__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1);
}

.book__note > p {
  display: flex;
  flex: 1 1 var(--book-pick-w);
  gap: var(--sp-2);
  max-width: 52ch;
}

.book__note .bi-info-circle {
  color: var(--c-warning-dot);
}

.book__note--none {
  padding-block: var(--sp-4);
}

/* "No time suits me" slides open once the time zone is chosen (the "Choose your time zone first" note is gone) and
   slides shut once a time is chosen. A grid row from 1fr to 0fr, so it moves at its own height; shut, it is hidden
   from the keyboard and screen readers too, and the panel after it moves up over the form's gap it leaves. */
.book__slide {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--duration-slow) var(--ease), visibility var(--duration-slow);
}

.book__slide-inner {
  min-height: 0;
  overflow: hidden;
}

.book__slide + * {
  transition: margin-top var(--duration-slow) var(--ease);
}

.book:has(.book__wait, .book__slots input:checked) .book__slide {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.book:has(.book__wait, .book__slots input:checked) .book__slide + * {
  margin-top: calc(-1 * var(--sp-5));
}

.book__note--none > p {
  padding-left: var(--sp-2);
}

/* The full questionnaire (paid): the parts as a row of links, a tick on each saved one */
.book__parts-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.book__part {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-small);
  color: var(--c-text);
  text-decoration: none;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.book__part--saved .bi {
  color: var(--c-tick);
}

.book__part[aria-current="step"] {
  color: var(--c-page);
  background-color: var(--c-anthracite);
  border-color: var(--c-anthracite);
}

.book__part[aria-current="step"] .bi {
  color: inherit;
}

/* Medicines and supplements: a numbered row of four boxes each, two by two from 576px */
.book__items {
  display: grid;
  gap: var(--sp-4);
}

.book__item {
  display: grid;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  border-bottom: var(--border-1) solid var(--c-line);
}

@media (min-width: 576px) {
  .book__item {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-4);
  }

  .book__item .book__eyebrow {
    grid-column: 1 / -1;
  }
}

/* --- Time: the consultants (two a row from 576px, each with an info button beside it), the time zone, the week and
   the times lined up under its days --- */
.book__consultants {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 576px) {
  .book__consultants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.book__pick {
  position: relative;
}

.book__consultant {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) calc(var(--sp-10) + var(--sp-3)) var(--sp-3) var(--sp-3);
  font-weight: 600;
  text-align: left;
  color: var(--c-text);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.book__consultant[aria-current="true"] {
  border-color: var(--c-anthracite);
  box-shadow: inset 0 0 0 var(--border-1) var(--c-anthracite);
}

.book__info {
  position: absolute;
  top: 50%;
  right: var(--sp-3);
  display: grid;
  place-items: center;
  width: var(--sp-8);
  height: var(--sp-8);
  padding: 0;
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
  cursor: pointer;
}

.book__info:hover {
  color: var(--c-anthracite);
  background-color: var(--c-surface);
}

/* A consultant's head: drawn (views/partials/head-*.svg), as Bootstrap Icons has no head and shoulders */
.book__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--sp-10);
  height: var(--sp-10);
  color: var(--c-text-muted);
  background-color: var(--c-surface);
  border-radius: var(--radius-pill);
}

.book__avatar svg {
  width: var(--sp-6);
  height: var(--sp-6);
  fill: currentColor;
}

.book__avatar .bi {
  font-size: var(--fs-lead);
}

.book__consultant[aria-current="true"] .book__avatar {
  color: var(--c-page);
  background-color: var(--c-anthracite);
}

.book__zone {
  display: grid;
  gap: var(--sp-3);
}

.book__wait {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-surface);
  border-radius: var(--radius-1);
}

.book__wait .bi {
  font-size: var(--fs-h4);
  color: var(--c-accent-text);
}

.book__day-time {
  display: grid;
  gap: var(--sp-4);
}

.book__week {
  display: grid;
  grid-template-columns: var(--sp-8) 1fr var(--sp-8);
  align-items: center;
  gap: var(--sp-1);
}

.book__week-move {
  display: grid;
  place-items: center;
  height: var(--sp-8);
  color: var(--c-text);
  border-radius: var(--radius-1);
}

button.book__week-move:hover {
  background-color: var(--c-ground);
}

.book__week-move--off {
  color: var(--c-line);
}

.book__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sp-1);
}

.book__day {
  display: grid;
  width: 100%;
  justify-items: center;
  padding-block: var(--sp-1);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  text-decoration: none;
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1);
}

.book__day strong {
  font-size: var(--fs-body);
  color: var(--c-text);
}

.book__day--off {
  opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, var(--c-line) 0 var(--border-1), transparent var(--border-1) var(--sp-2));
}

.book__day[aria-current="date"] {
  color: var(--c-page);
  background-color: var(--c-anthracite);
  border-color: var(--c-anthracite);
}

.book__day[aria-current="date"] strong {
  color: var(--c-page);
}

/* The times: the same columns and gaps as the days above, four a row below 768px. On phones they and the day's
   name use the panel's full width. */
.book__slots .book__question,
.book__slots .book__pills,
.book__slots > .book__small {
  margin-inline: calc(var(--sp-8) + var(--sp-1));
}

.book__slots .book__pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-1);
}

@media (max-width: 575.98px) {
  .book__slots .book__question,
  .book__slots .book__pills,
  .book__slots > .book__small {
    margin-inline: 0;
  }
}

@media (min-width: 768px) {
  .book__slots .book__pills {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.book__slots .book__pill {
  display: grid;
}

.book__slots .book__pill span {
  padding-inline: 0;
  text-align: center;
  border-radius: var(--radius-1);
}

/* About your consultant (a dialog) */
.book__who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.book__who .book__avatar {
  width: var(--sp-12);
  height: var(--sp-12);
  color: var(--c-page);
  background-color: var(--c-anthracite);
}

.book__who .book__avatar svg {
  width: var(--sp-8);
  height: var(--sp-8);
}

.book__who strong {
  display: block;
  font-size: var(--fs-lead);
}

.book__who .book__small {
  display: block;
}

.book__about {
  display: grid;
  gap: var(--sp-4);
  color: var(--c-text-muted);
}

/* --- Check and book: one row each, a round grey icon at the left --- */
.book__summary {
  display: grid;
}

.book__summary > div {
  display: grid;
  grid-template-columns: var(--sp-8) minmax(0, 1fr);
  gap: var(--sp-1) var(--sp-3);
  align-items: start;
  padding-block: var(--sp-4);
  border-bottom: var(--border-1) solid var(--c-line);
}

.book__summary > div:last-child {
  border-bottom: 0;
}

.book__summary-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: var(--sp-8);
  height: var(--sp-8);
  color: var(--c-text-muted);
  background-color: var(--c-surface);
  border-radius: var(--radius-pill);
}

.book__summary-icon svg {
  width: var(--sp-5);
  height: var(--sp-5);
  fill: currentColor;
}

.book__summary dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.book__summary dd {
  font-weight: 600;
}

.book__summary dd small {
  display: block;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-text-muted);
}

/* Done */
.book__done p {
  color: var(--c-text-muted);
}


/* --- The footer: the copyright and the legal pages (the shop's links), on white with a line across the screen --- */
.book-foot {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border-top: var(--border-1) solid var(--c-line);
}

.book-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-6) var(--sp-8);
}
