/* ============================================================
   cookie-banner.css  —  GDPR cookie consent UI
   ============================================================ */

/* ── Banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 680px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
  z-index: 9000;
  /* Slide-up entrance */
  animation: cookie-slide-up .3s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
}

/* ── Icon + text ─────────────────────────────────────────── */
.cookie-banner__text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.cookie-banner__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}
.cookie-banner__text p {
  font-size: 0.83rem;
  color: var(--fg2);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Action buttons ──────────────────────────────────────── */
.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 1rem;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
}

.cookie-btn--reject {
  background: var(--surface);
  color: var(--fg2);
  border-color: var(--border);
}
.cookie-btn--reject:hover {
  color: var(--fg);
  border-color: var(--fg2);
}

.cookie-btn--accept {
  background: var(--accent);
  color: var(--on-accent);
}
.cookie-btn--accept:hover {
  filter: brightness(1.08);
}

/* ── Re-open button (bottom-right corner) ────────────────── */
.cookie-reopen {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg2);
  cursor: pointer;
  z-index: 8999;
  box-shadow: var(--shadow);
  transition: all var(--dur) var(--ease);
  opacity: 0.6;
}
.cookie-reopen[hidden] { display: none; }
.cookie-reopen:hover   { opacity: 1; color: var(--accent); border-color: var(--accent); }
.cookie-reopen svg     { width: 16px; height: 16px; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-radius: var(--r2) var(--r2) 0 0;
  }
  @keyframes cookie-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}
