/* Bottom cookie-consent banner.  Loaded only when analytics is enabled. */

.am-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #ffffff;
  color: #1f2a36;
  border: 1px solid #d6dde3;
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 30, 45, 0.18);
  font-size: 0.95rem;
  line-height: 1.45;
}

.am-consent-text {
  margin: 0 0 0.75rem;
}

.am-consent-text a {
  color: #0b5f8a;
}

.am-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.am-consent-actions button {
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid #0b5f8a;
  font: inherit;
  cursor: pointer;
}

.am-consent-accept {
  background: #0b5f8a;
  color: #ffffff;
}

.am-consent-reject {
  background: #ffffff;
  color: #0b5f8a;
}

.am-consent-actions button:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .am-consent {
    background: #1c2630;
    color: #e8edf2;
    border-color: #35424f;
  }

  .am-consent-text a,
  .am-consent-reject {
    color: #7fc4e8;
    border-color: #7fc4e8;
  }

  .am-consent-reject {
    background: transparent;
  }
}
