.appointment .appointment-layout {
  display: grid;
  grid-template-columns: minmax(205px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}
.appointment-copy {
  padding-top: 8px;
}
.appointment-copy .notify-option {
  margin-top: 30px;
  max-width: 390px;
}
.appointment-sheet {
  padding: clamp(18px, 2.3vw, 36px);
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid #e5dfed;
  border-radius: 6px;
  box-shadow: 0 8px 28px #20142c25;
}
.appointment .appointment-sheet p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0.6em 0;
  max-width: none;
}
.booking-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.booking-header h3 {
  font-size: clamp(23px, 2.4vw, 35px);
  margin: 0;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.booking-header > span,
.booking-fine,
#booking-message,
#booking-state {
  font-size: 0.83rem;
}
#booking-message:empty,
#booking-state:empty {
  display: none;
}
.booking-choice {
  display: grid;
  grid-template-columns: minmax(205px, 1.3fr) minmax(115px, 0.7fr);
  gap: clamp(16px, 2.7vw, 40px);
}
.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 42px;
  margin-bottom: 6px;
}
.appointment-sheet h4,
.booking-times legend {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}
.month-head > div {
  display: flex;
}
.month-head button {
  width: 32px;
  height: 34px;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 800;
}
.month-head button:disabled {
  color: #bab5bf;
  cursor: default;
}
.weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 3px 0;
}
.calendar-days button,
.booking-times label span {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 740;
  min-height: 35px;
  border-radius: 3px;
  border: 1px solid #c6bace;
  color: #432b73;
  background: #f1ebfa;
}
.calendar-days button {
  width: 100%;
  padding: 2px;
}
.calendar-days button:disabled {
  border-color: transparent;
  background: none;
  color: #867e88;
  font-weight: 500;
  cursor: default;
}
.calendar-days button[aria-pressed="true"],
.booking-times input:checked + span {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.calendar-days button:not(:disabled):hover,
.booking-times label:hover span {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.booking-times {
  min-width: 0;
  border: none;
  padding: 0;
  margin: 0;
}
.booking-times legend {
  min-height: 42px;
  align-content: center;
}
#booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 7px;
}
.booking-times label {
  position: relative;
  cursor: pointer;
  display: block;
}
.booking-times input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.booking-times input:focus-visible + span {
  outline: 3px solid #b65e00;
  outline-offset: 2px;
}
.booking-times label span {
  display: grid;
  place-items: center;
  min-height: 39px;
  background: white;
}
.booking-details {
  padding-top: 16px;
  margin-top: 17px;
  border-top: 1px solid var(--line);
}
.appointment-sheet .booking-summary {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--accent);
}
.appointment-sheet label[for] {
  display: block;
  margin: 12px 0 5px;
  font-size: 0.86rem;
  font-weight: 700;
}
.appointment-sheet label span {
  font-weight: 500;
}
.appointment-sheet input:not([type="radio"]),
.appointment-sheet textarea {
  width: 100%;
  border: 1px solid #ada5b5;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
}
.appointment-sheet textarea {
  resize: vertical;
  min-height: 58px;
}
.appointment-sheet a:not(.calendar-secondary) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.appointment-sheet button:focus-visible,
.appointment-sheet input:focus-visible,
.appointment-sheet textarea:focus-visible {
  outline: 3px solid #b65e00;
  outline-offset: 2px;
}
.calendar-primary,
.calendar-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 43px;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 730;
  cursor: pointer;
}
.calendar-primary {
  background: var(--accent);
  color: white;
}
.calendar-primary:hover {
  background: #3c2679;
}
.calendar-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
.calendar-secondary {
  background: white;
  color: var(--accent);
}
.booking-actions {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.booking-back {
  display: inline-block;
  margin-left: 13px;
}
.appointment-sheet [hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .appointment .appointment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .appointment-copy {
    display: contents;
  }
  .appointment-copy > .eyebrow {
    margin: 0;
  }
  .appointment-copy h2 {
    margin: 0;
  }
  .appointment-copy > .notify-option {
    order: 1;
    max-width: none;
    margin-top: 5px;
  }
  .appointment-copy > .notify-link {
    justify-self: start;
    margin-top: -10px;
  }
}
@media (max-width: 510px) {
  .booking-choice {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .booking-times legend {
    min-height: 0;
    margin-bottom: 8px;
  }
  #booking-times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .booking-times label span {
    font-size: 0.8rem;
  }
  .booking-header {
    margin-bottom: 12px;
  }
  .appointment-sheet {
    padding: 15px;
  }
}
