.web-analytics-preferences {
  position: fixed;
  z-index: 60;
  inset: auto 16px max(16px, env(safe-area-inset-bottom)) auto;
  box-sizing: border-box;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border, #dedede);
  border-radius: 16px;
  background: var(--background, #fff);
  color: var(--foreground, #171717);
  box-shadow: 0 8px 32px rgb(0 0 0 / 12%);
  font: inherit;
}

.web-analytics-preferences::backdrop {
  background: rgb(0 0 0 / 32%);
}

.web-analytics-preferences h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.web-analytics-preferences p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.web-analytics-preferences a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.web-analytics-preferences > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.web-analytics-preferences button {
  flex: 1;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--border, #dedede);
  border-radius: 999px;
  background: var(--secondary, #f5f5f5);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.web-analytics-preferences :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
