/* ════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   Fixed bottom band; shown on first visit, hidden
   once the visitor accepts. State persisted in
   localStorage under "sls-cookie-consent".
   ════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 200;
  display: none;                       /* JS toggles this to flex */
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.cookie-banner.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-message {
  color: rgba(255,255,255,0.88);
}

.cookie-banner-message strong {
  color: #fff;
  font-weight: 600;
}

.cookie-banner-message a {
  color: var(--copper-light);
  text-decoration: underline;
  text-decoration-color: rgba(229,159,120,0.4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.cookie-banner-message a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cookie-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .08s;
  white-space: nowrap;
}
.cookie-banner-btn:active { transform: translateY(1px); }

.cookie-banner-btn.primary {
  background: var(--teal);
  color: #fff;
}
.cookie-banner-btn.primary:hover { background: var(--teal-bright); }

.cookie-banner-btn.ghost {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.28);
}
.cookie-banner-btn.ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ≥640px: lay the message and buttons side by side */
@media (min-width: 640px) {
  .cookie-banner {
    left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 1.1rem 1.4rem;
  }
  .cookie-banner-message { flex: 1; }
  .cookie-banner-actions { flex-direction: row; flex-shrink: 0; }
}

@media (min-width: 1024px) {
  .cookie-banner {
    left: auto; right: 2rem; bottom: 2rem;
    max-width: 720px;
  }
}

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