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

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3000;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  color: #111111;
  background: #ffffff;
  border: 0.125rem solid #0000bb;
  border-radius: 0.25rem;
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 70, 0.28);
  font-family: "Poppins", Arial, sans-serif;
}

.cookie-consent__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}

.cookie-consent__title {
  margin: 0 0 0.55rem;
  color: #0000bb;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.cookie-consent__text,
.cookie-consent__details p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.cookie-consent__button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: #0000bb;
  border: 0.125rem solid #0000bb;
  border-radius: 0.2rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent__button:hover {
  background: #0079ff;
  border-color: #0079ff;
}

.cookie-consent__more {
  margin-top: 0.75rem;
  padding: 0;
  color: #0000bb;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.cookie-consent__details {
  max-height: min(38vh, 22rem);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 0.0625rem solid rgba(0, 0, 187, 0.25);
  overflow-y: auto;
}

.cookie-consent__details-title {
  margin: 0 0 0.7rem;
  color: #0000bb;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-consent__details p + p {
  margin-top: 0.7rem;
}

.cookie-consent__details a {
  color: #0000bb;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-consent__button:focus-visible,
.cookie-consent__more:focus-visible,
.cookie-consent__details a:focus-visible,
.cookie-settings:focus-visible {
  outline: 0.18rem solid #00d8ff;
  outline-offset: 0.2rem;
}

.cookie-settings {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 2990;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  color: #ffffff;
  background: #0000bb;
  border: 0.125rem solid #ffffff;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 70, 0.24);
  font: 600 0.85rem/1 "Poppins", Arial, sans-serif;
  cursor: pointer;
}

.cookie-settings:hover {
  background: #0079ff;
}

@media (max-width: 46rem) {
  .cookie-consent {
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 88vh;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .cookie-consent__main {
    display: block;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
    margin-top: 1.1rem;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .cookie-consent__details {
    max-height: none;
    overflow: visible;
  }
}

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

@media print {
  .cookie-consent,
  .cookie-settings {
    display: none !important;
  }
}