/* Aryeo's official embed script supplies the full content height. */
body.booking .booking-shell { height: auto; min-height: 0; gap: 8px; padding-block: 8px; }
body.booking .booking-heading { justify-content: space-between; column-gap: 8px; }
body.booking .booking-direct { display: inline-flex; }
body.booking .booking-provider { width: 100%; min-height: 320px; }
body.booking .booking-provider iframe { display: block; width: 100%; min-height: 320px; border: 0; border-radius: 10px; }
body.booking .booking-script-notice { margin: 0; }
@media (max-width: 499.98px) {
 body.booking .booking-heading { padding-inline: 4px; }
 body.booking .booking-heading h1 { font-size: 24px; }
 body.booking .booking-direct { font-size: 12px; }
}

/* Keep the embedded viewport within the visible screen so WebKit's native
   sequential focus navigation can reveal every form control. Aryeo still
   supplies the content height; short steps can remain shorter than this cap. */
body.booking .booking-provider { min-height: 180px; }
body.booking .booking-provider iframe {
  min-height: 180px;
  max-height: max(180px, calc(100dvh - var(--ww-header-height, 100px) - 76px));
}

/* Booking preparation stays above the portal in the requested reading order. */
body.booking .booking-preflight { display: grid; gap: 12px; padding-top: 20px; }
body.booking .booking-checklist {
  justify-self: start;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 18px;
  font-size: 18px;
}
body.booking .booking-preflight .booking-details {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #bba16a70;
  border-radius: 14px;
  background: #101522dd;
}
body.booking .booking-preflight .booking-details > summary {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 17px;
  border-radius: 14px;
}
body.booking .booking-policy-copy { padding: 0 16px 16px; font-size: 16px; line-height: 1.55; }
body.booking .booking-policy-copy p { margin: 0 0 14px; }
body.booking .booking-policy-copy a { color: #ead49e; text-underline-offset: 3px; }
body.booking .booking-policy-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
body.booking .booking-policy-links a { display: inline-flex; align-items: center; min-height: 44px; }
body.booking .booking-preflight + .booking-shell { margin-top: 12px; }
/* Leave room for the form's first focus target when entering it by keyboard
   after reading the expanded policies. This uses native browser scrolling. */
body.booking .booking-direct {
  scroll-margin-bottom: max(188px, calc(100dvh - var(--ww-header-height, 100px) - 68px));
}
@media (max-width: 499.98px) {
  body.booking .booking-checklist { justify-self: stretch; width: 100%; }
  body.booking .booking-preflight { padding-top: 16px; }
}

/* Clear, neutral glass uses the checklist button's border and inset highlights. */
body.booking .booking-preflight .booking-details {
  border-color: rgba(255, 255, 255, .42);
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 2px #ffffff50, 0 0 9px #ffffff12;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
body.booking .booking-preflight .booking-details > summary { font-weight: 400; }
body.booking .booking-preflight .booking-details > summary strong { font-weight: 700; }
