.zen-bookings-widget {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #16212b;
}

.zb-shell {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 1400px);
  max-width: 1400px;
  margin: 0;
  padding: 0 8px 16px;
  box-sizing: border-box;
}

.zb-shell .zb-widget {
  width: 100%;
}

.zb-card {
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(23, 53, 84, 0.08);
}

.zb-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.zb-banner {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.zb-banner.info {
  background: #eef4ff;
  color: #173e7a;
}

.zb-banner.error {
  background: #ffecef;
  color: #8c1d2d;
}

.zb-section {
  margin-top: 14px;
}

.zb-label,
.zb-step-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.zb-muted {
  color: #5a6a78;
  font-weight: 500;
  font-size: 0.85rem;
}

.zb-input {
  width: 100%;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.zb-input:focus {
  outline: 2px solid #2f77d5;
  outline-offset: 0;
  border-color: #2f77d5;
}

.zb-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zb-day-btn {
  border: 1px solid #c4d2df;
  border-radius: 999px;
  background: #f6fafc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

.zb-day-btn.is-active {
  background: #0b5ec9;
  color: #fff;
  border-color: #0b5ec9;
}

.zb-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zb-shell .zb-picker {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.zb-picker-left {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: start;
}

.zb-mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.zb-mini-month {
  font-weight: 700;
  font-size: 0.95rem;
}

.zb-mini-nav {
  border: 1px solid #d2dce7;
  border-radius: 8px;
  background: #fff;
  color: #1d3550;
  width: 32px;
  height: 28px;
  cursor: pointer;
}

.zb-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  color: #607083;
  font-size: 0.77rem;
  text-align: center;
}

.zb-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.zb-mini-day {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  min-height: 34px;
  cursor: pointer;
  font-size: 0.85rem;
  width: 100%;
}

.zb-mini-day:hover:not(:disabled) {
  background: #edf4ff;
  border-color: #d4e3fa;
}

.zb-mini-day .zb-day-num {
  display: inline-block;
}

.zb-mini-day.is-selected {
  background: #0b5ec9;
  color: #fff;
}

.zb-mini-day.is-muted {
  color: #9aa9b8;
}

.zb-mini-day:disabled {
  cursor: default;
}

.zb-shell .zb-mini-day.zb-day-past {
  color: #9aa0a6;
  opacity: 1;
  cursor: not-allowed;
}

.zb-shell .zb-mini-day.zb-day-past .zb-day-num {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.zb-shell .zb-mini-day.zb-day-unavailable {
  color: #c0c4cc;
  opacity: 1;
  cursor: not-allowed;
}

.zb-shell .zb-mini-day.zb-day-unavailable .zb-day-num {
  text-decoration: none;
}

.zb-shell .zb-mini-day.zb-day-today {
  box-shadow: inset 0 0 0 2px var(--zb-primary, #0b5ec9);
  border-radius: 8px;
}

.zb-mini-day-empty {
  visibility: hidden;
}

.zb-picker-right {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.zb-shell .zb-week-grid {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 2px;
  max-width: 100%;
}

.zb-week-window-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.zb-week-nav-btn {
  border: 1px solid #d2dce7;
  border-radius: 8px;
  background: #fff;
  color: #1d3550;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.zb-week-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.zb-week-window-label {
  font-size: 0.84rem;
  color: #5c6f80;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zb-shell .zb-week-grid-inner {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.zb-week-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.zb-week-head-cell {
  border: 1px solid #d2dce7;
  border-radius: 9px;
  background: #f7fafd;
  padding: 8px 10px;
  text-align: center;
  min-width: 0;
}

.zb-week-head-cell span {
  display: block;
  color: #607083;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zb-week-head-cell strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 2px;
}

.zb-week-head-cell.is-selected {
  border-color: #0b5ec9;
  background: #eaf2ff;
}

.zb-week-head-cell.is-outside {
  opacity: 0.75;
}

.zb-week-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.zb-day-col {
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  min-height: 180px;
  background: #fcfeff;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.zb-day-col-head {
  display: none;
}

.zb-day-col-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  overflow: visible;
}

.zb-week-empty {
  color: #9aa8b7;
  font-size: 1.05rem;
  padding: 4px;
  margin-top: 6px;
}

.zb-time-chip {
  border: 1px solid #c4d2df;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zb-time-chip.is-active {
  border-color: #0f8a55;
  background: #eaf8f1;
  color: #0f6a42;
  font-weight: 700;
}

.zb-time-chip.zb-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zb-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zb-book-btn {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f6ad8, #0f8a55);
  color: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.zb-book-btn:hover {
  filter: brightness(0.95);
}

.zb-empty {
  color: #5c6f80;
  font-size: 0.92rem;
}

.zb-error {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffecef;
  color: #8c1d2d;
  font-size: 0.92rem;
}

.zb-error-global {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffecef;
  color: #8c1d2d;
  font-size: 0.92rem;
}

.zb-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zb-loading {
  position: relative;
}

.zb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.is-hidden {
  display: none;
}

.zb-modal-open {
  overflow: hidden;
}

.zb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 33, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.zb-modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(6, 19, 33, 0.28);
  display: flex;
  flex-direction: column;
}

.zb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e1e8ef;
}

.zb-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.zb-modal-close {
  border: 1px solid #d5dee7;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.zb-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
}

.zb-modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #e1e8ef;
  background: #fbfdff;
}

.zb-modal-footer .zb-book-btn {
  margin-top: 0;
  width: auto;
  min-width: 140px;
}

.zb-hint {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #6f7682;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .zb-week-head,
  .zb-week-body {
    gap: 10px;
  }

  .zb-time-chip {
    padding: 7px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .zb-shell {
    width: 96vw;
    padding: 0 6px 14px;
  }

  .zb-shell .zb-picker {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
  }

  .zb-week-head,
  .zb-week-body {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }

  .zb-week-head-cell {
    padding: 7px 8px;
  }

  .zb-day-col {
    padding: 8px 6px;
  }

  .zb-time-chip {
    padding: 6px 8px;
    font-size: 0.86rem;
  }
}

@media (max-width: 768px) {
  .zb-grid {
    grid-template-columns: 1fr;
  }

  .zb-shell {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .zb-shell .zb-picker {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zb-picker-left,
  .zb-picker-right {
    width: 100%;
    max-width: 100%;
  }

  .zb-mini-weekdays,
  .zb-mini-grid {
    gap: 6px;
  }

  .zb-mini-day {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .zb-shell .zb-week-grid {
    overflow: hidden;
  }

  .zb-shell .zb-week-grid-inner {
    min-width: 0;
    width: 100%;
  }

  .zb-week-head { gap: 8px; margin-bottom: 8px; }
  .zb-week-body { gap: 8px; }

  .zb-day-col {
    min-height: 0;
    padding: 8px;
    gap: 8px;
  }

  .zb-day-col-head {
    display: none;
  }

  .zb-day-col-slots {
    gap: 8px;
    max-height: none;
    overflow: visible;
  }

  .zb-time-chip {
    min-height: 44px;
    width: 100%;
    max-width: none;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .zb-week-grid.is-single-day .zb-week-window-label {
    display: none;
  }

  .zb-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .zb-modal {
    max-width: 100%;
    max-height: 100vh;
    height: min(92vh, 760px);
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 640px) {
  .zb-shell {
    padding: 0 0 12px;
  }
}

.zen-bookings-thankyou {
  max-width: 680px;
  margin: 0 auto;
}

.zen-bookings-thankyou .zb-card {
  padding: 20px;
}

.zb-summary-grid p {
  margin: 8px 0;
}

.zb-divider {
  margin: 14px 0 10px;
  border: 0;
  border-top: 1px solid #e2e8ef;
}

.zb-cancel-message {
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff4e5;
  color: #8b4d00;
  margin-bottom: 10px;
}

.zb-cancel-btn {
  border: 1px solid #ca2f2f;
  border-radius: 8px;
  background: #fff;
  color: #a22020;
  padding: 8px 12px;
  cursor: pointer;
}

.zb-cancel-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.zb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zb-reschedule-btn,
.zb-reschedule-submit {
  border: 1px solid #2968c8;
  border-radius: 8px;
  background: #fff;
  color: #1b4f9d;
  padding: 8px 12px;
  cursor: pointer;
}

.zb-reschedule-panel {
  margin-top: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.zb-reschedule-panel .zb-step-title {
  margin: 0 0 8px;
}

.zb-reschedule-submit {
  margin-top: 10px;
}

.zb-reschedule-msg {
  margin-top: 8px;
  font-size: 0.92rem;
}

/* =================================================================
   ZEN BOOKINGS — Design System v2
   All rules are scoped to .zb-root for full theme isolation.
   CSS variables can be overridden per-site via inline <style>.
   ================================================================= */

/* ── 1. CSS Variables ─────────────────────────────────────────── */
.zb-root {
  --zb-font:         'Inter', system-ui, -apple-system, sans-serif;
  --zb-bg-surface:   #1C1C1E;
  --zb-bg-element:   #2C2C2E;
  --zb-text-main:    #FFFFFF;
  --zb-text-muted:   #8E8E93;
  --zb-primary:      #0A84FF;
  --zb-primary-text: #FFFFFF;
  --zb-border:       #38383A;
  --zb-radius-lg:    16px;
  --zb-radius-md:    8px;
  --zb-ease:         0.15s ease;
}

/* ── 2. Theme Isolation Reset ─────────────────────────────────── */
.zb-root,
.zb-root *,
.zb-root *::before,
.zb-root *::after {
  box-sizing: border-box;
}

.zb-root h1, .zb-root h2, .zb-root h3, .zb-root h4,
.zb-root p,  .zb-root ul, .zb-root ol,  .zb-root li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  list-style: none;
  border: 0;
  background: transparent;
}

.zb-root button,
.zb-root input,
.zb-root select,
.zb-root textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--zb-font);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.zb-root input,
.zb-root select,
.zb-root textarea {
  cursor: text;
}

/* ── 3. Root Container ────────────────────────────────────────── */
.zb-root {
  font-family: var(--zb-font);
  color: var(--zb-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── 4. Main Card ─────────────────────────────────────────────── */
.zb-root .zb-card {
  background: var(--zb-bg-surface);
  border-radius: var(--zb-radius-lg);
  padding: 24px;
  border: 1px solid var(--zb-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  max-width: 860px;
  margin: 0 auto;
}

/* ── 5. Profile Header ────────────────────────────────────────── */
.zb-root .zb-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--zb-border);
}

.zb-root .zb-avatar {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--zb-bg-element);
  border: 2px solid var(--zb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zb-text-muted);
}

.zb-root .zb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zb-root .zb-avatar svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
}

.zb-root .zb-profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--zb-text-main);
  line-height: 1.25;
}

.zb-root .zb-profile-subtitle {
  font-size: 0.875rem;
  color: var(--zb-text-muted);
  margin-top: 3px;
}

/* ── 6. Controls (Service / Doctor dropdowns) ─────────────────── */
.zb-root .zb-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.zb-root .zb-controls.zb-controls--single {
  grid-template-columns: 1fr;
}

.zb-root .zb-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zb-root .zb-control-group--stacked {
  margin-bottom: 12px;
}

.zb-root .zb-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zb-text-muted);
  display: block;
  margin-bottom: 6px;
}

.zb-root .zb-select {
  width: 100%;
  background: var(--zb-bg-element);
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius-md);
  padding: 10px 36px 10px 12px;
  font-size: 0.92rem;
  color: var(--zb-text-main);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--zb-ease), box-shadow var(--zb-ease);
}

.zb-root .zb-select:focus {
  border-color: var(--zb-primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
  outline: none;
}

.zb-root .zb-hint {
  font-size: 0.82rem;
  color: var(--zb-text-muted);
  font-style: italic;
  margin: 0;
}

/* ── 7. Banners / Errors ──────────────────────────────────────── */
.zb-root .zb-error-global,
.zb-root .zb-error {
  border-radius: var(--zb-radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  background: rgba(255, 59, 48, 0.14);
  color: #ff6b6b;
  border: 1px solid rgba(255, 59, 48, 0.28);
}

.zb-root .zb-error-global { margin-bottom: 14px; }
.zb-root .zb-error        { margin-bottom: 10px; }

/* ── 8. Picker Grid (Calendar + Slots) ────────────────────────── */
.zb-root .zb-picker-grid {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 16px;
  align-items: start;
}

/* ── 8b. Booking Grid (unified 2-col layout: selector + panel) ── */
.zb-root .zb-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.zb-root .zb-booking-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── 9. Mini Calendar ─────────────────────────────────────────── */
.zb-root .zb-picker-cal {
  background: var(--zb-bg-element);
  border-radius: var(--zb-radius-md);
  padding: 14px;
  user-select: none;
}

.zb-root .zb-mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.zb-root .zb-mini-month {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--zb-text-main);
  letter-spacing: 0.01em;
}

.zb-root .zb-mini-nav {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius-md);
  color: var(--zb-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--zb-ease), color var(--zb-ease);
}

.zb-root .zb-mini-nav:hover {
  background: var(--zb-bg-surface);
  color: var(--zb-text-main);
}

.zb-root .zb-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
}

