:root {
  --primary-color: #2563EB;
  --bw-bg: #F8FAFC;
  --bw-surface: #FFFFFF;
  --bw-border: #E2E8F0;
  --bw-text: #0F172A;
  --bw-text-muted: #475569;
  --bw-text-faint: #94A3B8;
  --bw-radius-sm: 8px;
  --bw-radius-md: 12px;
  --bw-radius-lg: 16px;
  --bw-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --bw-tint: color-mix(in srgb, var(--primary-color) 10%, white);
  --bw-ease: 150ms ease;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  color: var(--bw-text);
  background: var(--bw-bg);
  -webkit-font-smoothing: antialiased;
}

/* Fills whatever space it's given - full-bleed on its own full-screen
   page, a comfortable column when embedded in a sidebar - rather than
   capping itself to one fixed width regardless of context. */
#booking-widget-root {
  max-width: clamp(320px, 94vw, 1400px);
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}
#booking-widget-root.layout-compact { max-width: 420px; }

/* Every font-size in this file is in em, scaled off a root size set via
   a container query - an embed in a narrow column gets the small end of
   the scale even on a huge monitor, and vice versa on a phone showing it
   full-width. This has to live on root's own children, not on root
   itself: root is the container being queried, and an element can't
   query the container it defines for its own font-size (that's circular
   - the container's content-independent width is established before
   anything inside it can be sized off that width, so root querying
   itself just breaks sizing instead of resolving to a sensible value). */
#booking-widget-root > .bw-header,
#booking-widget-root > .bw-intro,
#booking-widget-root > #bw-step-content,
#booking-widget-root > .bw-powered-by {
  font-size: clamp(14px, 11px + 1.1cqi, 21px);
}

.bw-header { display: flex; align-items: center; margin-bottom: 4px; }
.bw-header:empty { display: none; margin: 0; }
/* height (which actually scales the image), not max-height (which only
   ever shrinks one that's already bigger - an SVG logo with its own
   width/height attributes, like the demo's, never grows past its
   intrinsic size under max-height alone). em, not px, so it scales with
   the same container-driven font-size as everything else (see
   #booking-widget-root > .bw-header above) - fixed at 40px regardless of
   screen size is exactly why it stayed small while the rest of the
   widget grew. */
.bw-logo { height: 2.8em; width: auto; display: block; }
.bw-intro { color: var(--bw-text-muted); font-size: 1.033em; line-height: 1.5; margin: 0 0 16px; }
.bw-powered-by {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  text-align: center; margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--bw-border); color: var(--bw-text-faint);
  font-size: 0.767em; text-decoration: none;
}
.bw-powered-by:hover { color: var(--bw-text-muted); }
.bw-powered-by-mark { flex-shrink: 0; opacity: 0.85; }
.bw-hint { color: var(--bw-text-faint); font-size: 0.9em; margin: 0 0 14px; }

/* Also the way back to adjust a date/time pick once you've moved past
   it (see the 'details' step summary card) - a real pill button like
   the rest of the widget's nav controls (view toggle, week nav, agenda
   slots), not a plain text link, so it reads as clickable. */
