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

.analytics-consent {
  position: fixed;
  inset-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1000;
  width: min(29rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  margin-inline-start: auto;
  overflow: auto;
  padding: 1rem;
  color: #f3f1ec;
  background: #17171b;
  border: 1px solid #625477;
  border-radius: 0.875rem;
  box-shadow: 0 8px 32px rgb(0 0 0 / 28%);
  font-size: 1rem;
  line-height: 1.45;
}

.analytics-consent h2 {
  margin: 0 0 0.375rem;
  font: inherit;
  font-weight: 600;
}

.analytics-consent p {
  margin: 0 0 0.75rem;
}

.analytics-consent a {
  color: #e0ccff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-consent button,
[data-analytics-settings] {
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

.analytics-consent button {
  flex: 1 1 8rem;
}

.analytics-consent button:hover,
[data-analytics-settings]:hover {
  background: rgb(138 63 252 / 15%);
}