.zb-root .zb-mini-weekdays span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--zb-text-muted);
  letter-spacing: 0.05em;
  padding: 2px 0;
}

.zb-root .zb-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.zb-root .zb-mini-day {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--zb-radius-md);
  font-size: 0.8rem;
  color: var(--zb-text-main);
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: background var(--zb-ease), border-color var(--zb-ease), color var(--zb-ease);
}

.zb-root .zb-mini-day:hover:not(:disabled) {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.28);
}

.zb-root .zb-mini-day .zb-day-num {
  display: inline-block;
  line-height: 1;
  pointer-events: none;
}

.zb-root .zb-mini-day.is-selected {
  background: var(--zb-primary);
  border-color: var(--zb-primary);
  color: var(--zb-primary-text);
  font-weight: 700;
}

.zb-root .zb-mini-day.is-muted {
  color: var(--zb-text-muted);
}

.zb-root .zb-mini-day.zb-day-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px var(--zb-primary);
}

.zb-root .zb-mini-day.zb-day-past {
  color: var(--zb-text-muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.zb-root .zb-mini-day.zb-day-past .zb-day-num {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.zb-root .zb-mini-day.zb-day-unavailable {
  color: var(--zb-text-muted);
  opacity: 0.38;
  cursor: not-allowed;
}

.zb-root .zb-mini-day-empty {
  visibility: hidden;
  pointer-events: none;
}

.zb-root .zb-mini-day:disabled { cursor: not-allowed; }

/* ── 10. Time Slots Panel ─────────────────────────────────────── */
.zb-root .zb-picker-slots {
  min-height: 220px;
}

.zb-root .zb-slots-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--zb-text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.zb-root .zb-slots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
}

.zb-root .zb-slots-list::-webkit-scrollbar { display: none; }

.zb-root .zb-slot-btn {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius-md);
  background: transparent;
  color: var(--zb-text-main);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--zb-ease), background var(--zb-ease), color var(--zb-ease);
}

