/* The CTA stays in the page; the calendar lives in a native modal dialog. */
.call-section.booking-section {
  column-gap: 64px;
  row-gap: 32px;
  padding: 48px;
}

.booking-section > div:first-child { min-width: 0; }
.booking-section .call-takeaway { justify-self: end; }
.booking-section a:focus-visible { outline-color: var(--mint); }

html.booking-open { overflow: hidden; }

.booking-dialog {
  width: min(1040px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px #081a1440;
  overflow: hidden;
  color-scheme: light;
}

.booking-dialog[open] {
  display: flex;
  flex-direction: column;
}

.booking-dialog::backdrop { background: #081a14a6; }

.booking-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex: none;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.booking-dialog-header > div { min-width: 0; }

.booking-dialog-header h2 {
  max-width: none;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pine);
}

.booking-dialog-header p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.booking-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--pine);
}

.booking-close:hover { background: var(--mint); }
.booking-close:focus-visible { outline-offset: 2px; }
.booking-close .icon { transform: rotate(45deg); }

.booking-dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.booking-calendar {
  position: relative;
  min-width: 0;
  width: 100%;
  background: var(--white);
  color: var(--ink);
}

.cal-inline {
  width: 100%;
  min-width: 0;
  min-height: min(560px, 65vh);
  min-height: min(560px, 65dvh);
}

.cal-inline iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.booking-status {
  position: absolute;
  inset: 26px 24px auto;
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.booking-status[hidden] { display: none !important; }

.booking-dialog .booking-fallback {
  max-width: none;
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.booking-fallback .text-link {
  min-height: 44px;
  font-size: inherit;
  color: var(--pine);
}

.booking-fallback .text-link:hover { color: var(--green); }
.booking-calendar.is-ready .cal-inline { min-height: 0; }
.booking-calendar.is-unavailable .cal-inline { min-height: 0; }
.booking-calendar.is-unavailable .booking-status {
  position: relative;
  inset: auto;
  padding: 24px 20px;
}

@media (max-width: 950px) {
  .call-section.booking-section {
    column-gap: 32px;
    padding: 32px;
  }
}

@media (max-width: 700px) {
  .call-section.booking-section {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding: 34px 20px 24px;
    border-radius: 0;
  }

  .booking-section .call-takeaway { justify-self: start; }
  .booking-section .call-takeaway li:first-child { margin-top: 0; }
  .booking-section .call-takeaway li:last-child { margin-bottom: 0; }

  .booking-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .booking-dialog-header {
    gap: 12px;
    padding: 16px;
  }

  .booking-dialog-header h2 { font-size: 21px; }
  .booking-dialog-header p { font-size: 12px; }
  .booking-status { inset: 24px 16px auto; }
  .booking-dialog .booking-fallback { padding: 10px 16px; font-size: 12px; }
}
