/* ============================================================
   BookSesh Booking Bridge — booking-bridge.css
   Scoped to .bksesh-bridge — zero impact on other tenants.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────────────────── */
.bksesh-bridge {
  --bkb-primary:        #0f40ff;
  --bkb-primary-rgb:    15,64,255;
  --bkb-primary-light:  rgba(15,64,255,0.08);
  --bkb-primary-glow:   rgba(15,64,255,0.22);
  --bkb-bg:             #f7f8fc;
  --bkb-card:           #ffffff;
  --bkb-border:         #e5e7eb;
  --bkb-text:           #111827;
  --bkb-muted:          #6b7280;
  --bkb-faint:          #9ca3af;
  --bkb-green:          #16a34a;
  --bkb-radius:         12px;
  --bkb-radius-lg:      16px;
  --bkb-shadow:         0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --bkb-shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --bkb-shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Root layout — strip fixed dimensions ──────────────────────────────── */
.bksesh-bridge.booknetic_appointment {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 780px !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: var(--bkb-radius-lg) !important;
  background: var(--bkb-card) !important;
  box-shadow: var(--bkb-shadow-lg) !important;
  display: block !important;
  overflow: visible !important;
  position: relative !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ── Suppress Booknetic's original chrome ──────────────────────────────── */

/* Sidebar: keep in DOM (Booknetic reads data from it) but invisible */
.bksesh-bridge .booknetic_appointment_steps {
  position: absolute !important;
  top: -9999px !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important;
  pointer-events: none !important;
}

/* Original header, footer, powered-by ribbon */
.bksesh-bridge .booknetic_appointment_container_header,
.bksesh-bridge .booknetic_appointment_container_footer,
.bksesh-bridge .booknetic_powered_by {
  display: none !important;
}

/* Original container: full width, no left padding for sidebar */
.bksesh-bridge .booknetic_appointment_container {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
}

/* Body area */
.bksesh-bridge .booknetic_appointment_container_body {
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Original cards/content: hide but keep DOM accessible for jQuery .trigger() */
.bksesh-bridge .bksesh-orig-hidden {
  position: absolute !important;
  top: -9999px !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; pointer-events: none !important;
}

/* ── Bridge Progress Header ─────────────────────────────────────────────── */
.bksesh-br-header {
  padding: 20px 24px 0;
  background: var(--bkb-card);
  border-radius: var(--bkb-radius-lg) var(--bkb-radius-lg) 0 0;
}

.bksesh-br-business-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f40ff; /* always BookSesh brand blue — independent of tenant colour */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.bksesh-br-step-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bkb-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.bksesh-br-step-track::-webkit-scrollbar { display: none; }

.bksesh-br-step-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bksesh-br-step-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bksesh-br-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.bksesh-br-step-label {
  font-size: 10px;
  font-weight: 400;
  color: #9ca3af;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.bksesh-br-step-connector {
  height: 2px;
  background: var(--bkb-border);
  flex: 1;
  min-width: 20px;
  max-width: 60px;
  margin: 0 6px;
  margin-bottom: 22px; /* align with dot centre */
  transition: background 0.2s;
}

/* Active step */
.bksesh-br-step-item.active .bksesh-br-step-dot {
  border-color: var(--bkb-primary);
  background: var(--bkb-primary);
  color: #fff;
}
.bksesh-br-step-item.active .bksesh-br-step-label { color: var(--bkb-primary); font-weight: 500; }

/* Completed step */
.bksesh-br-step-item.done .bksesh-br-step-dot {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.08);
  color: var(--bkb-primary);
}
.bksesh-br-step-item.done .bksesh-br-step-label { color: var(--bkb-primary); }
.bksesh-br-step-item.done + .bksesh-br-step-connector { background: var(--bkb-primary); }

/* ── Bridge Body ─────────────────────────────────────────────────────────── */
.bksesh-br-body {
  padding: 24px 24px 16px;
  background: var(--bkb-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 190px); /* constrain so footer never scrolls off */
}

/* Passthrough form content (About You / Confirm / Info) — scroll independently.
   Scoped to passthrough steps ONLY via the compact-body sibling selector.
   Must NOT apply to card steps (service/staff/location) where the custom
   duration popup is anchored inside booknetic_appointment_container_body. */
.bksesh-bridge .bksesh-br-body--compact ~ .booknetic_appointment_container_body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 190px);
}

/* Passthrough steps (info/confirm) — body only holds title, form is below */
.bksesh-br-body--compact {
  min-height: 0 !important;
  padding-bottom: 2px !important;
  background: var(--bkb-card) !important;
}

.bksesh-br-step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--bkb-text);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bksesh-br-step-sub {
  font-size: 13px;
  color: var(--bkb-muted);
  margin: 0 0 20px;
}

/* ── Card Grid (Location / Staff / Service) ─────────────────────────────── */
.bksesh-br-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bksesh-br-category-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bkb-primary);
  margin: 12px 0 4px;
}
.bksesh-br-category-label:first-child { margin-top: 0; }

/* ── Category accordion (Collapse Services under a Category = ON) ──────── */
.bksesh-br-cat-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bksesh-br-cat-section {
  border: 1.5px solid var(--bkb-border);
  border-radius: var(--bkb-radius);
  overflow: hidden;
  background: var(--bkb-card);
  box-shadow: var(--bkb-shadow);
}

.bksesh-br-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.bksesh-br-cat-header:hover { background: var(--bkb-primary-light); }

.bksesh-br-cat-header-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkb-text);
  transition: color 0.15s;
}
.bksesh-br-cat-header:hover .bksesh-br-cat-header-label,
.bksesh-br-cat-header.open  .bksesh-br-cat-header-label { color: var(--bkb-primary); }

