.slx-booking-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 18px 9px 9px;
  box-sizing: border-box;
  background: #053929;
  color: #fff;
  border: 1px solid rgba(26, 225, 157, .55);
  box-shadow: 0 0 0 4px rgba(26, 225, 157, .12), 0 26px 54px -22px rgba(3, 40, 26, .85);
  text-decoration: none;
  text-align: left;
  transition: transform .16s, box-shadow .16s;
}
.slx-booking-launcher:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(26, 225, 157, .2), 0 30px 60px -22px rgba(3, 40, 26, .9);
}
.slx-booking-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(26, 225, 157, .12);
  border: 1px solid rgba(26, 225, 157, .45);
  color: #1ae19d;
  flex: none;
}
.slx-booking-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.slx-booking-label { font-family: inherit; font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.slx-booking-label small {
  display: block;
  margin-top: 3px;
  font: 600 9px/1.4 var(--mono, monospace);
  letter-spacing: .1em;
  color: #1ae19d;
}
a[data-booking-link]:focus-visible, .slx-booking-dialog :focus-visible { outline: 3px solid #178257; outline-offset: 4px; }
.slx-booking-email { margin-top: 10px; font-size: 13px; }
.slx-booking-email a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body:has(.slx-booking-dialog[open]) { overflow: hidden; }

/* The booking dialog has no box of its own. Cal.com's card changes width at every step
   (wide for the calendar, narrow for the details), and its frame is transparent — so the
   page melts into frosted mint and the card simply floats, fitting itself. */
.slx-booking-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 16px 32px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #053929;
  overflow: auto;
}
.slx-booking-dialog[open] { display: flex; flex-direction: column; align-items: center; }
.slx-booking-dialog::backdrop {
  background: rgba(222, 245, 235, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.slx-booking-dialog::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 1100px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 55% at 50% 55%, rgba(26, 225, 157, .42), rgba(26, 225, 157, .14) 55%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  opacity: .8;
}
.slx-booking-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: auto;
}
.slx-booking-dialog[open] .slx-booking-stage { animation: slx-booking-in .3s cubic-bezier(.2, .9, .3, 1.1); }
.slx-booking-dialog[open]::backdrop { animation: slx-booking-fade .2s ease-out; }
.slx-booking-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font: 700 10.5px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #066b45;
}
.slx-booking-eyebrow img { width: 16px; height: 16px; }
.slx-booking-status { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #4b6b5e; text-align: center; }
.slx-booking-status:empty { display: none; }
.slx-booking-calendar { width: 100%; min-height: 180px; }
/* Cal.com leaves ~43px under its badge; pull the link up so badge and link read as one footer. */
.slx-booking-fallback { margin: -18px 0 0; font-size: 12.5px; line-height: 1.5; color: #4b6b5e; text-align: center; }
.slx-booking-fallback a { color: #053929; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.slx-booking-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(6, 107, 69, .3);
  background: rgba(255, 255, 255, .75);
  color: #053929;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.slx-booking-close:hover { background: #fff; border-color: #066b45; }
.slx-booking-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* When the calendar cannot open, the notice becomes the card and the link becomes the button. */
.slx-booking-dialog.is-failed .slx-booking-calendar,
.slx-booking-dialog.is-failed .slx-booking-fallback span { display: none; }
.slx-booking-dialog.is-failed .slx-booking-status {
  max-width: 420px;
  margin-bottom: 0;
  padding: 24px 26px 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #1ae19d;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 600;
  color: #053929;
}
.slx-booking-dialog.is-failed .slx-booking-fallback {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 18px 26px 24px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #1ae19d;
  border-top: 0;
}
.slx-booking-dialog.is-failed .slx-booking-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: #1ae19d;
  color: #053929;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

/* A quiet second path beside a booking button: the catalog, a playbook, the docs. */
.slx-sublink { margin: 14px 0 0; font-size: 12.5px; color: var(--muted, #6b7470); }
.slx-sublink a { color: var(--fg, #171717); font-weight: 600; border-bottom: 1px solid var(--border, #e4e4e7); }
.slx-sublink a:hover { border-color: #1ae19d; }
.final .fine a { color: inherit; border-bottom: 1px solid rgba(26, 225, 157, .45); }
.final .fine a:hover { color: #fff; border-color: #1ae19d; }

@keyframes slx-booking-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slx-booking-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
  /* Keep the action visible on a phone while dropping the secondary meeting details. */
  .slx-booking-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); gap: 8px; padding: 9px 12px 9px 9px; }
  .slx-booking-label { font-size: 12.5px; }
  .slx-booking-label small { display: none; }
  .slx-booking-dialog { padding: 68px 8px 24px; }
  /* The dialog scrolls on a phone, so the fixed button sits over the card: keep it opaque. */
  .slx-booking-close { top: 12px; right: 12px; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .slx-booking-launcher { transition: none; }
  .slx-booking-launcher:hover { transform: none; }
  .slx-booking-dialog[open] .slx-booking-stage,
  .slx-booking-dialog[open]::backdrop { animation: none; }
}