.bw-details-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bw-back-link, .bw-cancel-request-btn {
  background: var(--bw-surface); border: 1px solid var(--bw-border); display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.9em; font-weight: 700; color: var(--bw-text-muted); cursor: pointer;
  transition: color var(--bw-ease), background var(--bw-ease), border-color var(--bw-ease);
}
.bw-back-link:hover { color: var(--primary-color); border-color: var(--primary-color); background: var(--bw-tint); }
.bw-cancel-request-btn:hover { color: #B91C1C; border-color: #B91C1C; background: color-mix(in srgb, #B91C1C 8%, transparent); }

/* Step 1: resource tile grid */
.bw-resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.bw-resource-tile {
  text-align: left; background: var(--bw-surface); border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg); padding: 24px; cursor: pointer;
  display: flex; flex-direction: column; gap: 9px; box-shadow: var(--bw-shadow-sm);
  transition: border-color var(--bw-ease), box-shadow var(--bw-ease), transform 100ms ease;
}
.bw-resource-tile:hover { border-color: var(--primary-color); box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--primary-color) 35%, transparent); }
.bw-resource-tile:active { transform: scale(0.98); }
.bw-resource-photo {
  margin: -24px -24px 2px -24px; height: 130px; background-size: cover; background-position: center;
  border-radius: var(--bw-radius-lg) var(--bw-radius-lg) 0 0; background-color: var(--bw-tint);
}
.bw-resource-name { font-size: 1.3em; font-weight: 800; color: var(--bw-text); letter-spacing: -0.01em; }
.bw-resource-badge {
  display: inline-block; align-self: flex-start; font-size: 0.767em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--primary-color); background: var(--bw-tint); padding: 3px 9px; border-radius: 999px;
}
.bw-resource-desc { font-size: 0.967em; color: var(--bw-text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bw-resource-capacity { font-size: 0.9em; color: var(--bw-text-faint); font-weight: 600; }
.bw-resource-price { font-size: 1.033em; font-weight: 700; color: var(--primary-color); margin-top: auto; padding-top: 4px; }

/* Resource header shown above the datetime step */
.bw-resource-header { margin-bottom: 14px; }
.bw-resource-banner {
  width: 100%; height: 140px; background-size: cover; background-position: center;
  border-radius: var(--bw-radius-md); margin-bottom: 10px; background-color: var(--bw-tint);
}
.bw-resource-title { font-size: 1.267em; font-weight: 800; margin: 0 0 2px; letter-spacing: -0.01em; }
.bw-resource-header .bw-resource-desc { font-size: 0.967em; margin: 0; -webkit-line-clamp: 2; }
.bw-resource-header .bw-resource-capacity { font-size: 0.9em; margin: 4px 0 0; }

.bw-field { display: block; margin-bottom: 14px; }
.bw-field span {
  display: block; margin-bottom: 6px; font-size: 0.833em; font-weight: 700;
  color: var(--bw-text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.bw-field input, .bw-field select, .bw-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm); font: inherit; background: var(--bw-surface); color: var(--bw-text);
  transition: border-color var(--bw-ease), box-shadow var(--bw-ease);
}
.bw-field input:hover, .bw-field select:hover, .bw-field textarea:hover { border-color: #CBD5E1; }
.bw-field input:focus, .bw-field select:focus, .bw-field textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary-color); width: auto; }

/* Side-by-side layout: month calendar | day panel (timeline etc) - stacks
   on narrow embeds/phones rather than squeezing both into one column.
   Both panels are cards floating on the page's light background. */
.bw-calendar-layout { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.bw-month {
  flex: 0 0 270px; background: var(--bw-surface); border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg); padding: 16px; box-shadow: var(--bw-shadow-sm);
}
.bw-day-panel {
  flex: 1 1 280px; min-width: 0; background: var(--bw-surface); border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg); padding: 16px; box-shadow: var(--bw-shadow-sm);
}