.bksesh-br-cat-header-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--bkb-primary);
  background: var(--bkb-primary-light);
  border-radius: 20px;
  padding: 2px 9px;
  min-width: 22px;
  text-align: center;
}

.bksesh-br-cat-chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.bksesh-br-cat-chevron::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--bkb-muted);
  border-bottom: 2px solid var(--bkb-muted);
  transform: rotate(45deg);    /* ∨ closed */
  transition: transform 0.2s ease, top 0.2s ease;
}
.bksesh-br-cat-header.open .bksesh-br-cat-chevron::after {
  transform: rotate(-135deg); /* ∧ open */
  top: 4px;
}

.bksesh-br-cat-cards {
  border-top: 1px solid var(--bkb-border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.018);
}
.bksesh-br-cat-cards .bksesh-br-card { background: #fff; }

.bksesh-br-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--bkb-radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.bksesh-br-card:hover {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.02);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.06);
}

.bksesh-br-card.selected {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.04);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.08);
}

/* No tick — selection shown by border + glow only */
.bksesh-br-card.selected::after { display: none !important; }

.bksesh-br-card-thumb {
  width: 46px; height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
}
.bksesh-br-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.bksesh-br-card-thumb-icon {
  font-size: 22px;
  color: var(--bkb-faint);
}

.bksesh-br-card-body { flex: 1; min-width: 0; }

.bksesh-br-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--bkb-text);
  margin: 0 0 2px;
  line-height: 1.3;
}

.bksesh-br-card-meta {
  font-size: 12px;
  color: var(--bkb-muted);
  margin: 0;
  line-height: 1.4;
}

.bksesh-br-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--bkb-primary);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 8px;
}

/* Service duration pill */
.bksesh-br-card-duration {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--bkb-muted);
  background: #f3f4f6;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* ── Date / Time step (passthrough — CSS restyled) ──────────────────────── */

/* Wrapper */
.bksesh-bridge .booknetic_date_time_area {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 0 !important;
}

/* Calendar */
.bksesh-bridge #booknetic_calendar_area {
  border-radius: var(--bkb-radius) !important;
  border: 1.5px solid var(--bkb-border) !important;
  box-shadow: var(--bkb-shadow) !important;
  overflow: hidden !important;
  background: var(--bkb-card) !important;
}

.bksesh-bridge .booknetic_calendar_div {
  width: 100% !important; max-width: 420px !important;
}

.bksesh-bridge .booknetic_calendar_head > .booknetic_month_name {
  font-weight: 700 !important; font-size: 15px !important; color: var(--bkb-text) !important;
}

.bksesh-bridge .booknetic_next_month,
.bksesh-bridge .booknetic_prev_month {
  color: var(--bkb-primary) !important; font-weight: 800 !important; font-size: 20px !important;
}

.bksesh-bridge .booknetic_week_names > .booknetic_td {
  color: var(--bkb-faint) !important; font-size: 11px !important;
  font-weight: 700 !important; letter-spacing: 0.05em !important;
  border-bottom: 1px solid var(--bkb-border) !important;
}

.bksesh-bridge .booknetic_calendar_days > div {
  border-radius: 8px !important;
  background: #f9fafb !important;
  color: var(--bkb-text) !important;
  height: 38px !important; line-height: 38px !important;
  font-weight: 500 !important; font-size: 14px !important;
  transition: background 0.12s, color 0.12s !important;
}

.bksesh-bridge .booknetic_calendar_days:not(.booknetic_calendar_empty_day):not(.booknetic_calendar_selected_day) > div:hover {
  background: var(--bkb-primary-light) !important; color: var(--bkb-primary) !important;
}

.bksesh-bridge .booknetic_calendar_days.booknetic_calendar_selected_day > div {
  background: var(--bkb-primary) !important; color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px var(--bkb-primary-glow) !important;
}

.bksesh-bridge .booknetic_calendar_days.booknetic_calendar_empty_day > div {
  background: transparent !important; color: #d1d5db !important;
}

/* Time slots */
.bksesh-bridge .booknetic_times {
  width: 100% !important; max-width: 420px !important;
  height: auto !important; min-height: 0 !important;
  border-radius: var(--bkb-radius) !important;
  border: 1.5px solid var(--bkb-border) !important;
  box-shadow: var(--bkb-shadow) !important;
  overflow: hidden !important;
  padding-bottom: 10px !important;
}

.bksesh-bridge .booknetic_times_title {
  font-weight: 700 !important; color: var(--bkb-text) !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--bkb-border) !important;
  padding: 14px 12px !important;
}

.bksesh-bridge .booknetic_times_list {
  height: auto !important; max-height: 260px !important;
  overflow-y: auto !important; padding: 6px 8px !important;
}

.bksesh-bridge .booknetic_times_list > div {
  border-radius: 8px !important;
  background: #f9fafb !important;
  color: var(--bkb-text) !important;
  font-weight: 500 !important; font-size: 13px !important;
  box-shadow: none !important;
  height: 50px !important; line-height: 1 !important;
  width: calc(33.333% - 8px) !important; margin: 4px !important;
  float: left !important;
  transition: background 0.12s, color 0.12s !important;
}

.bksesh-bridge .booknetic_times_list > div:hover:not(.booknetic_selected_time) {
  background: var(--bkb-primary-light) !important; color: var(--bkb-primary) !important;
}

.bksesh-bridge .booknetic_times_list > div.booknetic_selected_time {
  background: var(--bkb-primary) !important; color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px var(--bkb-primary-glow) !important;
}

/* ── Information form (passthrough) ─────────────────────────────────────── */
.bksesh-bridge .bkntc-information-step-info-container label,
.bksesh-bridge .booknetic_appointment .form-row label {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #9ca3af !important;
}

