.analytics-consent {
  position: fixed;
  z-index: 60;
  inset-inline: 20px;
  bottom: 20px;
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 32px rgb(0 0 0 / 15%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.analytics-consent p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.analytics-consent p a { text-decoration: underline; color: var(--text); }
.analytics-consent .analytics-consent-current { margin-top: 9px; font-size: 11px; }
.analytics-consent-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 130px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.analytics-consent-actions button:hover { border-color: var(--muted); }
.analytics-consent-actions .analytics-consent-close { background: transparent; border-color: transparent; font-weight: 400; }
.analytics-consent button:focus-visible, .analytics-consent a:focus-visible, [data-analytics-settings]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-analytics-settings] { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .analytics-consent { inset-inline: 12px; bottom: 12px; width: calc(100% - 24px); display: block; padding: 18px; max-height: calc(100dvh - 24px); }
  .analytics-consent-actions { margin-top: 16px; flex-direction: row; flex-wrap: wrap; }
  .analytics-consent-actions button { flex: 1 1 100px; }
  .analytics-consent-actions .analytics-consent-close { flex-basis: 100%; min-height: 36px; }
}
