/* Cookie / analytics consent banner — WCAG AA+ contrast */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cookie-consent__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.cookie-consent__copy {
  flex: 1 1 260px;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1e293b;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn--primary {
  background: #1d4ed8;
  color: #ffffff;
}

.cookie-consent__btn--primary:hover {
  background: #1e40af;
}

.cookie-consent__btn--ghost {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #64748b;
}

.cookie-consent__btn--ghost:hover {
  background: #f1f5f9;
}

html.dark-theme .cookie-consent__inner {
  background: #020617;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html.dark-theme .cookie-consent__title {
  color: #ffffff;
}

html.dark-theme .cookie-consent__text {
  color: #e2e8f0;
}

html.dark-theme .cookie-consent__btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: #94a3b8;
}

html.dark-theme .cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-theme .cookie-consent__btn--primary {
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 640px) {
  .cookie-consent__inner {
    align-items: stretch;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1;
  }
}