.bksesh-bridge .booknetic_appointment .form-control {
  border-radius: 8px !important;
  border: 1.5px solid var(--bkb-border) !important;
  border-color: var(--bkb-border) !important;
  height: 48px !important; font-size: 14px !important;
  color: var(--bkb-text) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.bksesh-bridge .booknetic_appointment .form-control:focus {
  border-color: var(--bkb-primary) !important;
  box-shadow: none !important;
}

/* ── Confirm / Payment step (passthrough) ───────────────────────────────── */
.bksesh-bridge .booknetic_portlet {
  border-radius: var(--bkb-radius) !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.bksesh-bridge .booknetic_confirm_date_time {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
  font-size: 13px !important; font-weight: 500 !important;
  padding: 13px 16px !important; margin-bottom: 0 !important;
}

.bksesh-bridge .booknetic_confirm_details {
  font-size: 13px !important; padding: 8px 16px !important;
}

.bksesh-bridge .booknetic_confirm_details > .booknetic_confirm_details_price {
  color: var(--bkb-primary) !important; font-weight: 500 !important;
}

.bksesh-bridge .booknetic_confirm_sum_price > div:last-child {
  font-size: 18px !important; font-weight: 600 !important; color: #111827 !important;
}

.bksesh-bridge .booknetic_payment_method {
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  transition: border-color 0.15s, background 0.15s !important;
}

.bksesh-bridge .booknetic_payment_method:hover { border-color: var(--bkb-primary) !important; }
.bksesh-bridge .booknetic_payment_method.booknetic_payment_method_selected {
  border-color: var(--bkb-primary) !important;
  background: rgba(var(--bkb-primary-rgb), 0.04) !important;
}

/* ── Finished / Success screen (passthrough) ────────────────────────────── */
.bksesh-bridge .booknetic_appointment_finished {
  padding: 48px 28px !important; text-align: center !important; background: var(--bkb-card) !important;
}

.bksesh-bridge .booknetic_appointment_finished_icon {
  width: 72px !important; height: 72px !important; border-radius: 50% !important;
  background: var(--bkb-primary-light) !important;
  margin: 0 auto 20px !important;
}

.bksesh-bridge .booknetic_appointment_finished_title {
  font-size: 18px !important; font-weight: 600 !important;
  color: #111827 !important; margin-bottom: 6px !important;
}

.bksesh-bridge .booknetic_appointment_finished_code {
  font-size: 24px !important; font-weight: 600 !important;
  color: var(--bkb-primary) !important; letter-spacing: 0.06em !important;
}

.bksesh-bridge .booknetic_appointment_finished_actions > button,
.bksesh-bridge .booknetic_appointment_finished_actions > a {
  border-radius: 10px !important; font-size: 12px !important;
  font-weight: 500 !important; height: 42px !important; padding: 0 18px !important;
}

/* ── Bridge Footer — sticky, glass, minimalist ───────────────────────── */
.bksesh-br-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 -1px 0 rgba(0,0,0,0.06), 0 -6px 20px rgba(0,0,0,0.04);
  border-top: none;
  border-radius: 0 0 var(--bkb-radius-lg) var(--bkb-radius-lg);
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 50;
  flex-shrink: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Back — text-only, no border box */
.bksesh-br-btn-back {
  height: 46px;
  min-width: 0;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0 12px 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
  white-space: nowrap;
}
.bksesh-br-btn-back::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(1px, -1px);
  flex-shrink: 0;
}
.bksesh-br-btn-back:hover { color: #111827; }

/* Next / Confirm — fixed width, pill style */
.bksesh-br-btn-next,
.bksesh-br-btn-confirm {
  flex-shrink: 0;
  min-width: 130px;
  height: 46px;
  background: var(--bkb-primary);
  border: none;
  border-radius: 23px;
  color: #fff;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.12s, transform 0.08s, box-shadow 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
.bksesh-br-btn-next:hover,
.bksesh-br-btn-confirm:hover {
  filter: brightness(0.92);
  box-shadow: 0 4px 14px rgba(var(--bkb-primary-rgb), 0.28);
}
.bksesh-br-btn-next:active,
.bksesh-br-btn-confirm:active { transform: scale(0.97); filter: brightness(0.88); }
.bksesh-br-btn-next:disabled,
.bksesh-br-btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }

/* Warning message */
.bksesh-br-warning {
  flex: 1; font-size: 12px; color: #dc2626; display: none; min-width: 0;
}
.bksesh-br-warning.visible { display: block; }

/* ── Hidden utility ─────────────────────────────────────────────────────── */
.bksesh-br-hidden { display: none !important; }

/* Loading spinner on bridge */
.bksesh-bridge .booknetic_loading_layout {
  border-radius: var(--bkb-radius-lg) !important;
}

/* ── Modal wrapper ──────────────────────────────────────────────────────── */
.bkntc_booking_modal .bksesh-bridge.booknetic_appointment {
  border-radius: var(--bkb-radius-lg) !important;
  max-width: 780px !important;
  width: 100% !important;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bksesh-bridge.booknetic_appointment {
    border-radius: 0 !important; box-shadow: none !important; max-width: 100% !important;
  }

  .bksesh-br-header { padding: 16px 16px 0; }
  .bksesh-br-step-label { display: none; }  /* Dots only on mobile */
  .bksesh-br-step-connector { min-width: 12px; }

  .bksesh-br-body { padding: 16px 16px 12px; }

  /* Mobile: flex layout guarantees footer always visible at bottom */
  .bksesh-bridge.booknetic_appointment {
    display: flex !important;
    flex-direction: column !important;
  }
  .bksesh-bridge .booknetic_appointment_container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  .bksesh-br-body {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .bksesh-bridge .bksesh-br-body--compact ~ .booknetic_appointment_container_body {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
  .bksesh-br-footer {
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    bottom: 0 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  /* Next/Confirm pill takes all remaining space on phone */
  .bksesh-br-btn-next,
  .bksesh-br-btn-confirm {
    flex: 1 !important;
    min-width: 0 !important;
    border-radius: 23px !important;
  }

  .bksesh-br-card { gap: 10px; padding: 12px 14px; }
  .bksesh-br-card-thumb { width: 40px; height: 40px; }
  .bksesh-br-card-name { font-size: 13px; }
  .bksesh-br-card-price { font-size: 13px; }

  .bksesh-bridge .booknetic_times_list > div {
    width: calc(33.333% - 6px) !important; height: 44px !important; margin: 3px !important;
  }
  .bksesh-bridge .booknetic_calendar_div,
  .bksesh-bridge .booknetic_times { max-width: 100% !important; }
}

/* ============================================================
   Fresha-style Calendar Bridge — appended to booking-bridge.css
   ============================================================ */

/* ── Date step title row + grid toggle icon ───────────────────────────── */
.bksesh-cal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.bksesh-cal-title-row .bksesh-br-step-title { margin: 0; }

.bksesh-cal-grid-toggle {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  /* Calendar icon as CSS data URI — no namespace/parsing issues */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.bksesh-cal-grid-toggle:hover,
.bksesh-cal-grid-toggle.active {
  border-color: var(--bkb-primary);
  background-color: rgba(var(--bkb-primary-rgb), 0.04);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.07);
}

/* ── Full month grid calendar ──────────────────────────────────────────── */
.bksesh-cal-grid {
  background: #fff;
  border-radius: var(--bkb-radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 12px;
}
.bksesh-cal-grid.bksesh-cal-grid--hidden { display: none; }

.bksesh-cal-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.bksesh-cal-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 12px 4px;
}

.bksesh-cal-grid-wd {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 0;
}

.bksesh-cal-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 10px 12px;
  gap: 2px;
}

.bksesh-cal-grid-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: #111827;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.bksesh-cal-grid-day--empty    { visibility: hidden; cursor: default; }
.bksesh-cal-grid-day--disabled { color: #d1d5db; cursor: default; pointer-events: none; }
.bksesh-cal-grid-day:not(.bksesh-cal-grid-day--disabled):not(.bksesh-cal-grid-day--empty):not(.bksesh-cal-grid-day--selected):hover {
  background: rgba(var(--bkb-primary-rgb), 0.08);
  color: var(--bkb-primary);
}
.bksesh-cal-grid-day--selected {
  background: var(--bkb-primary);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(var(--bkb-primary-rgb), 0.30);
}

/* ── Calendar outer card ──────────────────────────────────────────────── */
.bksesh-cal {
  background: #fff;
  border-radius: var(--bkb-radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 12px;
}

/* ── Month header ─────────────────────────────────────────────────────── */
.bksesh-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--bkb-border);
}

.bksesh-cal-month-title {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.01em;
}

.bksesh-cal-nav {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
  font-size: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.bksesh-cal-nav:hover {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.04);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.08);
}
/* Chevrons — absolutely centred inside the button circle */
.bksesh-cal-nav-prev::after,
.bksesh-cal-nav-next::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid #6b7280;
  border-right: 1.5px solid #6b7280;
}
.bksesh-cal-nav-prev::after  { transform: translate(-30%, -50%) rotate(-135deg); }
.bksesh-cal-nav-next::after  { transform: translate(-70%, -50%) rotate(45deg); }
.bksesh-cal-nav:hover::after { border-color: var(--bkb-primary); }

/* ── Horizontal date scroller ─────────────────────────────────────────── */
.bksesh-cal-scroller {
  overflow-x: auto;
  padding: 14px 12px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.bksesh-cal-scroller::-webkit-scrollbar { display: none; }

.bksesh-cal-track {
  display: flex;
  gap: 4px;
  min-width: max-content;
}

/* Individual day item */
.bksesh-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
  flex-shrink: 0;
  padding: 6px 4px 8px;
  border-radius: 12px;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.bksesh-cal-day:not(.disabled) { cursor: pointer; }
.bksesh-cal-day.disabled { cursor: default; opacity: 0.28; }
.bksesh-cal-day:not(.disabled):not(.selected):hover { background: var(--bkb-primary-light); }

.bksesh-cal-day-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1;
}

.bksesh-cal-day-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
  border: 1px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.bksesh-cal-day:not(.disabled):not(.selected):hover .bksesh-cal-day-num {
  background: rgba(var(--bkb-primary-rgb), 0.06);
  color: var(--bkb-primary);
}

.bksesh-cal-day.selected .bksesh-cal-day-label { color: var(--bkb-primary); font-weight: 500; }

.bksesh-cal-day.selected .bksesh-cal-day-num {
  background: var(--bkb-primary);
  color: #fff;
  border-color: var(--bkb-primary);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(var(--bkb-primary-rgb), 0.30);
}

/* ── Time slots panel ─────────────────────────────────────────────────── */
.bksesh-cal-times-wrap {
  background: #fff;
  border-radius: var(--bkb-radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.bksesh-cal-times-title {
  padding: 12px 16px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bksesh-cal-times-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 10px 10px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.bksesh-cal-times-list::-webkit-scrollbar { width: 4px; }
.bksesh-cal-times-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.bksesh-cal-no-times {
  padding: 28px 16px;
  text-align: center;
  color: var(--bkb-faint);
  font-size: 13px;
  line-height: 1.5;
}

/* Individual time slot row */
.bksesh-cal-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 5px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.bksesh-cal-slot:hover {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.02);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.06);
}

.bksesh-cal-slot.selected {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.04);
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.08);
}

.bksesh-cal-slot-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bksesh-cal-slot-time {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1;
}

.bksesh-cal-slot-end {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.bksesh-cal-slot.selected .bksesh-cal-slot-time { color: var(--bkb-primary); }

/* Availability badge */
.bksesh-cal-slot-badge {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 400;
  background: none;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Mobile ≤ 600px ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bksesh-cal-header { padding: 12px 14px 10px; }
  .bksesh-cal-month-title { font-size: 15px; }
  .bksesh-cal-scroller { padding: 12px 10px 10px; }
  .bksesh-cal-day { width: 46px; }
  .bksesh-cal-day-num { width: 38px; height: 38px; font-size: 14px; }
  .bksesh-cal-slot { padding: 12px 14px; }
  .bksesh-cal-slot-time { font-size: 14px; }
  .bksesh-cal-times-list { max-height: 260px; }
}


/* ── Bug fixes & interactive polish ──────────────────────────────────────── */

/* Press states for date circles */
.bksesh-cal-day:not(.disabled):active .bksesh-cal-day-num {
  transform: scale(0.92);
  transition: transform 0.08s;
}

/* Press state for time slots */
.bksesh-cal-slot:active {
  transform: scale(0.99);
  box-shadow: none;
  transition: transform 0.08s;
}

/* Press state for nav arrows */
.bksesh-cal-nav:active {
  transform: scale(0.88);
  transition: transform 0.08s;
}

/* ── Passthrough step: form content padding ──────────────────────────────── */
.bksesh-bridge .bksesh-br-body--compact ~ .booknetic_appointment_container_body {
  padding: 8px 24px 20px !important;
  background: var(--bkb-card) !important;
}

/* ── Service duration badge — restyle inside bridge cards ────────────────── */
.bksesh-bridge .bksesh-br-card-duration {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--bkb-muted);
  background: #f3f4f6;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 5px;
  letter-spacing: 0;
}

/* ── Booknetic duration wrapper inside bridge (hide yellow pill, we show our own) */
.bksesh-bridge .bksesh-br-card .booknetic_service_duration_wrapper { display: none !important; }

/* ── Back button — matching interactive style ────────────────────────────── */
.bksesh-br-btn-back:active { opacity: 0.6; transition: opacity 0.08s; }

/* ── Slot hover: subtle lift ─────────────────────────────────────────────── */
.bksesh-cal-slot:not(.selected):hover {
  transform: translateY(-1px);
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s, transform 0.12s;
}

/* ── Day nav hover: glow ─────────────────────────────────────────────────── */
.bksesh-cal-nav:hover {
  box-shadow: 0 2px 8px var(--bkb-primary-glow);
}

/* ============================================================
   Custom Duration Addon Bridge Fixes
   ============================================================ */

/* 1. Give container a positioning context so popup anchors correctly */
.bksesh-bridge .booknetic_appointment_container {
  position: relative !important;
}

/* 2. Raise popup + overlay above bridge sticky footer (z:50) */
.bksesh-bridge .popup-overlay {
  z-index: 60 !important;
  border-radius: 0 0 var(--bkb-radius-lg) var(--bkb-radius-lg) !important;
}

.bksesh-bridge .booknetic_custom_duration_popup {
  z-index: 61 !important;
  border-radius: var(--bkb-radius-lg) var(--bkb-radius-lg) 0 0 !important;
  padding: 24px 20px 20px !important;
  box-shadow: 0 -1px 0 #e5e7eb !important;
}

/* 3. Restyle popup header */
.bksesh-bridge .booknetic_custom_duration_popup_header {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--bkb-text) !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin-bottom: 18px !important;
  line-height: 1.25 !important;
}

