/* ════════════════════════════════════════════════════════════════
   Booking Page Ribbon — shared by patient-booking.php and the admin preview
   ════════════════════════════════════════════════════════════════ */
.bb-ribbon {
  --bb-bg: #dcd0a9;
  --bb-fg: #000000;
  --bb-link: var(--bb-fg);
  position: relative;
  z-index: 1030;
  display: flex;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  background: var(--bb-bg);
  color: var(--bb-fg);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .8rem;
  line-height: 1.35;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
  transition: opacity .25s ease, transform .25s ease;
}

.bbadmin-choice-card.is-active i {
  color: #fff;
}

.nav-tabs li.nav-item,
.aifstyle button {
  border-right: 1px solid #e7e4e4 !important;
  padding: 0.2rem 0.35rem !important;
}

.bb-ribbon[hidden] {
  display: none !important;
}

.bb-ribbon.bb-sticky {
  position: sticky;
  top: 0;
}

.bb-ribbon.bb-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

/* A sticky page header should sit under a sticky ribbon */
.bb-has-sticky .topbar {
  top: var(--bb-h, 0px);
}

.bb-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ── Running mode ─────────────────────────────────────────────── */
.bb-mode-scroll .bb-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.bb-track {
  display: flex;
  width: max-content;
  animation: bbMarquee 30s linear infinite;
  will-change: transform;
}

.bb-track.bb-pausable:hover,
.bb-track:focus-within {
  animation-play-state: paused;
}

.bb-group,
.bb-unit {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bb-group {
  padding: 10px 0;
}

@keyframes bbMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.bb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  white-space: nowrap;
}

.bb-sep {
  opacity: .55;
  font-size: .72rem;
}

.bb-gap {
  display: inline-block;
  width: 28px;
}

/* ── Static mode ──────────────────────────────────────────────── */
.bb-mode-static .bb-viewport {
  display: flex;
  align-items: center;
}

.bb-static {
  display: grid;
  flex: 1;
  min-width: 0;
  padding: 8px 0;
}

.bb-slide {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}

.bb-slide.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}

.bb-mode-static .bb-item {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  row-gap: 4px;
}

.bb-align-left .bb-slide {
  justify-content: flex-start;
}

.bb-align-left.bb-mode-static .bb-item {
  justify-content: flex-start;
  text-align: left;
}

.bb-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 4px;
  flex-shrink: 0;
}

.bb-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: currentColor;
  opacity: .35;
  cursor: pointer;
  transition: width .25s ease, opacity .25s ease;
}

.bb-dot.is-active {
  width: 16px;
  opacity: .95;
}

/* ── Message parts ────────────────────────────────────────────── */
.bb-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bb-fg) 32%, transparent);
  background: color-mix(in srgb, var(--bb-fg) 16%, transparent);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.bb-ico {
  font-size: .92rem;
  opacity: .92;
}

.bb-strong {
  font-weight: 700;
}

.bb-link {
  display: inline-flex;
  align-items: center;
  color: var(--bb-link);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bb-link:hover {
  color: var(--bb-link);
  opacity: .85;
}

.bb-link .bi {
  font-size: 1.05rem;
  margin-left: 1px;
}

.bb-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: .75;
  cursor: pointer;
  font-size: .8rem;
}

.bb-close:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--bb-fg) 14%, transparent);
}

.bb-ribbon :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.bb-empty {
  width: 100%;
  padding: 11px 16px;
  text-align: center;
  opacity: .8;
  font-style: italic;
}

@media (max-width: 600px) {
  .bb-ribbon {
    font-size: .74rem;
  }

  .bb-item {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bb-track,
  .bb-slide,
  .bb-ribbon {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .bb-ribbon {
    display: none !important;
  }
}