.analytics-preferences {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem;
  max-width: 29rem;
  margin: 0 auto;
  padding: 1rem;
  color: #fff;
  background: #201d19;
  border: 1px solid #a39480;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem #0004;
  font: 400 .875rem/1.5 system-ui, sans-serif;
}

.analytics-preferences[hidden] { display: none; }
.analytics-preferences h2 { margin: 0 0 .375rem; color: inherit; font: 700 1rem/1.3 system-ui, sans-serif; }
.analytics-preferences p { margin: 0 0 .75rem; color: inherit; }
.analytics-preferences-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.analytics-preferences-actions button {
  min-height: 44px;
  padding: .375rem .75rem;
  border: 1px solid #a39480;
  border-radius: .25rem;
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.analytics-preferences-link {
  display: block;
  min-height: 44px;
  margin: .5rem auto 0;
  padding: .375rem .75rem;
  border: 0;
  background: none;
  color: inherit;
  font: 400 .8rem/1.5 system-ui, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
