.cookie-consent-banner {
  position: fixed;
  z-index: 3000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 76rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid #d5d9df;
  border-radius: 1rem;
  background: #fff;
  color: #17212b;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%);
  font: 300 0.9375rem/1.5 Poppins, sans-serif;
}

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

.cookie-consent-copy {
  max-width: 48rem;
}

.cookie-consent-copy strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.cookie-consent-copy p,
.cookie-consent-dialog p {
  margin: 0;
  color: #4b5563;
}

.cookie-consent-banner a,
.cookie-consent-dialog a,
.cookie-consent-map-placeholder a {
  color: #124e78;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-consent-button {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #9aa4ae;
  border-radius: 0.6rem;
  background: #fff;
  color: #17212b;
  font: 700 0.875rem/1.2 Poppins, sans-serif;
  cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  outline: 3px solid rgb(18 78 120 / 25%);
  outline-offset: 2px;
}

.cookie-consent-button--primary {
  border-color: #123e60;
  background: #123e60;
  color: #fff;
}

.cookie-consent-dialog {
  width: min(38rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 48rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #17212b;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
  font: 300 0.9375rem/1.5 Poppins, sans-serif;
}

.cookie-consent-dialog::backdrop {
  background: rgb(12 20 28 / 65%);
}

.cookie-consent-dialog__inner {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.cookie-consent-dialog h2 {
  margin: 0;
  font-size: 1.375rem;
}

.cookie-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.cookie-consent-category span span,
.cookie-consent-category div span {
  display: block;
  margin-top: 0.15rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.cookie-consent-category input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: #123e60;
}

.cookie-consent-map-placeholder {
  display: flex;
  min-height: 20rem;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  font: 300 0.9375rem/1.5 Poppins, sans-serif;
}

.cookie-consent-map-placeholder p {
  max-width: 34rem;
  margin: 0;
  color: #364152;
}

.cookie-consent-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    max-height: min(80vh, 34rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .cookie-consent-button {
    flex: 1 1 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner *,
  .cookie-consent-dialog * {
    scroll-behavior: auto !important;
  }
}
