#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 80rem;
  margin-inline: auto;
  background: #001f3f;
  background: linear-gradient(135deg, #001f3f 0%, #0a2e5c 100%);
  color: #fafbfc;
  border: 1px solid rgba(67, 183, 255, 0.25);
  border-radius: 1rem;
  box-shadow:
    0 1.25rem 3rem rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(67, 183, 255, 0.08);
  padding: 1.25rem 1.5rem;
  font-family: "SourceSans3", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  z-index: 9999;
  animation: cookieBannerIn 0.35s ease-out;
}

@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  color: #fafbfc;
  font-size: 1rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: #43b7ff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

.cookie-banner__text a:hover {
  color: #6ec8ff;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Match the site's cs-button-solid baseline. */
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 60px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

.cookie-banner__btn:focus-visible {
  outline: 3px solid #43b7ff;
  outline-offset: 2px;
}

/* Accept all — primary CTA, mirrors hero cs-button-solid: silver gradient + cyan glow. */
.cookie-banner__btn--accept {
  background: linear-gradient(45deg, #cecece 0%, #ffffff 100%);
  color: #001f3f;
  box-shadow:
    0 0 24px rgba(67, 183, 255, 0.2),
    0 0 39px rgba(67, 183, 255, 0.2),
    0 0 60px rgba(67, 183, 255, 0.2);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(67, 183, 255, 0.32),
    0 0 48px rgba(67, 183, 255, 0.28),
    0 0 72px rgba(67, 183, 255, 0.24);
}

/* Necessary only — ghost variant, matches cs-button-transparent. */
.cookie-banner__btn--reject {
  background: transparent;
  color: #fafbfc;
  border: 1px solid rgba(250, 251, 252, 0.45);
}

.cookie-banner__btn--reject:hover {
  background: rgba(250, 251, 252, 0.08);
  border-color: rgba(250, 251, 252, 0.7);
  transform: translateY(-1px);
}

/* Dark mode: site already uses a deep navy palette, so the banner stays
   readable as is — but lift the border slightly for separation. */
body.dark-mode #cookie-banner {
  border-color: rgba(67, 183, 255, 0.35);
}

@media (max-width: 30rem) {
  #cookie-banner {
    padding: 1rem 1.125rem;
  }
  .cookie-banner__btn {
    flex: 1 1 auto;
    padding: 0 1.25rem;
  }
}

/* Footer "Cookie settings" trigger — looks identical to the sibling
   <a class="cs-bottom-link"> links. */
button.cs-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}
button.cs-cookie-settings:hover {
  text-decoration: underline;
}
