/* =========================================================
   Barbwired booking page
   Layout: navy heading band, then a two-column booking flow
   (steps on the left, sticky summary on the right). On phones
   the steps stack and the total + confirm button stay pinned
   to the bottom of the screen.
   Uses the tokens and form styles defined in styles.css.
   ========================================================= */

.page-book main { background: var(--tint); }
.page-book .site-footer { background: var(--bg); }

/* ---------- Heading band ---------- */
.book-hero {
  margin-top: calc(var(--header-total) * -1);
  padding-top: calc(var(--header-total) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--night) 0%, #0b0f1e 45%, var(--hero-end) 100%);
  color: var(--on-dark);
}
.book-hero .container { display: grid; gap: 12px; }
.book-hero .eyebrow { color: var(--on-dark-2); }
.book-hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  padding-bottom: .12em;
  margin-bottom: -.12em;
  background: linear-gradient(180deg, #ffffff 30%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.book-hero__sub { max-width: 520px; color: var(--on-dark-2); font-size: 1.0625rem; }

/* ---------- Layout ---------- */
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-block: 32px 96px;
}
.book__flow { display: grid; gap: 20px; min-width: 0; }

/* ---------- Step panels ---------- */
.step {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-total) + 16px);
}
.step__head { display: flex; gap: 14px; align-items: flex-start; }
.step__head h2 { font-size: 1.375rem; letter-spacing: -0.025em; }
.step__hint { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }

.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s ease;
}
.step.is-done .step__num {
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  color: transparent;
}

.step__note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 0.875rem;
  font-weight: 500;
}

.step__error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* Keep the visually hidden radio inputs inside their own option, so they
   can't stretch a scrolling row (like the dates) wider than the screen */
.svc, .date, .slot, .chip, .saved__item { position: relative; }

/* ---------- Barbers ---------- */
.barbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;   /* opening one card's menu doesn't stretch its neighbor */
  gap: 16px;
  margin-top: 22px;
}
.barbers__group {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.barbers__group:first-child { margin-top: 0; }

.barber {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.barber.is-selected { border-color: var(--fill); box-shadow: 0 0 0 1px var(--fill); }

.barber__top { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--navy), var(--night));
  box-shadow: inset 0 0 0 1px var(--tile-ring);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.avatar--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.6875rem; }
