/* ============================================================
   Automatic Birthdays — discontinued / existing-customers notice
   Shared across the birthday-related pages (/birthdays, /integrations).
   Relies on the page's brand tokens (--ink, --cream, --pink, --muted)
   with safe fallbacks so it also renders standalone.
   ============================================================ */

:root {
  --bn-ink: var(--ink, #0A0A0A);
  --bn-cream: var(--cream, #F4F0E8);
  --bn-pink: var(--pink, #FF4FA3);
  --bn-muted: var(--muted, #6B6358);
}

/* ---------- persistent status banner (top of header) ---------- */
.bn-banner {
  background: var(--bn-ink);
  color: var(--bn-cream);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.bn-banner__tag {
  display: inline-block;
  background: #fff;
  color: var(--bn-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}
.bn-banner__text { color: var(--bn-cream); }
.bn-banner__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--bn-pink);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.bn-banner__link:hover { text-decoration-thickness: 3px; }

/* ---------- modal overlay (shown on open) ---------- */
.bn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bn-overlay.open { opacity: 1; pointer-events: auto; }

.bn-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bn-cream);
  border: 3px solid var(--bn-ink);
  border-radius: 22px;
  box-shadow: 14px 14px 0 var(--bn-ink);
  padding: 44px 44px 38px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.bn-overlay.open .bn-modal { transform: translateY(0) scale(1); }

.bn-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--bn-ink);
  border-radius: 50%;
  background: #fff;
  color: var(--bn-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 3px 3px 0 var(--bn-ink);
}
.bn-modal__close:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bn-pink); }
.bn-modal__close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bn-ink); }

.bn-modal__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 21px;
  font-weight: 700;
  color: var(--bn-muted);
  margin: 0 0 10px;
}
.bn-modal__title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--bn-ink);
  margin: 0 0 16px;
}
.bn-modal__lead {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bn-ink);
  margin: 0 0 24px;
}
.bn-modal__lead strong { font-weight: 700; }

.bn-paths { display: flex; flex-direction: column; gap: 14px; }
.bn-path {
  background: #fff;
  border: 2px solid var(--bn-ink);
  border-radius: 14px;
  padding: 18px 20px;
}
.bn-path__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-muted);
  margin: 0 0 6px;
}
.bn-path__copy {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bn-ink);
  margin: 0 0 14px;
}
.bn-path__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bn-pink);
  color: #fff;
  border: 2.5px solid var(--bn-ink);
  border-radius: 11px;
  padding: 11px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--bn-ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.bn-path__btn.secondary { background: #fff; color: var(--bn-ink); }
.bn-path__btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--bn-ink); }
.bn-path__btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bn-ink); }

.bn-modal__foot {
  margin: 24px 0 0;
  text-align: center;
}
.bn-modal__dismiss {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--bn-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bn-modal__dismiss:hover { color: var(--bn-ink); }

@media (max-width: 560px) {
  .bn-modal { padding: 38px 24px 30px; box-shadow: 8px 8px 0 var(--bn-ink); }
}
