/* ────────────────────────────────────────────────────────────────────────
   consent-banner.css — banner shown to users without a stored preference.
   Slim, fixed-bottom, dismissable. Respects prefers-reduced-motion.
   ──────────────────────────────────────────────────────────────────────── */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--color-bg, #ffffff);
  color: var(--color-text, #1a1a1a);
  border-top: 1px solid var(--color-border, #e5e5e5);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  font-family: var(--font-base, system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.5;
  /* Start hidden for slide-in animation. */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 1rem 1.25rem;
}

.consent-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.consent-banner--hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.consent-banner__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.consent-banner__text {
  flex: 1 1 320px;
  max-width: 640px;
}

.consent-banner__text a {
  text-decoration: underline;
  color: inherit;
}

.consent-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.consent-banner__btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--color-border, #ccc);
  background: var(--color-bg, #fff);
  color: var(--color-text, #1a1a1a);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.consent-banner__btn:hover {
  background: var(--color-bg-hover, #f5f5f5);
}

.consent-banner__btn--accept {
  background: var(--color-primary, #1a56db);
  color: #fff;
  border-color: var(--color-primary, #1a56db);
}

.consent-banner__btn--accept:hover {
  background: var(--color-primary-hover, #1341a8);
  border-color: var(--color-primary-hover, #1341a8);
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: opacity 0.15s linear;
    transform: none;
  }
  .consent-banner--hidden {
    transform: none;
  }
}

@media (max-width: 768px) {
  .consent-banner {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
  .consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .consent-banner__text {
    flex: 1 1 auto;
    max-width: none;
    margin-bottom: 0.25rem;
  }
  .consent-banner__actions {
    width: 100%;
    flex-direction: column;
  }
  .consent-banner__btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}