.barber__who { min-width: 0; flex: 1; }
.barber__who h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.barber__who p { color: var(--ink-3); font-size: 0.8125rem; line-height: 1.4; }
.barber__pill {
  flex: none;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.barber__pill--busy { color: var(--ink-2); }
.avatar--photo { object-fit: cover; padding: 0; background: var(--mist); }

/* One barber picked on the Barbers page: their card fills the row */
.barbers--solo { grid-template-columns: minmax(0, 1fr); }
.barbers--solo .barber__photos { grid-template-columns: repeat(3, minmax(0, 120px)); }
.barbers__solo { color: var(--ink-2); font-size: 0.9375rem; }
.barbers__solo .link { color: var(--ink); }
/* 8.2: "Have an account? Sign in" under Your details, for someone who isn't signed in yet */
.step__aside { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.step__aside[hidden] { display: none; }
.step__aside .link { color: var(--ink); }
/* 8.2: not signed in, and this barber takes cards: the card form comes after sign-up */
.pay__later { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }

/* Busy at the chosen time: still shows their work, just quieter */
.barber.is-busy .barber__who h3 { color: var(--ink-2); }
.barber.is-busy .thumb img { filter: saturate(.75); }
.barber__busy { color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.barber__busy .link { color: var(--ink); font-size: inherit; }

.barber__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumb {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--line);
  cursor: zoom-in;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.thumb:hover img { transform: scale(1.06); }

.barber__services { display: grid; gap: 6px; }
.svc { display: block; cursor: pointer; }
.svc__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.svc__name { font-size: 0.9375rem; font-weight: 500; }
.svc__name small { display: block; color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.svc__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.svc:hover .svc__body { border-color: var(--line-strong); }
.svc input:checked + .svc__body { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.svc input:checked + .svc__body small { color: var(--on-fill-2); }
.svc input:focus-visible + .svc__body { outline: 2px solid var(--pole-blue); outline-offset: 2px; }

.barber__travel { color: var(--ink-3); font-size: 0.8125rem; }

/* "Cuts and prices" dropdown */
.cuts { min-width: 0; }
.cuts__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.cuts__toggle::-webkit-details-marker { display: none; }
.cuts__toggle:hover { border-color: var(--line-strong); }
.cuts__toggle:focus-visible { outline: 2px solid var(--pole-blue); outline-offset: 2px; }
.cuts__meta { margin-left: auto; color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.cuts__chev { flex: none; width: 18px; height: 18px; color: var(--ink-2); transition: transform .2s ease; }
.cuts[open] .cuts__chev { transform: rotate(180deg); }
.cuts[open] .cuts__toggle { background: var(--mist); border-color: var(--mist); }
.cuts__body { display: grid; gap: 8px; margin-top: 8px; }
.cuts__hint { color: var(--ink-2); font-size: 0.8125rem; }

.svc.is-off { cursor: not-allowed; }
.svc.is-off .svc__body { color: var(--ink-3); background: transparent; }
.svc.is-off:hover .svc__body { border-color: var(--line); }

/* ---------- Dates + times: two rows that scroll left to right ---------- */
.rail { position: relative; margin-top: 18px; }
.rail:first-of-type { margin-top: 22px; }

.dates,
.slots {
  --fade-l: 0px;
  --fade-r: 0px;
  position: relative;
  display: flex;
  gap: 8px;
  padding: 3px 2px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.dates::-webkit-scrollbar,
.slots::-webkit-scrollbar { display: none; }
/* soft fade on whichever side has more to scroll */
.rail.can-left > fieldset { --fade-l: 32px; }
.rail.can-right > fieldset { --fade-r: 32px; }

/* arrow buttons for mouse users (touch screens just swipe) */
.rail__btn {
  position: absolute;
  top: calc(50% - 3px);
  z-index: 2;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(11, 14, 26, .25);
  cursor: pointer;
  transition: opacity .2s ease, border-color .15s ease;
}
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn:hover { border-color: var(--line-strong); }
.rail__btn--prev { left: -12px; }
.rail__btn--next { right: -12px; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .rail__btn { display: grid; }
}
.date { flex: none; scroll-snap-align: start; cursor: pointer; }
.date__body {
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 64px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.date__body small { color: var(--ink-3); font-size: 0.75rem; }
.date__body b { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.date:hover .date__body { border-color: var(--line-strong); }
.date input:checked + .date__body { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.date input:checked + .date__body small { color: var(--on-fill-2); }
.date input:focus-visible + .date__body { outline: 2px solid var(--pole-blue); outline-offset: 2px; }
.date input:disabled + .date__body { background: var(--mist); color: var(--ink-3); cursor: not-allowed; }
.date input:disabled + .date__body b { text-decoration: line-through; font-weight: 500; }
.date:has(input:disabled) { cursor: not-allowed; }

.slot { flex: none; scroll-snap-align: start; cursor: pointer; }
.slot span {
  display: block;
  width: 96px;
  padding: 11px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.slot:hover span { border-color: var(--line-strong); }
.slot input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.slot input:focus-visible + span { outline: 2px solid var(--pole-blue); outline-offset: 2px; }
.slot input:disabled + span { background: var(--mist); color: var(--text-off); text-decoration: line-through; cursor: not-allowed; }

.slots__empty {
  flex: 1;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-align: center;
}

/* ---------- Saved addresses ---------- */
.saved { display: grid; gap: 8px; margin-top: 22px; }
.saved__legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.saved__list { display: grid; gap: 8px; }
.saved__row { position: relative; }
.saved__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.saved__row .saved__item { padding-right: 56px; }
.saved__item:hover { border-color: var(--line-strong); }
.saved__item:has(input:checked) { border-color: var(--fill); }
.saved__item input:focus-visible ~ .radio,
.saved__item input:focus-visible ~ .saved__plus { outline: 2px solid var(--pole-blue); outline-offset: 2px; }

.radio {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-width .15s ease, border-color .15s ease;
}
.saved__item input:checked ~ .radio { border: 6px solid var(--fill); }

.saved__plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mist);
  font-weight: 600;
  line-height: 1;
}
.saved__item input:checked ~ .saved__plus { background: var(--fill); color: var(--on-fill); }

.saved__text { display: grid; min-width: 0; font-size: 0.9375rem; line-height: 1.35; }
.saved__text b { font-weight: 600; }
.saved__text span { color: var(--ink-2); overflow-wrap: anywhere; }

.saved__remove {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.saved__remove:hover { background: var(--mist); color: var(--error); }
.saved__remove svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.address {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 20px;
}

.save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { cursor: pointer; }
.chip span {
  display: block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.chip input:focus-visible + span { outline: 2px solid var(--pole-blue); outline-offset: 2px; }

/* ---------- Summary ---------- */
.summary { position: sticky; top: calc(var(--header-total) + 16px); min-width: 0; }
.summary__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.summary h2 { font-size: 1.25rem; letter-spacing: -0.02em; }

.summary__rows { margin: 12px 0 0; }
.summary__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.summary__row dt {
  padding-top: 2px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.summary__row dd { margin: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.summary__row dd.is-empty { color: var(--ink-3); font-weight: 400; }
.summary__row dd small { display: block; color: var(--ink-2); font-size: 0.8125rem; font-weight: 400; }
.summary__barber { display: flex; align-items: center; gap: 8px; }

.summary__price { display: grid; gap: 8px; margin-top: 16px; font-size: 0.9375rem; }
.summary__price div { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary__price .summary__total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
}
.summary__confirm { margin-top: 20px; }
.summary__fine { margin-top: 10px; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.45; text-align: center; }

/* ---------- Payment (step 5) ---------- */
.pay { display: grid; gap: 14px; margin-top: 20px; }
.pay__loading { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--ink-2); font-size: 0.9375rem; }
.pay__icon { flex: none; width: 24px; height: 24px; color: var(--ink-2); }
.pay__opts { display: grid; gap: 8px; }
.pay__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.pay__opt:hover { border-color: var(--line-strong); }
.pay__opt:has(input:checked) { border-color: var(--fill); }
.pay__opt input:checked ~ .radio { border: 6px solid var(--fill); }
.pay__opt input:focus-visible ~ .radio { outline: 2px solid var(--pole-blue); outline-offset: 2px; }
.pay__opt-text { display: grid; line-height: 1.35; font-size: 0.9375rem; }
.pay__opt-text b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay__opt-text small { color: var(--ink-3); font-size: 0.8125rem; }
.pay__plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); font-weight: 600; }
.pay__new { display: grid; gap: 10px; }
.pay__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pay__fields input { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pay__element { min-height: 120px; }
.pay__demo { padding: 10px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 0.8125rem; line-height: 1.45; }
.pay__fine { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.5; }
.pay__fine svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.pay__fine .link { color: var(--ink-2); font-size: inherit; }
.pay__problem { padding: 12px 14px; border-radius: 12px; background: var(--error-bg); color: var(--error); font-size: 0.875rem; font-weight: 500; line-height: 1.45; }
.pay__problem .link { color: inherit; }
.pay__ways .chip span { padding: 9px 16px; font-size: 0.9375rem; }
/* 7.4: a discount code makes the cut free */
.pay__free { padding: 16px; border-radius: 16px; background: var(--ok-bg); color: var(--ok-text); font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }

/* ---------- 7.4: discount code box (under how you pay) ---------- */
.code { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.code__open { padding: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; cursor: pointer; }
.code__form { width: 100%; max-width: 420px; }
.code__row { display: flex; gap: 8px; }
.code__row input { flex: 1 1 auto; text-transform: uppercase; letter-spacing: 0.06em; }
.code__row input::placeholder { text-transform: none; letter-spacing: 0; }
.code__row .btn { flex: none; min-height: 48px; padding: 0 22px; }
.code__on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-text); font-size: 0.9375rem; line-height: 1.4; }
.code__on b { font-weight: 600; }
.code__on .link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.code__msg { color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.code__msg.is-bad { color: var(--error); font-weight: 500; }
#sum-code-row span:last-child { color: var(--ok-text); }
/* 7.5: two for one; 7.7: the special offer's row */
#sum-two-row span:last-child { color: var(--ok-text); font-weight: 600; }

/* ---------- 7.7: barber first, then their calendar ---------- */
.step[hidden] { display: none; }
.barber__choose { width: 100%; margin-top: 4px; }

/* ---------- 7.7: the special offer (Payment step, above the code box) ---------- */
.offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 18px; padding: 14px 16px;
  border: 1.5px dashed var(--line-2, var(--line));
  border-radius: 16px;
  font-size: 0.9375rem; line-height: 1.4;
}
.offer[hidden] { display: none; }
.offer b { font-weight: 600; }
.offer .btn { flex: none; min-height: 44px; padding: 0 22px; }
.offer.is-on { border-style: solid; border-color: transparent; background: var(--ok-bg); color: var(--ok-text); }
.offer .link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }

/* ---------- Confirmation ---------- */
.done { padding-block: 40px 96px; outline: none; }
.done__card {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  text-align: center;
}
.done__check {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--ok);
  color: #ffffff;
}
.done__check svg { width: 30px; height: 30px; }
.done h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.035em; }
.done__lead { max-width: 420px; color: var(--ink-2); }

.done__details {
  width: 100%;
  margin: 12px 0 8px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.done__details div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.done__details dt { color: var(--ink-3); font-size: 0.875rem; }
.done__details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.nowrap { white-space: nowrap; }

.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.done__actions .btn--dark { width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .barbers { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .book { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .summary { position: static; }
  .summary__confirm { display: none; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--bar-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
  .mobile-bar[hidden] { display: none; }
  .mobile-bar__total { display: grid; line-height: 1.2; }
  .mobile-bar__total span { color: var(--ink-3); font-size: 0.8125rem; }
  .mobile-bar__total b { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .mobile-bar .btn { width: auto; padding: 0 24px; }
}

@media (max-width: 640px) {
  .slot span { width: 86px; }   /* lets the next time peek in, so the row reads as scrollable */
  .address { grid-template-columns: minmax(0, 1fr); }
  .barber { padding: 14px; }
  .done__details div { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Ratings on barber cards */
.barber__rating { margin-top: 2px; color: var(--ink-2); font-size: 0.875rem; }
.barber__rating b { color: var(--ink); font-weight: 600; }
.barber__rating .stars { color: var(--star); }
.barber__rating--new { color: var(--ink-3); }
.done__again { flex-basis: 100%; margin-top: 4px; font-size: 0.9375rem; text-align: center; }
