/* ============================================================
   COOKIE CONSENT — bottom modal with darkened backdrop.
   Shown once per browser via localStorage flag.
   ============================================================ */

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.cookie-consent[hidden] { display: none; }

/* ---- Backdrop ---- */
.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: auto;
}

.cookie-consent.is-open .cookie-consent__backdrop { opacity: 1; }

/* ---- Bottom panel ---- */
.cookie-consent__panel {
  position: relative;
  width: 100%;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-strong);
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: auto;
}

.cookie-consent.is-open .cookie-consent__panel { transform: translateY(0); }

.cookie-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* ---- Image slot ---- */
.cookie-consent__image {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent__image img,
.cookie-consent__image svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Text ---- */
.cookie-consent__content { min-width: 0; }

.cookie-consent__title {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  color: var(--color-display);
  margin: 0 0 8px;
}

.cookie-consent__body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0 0 6px;
}

.cookie-consent__footnote {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-secondary);
  margin: 0;
}

.cookie-consent__footnote a {
  color: var(--color-mint);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.cookie-consent__footnote a:hover { color: var(--color-mint-deep); }

/* ---- Actions ---- */
.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__actions .btn { min-width: 132px; }

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .cookie-consent__inner {
    grid-template-columns: 1fr;
    padding: 20px 20px 24px;
    gap: 16px;
    text-align: left;
  }

  .cookie-consent__image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }

  .cookie-consent__title { font-size: 18px; }

  .cookie-consent__actions {
    width: 100%;
  }
  .cookie-consent__actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

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