/* ============================================================
 * Cookie consent banner (privacy & cookie notice) — 2026-09-23
 * Brand palette only (user rule: no black). Shows after page
 * load on every page (footer.php, all pages share it), remembers
 * the visitor's choice in localStorage; Accept = 12 months.
 * ============================================================ */
.site-cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: #ffffff;
  border: 1px solid #dbe6f1;
  border-top: 3px solid #276EAF;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 42, 68, 0.16);
  max-width: 760px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* hidden attribute must win over the flex display above (dismissal path) */
.site-cookie-consent[hidden] {
  display: none !important;
}

.site-cookie-consent__text {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  color: #4a5b6e;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-cookie-consent__link {
  color: #276EAF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-cookie-consent__link:hover {
  color: #1e5a91;
}

.site-cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-cookie-consent__btn {
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}

.site-cookie-consent__btn--accept {
  background: #276EAF;
  color: #ffffff;
  border: 1px solid #276EAF;
}

.site-cookie-consent__btn--accept:hover {
  background: #1e5a91;
  border-color: #1e5a91;
}

.site-cookie-consent__btn--decline {
  background: #ffffff;
  color: #0f2a44;
  border: 1px solid #dbe6f1;
}

.site-cookie-consent__btn--decline:hover {
  border-color: #276EAF;
  color: #276EAF;
}

/* Mobile: stack text above full-width buttons */
@media (max-width: 640px) {
  .site-cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1rem;
    gap: 0.85rem;
  }

  .site-cookie-consent__actions {
    width: 100%;
  }

  .site-cookie-consent__btn {
    flex: 1 1 auto;
    padding: 0.6rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cookie-consent {
    transition: none;
  }
}
