/* Tokens lifted from the Figma export (booking-figma-css-copy.css) */
:root {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: #101010; --navy: #0F1828; --text-2: #344153; --muted: #697281; --muted-2: #9AA3B0;
  --border: #D0D5DC; --border-2: #E5E7EB; --soft: #F3F4F6; --faint: #F9FAFB; --white: #FFFFFF;
  --danger: #B42318; --danger-bg: #FEF3F2; --ok: #067647; --ok-bg: #ECFDF3;
  --r: 8px; --r-sm: 6px; --r-xs: 4px; --cell: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { font-family: var(--font); color: var(--text); font-size: 14px; line-height: 20px; font-weight: 500; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bw { max-width: 986px; margin: 0 auto; background: var(--white); border: 1px solid var(--border-2); border-radius: var(--r); overflow: hidden; }
.bw-body { display: flex; align-items: stretch; min-height: 412px; }
.bw-left { width: 280px; flex: none; padding: 20px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--border-2); }
.bw-left .bw-field { padding-top: 4px; }
.bw-cal { flex: 1 1 auto; padding: 20px; min-width: 0; }
.bw-right { width: 300px; flex: none; padding: 20px; border-left: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 12px; }
.bw-main { flex: 1 1 auto; padding: 20px 24px; min-width: 0; }

/* left panel */
.bw-field { display: flex; flex-direction: column; gap: 4px; }
.bw-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.bw-select, .bw-input, .bw-textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); padding: 8px 12px; font-size: 14px; line-height: 20px; }
.bw-select:focus, .bw-input:focus, .bw-textarea:focus, .bw-check input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.bw-input[aria-invalid="true"], .bw-select[aria-invalid="true"] { border-color: var(--danger); }
.bw-textarea { min-height: 80px; resize: vertical; }
/* custom dropdown (native <select> panels cannot be styled) */
.bw-dd { position: relative; }
.bw-dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); padding: 8px 12px; font-size: 14px; line-height: 20px; text-align: left; color: var(--text); }
.bw-dd-btn svg { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .15s; }
.bw-dd.open .bw-dd-btn { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(15,24,40,.12); }
.bw-dd.open .bw-dd-btn svg { transform: rotate(180deg); }
.bw-dd-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.bw-dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-dd-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--white); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: 0 8px 24px rgba(16,24,40,.12); max-height: 260px; overflow: auto; }
.bw-dd-menu.up { top: auto; bottom: calc(100% + 4px); box-shadow: 0 -8px 24px rgba(16,24,40,.12); }
.bw-dd-menu li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; color: var(--text); }
.bw-dd-menu li:hover, .bw-dd-menu li:focus { background: var(--soft); outline: none; }
.bw-dd-menu li.sel { font-weight: 600; }
.bw-dd-menu li svg { width: 16px; height: 16px; color: var(--navy); flex: none; }
.bw-req { color: var(--danger); margin-left: 3px; font-weight: 700; }
.bw-reqnote { font-size: 13px; color: var(--danger); background: var(--danger-bg); border-radius: var(--r-sm); padding: 8px 12px; }
.bw-hintline { font-size: 12px; color: var(--muted); }
.bw-seg { display: inline-flex; background: var(--soft); border-radius: var(--r-sm); padding: 2px; }
.bw-seg button { border: 0; background: transparent; border-radius: var(--r-xs); padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bw-seg button.on { background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.bw-seg.wide { display: flex; width: 100%; }
.bw-seg.wide button { flex: 1 1 0; padding: 6px 12px; font-size: 14px; }
.bw-head { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.bw-doc { font-size: 14px; color: var(--muted); }
.bw-title { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--text); margin: 0; }
.bw-desc { font-size: 14px; color: var(--text-2); margin: 0; }
.bw-info { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.bw-row { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.bw-row svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.bw-row.dim { color: var(--muted-2); }

/* calendar */
.bw-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bw-month h2 { margin: 0; font-size: 16px; line-height: 20px; font-weight: 700; }
.bw-month h2 span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.bw-nav { display: inline-flex; gap: 4px; }
.bw-nav button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: var(--r-sm); display: inline-grid; place-items: center; color: var(--text-2); }
.bw-nav button:hover:not(:disabled) { background: var(--soft); }
.bw-nav button:disabled { color: var(--border); cursor: default; }
.bw-nav svg { width: 16px; height: 16px; }
.bw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, var(--cell))); gap: 4px; justify-content: center; }
.bw-dow { height: 36px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); }
.bw-dow.we { color: var(--muted-2); }
.bw-day { position: relative; aspect-ratio: 1; height: auto; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted-2); font-size: 14px; font-weight: 500; display: grid; place-items: center; }
.bw-day.on { background: var(--soft); color: var(--text); }
.bw-day.on:hover { background: #E7E9ED; }
.bw-day.sel, .bw-day.sel:hover { background: var(--navy); color: var(--white); }
.bw-day:disabled { cursor: default; }
.bw-day .dot { position: absolute; bottom: 8px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bw-cal.busy .bw-grid { opacity: .55; }
.bw-cal.gated .bw-grid { opacity: .35; }
.bw-hint { color: var(--muted); font-size: 12px; margin-top: 12px; min-height: 16px; }

/* slots */
.bw-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bw-slot-head h3 { margin: 0; font-size: 16px; font-weight: 400; color: var(--text-2); }
.bw-slot-head h3 b { font-weight: 700; color: var(--text); }
.bw-slots { display: grid; grid-auto-rows: 40px; gap: 8px; max-height: 372px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.bw-slot { height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); font-weight: 500; }
.bw-slot:hover { border-color: var(--muted-2); }
.bw-slot.sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bw-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.bw-right .bw-spacer { flex: 1 1 auto; }

/* buttons */
.bw-btn { height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bw-btn.primary { background: var(--navy); color: var(--white); }
.bw-btn.primary:hover:not(:disabled) { background: #1c2740; }
.bw-btn.primary:disabled { background: var(--border); color: var(--white); cursor: default; }
.bw-btn.ghost { background: var(--white); color: var(--text-2); border-color: var(--border); }
.bw-btn.block { width: 100%; }
.bw-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.bw-actions-btns { display: flex; gap: 12px; margin-left: auto; }

/* form */
.bw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.bw-form .full { grid-column: 1 / -1; }
.bw-h { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.bw-err { color: var(--danger); font-size: 12px; }
.bw-check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.bw-check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.bw-banner { padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; margin-bottom: 16px; }
.bw-banner.danger { background: var(--danger-bg); color: var(--danger); }
.bw-banner.ok { background: var(--ok-bg); color: var(--ok); }
.bw-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

/* success */
.bw-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.bw-success .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.bw-success .ic svg { width: 24px; height: 24px; }
.bw-success h2 { margin: 0; font-size: 20px; font-weight: 700; }
.bw-success p { margin: 0; color: var(--text-2); max-width: 460px; }
.bw-summary { margin-top: 8px; text-align: left; display: inline-flex; flex-direction: column; gap: 8px; padding: 16px 20px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--faint); }
.bw-success .bw-summary, .bw-bring, .bw-note-info, .bw-policy { width: 100%; max-width: 460px; }
.bw-bring { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border: 1px solid var(--border-2); border-radius: var(--r); }
.bw-bring h3 { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--text); }
.bw-note-info { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 13px; color: var(--text-2); }
.bw-note-info svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.bw-policy { margin: 0; text-align: left; font-size: 12px; line-height: 18px; color: var(--text-2); background: var(--soft); border-radius: var(--r-sm); padding: 10px 14px; }
.bw-policy strong { font-weight: 700; color: var(--text); }
.bw-policy a { color: var(--text); font-weight: 700; text-decoration: none; }
.bw-dry { background: #FEF3F2; color: #B42318; font-size: 12px; font-weight: 700; text-align: center; padding: 8px 12px; border-bottom: 1px solid #FDA29B; }

.bw-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bw-rot .8s linear infinite; }
@keyframes bw-rot { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .bw-body { flex-direction: column; }
  .bw-left, .bw-right { width: auto; border: 0; border-bottom: 1px solid var(--border-2); }
  .bw-right { border-bottom: 0; }
  .bw-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bw-form { grid-template-columns: 1fr; }
  .bw-slots { max-height: none; }
}
