.analytics-preferences[hidden] {
  display: none;
}

.analytics-preferences {
  position: fixed;
  z-index: 100;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(25rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid #B8C5D9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(18 43 74 / 16%);
  color: #0B162A;
  font: 0.9rem/1.5 system-ui, sans-serif;
}

.analytics-preferences p {
  color: inherit;
  margin: 0 0 0.75rem;
}

.analytics-preferences a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.analytics-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.analytics-preferences button,
[data-analytics-settings] {
  padding: 0.45em 0.75em;
  border: 1px solid #0B162A;
  border-radius: 0.35em;
  background: #fff;
  color: #0B162A;
  font: inherit;
  cursor: pointer;
}

.analytics-preferences button[data-choice="allow"] {
  background: #0B162A;
  color: #fff;
}