/* 4. Duration option cards */
.bksesh-bridge .bkntc_custom_durations,
.bksesh-bridge .bkntc_custom_durations_labels {
  border: 1.5px solid var(--bkb-border) !important;
  border-radius: var(--bkb-radius) !important;
  box-shadow: var(--bkb-shadow) !important;
  background: var(--bkb-card) !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
  padding: 14px 16px !important;
  margin: 0 0 10px !important;
}

.bksesh-bridge .bkntc_custom_durations:hover,
.bksesh-bridge .bkntc_custom_durations_labels:hover {
  border-color: var(--bkb-primary) !important;
  box-shadow: 0 2px 12px var(--bkb-primary-glow) !important;
  background: var(--bkb-primary-light) !important;
}

.bksesh-bridge .bkntc_custom_durations:active,
.bksesh-bridge .bkntc_custom_durations_labels:active {
  transform: scale(0.99) !important;
  transition: transform 0.08s !important;
}

/* Duration time text */
.bksesh-bridge .bkntc_custom_duration_p,
.bksesh-bridge .bkntc_custom_duration_p_labels {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bkb-text) !important;
}

/* Price badge */
.bksesh-bridge .bkntc_custom_duration_price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bkb-primary) !important;
  background: var(--bkb-primary-light) !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
}

