/* =====================================================================
   Eralux Cookie Consent — bottom bar
   Uses the shared design-system tokens.
   ===================================================================== */

.eralux-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: var(--ews-dark, #0a0908);
  color: var(--ews-contrast-ink, #fff);
  font-family: var(--ews-font, system-ui, sans-serif);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

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

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

.eralux-cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px var(--eralux-page-padding-horizontal, 24px);
}

.eralux-cookie-consent-text {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(13px, 0.85vw, 14px);
  line-height: 1.6;
  color: rgba(var(--ews-contrast-ink-rgb, 255, 255, 255), 0.85);
}

.eralux-cookie-consent-text a {
  color: var(--ews-contrast-ink, #fff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eralux-cookie-consent-text a:hover,
.eralux-cookie-consent-text a:focus-visible {
  color: var(--ews-accent-light, #33bced);
}

.eralux-cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.eralux-cookie-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 24px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--ews-weight-semibold, 600);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.eralux-cookie-consent-accept {
  background: var(--ews-accent, #142536);
  color: var(--ews-contrast-ink, #fff);
}

.eralux-cookie-consent-accept:hover,
.eralux-cookie-consent-accept:focus-visible {
  background: var(--ews-accent-dark, #007cab);
}

.eralux-cookie-consent-decline {
  background: transparent;
  color: var(--ews-contrast-ink, #fff);
  border-color: rgba(var(--ews-contrast-ink-rgb, 255, 255, 255), 0.4);
}

.eralux-cookie-consent-decline:hover,
.eralux-cookie-consent-decline:focus-visible {
  border-color: var(--ews-contrast-ink, #fff);
  background: rgba(var(--ews-contrast-ink-rgb, 255, 255, 255), 0.08);
}

.eralux-cookie-consent-btn:focus-visible {
  outline: 2px solid var(--ews-accent-light, #33bced);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .eralux-cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .eralux-cookie-consent-actions {
    justify-content: stretch;
  }

  .eralux-cookie-consent-btn {
    flex: 1 1 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eralux-cookie-consent {
    transition: none;
  }
}
