/* Cookie consent banner — discreet bottom-left card, theme-native, no overlay */
.cookie-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 1200;
  max-width: 320px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  /* visibility:hidden removes dismissed buttons from the tab order and
     accessibility tree; the 0s linear delay keeps it hidden until the
     fade-out transition completes. */
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  /* No delay when showing — become visible immediately. */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent-text {
  margin: 0 0 12px;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cookie-consent-actions .btn {
  font-size: 13px;
  padding: 6px 14px;
}

.cookie-consent-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