.bksesh-bridge .bkntc_custom_duration_time {
  border-right: 1px solid var(--bkb-border) !important;
}

.bksesh-bridge .bkntc_custom_duration_time > span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--bkb-text) !important;
}

/* Divider "Or" line */
.bksesh-bridge .bkntc_custom_duration_line {
  font-size: 12px !important;
  color: var(--bkb-faint) !important;
  margin: 16px 0 !important;
}

/* 5. Continue button — match bridge primary CTA */
.bksesh-bridge .bkntc_custom_duration_continue {
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  min-height: 46px !important;
  background-color: var(--bkb-primary) !important;
  color: #fff !important;
  border-color: var(--bkb-primary) !important;
  box-shadow: none !important;
  transition: filter 0.12s, transform 0.08s !important;
  width: 100% !important;
}

.bksesh-bridge .bkntc_custom_duration_continue:hover { filter: brightness(0.92) !important; }
.bksesh-bridge .bkntc_custom_duration_continue:active { transform: scale(0.99) !important; filter: brightness(0.84) !important; }

.bksesh-bridge .bkntc_custom_duration_default_price {
  background-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* 6. Close X — z-index raises it above position:relative popup body which follows it in DOM */
.bksesh-bridge .bkntc_popup-x { top: 18px !important; right: 18px !important; z-index: 10 !important; opacity: 0.45; transition: opacity 0.12s; }
.bksesh-bridge .bkntc_popup-x:hover { opacity: 1; }

/* 7. Popup body: single column cards */
.bksesh-bridge .bkntc_custom_duration.booknetic_custom_duration_popup_body {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* 8. Lower bridge footer z-index while popup is open */
.bksesh-bridge .booknetic_appointment_container:has(.booknetic_custom_duration_popup.enter) .bksesh-br-footer {
  z-index: 0 !important;
}

/* ============================================================
   Custom Duration — Row List UI (replaces grid/button layout)
   ============================================================ */

/* Container: single-column vertical list */
.bksesh-bridge .booknetic_custom_duration_popup .bksesh-dur-list {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow-y: auto !important;
  max-height: 55vh !important;
}

/* Every row (custom + default) */
.bksesh-bridge .bksesh-dur-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 16px !important;
  margin: 0 0 6px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: border-color 0.15s, background 0.15s !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
}

.bksesh-bridge .bksesh-dur-row:hover {
  border-color: var(--bkb-primary) !important;
  background: rgba(var(--bkb-primary-rgb), 0.03) !important;
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.06) !important;
}

