.booking-widget { position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); color: #fff; font-family: Inter, system-ui, sans-serif; }
.booking-widget[hidden], .booking-widget [hidden] { display: none !important; }
.booking-card { position: relative; width: 370px; max-height: calc(100dvh - 48px); overflow-y: auto; max-width: calc(100vw - 32px); padding: 25px 22px 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: linear-gradient(145deg, #202025, #101013 70%); box-shadow: 0 20px 70px rgba(0,0,0,.5); animation: booking-enter .25s ease-out; }
.booking-host { display: flex; align-items: center; gap: 11px; padding-right: 15px; }
.booking-host img { flex-shrink: 0; border-radius: 10px; }
.booking-host span { font-size: 9px; font-weight: 700; letter-spacing: .13em; color: #ff8fa5; }
.booking-host p { margin: 4px 0 0; font-size: 11px; color: #c7c7cc; line-height: 1.5; }
.booking-card h2 { margin: 22px 0 10px; font-size: 23px; letter-spacing: -.035em; line-height: 1.15; }
.booking-card-copy { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #d2d2d7; }
 .booking-outcomes { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.booking-outcomes li { position: relative; padding-left: 19px; font-size: 12px; line-height: 1.5; color: #e4e4e8; }
.booking-outcomes li::before { content: "✓"; position: absolute; left: 0; color: #ff8fa5; font-weight: 700; }
.booking-timing { margin: 0 0 16px; padding: 11px 12px; border-left: 2px solid #ff6482; border-radius: 0 6px 6px 0; background: #ffffff08; color: #c7c7cc; font-size: 11px; line-height: 1.5; }
.booking-timing strong { color: #fff; }
.booking-choose { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 16px; border: 1px solid #ff6482; border-radius: 10px; background: #fe2c56; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.booking-choose:hover { background: #dc1740; }
.booking-card-note { margin: 11px 0 0; color: #aaaab3; font-size: 10px; text-align: center; }
.booking-dismiss, .booking-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 26px; line-height: 1; }
.booking-dismiss { position: absolute; top: 2px; right: 2px; color: #c7c7cc; }
.booking-dismiss:hover, .booking-dialog-close:hover { background: rgba(255,255,255,.1); }
.booking-launcher { position: relative; isolation: isolate; display: flex; align-items: center; gap: 11px; max-width: calc(100vw - 24px); min-height: 66px; padding: 12px 14px 12px 12px; border: 1px solid #ff8ba2; border-radius: 18px; background: linear-gradient(115deg, #fa2856, #d81343); color: #fff; box-shadow: 0 8px 30px #0006, 0 0 24px #fe2c5626; cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.booking-launcher::before { content: ""; position: absolute; inset: -1px; border: 1px solid #ff8ba2; border-radius: inherit; pointer-events: none; opacity: 0; animation: booking-attention-ring 1.4s ease-out 3; }
.booking-launcher-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #ffffff45; border-radius: 12px; background: #ffffff14; transition: transform .2s ease; }
.booking-launcher-label { display: grid; gap: 4px; min-width: 0; }
.booking-launcher-label strong { font: 700 14px/1.2 Inter, system-ui, sans-serif; }
.booking-launcher-label > span { font: 400 10px/1.3 Inter, system-ui, sans-serif; color: #fff0f4; }
.booking-launcher-arrow { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; margin-left: 3px; border-radius: 50%; background: #ffffff24; font: 20px/1 Inter, system-ui, sans-serif; transition: transform .2s ease; }
@keyframes booking-attention-ring { 0% { transform: scale(1); opacity: .65; } 75%, 100% { transform: scale(1.055, 1.18); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .booking-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px #0007, 0 0 30px #fe2c5655; }
  .booking-launcher:hover .booking-launcher-icon { transform: rotate(-7deg); }
  .booking-launcher:hover .booking-launcher-arrow { transform: translate(2px, -2px); }
  .booking-launcher:hover::before { animation: none; }
}
.booking-launcher:focus-visible::before { animation: none; }
.booking-launcher:active { transform: translateY(0) scale(.98); }

.booking-widget :focus-visible, .booking-dialog :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.booking-dialog { width: min(1040px, calc(100vw - 40px)); height: min(850px, calc(100dvh - 40px)); max-width: none; max-height: none; padding: 0; border: 1px solid #36363d; border-radius: 18px; color: #fff; background: #fff; overflow: hidden; }
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.booking-dialog-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; background: #151519; }
.booking-dialog-header h2 { margin: 0 0 5px; font: 600 17px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.booking-dialog-header a { display: inline-block; padding: 4px 0; font: 12px/1.4 Inter, system-ui, sans-serif; color: #ddd; text-decoration: underline; text-underline-offset: 3px; }
.booking-dialog-close { flex-shrink: 0; }
.booking-calendar { flex: 1; min-height: 0; }
.booking-calendar iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@keyframes booking-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .booking-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .booking-card { width: 340px; max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); padding: 22px 18px 15px; }
  .booking-card h2 { margin-top: 18px; font-size: 22px; }
  .booking-dialog { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .booking-dialog-header { padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
  .booking-dialog-header h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .booking-card, .booking-launcher::before { animation: none; } .booking-launcher, .booking-launcher-icon, .booking-launcher-arrow { transition: none; transform: none !important; } }

/* Concrete session value stays visible while the external scheduler loads. */
.booking-preview { display: block; margin-top: 13px; padding: 3px 0; color: #f5c0cb; font-size: 12px; text-align: center; text-underline-offset: 3px; }
.booking-dialog-header p { margin: 0; color: #ccc; font: 12px/1.5 Inter, system-ui, sans-serif; }
.booking-value { flex-shrink: 0; padding: 14px 20px; background: #fff5f7; color: #252128; font: 13px/1.5 Inter, system-ui, sans-serif; border-bottom: 1px solid #ecdde1; }
.booking-value strong { font-size: 15px; }
.booking-value p { margin: 4px 0; color: #51404a; font: inherit; }
.booking-value a { color: #a50c35; text-underline-offset: 3px; }
.booking-calendar-tools { flex-shrink: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 10px 20px; color: #514953; background: #fff; font: 11px/1.5 Inter, system-ui, sans-serif; }
.booking-calendar-tools a { color: #9e1535; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .booking-value { padding: 10px 14px; font-size: 11px; }
  .booking-value strong { font-size: 13px; }
  .booking-calendar-tools { padding: 8px 14px; font-size: 10px; }
}

@media(max-width:600px) {
  .booking-launcher { min-height: 52px; padding: 9px 12px; border-radius: 14px; gap: 9px; }
  .booking-launcher-label > span { display: none; }
  .booking-launcher-label strong { font-size: 12px; }
  .booking-launcher-icon { flex-basis: 30px; height: 30px; border-radius: 9px; }
  .booking-preview { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* Keep the calendar usable when a desktop dialog is resized onto a phone. */
@media(max-width:600px){
 .booking-dialog-header h2{font-size:18px;line-height:1.3}
 .booking-dialog-header p{font-size:14px}
 .booking-value{display:none}
 .booking-calendar-tools{font-size:13px;line-height:1.4;padding:10px 14px}
 .booking-calendar-tools a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 .booking-calendar{min-height:200px}
}