.zb-root .zb-slot-btn:hover:not(:disabled) {
  border-color: var(--zb-primary);
  background: rgba(10, 132, 255, 0.08);
  color: var(--zb-primary);
}

.zb-root .zb-slot-btn.is-active {
  border-color: var(--zb-primary);
  background: var(--zb-primary);
  color: var(--zb-primary-text);
  font-weight: 600;
}

.zb-root .zb-slot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zb-root .zb-slot-empty {
  color: var(--zb-text-muted);
  font-size: 0.9rem;
  padding: 24px 0;
  text-align: center;
}

/* ── 11. Form inputs (modal) ──────────────────────────────────── */
.zb-root .zb-input {
  width: 100%;
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius-md);
  padding: 10px 12px;
  background: var(--zb-bg-element);
  color: var(--zb-text-main);
  font-size: 0.92rem;
  cursor: text;
  transition: border-color var(--zb-ease), box-shadow var(--zb-ease);
}

.zb-root .zb-input::placeholder { color: var(--zb-text-muted); }

.zb-root .zb-input:focus {
  border-color: var(--zb-primary);
  outline: 1px solid var(--zb-primary);
  box-shadow: none;
}

/* ── 12. Book / CTA button ────────────────────────────────────── */
.zb-root .zb-book-btn {
  padding: 12px 24px;
  border: none !important;
  border-radius: var(--zb-radius-md);
  background: var(--zb-primary) !important;
  background-image: none !important;
  color: var(--zb-primary-text) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--zb-font);
  cursor: pointer;
  transition: opacity var(--zb-ease);
  letter-spacing: 0.01em;
  box-shadow: none !important;
}

