/* Cookie consent banner (see consent.js); colors follow the theme, incl. dark mode. */
#aisd-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: var(--pst-color-surface);
  color: var(--pst-color-text-base);
  border: 1px solid var(--pst-color-border);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

#aisd-consent p {
  margin: 0 0 0.75rem;
}

.aisd-consent-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.aisd-consent-buttons button {
  padding: 0.35rem 1rem;
  border: 1px solid var(--pst-color-primary);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--pst-color-primary);
  cursor: pointer;
}

.aisd-consent-buttons button[data-consent="granted"] {
  background: var(--pst-color-primary);
  color: var(--pst-color-background);
}
