.cookie-notice {
  position: fixed;
  z-index: 80;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: max(0.75rem, env(safe-area-inset-left));
  width: min(calc(100% - 1.5rem), 43rem);
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(149, 192, 245, 0.45);
  border-radius: 18px;
  background: rgba(9, 19, 34, 0.97);
  box-shadow: 0 20px 50px rgba(1, 8, 20, 0.65);
  color: #edf5ff;
}

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

.cookie-notice__content {
  min-width: 0;
}

.cookie-notice__eyebrow {
  margin: 0 0 0.2rem;
  color: #8fc5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-notice__title {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

.cookie-notice__copy {
  margin: 0.5rem 0 0;
  color: #c4d6ec;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-notice__copy a {
  color: #b9ddff;
  font-weight: 700;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.cookie-notice__essential,
.cookie-notice__close,
.footer-consent-trigger {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-notice__essential {
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #1f88ff, #0e57be);
  box-shadow: 0 8px 20px rgba(12, 79, 172, 0.35);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.cookie-notice__close {
  min-height: 2.55rem;
  padding: 0.55rem 0.25rem;
  background: transparent;
  color: #b9cbe2;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-notice__essential:hover,
.cookie-notice__essential:focus-visible {
  background: linear-gradient(140deg, #409bff, #1469d8);
}

.cookie-notice__close:hover,
.cookie-notice__close:focus-visible,
.footer-consent-trigger:hover,
.footer-consent-trigger:focus-visible {
  color: #fff;
}

.footer-consent-trigger {
  padding: 0;
  background: transparent;
  color: #b6cae4;
  font-size: inherit;
  text-decoration: none;
}

.footer-consent-trigger:hover,
.footer-consent-trigger:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.site-home .cookie-notice {
  bottom: calc(5.55rem + env(safe-area-inset-bottom));
}

@media (min-width: 761px) {
  .cookie-notice {
    right: 1.25rem;
    left: auto;
    margin: 0;
  }
}
