.bz-consent,
.bz-consent-preferences {
  font-family: Arial, Helvetica, sans-serif;
}

.bz-consent[hidden],
.bz-consent-preferences[hidden] {
  display: none !important;
}

.bz-consent {
  position: fixed;
  z-index: 2147483646;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.125rem;
  color: #102a35;
  background: #fff;
  border: 1px solid #cdd9d7;
  border-radius: 0.875rem;
  box-shadow: 0 1.25rem 4rem rgba(0, 26, 51, 0.24);
}

.bz-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.58fr);
  align-items: end;
  gap: 1rem 1.5rem;
}

.bz-consent__copy h2 {
  margin: 0 2rem 0.375rem 0;
  color: #001a33;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.bz-consent__copy p {
  margin: 0 0 0.5rem;
  color: #425b66;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bz-consent__policy {
  color: #105f4b;
  font-size: 0.8125rem;
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.bz-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.bz-consent__choice {
  min-height: 2.875rem;
  padding: 0.6875rem 0.875rem;
  color: #fff;
  background: #105f4b;
  border: 2px solid #105f4b;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.bz-consent__choice:hover {
  background: #0b4d3c;
  border-color: #0b4d3c;
}

.bz-consent__choice:focus-visible,
.bz-consent__close:focus-visible,
.bz-consent-preferences:focus-visible,
.bz-consent__policy:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.bz-consent__close {
  position: absolute;
  top: 0.625rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #102a35;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bz-consent-preferences {
  position: fixed;
  z-index: 2147483645;
  right: 5rem;
  bottom: 1rem;
  right: max(5rem, calc(4rem + env(safe-area-inset-right)));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: #001a33;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 26, 51, 0.22);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 48rem) {
  .bz-consent {
    padding: 1rem;
  }

  .bz-consent__content {
    grid-template-columns: 1fr;
  }

  body:has(.footer-actions) .bz-consent {
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  body:has(.footer-actions) .bz-consent-preferences {
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 30rem) {
  .bz-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bz-consent,
  .bz-consent-preferences {
    scroll-behavior: auto;
  }
}

@media print {
  .bz-consent,
  .bz-consent-preferences {
    display: none !important;
  }
}
