/* Businessbook common — Designer Mode session bar (all themes).
   Specificity beats theme link resets (e.g. theme2 `a { color: inherit }`). */
.bb-session-bar {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  justify-content: center;
  pointer-events: none;
  max-width: calc(100vw - 2.5rem);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bb-session-bar__pill {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  min-height: 3rem;
  border-radius: 999px;
  overflow: hidden;
  background: #c2410c;
  border: 1px solid color-mix(in srgb, #c2410c 35%, #fff);
  box-shadow:
    0 10px 26px rgba(12, 18, 34, 0.12),
    0 2px 6px rgba(12, 18, 34, 0.06);
  transition: box-shadow 0.2s ease;
}

.bb-session-bar__pill:hover {
  box-shadow:
    0 14px 32px rgba(12, 18, 34, 0.14),
    0 4px 10px rgba(12, 18, 34, 0.08);
}

body .bb-session-bar a.bb-session-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-decoration: none;
  border-radius: 999px;
  color: #fff !important;
  background: #c2410c;
  transition: background 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

body .bb-session-bar a.bb-session-bar__btn:hover,
body .bb-session-bar a.bb-session-bar__btn:focus-visible {
  background: var(--color-surface, #fff);
  color: #c2410c !important;
  outline: none;
}

body .bb-session-bar a.bb-session-bar__btn:active {
  filter: brightness(0.96);
}

body .bb-session-bar a.bb-session-bar__btn:focus-visible {
  outline: 2px solid var(--color-accent, #0d9488);
  outline-offset: -2px;
}

/* Clearance so content/footer is not hidden behind the bar */
body:has(.bb-session-bar) {
  padding-bottom: 0 !important;
}
body:has(.bb-session-bar) .bb1-footer,
body:has(.bb-session-bar) .site-footer,
body:has(.bb-session-bar) footer.site-footer {
  padding-bottom: calc(1.15rem + 4.5rem + env(safe-area-inset-bottom, 0px));
}
