/* Optional, non-modal consent notice; no focus hijack on initial page load. */
.analytics-consent {
    position: fixed; bottom: 20px; left: 20px; z-index: 80;
    width: min(460px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto;
    padding: 25px; background: #fff; border: 1px solid #cbd5d8; border-radius: 24px;
    box-shadow: 0 14px 55px -20px rgba(28, 40, 46, .35); color: var(--ink);
}
.analytics-consent h2 { font-size: 1.25rem; line-height: 1.5; margin-bottom: 12px; }
.analytics-consent p { font-size: .9375rem; line-height: 1.75; }
.analytics-consent > a { display: inline-block; margin-top: 12px; font-size: .9375rem; color: #2350c0; text-decoration: underline; text-underline-offset: 4px; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.analytics-consent__actions button { flex: 1 1 150px; border: 1px solid #58707b; border-radius: 100px; padding: 12px 16px; background: #f2f6f8; color: #253f51; font-size: 1rem; line-height: 1.5; min-height: 48px; }
.analytics-consent__actions button:hover { background: #e7eef4; border-color: var(--blue); }
.analytics-consent .analytics-consent__note { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.analytics-consent .analytics-consent__error { margin-top: 14px; color: #9c2727; }
#analytics-consent-heading:focus { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (max-width: 640px) {
    .analytics-consent { left: 12px; bottom: 90px; width: calc(100% - 24px); max-height: calc(100dvh - 110px); padding: 20px; }
    .analytics-consent__actions { gap: 10px; }
    .analytics-consent__actions button { flex-basis: 110px; padding-inline: 10px; }
}
@media print { .analytics-consent { display: none; } }