/* Cookie consent banner (Phase 6) — legible over any page background */
.ah-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  color: #f8f4f0;
  color-scheme: dark;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  background-color: #14100e;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -16px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ah-cookie-banner {
    background-color: #14100e;
  }
}

.ah-cookie-banner.is-visible {
  transform: translateY(0);
}

.ah-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.ah-cookie-banner__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.ah-cookie-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  color: #ffffff;
  line-height: 1.35;
}

.ah-cookie-banner__text {
  margin: 0;
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.55;
  color: #e8e2dc;
}

.ah-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ah-cookie-banner__link {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: #ffdba8;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  margin-right: 0.25rem;
}

.ah-cookie-banner__link:hover,
.ah-cookie-banner__link:focus-visible {
  color: #ffffff;
}

.ah-cookie-banner__btn {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ah-cookie-banner__btn--primary {
  background-color: #ff6f61;
  background-image: linear-gradient(135deg, #ff6f61, #ffd5a1);
  color: #1a1412;
  border-color: rgba(26, 20, 18, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.ah-cookie-banner__btn--primary:hover,
.ah-cookie-banner__btn--primary:focus-visible {
  filter: brightness(1.04);
}

.ah-cookie-banner__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
}

.ah-cookie-banner__btn--ghost:hover,
.ah-cookie-banner__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.62);
}

.ah-cookie-banner__btn:focus-visible {
  outline: 2px solid #ffd5a1;
  outline-offset: 2px;
}

body.has-consent-banner {
  padding-bottom: 0;
}

@media (max-width: 480px) {
  .ah-cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
