/* Booking: the light blue panel with the BookingCard inside. At rest, the call details sit left and the calendar area waits for a click
   before cal.com loads. Once open, the details column slides shut and the calendar takes the whole card; "Back" reverses it. */
.gl-booking__head { display: grid; gap: var(--space-3); max-width: 40em; margin-bottom: var(--space-6); }
.gl-booking__head .gl-h2 { margin: 0; }
.gl-book__intro .gl-h4 { margin: 0 0 var(--space-2); }
.gl-book__list:last-child { margin-bottom: 0; }

.gl-book { transition: grid-template-columns 450ms cubic-bezier(.2, .7, .2, 1); }
.gl-book__intro { overflow: hidden; transition: opacity 200ms ease 200ms, border-color 200ms ease, padding 450ms ease, visibility 0s; }
.gl-book__intro > div { min-width: 240px; } /* keeps the text from rewrapping while the column slides */

/* The waiting area and the calendar share one grid cell, so one can fade out while the other fades in.
   The card keeps the calendar's height before and after the click: cal.com is 534px tall at this width (571px from 1400px up), plus the line above it, the gap and the padding. */
.gl-book__embed, .gl-book__embed:has(.gl-book__fallback) { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; justify-content: stretch; min-height: 634px; padding: var(--space-5); }
.gl-book__fallback, .gl-book__cal { grid-area: 1 / 1; }
.gl-book__fallback { align-content: center; justify-self: center; max-width: 26em; transition: opacity 250ms ease 200ms, visibility 0s; }
.gl-book__fallback .gl-h4 { margin: 0; }
.gl-book__fallback p { margin: 0; font-size: 14px; color: var(--muted); }
.gl-book__fallback .gl-btn { margin-top: var(--space-2); }
.gl-book__cal { display: grid; align-content: start; gap: var(--space-4); opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s 120ms; }
.gl-book__cal[hidden] { display: none !important; }
.gl-book__cal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.gl-book__cal-head p { margin: 0; }
.gl-book__cal-head b { margin-right: var(--space-2); font: 600 16px var(--font-heading); color: var(--ink); }
.gl-book__back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 8px; font: 500 14px var(--font-body); color: var(--ink-2); background: none; border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.gl-book__back:hover { border-color: var(--line-soft); color: var(--ink); }
.gl-book__back svg { width: 16px; height: 16px; rotate: 180deg; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: translate 150ms ease; }
.gl-book__back:hover svg { translate: -2px 0; }

/* Open: the details column slides shut, the waiting area fades out, the calendar fades in */
.gl-book.is-open { grid-template-columns: minmax(0, 0fr) minmax(0, 1fr); }
.gl-book.is-open .gl-book__intro { opacity: 0; visibility: hidden; padding-inline: 0; border-color: transparent; transition: opacity 120ms ease, border-color 200ms ease, padding 450ms ease, visibility 0s 450ms; }
.gl-book.is-open .gl-book__fallback { opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s 120ms; }
.gl-book.is-open .gl-book__cal { opacity: 1; visibility: visible; transition: opacity 300ms ease 250ms, visibility 0s; }

/* Desktop: the calendar lies over the whole card at a fixed width, so cal.com never re-renders while the columns slide.
   Below this width cal.com stacks the times under the month and needs to set the card's height itself. */
@media (min-width: 1000px) {
  .gl-book { position: relative; }
  .gl-book__cal { position: absolute; inset: 0; z-index: 1; padding: var(--space-5); }
}
@media (min-width: 1400px) {
  .gl-book__embed, .gl-book__embed:has(.gl-book__fallback) { min-height: 671px; }
}
/* Phones: one column, the calendar under the details; once open the details step aside and the calendar sets its own height */
@media (max-width: 720px) {
  .gl-book.is-open { grid-template-columns: 1fr; }
  .gl-book.is-open .gl-book__intro { display: none; }
  .gl-book__embed, .gl-book__embed:has(.gl-book__fallback) { min-height: 240px; padding: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  .gl-book, .gl-book * { transition: none !important; }
}
