.analytics-consent[hidden],
.analytics-consent button[hidden],
button[data-analytics-settings][hidden] {
  display: none;
}

.analytics-consent {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 1000;
  width: min(29rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--line-2, #666);
  border-radius: 12px;
  background: var(--card, #161616);
  color: var(--ink, #f3f3f1);
  box-shadow: 0 8px 32px #0006;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

.analytics-consent h2 {
  margin: 0 0 .5rem;
  font: 700 1.125rem/1.3 Inter, system-ui, sans-serif;
  text-transform: none;
}

.analytics-consent p {
  margin: 0 0 1rem;
  font-size: .9375rem;
}

.analytics-consent a,
button[data-analytics-settings] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

button[data-analytics-settings] {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.analytics-consent-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 600 .9375rem Inter, system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent-actions button:hover {
  background: var(--line, #393939);
}
