.analytics-consent {
  position: fixed; z-index: 1000; left: 50%; bottom: 16px;
  transform: translateX(-50%); width: min(1120px, calc(100% - 32px));
  box-sizing: border-box; max-height: calc(100dvh - 32px); overflow: auto;
  display: flex; align-items: center; gap: 32px; padding: 18px 24px;
  background: #fff; color: #222; border: 1px solid #dce3ec; border-radius: 12px;
  box-shadow: 0 4px 24px #142d5012; font: 13px/1.5 Arial, sans-serif;
}
.analytics-consent[hidden], .analytics-consent [hidden] { display: none !important; }
.analytics-copy { flex: 1; min-width: 0; }
.analytics-consent h2 { font: 600 14px/1.4 Arial, sans-serif; margin: 0 24px 4px 0; letter-spacing: 0; }
.analytics-consent p { font: inherit; margin: 0 0 4px; color: #52637a; }
.analytics-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.analytics-actions button { min-width: 100px; background: #fff; color: #222; border: 1px solid #b5beca; border-radius: 7px; padding: 10px 16px; font: 500 13px/1.4 Arial, sans-serif; cursor: pointer; }
.analytics-actions button:hover { background: #f1f4f8; }
.analytics-consent summary { cursor: pointer; color: #52637a; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent details p { margin: 8px 0 0; }
.analytics-consent a { color: #163d78; text-decoration: underline; }
.analytics-consent .analytics-close { position: absolute; right: 4px; top: 2px; background: none; border: 0; color: #52637a; cursor: pointer; font: 20px/1 Arial, sans-serif; width: 28px; height: 28px; }
.analytics-settings { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.analytics-settings:hover { text-decoration: underline; }
.analytics-consent button:focus-visible, .analytics-consent summary:focus-visible, .analytics-settings:focus-visible { outline: 2px solid #075bff; outline-offset: 3px; }
@media (max-width: 700px) {
  .analytics-consent { bottom: 12px; width: calc(100% - 24px); padding: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .analytics-actions button { flex: 1; }
}
