/* Scoped styles for the optional public-site Analytics choice. */
.ch-analytics-banner {
  position: fixed;
  z-index: 10000;
  left: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 44px));
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #395b88;
  border-radius: 16px;
  background: #09152a;
  color: #f1f6ff;
  box-shadow: 0 10px 40px #0007;
  font-family: inherit;
  text-align: left;
}
.ch-analytics-banner[hidden] { display: none !important; }
.ch-analytics-banner h2 { margin: 0 0 8px; color: #fff; font-size: 17px; line-height: 1.35; letter-spacing: normal; }
.ch-analytics-banner p { margin: 0 0 8px; color: #c9d8ef; font-size: 14px; line-height: 1.55; }
.ch-analytics-privacy { color: #9dccff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ch-analytics-actions { display: flex; gap: 10px; margin-top: 16px; }
.ch-analytics-actions button {
  flex: 1;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #5377a7;
  border-radius: 9px;
  background: #162b49;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  font-family: inherit;
  cursor: pointer;
}
.ch-analytics-actions button:hover { background: #223e65; }
.ch-analytics-settings {
  display: inline-block;
  margin: 0 0 0 12px;
  padding: 4px 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ch-analytics-banner :focus-visible, .ch-analytics-settings:focus-visible { outline: 2px solid #97c7ff; outline-offset: 3px; }
.ch-analytics-choice-open .public-activity { visibility: hidden; }
@media (max-width: 520px) {
  .ch-analytics-banner { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; }
}
