.fd-analytics-consent[hidden],
.fd-analytics-settings[hidden],
#fd-analytics-privacy-settings[hidden],
#fd-analytics-preview[hidden] { display: none !important; }

.fd-analytics-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 10000;
    width: min(680px, calc(100% - 48px));
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    color: #172d36;
    background: #fff;
    border: 1px solid #b5d9dc;
    border-top: 4px solid #0b6774;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(14, 55, 63, .22);
}
.fd-analytics-consent h2 { margin: 0 0 10px; font-size: 1.2rem; }
.fd-analytics-consent p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.fd-analytics-consent a { color: #0b6774; text-decoration: underline; }
.fd-analytics-actions { display: flex; gap: 12px; }
.fd-analytics-actions button {
    flex: 1;
    padding: 12px 16px;
    min-height: 46px;
    color: #0b6774;
    background: #f1f9f9;
    border: 1px solid #0b6774;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.fd-analytics-actions button:hover { background: #deeeee; }
.fd-analytics-actions button:focus-visible,
.fd-analytics-settings:focus-visible { outline: 3px solid #267f91; outline-offset: 3px; }
.fd-analytics-settings {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}
.fd-analytics-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@media (max-width: 600px) {
    .fd-analytics-consent {
        left: 12px; bottom: 80px; width: calc(100% - 24px); padding: 18px;
        max-height: calc(100vh - 92px);
        max-height: calc(100dvh - 92px);
    }
    .fd-analytics-actions { flex-direction: column; gap: 8px; }
}
