.analytics-consent[hidden] { display: none; }
.analytics-consent {
    position: fixed;
    z-index: 1100;
    right: 16px;
    bottom: 84px;
    left: 16px;
    max-width: 850px;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0002;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
}
.analytics-consent h2 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; }
.analytics-consent p { margin: 0; font-size: .9rem; line-height: 1.7; }
.analytics-consent a { color: #a30000; text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.analytics-consent button, .analytics-settings button {
    font: inherit;
    cursor: pointer;
}
.analytics-consent button {
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 7px;
    border: 1px solid #777;
    background: #fff;
    color: #222;
    white-space: nowrap;
}
.analytics-consent button[data-analytics-choice="accepted"] {
    color: #fff;
    background: #b00000;
    border-color: #b00000;
}
.analytics-settings {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    font-size: .85rem;
}
.analytics-settings button {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
}
.analytics-settings a { text-decoration: underline; }
.analytics-consent button:focus-visible, .analytics-settings button:focus-visible {
    outline: 3px solid #2680c2;
    outline-offset: 3px;
}
@media (max-width: 640px) {
    .analytics-consent { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .analytics-consent-actions > button { flex: 1; }
}
