/* ════════════════════════════════════════════════════════════════════════════
   SITE NOTICE BAR
   Loaded site-wide. Two choices only (accept / reject) — analytics events send
   either way, this only controls whether PostHog remembers the visitor across
   sessions via a cookie (see assets/js/site-metrics.js).
   ════════════════════════════════════════════════════════════════════════════ */

.notice-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  max-width: 560px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 20px 22px;
  display: none;
}

.notice-bar.is-open {
  display: block;
}

.notice-bar__text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.notice-bar__text a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 600;
}

.notice-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-bar__btn {
  flex: 1 1 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s;
}

.notice-bar__btn--reject {
  background: var(--ink-faint);
  color: var(--ink);
}

.notice-bar__btn--reject:hover {
  background: var(--border);
}

.notice-bar__btn--accept {
  background: var(--navy);
  color: var(--text-white);
}

.notice-bar__btn--accept:hover {
  background: var(--navy-mid);
}

@media (max-width: 480px) {
  .notice-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }

  .notice-bar__actions {
    flex-direction: column;
  }
}