.zb-root .zb-book-btn:hover:not(:disabled) { opacity: 0.88; }

.zb-root .zb-book-btn.zb-disabled,
.zb-root .zb-book-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── 13. Modal ────────────────────────────────────────────────── */
.zb-root .zb-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 16px !important;
}

.zb-root .zb-modal {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: var(--zb-bg-surface);
  border-radius: var(--zb-radius-lg);
  border: 1px solid var(--zb-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.zb-root .zb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--zb-border);
  flex-shrink: 0;
}

.zb-root .zb-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zb-text-main);
}

.zb-root .zb-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--zb-radius-md);
  color: var(--zb-text-muted);
  cursor: pointer;
  transition: background var(--zb-ease), color var(--zb-ease);
  font-size: 1.2rem;
  line-height: 1;
}

.zb-root .zb-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--zb-text-main);
}

/* Summary card — booking details inside the form area */
.zb-root .zb-modal-summary {
  background: var(--zb-bg-element) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
  border: 1px solid var(--zb-border) !important;
}

.zb-root .zb-confirm-datetime {
  display: block !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--zb-text-main) !important;
  line-height: 1.3;
  margin-bottom: 8px;
}

.zb-root .zb-confirm-details {
  display: block !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zb-text-muted);
  margin-bottom: 8px;
}