.bksesh-bridge .bksesh-dur-row:active {
  opacity: 0.7 !important;
  transition: opacity 0.06s !important;
}

.bksesh-bridge .bksesh-dur-row.bksesh-dur-is-popular {
  border-color: var(--bkb-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.07) !important;
}

/* Left column: name stacked above duration */
.bksesh-dur-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

/* Right column: price stacked above badge */
.bksesh-dur-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 14px;
}

.bksesh-dur-row-label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
}

.bksesh-dur-row-duration {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.3;
}

.bksesh-dur-row-price {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.bksesh-dur-popular-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--bkb-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bksesh-dur-default-badge {
  font-size: 10px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Header */
.bksesh-bridge .bksesh-dur-header {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  text-align: left !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

/* Hide the old "Or" / footer that we've replaced */
.bksesh-bridge .bkntc_custom_duration_line,
.bksesh-bridge .bkntc_custom_duration_footer { display: none !important; }

/* Popup body: remove the old flex-row grid, let our rows flow */
.bksesh-bridge .bkntc_custom_duration.booknetic_custom_duration_popup_body,
.bksesh-bridge .bkntc_custom_duration.booknetic_custom_duration_popup_body_labels {
  flex-direction: column !important;
  align-items: stretch !important;
}
/* Restore scrollability on the list after bridge adds .bksesh-dur-list.
   Uses 4-class specificity (0,4,0) to beat the 3-class overflow:visible above. */
.bksesh-bridge .booknetic_custom_duration_popup .bkntc_custom_duration.bksesh-dur-list {
  overflow-y: auto !important;
  max-height: 55vh !important;
}

/* Normalise all rows — override Bootstrap .col / .form-group sizing */
.bksesh-bridge .booknetic_custom_duration_popup .bksesh-dur-row.bkntc_custom_durations,
.bksesh-bridge .booknetic_custom_duration_popup .bksesh-dur-row.bkntc_custom_durations_labels {
  padding: 13px 16px !important;
  margin: 0 0 6px !important;
  border-radius: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 600px) {
  .bksesh-bridge .booknetic_custom_duration_popup { padding: 22px 16px 20px !important; }
  .bksesh-bridge .bksesh-dur-row { padding: 12px 14px !important; }
  .bksesh-dur-row-label { font-size: 13px; }
  .bksesh-dur-row-price { font-size: 13px; }
}

/* ============================================================
   Service Extras Step — bridge restyle
   Keeps Booknetic's selection logic; only changes the visual.
   ============================================================ */

/* Container — remove overflow:hidden that can clip extras list */
.bksesh-bridge .booknetic_appointment_container_body {
  overflow: visible !important;
}

/* Extras list wrapper */
.bksesh-bridge .bkntc_service_extras_list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 0 !important;
}

/* Category accordion within extras — flatten inline styles, add card gap */
.bksesh-bridge .bkntc_service_extras_list .booknetic_category_accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Section title */
.bksesh-bridge .booknetic_service_extra_title {
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #9ca3af !important;
  margin: 8px 0 4px !important;
}

/* Each extra card */
.bksesh-bridge .booknetic_service_extra_card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: var(--bkb-radius) !important;
  box-shadow: none !important;
  margin: 0 0 10px 0 !important;
  transition: border-color 0.15s, background 0.15s !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.bksesh-bridge .booknetic_service_extra_card:hover {
  border-color: var(--bkb-primary) !important;
  background: rgba(var(--bkb-primary-rgb), 0.02) !important;
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.06) !important;
}

.bksesh-bridge .booknetic_service_extra_card.booknetic_service_extra_card_selected {
  border-color: var(--bkb-primary) !important;
  background: rgba(var(--bkb-primary-rgb), 0.04) !important;
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.08) !important;
}

/* Card header row */
.bksesh-bridge .booknetic_service_extra_card_header {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  gap: 12px !important;
}

/* Thumbnail */
.bksesh-bridge .booknetic_service_extra_card_image {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  background: #f3f4f6 !important;
  overflow: hidden !important;
}

