#qs-analytics-notice[hidden] {
  display: none;
}

#qs-analytics-notice {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px));
  z-index: 150;
  box-sizing: border-box;
  width: min(408px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid #a8a99d;
  border-radius: 8px;
  background: var(--bg, #fafaf5);
  color: var(--fg, #25261f);
  box-shadow: 0 4px 16px #25261f26;
  font: 400 14px/1.4 "IBM Plex Sans", system-ui, sans-serif;
}

#qs-analytics-notice p {
  margin: 0 0 10px;
}

#qs-analytics-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qs-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qs-analytics-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #777970;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.qs-analytics-actions button:hover,
.qs-analytics-actions button:focus-visible {
  background: var(--surface, #e9e9de);
}

[data-analytics-settings] {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: var(--bg, #fafaf5);
  color: var(--fg, #25261f);
  cursor: pointer;
  font: inherit;
}
