[data-analytics-settings][hidden], .analytics-preferences [hidden], .analytics-preferences[hidden] {
  display: none !important;
}

[data-analytics-settings] {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.analytics-preferences {
  background: #f4f4f2;
  border: 1px solid #929995;
  box-shadow: 0 5px 28px #10111228;
  box-sizing: border-box;
  color: #101112;
  font: 14px/1.55 system-ui, sans-serif;
  padding: 20px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100% - 32px));
  z-index: 100;
}

.analytics-preferences p {
  color: inherit;
  margin: 0 0 8px;
}

.analytics-preferences .analytics-heading {
  font-size: 16px;
  font-weight: 650;
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.analytics-actions button {
  appearance: none;
  background: #fff;
  border: 1px solid #505456;
  border-radius: 4px;
  color: #101112;
  cursor: pointer;
  font: inherit;
  margin: 0;
  min-height: 44px;
  padding: 8px 12px;
}

.analytics-actions button:hover { background: #e5e7e3; }
.analytics-actions :focus-visible { outline: 2px solid #101112; outline-offset: 3px; }