.bksesh-bridge .booknetic_service_extra_card_image > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Name + duration wrapper */
.bksesh-bridge .booknetic_service_extra_card_title_quantity {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.bksesh-bridge .booknetic_service_extra_card_title {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  line-height: 1.3 !important;
}

/* Extra name */
.bksesh-bridge .booknetic_service_extra_card_title > span:first-child {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

/* Duration — plain grey text, no pill */
.bksesh-bridge .booknetic_service_extra_card_title > span:last-child:not(:empty) {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 1px !important;
  display: inline-block !important;
  align-self: flex-start !important;
}

/* Quantity stepper */
.bksesh-bridge .booknetic_service_extra_quantity {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-shrink: 0 !important;
}

.bksesh-bridge .booknetic_service_extra_quantity_dec,
.bksesh-bridge .booknetic_service_extra_quantity_inc {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 28px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.12s, color 0.12s, border-color 0.12s !important;
  box-shadow: none !important;
  user-select: none !important;
}

.bksesh-bridge .booknetic_service_extra_quantity_dec {
  border-radius: 8px 0 0 8px !important;
}

.bksesh-bridge .booknetic_service_extra_quantity_inc {
  border-radius: 0 8px 8px 0 !important;
}

.bksesh-bridge .booknetic_service_extra_quantity_dec:hover,
.bksesh-bridge .booknetic_service_extra_quantity_inc:hover {
  background: var(--bkb-primary-light) !important;
  color: var(--bkb-primary) !important;
  border-color: var(--bkb-primary) !important;
}

.bksesh-bridge .booknetic_service_extra_quantity_input {
  width: 40px !important;
  height: 30px !important;
  border: 1px solid #e5e7eb !important;
  border-left: none !important;
  border-right: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  text-align: center !important;
  background: #fff !important;
  border-radius: 0 !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Price — right side */
.bksesh-bridge .booknetic_service_extra_card_price {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  flex-shrink: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.bksesh-bridge .booknetic_service_extra_card_selected .booknetic_service_extra_card_price {
  color: var(--bkb-primary) !important;
}

/* Description text below header */
.bksesh-bridge .booknetic_service_extra_card .booknetic_service_card_description {
  padding: 0 14px 10px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
}

/* Empty state */
.bksesh-bridge .booknetic_empty_box {
  text-align: center !important;
  padding: 32px 20px !important;
  color: var(--bkb-muted) !important;
  font-size: 13px !important;
}

/* Category accordion header */
.bksesh-bridge .booknetic_service_extra_title[data-parent] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--bkb-border) !important;
  margin-bottom: 8px !important;
}


/* ── Package cards in service step ──────────────────────────────────────── */

.bksesh-pkg-label {
  margin-top: 20px;
}

.bksesh-pkg-card {
  align-items: flex-start !important;
}

/* Price column */
.bksesh-pkg-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: 8px;
}

.bksesh-pkg-orig-price {
  font-size: 12px;
  color: var(--bkb-faint);
  text-decoration: line-through;
  margin-bottom: 2px;
}

/* Services included (e.g. "Swedish Massage x2 · Hot Stone x1") */
.bksesh-pkg-services {
  font-size: 11px !important;
  color: var(--bkb-faint) !important;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Bridge header branding: logo variant ───────────────────────────────── */
.bksesh-br-logo-wrap {
  padding: 0;
  display: flex;
  align-items: center;
}

.bksesh-br-logo {
  max-height: 32px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .bksesh-br-logo { max-height: 26px; max-width: 110px; }
}

/* ================================================================
   GLOBAL REFINEMENTS — sticky footer, price indicator, typography.
   Applied globally — all tenants and new partners.
   Rolled out globally 2026-05-01.
   ================================================================ */

/* ── Sticky footer: body scroll now applied globally above ──────── */

/* ── Fresha-style price summary in footer ────────────────────── */
.bksesh-br-price-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bksesh-br-price-summary.bksesh-ps-visible {
  opacity: 1;
  pointer-events: auto;
}
.bksesh-br-price-summary.bksesh-ps-warn-hidden { opacity: 0 !important; pointer-events: none; }

.bksesh-ps-total {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.bksesh-ps-note {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.3;
  margin-top: 1px;
}

/* ── Step titles ─────────────────────────────────────────────── */
.bksesh-bridge .bksesh-br-step-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bksesh-bridge .bksesh-br-step-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* ── Service / staff / location cards ───────────────────────── */
.bksesh-bridge .bksesh-br-card {
  padding: 14px 16px;
  gap: 12px;
}

.bksesh-bridge .bksesh-br-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  letter-spacing: 0;
  line-height: 1.35;
}

.bksesh-bridge .bksesh-br-card-meta {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bksesh-bridge .bksesh-br-card-meta.bksesh-meta-expanded {
  display: block;
  overflow: visible;
}

.bksesh-br-read-more {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--bkb-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  opacity: 0.8;
  -webkit-tap-highlight-color: transparent;
}

.bksesh-bridge .bksesh-br-card-duration {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  background: none;
  padding: 0;
  border: none;
  letter-spacing: 0;
  margin-top: 2px;
  display: inline-block;
}

.bksesh-bridge .bksesh-br-card-price {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
  align-self: flex-start;
  padding-top: 1px;
}

/* ── Category labels ─────────────────────────────────────────── */
.bksesh-bridge .bksesh-br-category-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  color: #9ca3af;
}

/* ── Selected card ───────────────────────────────────────────── */
.bksesh-bridge .bksesh-br-card.selected {
  border-color: var(--bkb-primary);
  background: rgba(var(--bkb-primary-rgb), 0.04);
  box-shadow: none;
}
.bksesh-bridge .bksesh-br-card.selected .bksesh-br-card-name {
  color: var(--bkb-primary);
}

/* ============================================================
   Cart Step — multi-appointment booking list
   ============================================================ */

/* Flatten Booknetic's flex-wrap grid to a single column */
.bksesh-bridge .booknetic-cart-holder {
  padding: 0 !important;
}

.bksesh-bridge .booknetic-cart {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

.bksesh-bridge .booknetic-cart-col {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Each cart item card */
.bksesh-bridge .booknetic-cart-item {
  width: 100% !important;
  border: 1px solid #e5e7eb !important;
  border-radius: var(--bkb-radius) !important;
  background: #fff !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.bksesh-bridge .booknetic-cart-item.active {
  border-color: var(--bkb-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--bkb-primary-rgb), 0.08) !important;
}

/* Item header — service name, single line truncated */
.bksesh-bridge .booknetic-cart-item .booknetic-cart-item-header {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  padding-right: 48px !important;
  margin-bottom: 10px !important;
}
.bksesh-bridge .booknetic-cart-item .booknetic-cart-item-header > span {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: unset !important;
}

/* ⋯ more button */
.bksesh-bridge .booknetic-cart-item-more {
  top: 14px !important;
  right: 14px !important;
  width: 22px !important;
  height: 22px !important;
  opacity: 0.5;
  transition: opacity 0.12s;
}
.bksesh-bridge .booknetic-cart-item-more:hover { opacity: 1; }

/* Edit / Remove dropdown */
.bksesh-bridge .booknetic-cart-item-header .booknetic-cart-item-btns {
  right: 10px !important;
  top: 44px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 8px !important;
}

.bksesh-bridge .booknetic-cart-item-btns button span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #374151 !important;
}

/* Body detail rows */
.bksesh-bridge .booknetic-cart-item-body-row {
  margin-bottom: 5px !important;
}

.bksesh-bridge .booknetic-cart-item-body-row:last-child {
  margin-bottom: 0 !important;
}

.bksesh-bridge .booknetic-cart-item-body-row .booknetic-cart-item-body-cell {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  line-height: 1.4 !important;
}

/* Price cell */
.bksesh-bridge .booknetic-cart-item-body-row .booknetic-cart-item-body-cell.amount {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

/* BookSesh platform fee row */
.bksesh-bridge .booksesh-cart-fee-row .booknetic-cart-item-body-cell {
  font-size: 11px !important;
  color: #9ca3af !important;
  font-style: italic !important;
}

/* Expandable info details */
.bksesh-bridge .booknetic-cart-item-info-details {
  margin-top: 8px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  background: #f9fafb !important;
}

.bksesh-bridge .booknetic-cart-item-info-details-cell {
  font-size: 11px !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
}

.bksesh-bridge .booknetic-cart-item-info-details-row {
  margin-bottom: 4px !important;
}

/* Error state */
.bksesh-bridge .booknetic-cart-item-error {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  background: #fef2f2 !important;
  border-radius: 8px !important;
  border: 1px solid #fecaca !important;
}

.bksesh-bridge .booknetic-cart-item-error-header {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #dc2626 !important;
  margin-bottom: 2px !important;
}

.bksesh-bridge .booknetic-cart-item-error-body {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #ef4444 !important;
}

/* "Book another" CTA */
.bksesh-bridge .bkntc_again_booking {
  display: block !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding: 12px 16px !important;
  background: transparent !important;
  border: 1px dashed #d1d5db !important;
  border-radius: var(--bkb-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--bkb-primary) !important;
  cursor: pointer !important;
  text-align: center !important;
  font-family: inherit !important;
  transition: border-color 0.15s, background 0.15s !important;
  box-sizing: border-box !important;
}
.bksesh-bridge .bkntc_again_booking:hover {
  border-color: var(--bkb-primary) !important;
  background: rgba(var(--bkb-primary-rgb), 0.03) !important;
}

/* ── Cart info button + details popup ─────────────────────── */
.bksesh-bridge .booknetic-cart-item-info {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  margin-left: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  opacity: 0.5;
  transition: opacity 0.12s;
}
.bksesh-bridge .booknetic-cart-item-info:hover { opacity: 1; }

.bksesh-bridge .booknetic-cart-item-info img {
  width: 14px !important; height: 14px !important;
}

.bksesh-bridge .booknetic-cart-item-info-details-arrow {
  display: none !important;
}

.bksesh-bridge .booknetic-cart-item-info-details {
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 180px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  z-index: 10 !important;
}

/* ── "Add new Booking" button inner elements ────────────────── */
.bksesh-bridge .bkntc_again_booking {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.bksesh-bridge .bkntc_again_booking img {
  width: 14px !important; height: 14px !important;
  opacity: 0.6;
}
.bksesh-bridge .bkntc_again_booking span {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--bkb-primary) !important;
}

/* ============================================================
   CONFIRM / PAYMENT SUMMARY STEP — UI STYLING (PENDING — REVERTED)
   ============================================================
   WHAT WAS TRIED (2026-05-02):
   The following rules were added to style the payment summary page:
     - .booknetic_next_step_btn, .booknetic_prev_step, .booknetic_try_again_btn { display:none }
     - .booknetic_panel_footer { display:none }
     - .booknetic_payment_methods_footer { background:transparent; padding/font tweaks }
     - .booknetic_deposit_radios label / .booknetic_deposit_amount_txt { font tweaks }

   WHAT BROKE:
   The Stripe Connect payment splash popup (window.open via ajax_before_confirm hook)
   stopped firing after these rules were applied. Exact cause not isolated — one or more
   of the above rules disrupted the Stripe payment chain. The explicit hide on
   .booknetic_confirm_booking_btn was also trialled and reverted; still broke.

   WHAT TO RETEST:
   - Add rules back ONE AT A TIME to isolate the culprit.
   - Most likely suspects:
       1. .booknetic_panel_footer { display:none } — may contain dynamic Stripe form elements
       2. .booknetic_next_step_btn hide — may affect packages payment trigger
   - Test on tenant 17 (Ancient Healing Arts) with stripe_split enabled after each addition.
   - Only proceed with confirm-step UI styling once Stripe popup is confirmed working.
   ============================================================ */
