@font-face {
  font-family: "Instrument Serif";
  src: url("/studio/serif.woff2") format("woff2");
  font-display: swap;
}

.booking-page {
  --forest: #11392e;
  --gold: #f1d695;
  --green: #215346;
  --line: #dcded0;
  --muted: #4e645b;
  background: #f8f5eb;
}
.booking-page main { max-width: 1330px; }
.booking-page .booking-top { background: var(--forest); }
.booking-top header {
  height: 72px;
  max-width: 1330px;
  border: 0;
  color: #fff8e8;
}
.booking-top a { color: inherit; }
.booking-top .brand { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.studio-link { font-size: 0.85rem; text-underline-offset: 4px; }
.booking-page h1 { color: var(--forest); letter-spacing: -0.035em; }
.booking-page .steps { gap: clamp(12px, 3vw, 26px); }
.booking-page .steps li { padding-bottom: 6px; border-bottom: 2px solid transparent; }
.booking-page .steps [aria-current] { border-bottom-color: var(--green); }
.booking-page .layout { grid-template-columns: minmax(0, 1.75fr) minmax(295px, 1fr); }
.booking-flow { min-width: 0; }
.booking-summary {
  background: var(--forest);
  color: #fff8e8;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px 22px 22px 4px;
}
.summary-studio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ffffff38;
}
.summary-studio img {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #ffffff38;
  border-radius: 50%;
}
.booking-summary small { color: #d7e3cd; }
.booking-summary h2 { margin: 0 0 8px; }
.booking-summary .entry,
.booking-summary .total { border-top-color: #ffffff38; }
.booking-summary .entry { flex-wrap: nowrap; align-items: flex-start; }
.booking-summary .entry > div { overflow-wrap: anywhere; }
.booking-summary .entry > div:first-child { min-width: 0; }
.booking-summary .selected-time { display: grid; color: var(--gold); padding-bottom: 12px; }
.booking-summary .selected-time:empty { display: none; }
.booking-summary #next { background: var(--gold); color: #18372d; font-weight: 700; margin-top: 6px; }
.action-price { display: none; }

.calendar-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: clamp(14px, 2.8vw, 25px);
}
.calendar-head,
.time-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.calendar-head h2,
.time-head h2 { margin: 0; font-size: 1.9rem; }
.calendar-head p,
.time-head p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.calendar-controls { display: flex; gap: 6px; }
.calendar-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
  border-radius: 50%;
}
.booking-dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin: -5px;
}
.booking-date {
  display: grid;
  min-height: 90px;
  gap: 2px;
  place-content: center;
  padding: 6px 2px;
  background: #eef2e8;
  color: var(--forest);
  border-color: #d9dfd0;
  text-align: center;
  border-radius: 5px 5px 14px 14px;
  font-size: 0.8rem;
}
.booking-date strong { font-size: 1.45rem; line-height: 1.23; }
.booking-date small { color: inherit; font-size: 0.68rem; white-space: nowrap; }
.booking-date[aria-label$="No times"] { background: #f7f3e9; color: #526159; }
.booking-date[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: white; }
.booking-date[aria-pressed="true"] small { color: var(--gold); }
.jump-date {
  grid-template-columns: auto minmax(0, 145px);
  align-items: center;
  justify-content: start;
  gap: 10px;
  margin: 16px 0 0;
}
.jump-date input { padding: 6px 8px; min-width: 0; }
.time-area { margin-top: clamp(22px, 4vw, 35px); }
.time-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.time-filters button { border-radius: 30px; font-size: 0.86rem; padding: 6px 11px; }
.time-filters [aria-pressed="true"] { background: #e8eddf; border-color: var(--green); font-weight: 700; }
.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.booking-times .slot {
  min-height: 48px;
  background: #fffdf7;
  color: var(--forest);
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.booking-times .slot[aria-pressed="true"] {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

@media (max-width: 850px) {
  .booking-page .layout { grid-template-columns: minmax(0, 1fr); }
  .booking-page .summary { position: static; }
  .booking-actions {
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px clamp(18px, 5vw, 50px) calc(8px + env(safe-area-inset-bottom));
    background: #fffdf7;
    border-top: 1px solid var(--line);
  }
  .booking-summary #next { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; min-height: 47px; }
  .action-price { display: inline; }
  .booking-page main:has(.booking-actions) { padding-bottom: 100px; }
  .booking-page #notice:not(:empty) { bottom: 80px; }
}
@media (max-width: 500px) {
  .booking-top header { height: 60px; }
  .booking-dates {
    grid-template-columns: repeat(7, minmax(62px, 1fr));
    overflow-x: auto;
    scroll-padding: 5px;
    scrollbar-width: thin;
  }
}
