.analytics-preferences {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid #cad9dd;
  border-radius: 16px;
  background: #f7faf9;
  color: #193445;
  box-shadow: 0 12px 35px #122b3a26;
}

.analytics-preferences[hidden] { display: none; }
.analytics-preferences h2 { margin: 0 0 5px; font-size: 17px; }
.analytics-preferences p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.analytics-preferences div { display: flex; gap: 8px; }
.analytics-preferences button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #94aeb9;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.analytics-preferences button:hover { background: #e4eef0; }
.analytics-preferences-link {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
