.analytics-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 1200;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid #cddfdd;
  border-radius: 10px;
  color: #123433;
  background: #fff;
  box-shadow: 0 8px 35px #12343324;
  font-size: 13px;
  line-height: 1.5;
}
.analytics-choice p { margin: 4px 0 6px; font-size: 13px; line-height: 1.4; }
.analytics-choice a { color: #006e6b; text-decoration: underline; }
.analytics-choice-actions { display: flex; flex-wrap: wrap; justify-self: end; gap: 8px; }
.analytics-choice-actions button {
  min-height: 32px;
  min-width: 64px;
  padding: 4px 12px;
  border: 1px solid #9cbab7;
  border-radius: 7px;
  background: #f5f9f8;
  color: #123433;
  font: inherit;
  cursor: pointer;
}
.analytics-choice-actions button:hover { background: #e8f3f1; }
.analytics-choice-actions .analytics-choice-allow { background: #087f72; border-color: #087f72; color: #fff; }
.analytics-choice-actions .analytics-choice-allow:hover { background: #06685e; border-color: #06685e; }
.analytics-choice-actions button:focus-visible, .analytics-settings-link:focus-visible { outline: 2px solid #008681; outline-offset: 3px; }
.analytics-settings-link { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }
@media (max-width: 600px) { .analytics-choice-actions button { min-height: 44px; } }
.analytics-choice summary { cursor: pointer; font-weight: 600; }
.analytics-choice details[open] { grid-column: 1 / -1; }
.analytics-choice details[open] + .analytics-choice-actions { grid-column: 1 / -1; }
.analytics-choice:has(details[open]) .analytics-choice-actions { grid-column: 1 / -1; grid-row: auto; }
.analytics-choice details[open] summary { margin-bottom: 8px; }
.analytics-choice summary:focus-visible { outline: 2px solid #008681; outline-offset: 3px; }
