/* Privacy choice — no optional third-party script is requested until acceptance. */
.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 10050;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: max(1.5rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(43rem, calc(100vw - 3rem));
  margin-left: auto;
  padding: 1rem;
  border: 1px solid rgb(9 34 64 / 12%);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 1.5rem 3.5rem rgb(9 34 64 / 18%), 0 0.25rem 0.75rem rgb(9 34 64 / 8%);
  color: #092240;
  font-family: var(--home-font-text, "Manrope", sans-serif);
  backdrop-filter: blur(1.25rem) saturate(160%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(160%);
  animation: cookie-consent-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-consent__icon {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border-radius: 1.25rem;
  background: #fff7d9;
}

.cookie-consent__icon svg {
  width: 2.8rem;
  height: 2.8rem;
}

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

.cookie-consent__title,
.cookie-consent__description,
.cookie-consent__note {
  margin: 0;
}

.cookie-consent__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cookie-consent__description {
  margin-top: 0.25rem;
  color: #526277;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.cookie-consent__note {
  margin-top: 0.3rem;
  color: #526277;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
}

.cookie-consent__note a {
  color: #1d81f8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.cookie-consent__actions {
  display: grid;
  gap: 0.5rem;
  min-width: 10.5rem;
}

.cookie-consent__button {
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font: 700 0.75rem/1.2 var(--home-font-text, "Manrope", sans-serif);
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out, transform 100ms ease-out;
}

.cookie-consent__button:active {
  transform: scale(0.98);
}

.cookie-consent__button--primary {
  background: #1d81f8;
  box-shadow: 0 0.5rem 1rem rgb(29 129 248 / 24%);
  color: #fff;
}

.cookie-consent__button--primary:hover {
  background: #0d72ed;
}

.cookie-consent__button--secondary {
  border-color: rgb(9 34 64 / 16%);
  background: rgb(255 255 255 / 72%);
  color: #092240;
}

.cookie-consent__button--secondary:hover {
  border-color: rgb(9 34 64 / 28%);
  background: #f4f7fb;
}

.cookie-consent__button:focus-visible,
.site-footer__cookie-settings:focus-visible {
  outline: 3px solid rgb(29 129 248 / 38%);
  outline-offset: 3px;
}

.site-footer .site-footer__cookie-settings {
  width: fit-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white-color) !important;
  font-family: "Manrope", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.125rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer .site-footer__cookie-settings:hover {
    color: #fff !important;
  }
}

@keyframes cookie-consent-enter {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.875rem;
    width: calc(100vw - 2rem);
    padding: 0.875rem;
    border-radius: 1.25rem;
  }

  .cookie-consent__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
  }

  .cookie-consent__icon svg {
    width: 2.45rem;
    height: 2.45rem;
  }

  .cookie-consent__actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }

  .site-footer .site-footer__cookie-settings {
    width: auto;
    line-height: 1.1875rem;
  }
}

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

  .cookie-consent__button {
    transition: background-color 120ms ease-out, border-color 120ms ease-out;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .cookie-consent {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
