/* Buddy Public Booking · FULL design - Wizard chrome.
 * The frame shown on EVERY step: shell, left progress rail, main column,
 * mobile progress bar, loading overlay, footer navigation + buttons, and a
 * couple of shared text utilities. Not specific to any one form. */

.bb-wrap { width: 100%; max-width: 1248px; margin: 24px auto; }
.bb-wrap.bb-is-constrained { max-width: var(--bb-wrap-max-width, 1248px); }
.bb-wrap.bb-is-fluid { max-width: none; }
/* Remove the host section's padding only where it contains this wizard. */
.one-column-section .section-inner-wrp .content-section:has(.bb-wrap) { padding: 0; }
.bb-shell {
  display: flex;
  gap: 0;
  width: 100%;
  margin: 0;
  min-height: 528px;
  background: #fff;
  border: 1px solid var(--bb-gray-300);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(25, 42, 70, 0.05);
}

/* Progress rail - cream step dots with a connector line, dark-brown "done"
 * checks and a peach ring on the active step (Buddy app look). */
.bb-rail {
  display: flex;
  flex: 0 0 264px;
  flex-direction: column;
  background: var(--bb-rail-bg);
  border-right: 1px solid var(--bb-gray-300);
  padding: 24px 20px;
}
.bb-rail-ref { display: flex; flex-direction: column; gap: 2px; padding: 0 0 16px; border-bottom: 1px solid var(--bb-gray-300); font-size: 12px; color: var(--bb-gray-800); }
.bb-rail-ref-number { display: flex; align-items: center; gap: 4px; }
.bb-wrap .bb-rail-ref-value { color: var(--bb-text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; font-size: 14px; font-weight: 600; line-height: 20px; font-variant-numeric: tabular-nums; }
.bb-rail-copy { display: inline-grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--bb-muted-label); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.bb-rail-copy:hover { background: var(--bb-fade-100); color: var(--bb-text); }
.bb-rail-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.bb-rail-copy.is-copied { color: #0f766e; }
.bb-rail-copy.is-copied svg { display: none; }
.bb-rail-copy.is-copied::after { content: "✓"; font-size: 16px; font-weight: 700; line-height: 1; }
.bb-rail-heading { margin: 16px 0 9px; font-size: 13px; font-weight: 600; color: var(--bb-gray-800); }
.bb-rail-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e7eaf2; }
.bb-rail-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bb-purple); transition: width .2s ease; }
.bb-rail-progress-label { margin: 8px 0 11px; font-size: 12px; color: var(--bb-gray-800); }
.bb-rail-steps { list-style: none; margin: 0; padding: 0; }
.bb-rail-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--bb-muted-label);
  font-size: 15px;
}
/* Vertical connector from each dot down to the next. */
.bb-rail-step .bb-rail-dot {
  position: relative;
  width: 24px; height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--bb-gray-400);
  color: var(--bb-muted-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
/* Steps the visitor can open show a pointer; the rest keep the default cursor. */
.bb-rail-step.is-clickable { cursor: pointer; }
.bb-rail-step.is-active { color: var(--bb-text); font-weight: 600; background: #fff; box-shadow: 0 1px 3px rgba(25,42,70,.05); }
.bb-rail-step.is-active .bb-rail-dot { background: #fff; border: 2px solid var(--bb-purple); color: var(--bb-purple); }
.bb-rail-step.is-active .bb-rail-dot::after {
  content: none;
}
.bb-rail-step.is-done { color: var(--bb-text); }
.bb-rail-step.is-done .bb-rail-dot { background: var(--bb-purple); border-color: var(--bb-purple); }
.bb-rail-step.is-done .bb-rail-dot::after {
  content: "";
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
}
.bb-wrap .bb-rail-help { display: block; margin-top: auto; padding-top: 20px; color: var(--bb-muted-label) !important; font-size: 12px; text-decoration: none; }
.bb-rail-help { display: inline-flex !important; align-items: center; gap: 7px; }
.bb-rail-help svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Main column */
.bb-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px 24px 16px;
  min-width: 0;
}
/* Booking-number pill - sits above the card, aligned to the right. */
.bb-ref { display: none !important; }
.bb-content { flex: 1; overflow-y: auto; }
.bb-content > div { margin: 0 auto; }
.bb-step-title { font-size: 25px; line-height: 1.24; font-weight: 700; margin: 0 0 5px; }
.bb-step-subtitle { font-size: 14px; color: var(--bb-gray-800); margin: 0; }
.bb-v5-header { margin: 0 0 24px; }
.bb-inclusion-heading { margin-bottom: 4px; }
.bb-inclusion-progress { color: var(--bb-purple-dark); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }

/* Mobile progress */
.bb-mobile-progress { display: none; margin-bottom: 14px; }
.bb-mobile-step-label { font-size: 13px; color: var(--bb-brown); font-weight: 600; }
.bb-mobile-bar { height: 6px; background: var(--bb-cream); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.bb-mobile-bar-fill { display: block; height: 100%; background: var(--bb-brown); width: 0; transition: width 0.25s ease; }

/* Loader */
.bb-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,0.75);
  z-index: 5;
  color: var(--bb-brown);
}
.bb-spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--bb-cream);
  border-top-color: var(--bb-brown);
  border-radius: 50%;
  animation: bb-spin 0.8s linear infinite;
}
@keyframes bb-spin { to { transform: rotate(360deg); } }

/* Footer nav */
.bb-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 22px;
  border-top: 1px solid var(--bb-gray-300);
}
.bb-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.bb-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.bb-btn-primary { background: var(--bb-brown); color: #fff; box-shadow: 0 1px 2px rgba(36,72,187,.2); }
.bb-btn-primary:hover:not(:disabled) { background: var(--bb-brown-dark); }
.bb-btn-ghost { background: #fff; color: var(--bb-text); border-color: var(--bb-gray-400); }
.bb-btn-ghost:hover:not(:disabled) { background: var(--bb-fade); }
.bb-btn-danger { background: var(--bb-danger); color: #fff; }
.bb-btn-danger:hover:not(:disabled) { background: #c13a4c; }
.bb-btn-optional { background: var(--bb-lilac-100); color: var(--bb-purple-dark); border-color: var(--bb-lilac); }
.bb-btn-optional:hover:not(:disabled) { background: var(--bb-purple-100); }
.bb-btn-sm { padding: 7px 14px; font-size: 13px; }
.bb-btn-block { width: 100%; }
.bb-btn:focus-visible, .bb-qty-btn:focus-visible, .bb-cal-nav:focus-visible, .bb-timeslot:focus-visible { outline: 3px solid rgba(47, 91, 234, .3); outline-offset: 2px; }

/* Shared text utilities (used across several steps) */
.bb-note { font-size: 13px; color: var(--bb-gray-800); margin-top: 14px; }
.bb-divider { display: flex; align-items: center; gap: 12px; color: var(--bb-gray-800); margin: 22px 0; }
.bb-divider::before, .bb-divider::after { content: ""; flex: 1; height: 1px; background: var(--bb-gray-300); }

/* Compact desktop/tablet: free the rail width for the booking content while
   retaining desktop component layouts. The progress bar is display-only; all
   booking state and navigation continue to use the same wizard engine. */
@media (min-width: 861px) and (max-width: 1200px) {
  .bb-rail { display: none; }
  .bb-mobile-progress { display: block; }
}

/* Mobile: collapse the rail and allow component-specific stacking rules. */
@media (max-width: 860px) {
  .bb-rail { display: none; }
  .bb-mobile-progress { display: block; }
  .bb-shell { min-height: 0; border-radius: 12px; }
  .bb-main { padding: 24px 20px; }
}