/* Month calendar */
.bw-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bw-month-nav button {
  background: var(--bw-bg); border: 1px solid var(--bw-border); border-radius: 999px; width: 30px; height: 30px;
  font-size: 1em; line-height: 1; cursor: pointer; color: var(--bw-text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease), transform 100ms ease;
}
.bw-month-nav button:not(:disabled):hover { background: var(--bw-tint); border-color: var(--primary-color); color: var(--primary-color); }
.bw-month-nav button:not(:disabled):active { transform: scale(0.92); }
.bw-month-nav button:disabled { opacity: 0.35; cursor: default; }
.bw-month-label { font-size: 1em; font-weight: 700; }
.bw-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bw-month-weekday {
  font-size: 0.767em; font-weight: 700; color: var(--bw-text-faint); text-align: center;
  padding: 4px 0; text-transform: uppercase; letter-spacing: 0.03em;
}
.bw-month-day {
  aspect-ratio: 1; border: none; border-radius: 999px; background: none; cursor: pointer;
  font-size: 0.933em; font-weight: 500; color: var(--bw-text);
  transition: background var(--bw-ease), color var(--bw-ease), box-shadow var(--bw-ease), transform 100ms ease;
}
.bw-month-day.other-month { visibility: hidden; }
.bw-month-day.disabled { color: #CBD5E1; cursor: default; }
.bw-month-day.today { font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--primary-color); }
.bw-month-day.in-week:not(.selected) { background: var(--bw-tint); }
.bw-month-day.selected {
  background: var(--primary-color); color: #fff;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary-color) 55%, transparent);
}
.bw-month-day:not(.disabled):not(.selected):hover { background: #F1F5F9; }
.bw-month-day:not(.disabled):active { transform: scale(0.9); }

/* Panel heading + Day/Week toggle + week nav */
.bw-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bw-selected-day-heading { font-size: 1.1em; font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.bw-view-toggle { display: inline-flex; background: var(--bw-bg); border: 1px solid var(--bw-border); border-radius: 999px; padding: 2px; gap: 2px; }
.bw-view-toggle button {
  background: transparent; border: none; padding: 7px 15px; font-size: 0.9em; font-weight: 700;
  cursor: pointer; color: var(--bw-text-muted); border-radius: 999px;
  transition: background var(--bw-ease), color var(--bw-ease), box-shadow var(--bw-ease);
}
.bw-view-toggle button.active { background: var(--bw-surface); color: var(--primary-color); box-shadow: var(--bw-shadow-sm); }
.bw-view-toggle button:not(.active):hover { color: var(--bw-text); }

.bw-week-nav { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bw-week-nav button {
  background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: 999px; padding: 6px 13px;
  font-size: 0.867em; font-weight: 600; cursor: pointer; color: var(--bw-text);
  transition: background var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease);
}
.bw-week-nav button:not(:disabled):hover { background: var(--bw-tint); border-color: var(--primary-color); color: var(--primary-color); }
.bw-week-nav button:disabled { opacity: 0.35; cursor: default; }

.bw-calendar-status { font-size: 0.933em; color: var(--bw-text-muted); min-height: 16px; margin-bottom: 4px; }
.bw-calendar-status.bw-loading { animation: bwPulse 1.1s ease-in-out infinite; }

/* Day/week timeline - 1 or 7 columns sharing one hour-label gutter. Only
   border/background/radius are touched on .bw-timeline itself - no
   padding - since widget.js measures click/drag positions directly off
   its getBoundingClientRect(). */
/* Capped and internally scrollable rather than letting the grid's full
   open-hours height push the rest of the page off-screen - the same
   pattern any calendar app uses (Google Calendar's day/week view never
   grows the page either). minuteFromEvent() reads getBoundingClientRect()
   live, so drag-select keeps working correctly while this scrolls. */
.bw-timeline-wrap { display: flex; gap: 8px; max-height: 480px; overflow-y: auto; }
.bw-timeline-labels { position: relative; flex: 0 0 42px; font-size: 0.767em; font-weight: 600; color: var(--bw-text-faint); }
.bw-hour-label { position: absolute; transform: translateY(-50%); right: 6px; }
.bw-timeline-columns { display: flex; gap: 6px; flex: 1; min-width: 0; }
.bw-timeline-col { flex: 1; min-width: 0; animation: bwFadeIn 200ms ease; }
.bw-col-header { font-size: 0.8em; font-weight: 700; text-align: center; color: var(--bw-text-muted); margin-bottom: 4px; }
.bw-timeline {
  position: relative; background: var(--bw-bg); border: 1px solid var(--bw-border); border-radius: 12px;
  overflow: hidden; touch-action: none; user-select: none;
}
.bw-hour-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #E2E8F0; }
.bw-busy-block {
  position: absolute; left: 3px; right: 3px; border-radius: 8px; border-left: 3px solid #94A3B8;
  background: color-mix(in srgb, #64748B 12%, transparent); color: #475569;
  font-size: 0.733em; font-weight: 600; padding: 4px 6px; box-sizing: border-box; overflow: hidden;
  animation: bwFadeIn 200ms ease;
}
/* Amber, not alarm-red - a busy slot just means "pick another time", not
   an error, so it shouldn't read like one. */
.bw-reason-busy { background: color-mix(in srgb, #F59E0B 15%, transparent); border-left-color: #FBBF24; color: #92400E; }
.bw-reason-blackout { background: color-mix(in srgb, #0F172A 8%, transparent); border-left-color: #64748B; color: #334155; }
.bw-reason-closed { background: color-mix(in srgb, #0F172A 5%, transparent); border-left-color: #CBD5E1; color: #64748B; }
.bw-reason-too_far { opacity: 0.55; }
.bw-selection-block {
  position: absolute; left: 3px; right: 3px; border-radius: 8px;
  background: color-mix(in srgb, var(--primary-color) 16%, white); border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px -2px color-mix(in srgb, var(--primary-color) 50%, transparent);
  pointer-events: none; animation: bwFadeIn 120ms ease;
}
.bw-hit-layer { position: absolute; inset: 0; cursor: crosshair; }

/* Agenda layout (opt-in per resource): a plain list of time slots for
   the selected day and the day after, instead of the drag timeline. */
.bw-agenda-duration {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--bw-border);
}
.bw-agenda-duration span { font-size: 0.933em; font-weight: 700; color: var(--bw-text-muted); }
.bw-agenda-duration select {
  padding: 7px 10px; border: 1px solid var(--bw-border); border-radius: var(--bw-radius-sm);
  font: inherit; font-size: 0.933em; background: var(--bw-surface); color: var(--bw-text); cursor: pointer;
}
.bw-agenda-day + .bw-agenda-day { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--bw-border); }
.bw-agenda-day-heading { font-size: 1.067em; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.bw-agenda-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-agenda-slot {
  background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: 999px;
  padding: 9px 17px; font-size: 0.933em; font-weight: 600; color: var(--bw-text); cursor: pointer;
  transition: background var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease), transform 100ms ease;
}
.bw-agenda-slot:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--bw-tint); }
.bw-agenda-slot:active { transform: scale(0.95); }
.bw-agenda-empty { color: var(--bw-text-faint); font-size: 0.933em; font-style: italic; margin: 0; }

/* Now lives under the month calendar (not under the full-width grid) -
   a friendlier, plain-English "you picked this" recap rather than one
   dense line, sized to fit the month panel's narrower column. */
.bw-selection-label:not(:empty) {
  margin: 14px 0 0; padding: 12px 14px; background: var(--bw-tint); border-radius: var(--bw-radius-md);
}
.bw-selection-title { font-size: 0.9em; font-weight: 700; color: var(--bw-text); margin: 0 0 8px; }
.bw-selection-duration { font-weight: 600; color: var(--bw-text-muted); }
.bw-selection-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 0.867em; margin-top: 4px;
}
.bw-selection-row span { color: var(--bw-text-muted); font-weight: 600; flex-shrink: 0; }
.bw-selection-row strong { color: var(--bw-text); text-align: right; }

.bw-continue-area:not(:empty) { margin-top: 12px; }
.bw-continue-btn {
  background: var(--primary-color); color: #fff; border: none; border-radius: 10px; width: 100%;
  padding: 13px 20px; font-weight: 700; font-size: 1em; cursor: pointer;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary-color) 50%, transparent);
  transition: filter var(--bw-ease), transform 100ms ease, box-shadow var(--bw-ease);
  animation: bwFadeIn 150ms ease;
}
.bw-continue-btn:hover { filter: brightness(1.08); }
.bw-continue-btn:active { transform: scale(0.98); filter: brightness(0.96); }

/* Form on the left (the thing you're actually here to do), its summary
   - what/when, editable, plus price - as a sidebar on the right, same
   side-by-side-that-wraps pattern as the month calendar/day panel above. */
.bw-details-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.bw-details-layout .bw-form { flex: 1 1 320px; margin-top: 0; }
.bw-details-summary { flex: 1 0 280px; min-width: 0; }

.bw-summary-card {
  display: flex; flex-direction: column; gap: 2px; background: var(--bw-tint);
  border-radius: var(--bw-radius-md); padding: 14px 16px; margin-bottom: 16px;
}
.bw-summary-card strong { font-size: 1.1em; color: var(--bw-text); }
.bw-summary-card span { font-size: 0.933em; color: var(--bw-text-muted); }

/* Editable start/end date+time right on the details step - a mistake
   here (wrong day, meant to pick an hour later) shouldn't mean a trip
   all the way back to the calendar. */
.bw-datetime-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.bw-dt-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; min-width: 0; }
.bw-dt-field span {
  font-size: 0.767em; font-weight: 700; color: var(--bw-text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.bw-dt-field input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm); font: inherit; font-size: 0.9em; background: var(--bw-surface); color: var(--bw-text);
}
.bw-dt-field input:focus { border-color: var(--primary-color); outline: 2px solid color-mix(in srgb, var(--primary-color) 25%, transparent); outline-offset: 1px; }
.bw-datetime-error { font-size: 0.867em; font-weight: 600; color: #B91C1C; margin: 8px 0 0; min-height: 0; }
.bw-datetime-error:empty { display: none; }
/* Replaces .bw-datetime-edit once a booking's actually been submitted -
   see onSubmit - so what's locked in reads as plain fact, not a form. */
.bw-locked-datetime { font-size: 0.933em; color: var(--bw-text-muted); margin: 10px 0 0; }

.bw-again-btn {
  background: var(--bw-surface); color: var(--primary-color); border: 1px solid var(--primary-color);
  border-radius: 10px; width: 100%; padding: 12px 20px; font-weight: 700; font-size: 1em; cursor: pointer;
  margin-top: 10px; transition: background var(--bw-ease);
}
.bw-again-btn:hover { background: var(--bw-tint); }

.bw-price-note {
  color: #92400E; font-size: 0.9em; font-weight: 600; margin: 0 0 16px; min-height: 0;
}
.bw-price-note:empty { display: none; }
.bw-price-note:not(:empty) { display: inline-block; padding: 7px 14px; background: #FEF3C7; border-radius: 999px; }
.bw-refund-link { color: #92400E; text-decoration: underline; font-weight: 700; margin-left: 4px; }

.bw-radio-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bw-radio-option { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.933em; color: var(--bw-text); }

.bw-form {
  background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-lg);
  padding: 18px; box-shadow: var(--bw-shadow-sm); margin-top: 4px; animation: bwFadeIn 220ms ease;
}
.bw-form button {
  background: var(--primary-color); color: #fff; border: none; border-radius: 10px; width: 100%;
  padding: 13px 20px; font-weight: 700; font-size: 1em; cursor: pointer;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary-color) 50%, transparent);
  transition: filter var(--bw-ease), transform 100ms ease, box-shadow var(--bw-ease);
}
.bw-form button:hover { filter: brightness(1.08); box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--primary-color) 60%, transparent); }
.bw-form button:active { transform: scale(0.98); filter: brightness(0.96); }
.bw-form button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: none; }

