/* Cookie banner: linked together with its markup (landing/includes/cookie_consent_bundle.html), so it looks the
   same on landing, CMS, block and imported pages, which do not all load styles.css. On a phone it is compact
   (two buttons in a row, 44 px each) and stays clear of iPhone's home bar: it must not hide a form. */
.cookie-banner {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  width: min(520px, calc(100% - 44px));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: #fff;
  background: rgba(24, 25, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.cookie-banner__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cookie-banner__text strong {
  color: var(--cyan, #17d4c1);
}

.cookie-banner__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  overflow-wrap: break-word;
}

.cookie-banner__text a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text .cookie-banner__status {
  color: #ffd166;
  font-weight: 800;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue, #0788f5), var(--blue-2, #0058ff));
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-banner .button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

@media (hover: hover) {
  .cookie-banner .button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.62);
  }
}

@media (max-width: 760px) {
  .cookie-banner {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    max-height: 45svh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cookie-banner__text {
    gap: 2px;
  }

  .cookie-banner__text p {
    font-size: 13px;
    line-height: 1.4;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-banner .button {
    width: 100%;
    padding: 0 12px;
  }
}

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