/* MVP-064: the analytics notice on the public pages. A non-modal bar at the bottom, in the page's direction, with two buttons of equal size and weight. Loaded only while a measurement ID is set. */

.analytics-consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 14px max(16px, calc((100% - 1240px) / 2)); background: #141518; border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -18px 40px -24px #000; color: var(--text, #f7f8f8); font-size: 15px; line-height: 1.5; }
.analytics-consent[hidden] { display: none; }
.analytics-consent-text { flex: 1 1 420px; min-width: 0; max-width: 760px; margin: 0; overflow-wrap: anywhere; }
.analytics-consent-text a { color: var(--amber, #f5b13d); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 0 0 auto; }
.analytics-consent-button { min-width: 128px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: #1f2125; color: var(--text, #f7f8f8); font: inherit; font-weight: 600; cursor: pointer; }
.analytics-consent-button:hover { background: #2a2d32; }
.analytics-consent-button:focus-visible, .analytics-reopen:focus-visible, .analytics-consent-text a:focus-visible { outline: 3px solid var(--amber, #f5b13d); outline-offset: 2px; }

.analytics-reopen { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--soft, inherit); font: inherit; cursor: pointer; }
.analytics-reopen:hover { color: #fff; text-decoration: underline; }

@media (max-width: 560px) {
    .analytics-consent { padding: 14px 16px; }
    .analytics-consent-text { flex-basis: 100%; }
    .analytics-consent-actions { width: 100%; }
    .analytics-consent-button { min-width: 0; }
}
