.booking-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #30213f;
  background: #fff;
  border: 1px solid #eee6f2;
  border-radius: 24px;
  box-shadow: 0 28px 100px rgb(34 14 48 / 28%);
}
.booking-dialog::backdrop { background: rgb(28 18 34 / 56%); backdrop-filter: blur(5px); }
.booking-dialog-shell { display: flex; flex-direction: column; max-height: min(92dvh, 900px); }
.booking-dialog-header {
  position: relative;
  flex: 0 0 auto;
  padding: 28px 32px 22px;
  color: #fff;
  background: radial-gradient(ellipse at 100% 0, rgb(230 175 21 / 24%), transparent 43%), linear-gradient(135deg, #32134d, #542675);
}
.booking-dialog-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #f6d574; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.booking-dialog-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgb(246 213 116 / 70%); border-radius: 50%; font-family: Georgia, serif; font-size: 1.15rem; }
.booking-dialog-header .eyebrow { margin: 0 0 5px; color: #f2ca57; }
.booking-dialog-header h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; }
.booking-dialog-header > p:last-child { max-width: 52ch; margin: 9px 44px 0 0; color: rgb(255 255 255 / 82%); font-size: .93rem; line-height: 1.6; }
.booking-dialog-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 50%;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.booking-dialog-close:hover { background: rgb(255 255 255 / 22%); }
.booking-dialog-close:focus-visible,
.booking-dialog :focus-visible { outline: 3px solid #edbd31; outline-offset: 3px; }
.booking-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 30px; }
.booking-dialog .request-form { display: grid; gap: 15px; }
.request-payment-summary { margin: 0; padding: 13px 15px; border: 1px solid #e4d7ed; border-left: 3px solid #55266f; border-radius: 10px; background: #faf7fc; color: #45245a; font-size: .92rem; line-height: 1.55; }
.booking-dialog .request-form .form-helper { margin: 0; }
.booking-dialog .request-form label { min-width: 0; }
.booking-dialog .request-form input:not([type="checkbox"]),
.booking-dialog .request-form select,
.booking-dialog .request-form textarea { width: 100%; min-height: 46px; }
.booking-dialog .request-form textarea { min-height: 110px; }
.booking-dialog .request-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.request-booking-availability { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; border: 1px solid #eee6f2; border-radius: 16px; background: linear-gradient(135deg, #fff, #fbf8fd); }
.request-booking-availability label { display: grid; gap: 7px; color: #38224d; font-size: .88rem; font-weight: 650; }
.request-booking-availability select:disabled { color: #8b8290; background: #f7f5f8; cursor: not-allowed; }
.booking-calendar { grid-column: 1 / -1; min-width: 0; padding: 14px; border: 1px solid #eee6f2; border-radius: 15px; background: #fff; }
.booking-calendar-header { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 12px; }
.booking-calendar-header h3 { margin: 0; color: #352047; font-size: 1rem; font-weight: 750; text-align: center; text-transform: capitalize; }
.booking-calendar-nav { display: grid; width: 40px; height: 40px; place-items: center; color: #542675; background: #f7f1fa; border: 1px solid #eadcf1; border-radius: 12px; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.booking-calendar-nav:hover:not(:disabled) { background: #efe4f6; }
.booking-calendar-nav:disabled { color: #b5aeb9; background: #faf9fb; cursor: not-allowed; }
.booking-calendar-weekdays,
.booking-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.booking-calendar-weekdays { margin-bottom: 6px; }
.booking-calendar-weekdays span { display: grid; min-height: 26px; place-items: center; color: #81748c; font-size: .72rem; font-weight: 700; }
.booking-calendar-day,
.booking-calendar-blank { position: relative; display: flex; min-width: 0; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 11px; }
.booking-calendar-day { color: #38234b; background: #faf8fb; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.booking-calendar-day::after { width: 5px; height: 5px; flex: 0 0 5px; background: #aaa1ad; border-radius: 50%; content: ""; }
.booking-calendar-day[data-state="available"]::after { background: #39966a; }
.booking-calendar-day[data-state="full"]::after { background: #dda91b; }
.booking-calendar-day[data-state="closed"] { color: #b2abb6; background: #fbfafc; }
.booking-calendar-day[data-state="closed"]::after { background: #c9c3cc; }
.booking-calendar-day:hover:not(:disabled) { background: #f1e8f7; border-color: #d9c3e5; transform: translateY(-1px); }
.booking-calendar-day[data-today="true"] { border-color: #e8bc3b; }
.booking-calendar-day[data-selected="true"] { color: #fff; background: #51236f; border-color: #51236f; box-shadow: 0 0 0 2px rgb(81 35 111 / 14%); }
.booking-calendar-day[data-selected="true"]::after { background: #f2cf58; }
.booking-calendar-day:disabled { cursor: not-allowed; }
.booking-calendar-day:focus-visible,
.booking-calendar-nav:focus-visible { outline: 3px solid #e5b532; outline-offset: 2px; }
.booking-calendar-day-number { line-height: 1; }
.booking-calendar-day-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.booking-calendar-status { min-height: 1.3em; margin: 11px 2px 9px; color: #736780; font-size: .79rem; line-height: 1.45; }
.booking-calendar-status[data-state="error"] { color: #a44238; }
.booking-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 9px; border-top: 1px solid #f0ebf2; }
.booking-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; color: #746a7b; font-size: .72rem; }
.booking-calendar-legend span::before { width: 7px; height: 7px; background: #c9c3cc; border-radius: 50%; content: ""; }
.booking-calendar-legend [data-legend="available"]::before { background: #39966a; }
.booking-calendar-legend [data-legend="full"]::before { background: #dda91b; }
.request-booking-availability > label { grid-column: 1 / -1; }
.booking-select-picker { position: relative; min-width: 0; }
.booking-dialog .request-form .booking-select-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.booking-select-picker-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  color: #38234b;
  background: #fff;
  border: 1px solid #d9cfe0;
  border-radius: 12px;
  font: inherit;
  font-size: .94rem;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.booking-select-picker-trigger:hover:not(:disabled),
.booking-select-picker-trigger[aria-expanded="true"] { border-color: #8b63a2; background: #fdfbfe; }
.booking-select-picker-trigger:focus-visible { outline: 3px solid rgb(230 175 21 / 55%); outline-offset: 2px; }
.booking-select-picker-trigger:disabled { color: #8b8290; background: #f7f5f8; cursor: not-allowed; }
.booking-select-picker-trigger.is-selected .booking-select-picker-value { color: #47205f; }
.booking-select-picker-trigger[aria-invalid="true"] { border-color: #b24747; box-shadow: 0 0 0 3px rgb(178 71 71 / 12%); }
.booking-select-picker-trigger svg { width: 18px; height: 18px; flex: 0 0 auto; color: #705284; transition: transform .16s ease; }
.booking-select-picker-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.booking-select-picker-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 240px;
  max-height: min(240px, 34vh);
  max-height: min(240px, 34dvh);
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #e7ddec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(42 20 55 / 18%);
  scrollbar-color: #c9b8d3 #f7f3f9;
  scrollbar-width: thin;
}
.booking-select-picker-list[hidden] { display: none; }
.booking-select-picker-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #493654;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.booking-select-picker-option > span { min-width: 0; overflow-wrap: anywhere; }
.booking-select-picker-option::after { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #45a078; content: ""; }
.booking-select-picker-option:hover,
.booking-select-picker-option:focus-visible { outline: 0; border-color: #eadcf1; background: #f8f3fb; }
.booking-select-picker-option[aria-disabled="true"] { color: #aaa2af; cursor: not-allowed; }
.booking-select-picker-option[aria-disabled="true"]::after { background: #c9c3cc; }
.booking-select-picker-option.is-selected { color: #fff; border-color: #51236f; background: #51236f; }
.booking-select-picker-option.is-selected::after { background: #f2cf58; }
.booking-availability-message { grid-column: 1 / -1; min-height: 1.25em; margin: 0; color: #75677f; font-size: .82rem; line-height: 1.5; }
.booking-availability-message[data-state="available"] { color: #26744e; }
.booking-availability-message[data-state="error"],
.booking-availability-message[data-state="unavailable"] { color: #a44238; }
.booking-availability-message[data-hours]::after { content: " · " attr(data-hours); color: #75677f; }
.booking-dialog .request-form .check-label { align-items: flex-start; }
.booking-dialog .request-form button[type="submit"] { justify-self: start; min-width: 160px; }
@media (max-width: 560px) {
  .booking-dialog { width: min(100vw - 16px, 520px); max-height: 96dvh; border-radius: 19px; }
  .booking-dialog-shell { max-height: 96dvh; }
  .booking-dialog-header { padding: 22px 21px 19px; }
  .booking-dialog-brand { margin-bottom: 16px; }
  .booking-dialog-header > p:last-child { margin-inline-end: 0; font-size: .87rem; }
  .booking-dialog-body { padding: 20px 21px 24px; }
  .booking-dialog .request-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .request-booking-availability { grid-template-columns: minmax(0, 1fr); }
  .booking-calendar { padding: 11px; }
  .booking-calendar-weekdays,
  .booking-calendar-days { gap: 3px; }
  .booking-calendar-day,
  .booking-calendar-blank { min-height: 43px; border-radius: 9px; }
  .booking-calendar-weekdays span { font-size: .66rem; }
  .booking-calendar-legend { gap: 7px 10px; }
  .booking-dialog .request-form button[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-dialog[open] { animation: booking-dialog-in .2s ease-out both; }
  @keyframes booking-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
