/* AIRA FLOW v87: centered, bilingual consent choice. */
.cookie-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: rgba(2, 3, 7, .82);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.cookie-consent-layer.show {
  display: flex;
}

.cookie-consent-layer .cookie {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
  display: flex !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  max-height: calc(100dvh - 48px);
  margin: auto !important;
  padding: clamp(24px, 4vw, 36px) !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: auto;
  border: 1px solid rgba(255, 45, 75, .85) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 23, 56, .18), transparent 30%),
    linear-gradient(145deg, rgba(18, 19, 28, .985), rgba(5, 6, 11, .99)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 0 34px rgba(255, 23, 56, .22),
    0 32px 100px rgba(0, 0, 0, .72) !important;
  color: #f7f7fa !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  animation: airaConsentPulse 2.6s ease-in-out infinite;
}

.cookie-consent-layer .cookie-kicker {
  display: block;
  margin-bottom: 12px;
  color: #ff344f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cookie-consent-layer .cookie h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.cookie-consent-layer .cookie-copy {
  display: grid;
  gap: 9px;
}

.cookie-consent-layer .cookie p {
  margin: 0 !important;
  color: rgba(247, 247, 250, .78) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.cookie-consent-layer .cookie p strong {
  color: #fff;
}

.cookie-consent-layer .cookie-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 11px !important;
  width: 100%;
  margin-top: 24px;
}

.cookie-consent-layer .cookie .btn {
  display: inline-flex !important;
  min-height: 58px !important;
  height: auto !important;
  padding: 11px 16px !important;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .105) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal !important;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cookie-consent-layer .cookie .btn.primary {
  border-color: rgba(255, 63, 89, .95) !important;
  background: linear-gradient(135deg, #ff1738, #bf0927) !important;
  color: #fff !important;
}

.cookie-consent-layer .cookie .btn:hover,
.cookie-consent-layer .cookie .btn:focus-visible {
  transform: translateY(-2px);
  border-color: #fff !important;
  outline: none;
}

.cookie-consent-layer .cookie .btn small {
  color: inherit;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .075em;
  opacity: .78;
}

@keyframes airaConsentPulse {
  0%, 100% {
    border-color: rgba(255, 45, 75, .68);
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 0 24px rgba(255,23,56,.16), 0 32px 100px rgba(0,0,0,.72);
  }
  50% {
    border-color: rgba(255, 76, 102, 1);
    box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 0 48px rgba(255,23,56,.34), 0 32px 100px rgba(0,0,0,.72);
  }
}

@media (max-width: 620px) {
  .cookie-consent-layer {
    padding: 14px;
  }

  .cookie-consent-layer .cookie {
    max-height: calc(100dvh - 28px);
    padding: 23px 18px !important;
    border-radius: 21px !important;
  }

  .cookie-consent-layer .cookie-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-layer .cookie {
    animation: none !important;
  }
}
