#analytics-consent {
  position: fixed;
  z-index: 40;
  inset-inline-end: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(26rem, calc(100% - 32px));
  max-height: 70dvh;
  overflow: auto;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(242, 249, 255, .32);
  border-radius: 8px;
  background: #121212;
  color: #f2f9ff;
  text-align: start;
  font: 400 14px/22px var(--font-sans, system-ui, sans-serif);
}

#analytics-consent[hidden], [data-analytics-settings][hidden] { display: none; }

#analytics-consent h2 {
  margin: 0;
  color: inherit;
  font: 600 20px/28px var(--font-mono, ui-monospace, monospace);
  letter-spacing: normal;
}

#analytics-consent p {
  margin: 8px 0 16px;
  color: inherit;
  font: inherit;
}

#analytics-consent a { color: inherit; text-decoration: underline; }
#analytics-consent .analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

#analytics-consent button {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(242, 249, 255, .32);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 600 14px/20px var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
}

#analytics-consent button:hover { border-color: rgba(242, 249, 255, .72); }
#analytics-consent :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

footer [data-analytics-settings] {
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

footer [data-analytics-settings]:not(.site-footer__settings) { border: 0; padding: 0; }

@media (max-width: 767px) {
  #analytics-consent { padding: 20px; }
  #analytics-consent h2 { font-size: 18px; line-height: 26px; }
  #analytics-consent button { min-height: 48px; font-size: 15px; }
}
