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

.cookie-consent {
  position: fixed;
  z-index: 1200;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(31rem, calc(100vw - 2rem));
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid rgba(18, 61, 104, 0.14);
  border-top: 0.35rem solid #008e99;
  border-radius: 1.35rem;
  background: #fff;
  color: #173b61;
  box-shadow: 0 1.5rem 4rem rgba(18, 61, 104, 0.24);
}

.cookie-consent h2 {
  margin: 0 0 0.55rem;
  color: #123d68;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.15;
}

.cookie-consent p {
  margin: 0;
  color: #526b84;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: #123d68;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cookie-consent button {
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid #6948c6;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-reject {
  background: #fff;
  color: #4f35a5;
}

.cookie-accept {
  background: #6948c6;
  color: #fff;
}

.cookie-consent button:hover {
  transform: translateY(-1px);
}

.cookie-consent button:focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid #00aab5;
  outline-offset: 3px;
}

.cookie-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

footer .cookie-settings {
  margin-left: 0.65rem;
}

@media (max-width: 34rem) {
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}

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

@media (forced-colors: active) {
  .cookie-consent,
  .cookie-consent button {
    border: 2px solid ButtonText;
  }

  .cookie-consent button:focus-visible,
  .cookie-settings:focus-visible {
    outline-color: ButtonText;
  }
}