.bw-terms-box {
  max-height: 140px; overflow-y: auto; font-size: 0.9em; line-height: 1.5; color: var(--bw-text-muted);
  background: var(--bw-bg); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-sm);
  padding: 10px 12px; margin-bottom: 10px; white-space: pre-wrap;
}
.bw-terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.933em; color: var(--bw-text); margin-bottom: 14px; cursor: pointer; }
.bw-terms-check input { margin-top: 2px; width: auto; }

/* Lives inside .bw-details-layout as a flex sibling of #bw-form/aside
   (see detailsStepHtml) - empty and display:none before submission, so
   it claims no space while the form is still showing; once a booking
   succeeds, onSubmit hides #bw-form, and this - sized the same as the
   form was - takes its place in the row, left of the now-locked-down
   summary on the right. */
#bw-status:empty { display: none; }
#bw-status {
  flex: 1 1 320px; margin: 0;
  font-size: 0.967em; color: var(--bw-text-muted); line-height: 1.5;
  transition: all var(--bw-ease);
}
#bw-status:not(:empty) { padding: 12px 14px; border-radius: var(--bw-radius-sm); background: var(--bw-bg); border: 1px solid var(--bw-border); }
#bw-status.success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
#bw-status.error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.bw-cancel-link { color: #065F46; text-decoration: underline; font-size: 0.9em; }