.zb-root .zb-confirm-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--zb-text-muted);
}

/* Form area */
.zb-root .zb-modal-form {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Form grid */
.zb-root .zb-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 24px;
}

.zb-root .zb-modal-form .zb-input {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  border: 1px solid var(--zb-border) !important;
  background: var(--zb-bg-element) !important;
  color: var(--zb-text-main) !important;
  font-size: 0.9375rem !important;
  margin: 0 !important;
  box-sizing: border-box;
  box-shadow: none;
}

.zb-root .zb-modal-form .zb-input:focus {
  border-color: var(--zb-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1) !important;
}

.zb-root .zb-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--zb-border);
  flex-shrink: 0;
}

/* Footer-scoped button overrides — highest specificity, nuke all legacy rules */
.zb-root .zb-modal-footer .zb-book-btn {
  margin-top: 0 !important;
  width: auto !important;
  min-width: 140px;
  background: var(--zb-primary) !important;
  background-image: none !important;
  color: var(--zb-primary-text) !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.zb-root .zb-modal-footer .zb-cancel-btn {
  background: transparent !important;
  color: var(--zb-text-muted) !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.zb-root .zb-divider { margin: 14px 0; border: 0; border-top: 1px solid var(--zb-border); }

.zb-root .zb-cancel-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--zb-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--zb-font);
  border-radius: var(--zb-radius-md);
  cursor: pointer;
  transition: background var(--zb-ease), color var(--zb-ease);
  box-shadow: none !important;
}

.zb-root .zb-cancel-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--zb-text-main); }
.zb-root .zb-cancel-btn:disabled              { opacity: 0.4; cursor: not-allowed; }

/* ── 14. Utilities ────────────────────────────────────────────── */
.zb-root .zb-empty    { color: var(--zb-text-muted); text-align: center; padding: 24px 0; font-size: 0.92rem; }
.zb-root .zb-disabled { opacity: 0.45; cursor: not-allowed; }

.zb-root .zb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── 15. Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .zb-root .zb-card          { padding: 16px; border-radius: 12px; }
  .zb-root .zb-picker-grid   { grid-template-columns: 1fr; }
  .zb-root .zb-controls      { grid-template-columns: 1fr; }
  .zb-root .zb-grid          { grid-template-columns: 1fr; }
  .zb-root .zb-booking-grid  { grid-template-columns: 1fr; gap: 16px; }
  .zb-root .zb-slot-btn      { width: 100%; }
}

@media (max-width: 600px) {
  .zb-root .zb-modal-backdrop { align-items: flex-end !important; padding: 0 !important; }
  .zb-root .zb-modal          { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .zb-root .zb-modal-header   { padding: 16px; }
  .zb-root .zb-modal-form     { padding: 16px; }
  .zb-root .zb-form-grid      { grid-template-columns: 1fr !important; }
  .zb-root .zb-modal-footer   { flex-direction: column-reverse; padding: 16px; gap: 8px; }
  .zb-root .zb-modal-footer .zb-book-btn   { width: 100% !important; min-width: 0 !important; }
  .zb-root .zb-modal-footer .zb-cancel-btn { width: 100% !important; text-align: center; }
}

/* ─── Skeleton loader ──────────────────────────────────────────────────────── */
.zb-skeleton-wrapper  { width: 100%; max-width: 650px; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.zb-skeleton-header   { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.zb-skeleton-dropdown { height: 48px; width: 100%; border-radius: 8px; background: #2a2a2a; animation: zb-pulse 1.5s infinite ease-in-out; }
.zb-skeleton-body     { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.zb-skeleton-calendar,
.zb-skeleton-times    { height: 320px; width: 100%; border-radius: 12px; background: #2a2a2a; animation: zb-pulse 1.5s infinite ease-in-out; }
.zb-skeleton-times    { animation-delay: 0.2s; }

@keyframes zb-pulse {
  0%   { opacity: 0.7; }
  50%  { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* ─── Submission processing / success states ──────────────────────────────── */
.zb-form-processing {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zb-success-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  animation: zb-fade-in 0.3s ease;
}
.zb-success-icon { font-size: 50px; color: #0087ff; margin-bottom: 15px; line-height: 1; }
.zb-success-overlay h3 { margin: 0 0 10px 0; color: #fff; font-size: 20px; }
.zb-success-overlay p  { margin: 0; color: #aaa; font-size: 14px; }

@keyframes zb-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
