/* Analytics consent banner.
   Rendered by includes/consent/consent-banner.php and only present until
   the visitor has made a choice. */

.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1080;
  padding: 1rem 0;
  background-color: var(--bm-surface-inverse, #212529);
  color: var(--bm-text-inverse, #ffffff);
  box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

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

.consent-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.consent-banner__text {
  flex: 1 1 22rem;
}

.consent-banner__text p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.consent-banner__heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.consent-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.consent-banner a {
  color: inherit;
}

/* Honeypot field: off-screen for humans, still filled in by bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .consent-banner__actions {
    width: 100%;
  }

  .consent-banner__actions .btn {
    flex: 1 1 auto;
  }
}
