/* ================================================================
   Cookie Consent Banner — GDPR-compliant
   ================================================================ */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  pointer-events: none;
}

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

.cookie-consent__inner {
  max-width: 680px;
  margin: 0 auto var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-consent__text {
  flex: 1 1 300px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-consent__text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--accept {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.cookie-consent__btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-consent__btn--decline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.cookie-consent__btn--decline:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
  .cookie-consent__inner {
    margin: 0 var(--space-sm) var(--space-sm);
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: center;
  }
}