#bw-status.bw-status-confirmed {
  text-align: center; padding: 28px 20px; animation: bwFadeIn 260ms ease;
}
.bw-confirm-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #16A34A; color: #fff;
  display: flex; align-items: center; justify-content: center; animation: bwPopIn 320ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes bwPopIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bw-confirm-text { font-size: 1.067em; font-weight: 600; margin: 0 0 14px; }

/* Smaller inline version of .bw-confirm-icon for the bank-transfer case,
   which still has left-aligned instructions below it (the account
   details/reference), so it can't use the full centred .bw-status-
   confirmed treatment the same way the other two outcomes do. */
.bw-status-pending-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bw-status-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #16A34A; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.bw-confirm-links { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.bw-ics-link, #bw-status.bw-status-confirmed .bw-cancel-link {
  font-size: 0.9em; font-weight: 700; text-decoration: none; padding: 8px 15px; border-radius: var(--bw-radius-sm);
}
.bw-ics-link { background: #065F46; color: #fff; }
.bw-ics-link:hover { filter: brightness(1.1); }
#bw-status.bw-status-confirmed .bw-cancel-link { background: none; border: 1px solid #A7F3D0; color: #065F46; text-decoration: none; }

@keyframes bwFadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bwPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* body's own padding can only ever respond to the viewport (it's an
   ancestor of #booking-widget-root, not a descendant, so it has no
   container of its own to query) - everything below it that actually
   lives inside the widget responds to the widget's own rendered width
   instead, via @container, so an embed squeezed into a narrow column
   gets this treatment even on a huge monitor, not just on a phone. */
@media (max-width: 640px) {
  body { padding: 12px; }
}

/* 7 week-view columns squeezed into a narrow width get too cramped to
   tap or drag accurately, so below this width they switch from "shrink
   to fit" to "scroll horizontally", each column keeping a real,
   touch-friendly minimum width instead. */
@container (max-width: 640px) {
  .bw-month, .bw-day-panel { padding: 14px; flex-basis: 100%; }
  .bw-resource-tile { padding: 14px; }
  .bw-timeline-wrap { max-height: 360px; }
  .bw-timeline-columns { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .bw-timeline-columns:not(.bw-single-col) .bw-timeline-col { flex: 0 0 92px; }
  .bw-panel-top { gap: 8px; }
  .bw-month-nav button, .bw-week-nav button { min-height: 36px; }
  .bw-view-toggle button { padding: 8px 14px; }
}

@container (max-width: 420px) {
  .bw-month-day { font-size: 0.8em; }
}
