.bb-analytics-notice,
.bb-analytics-preferences {
    --bb-consent-ink: #29343b;
    --bb-consent-surface: #fcfbf8;
    --bb-consent-rule: #b8c8d2;
    --bb-consent-accent: #4d5871;
    font-family: Manrope, system-ui, sans-serif;
    color: var(--bb-consent-ink);
    box-sizing: border-box;
    text-align: left;
    letter-spacing: normal;
}
.bb-analytics-notice {
    position: fixed;
    z-index: 100000;
    inset: auto auto 20px 20px;
    width: min(520px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    background: var(--bb-consent-surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(41, 52, 59, .24);
}
.bb-analytics-notice[hidden] { display: none !important; }
.bb-analytics-notice h2 {
    margin: 0 0 10px;
    font: 700 19px/1.3 Manrope, system-ui, sans-serif;
    color: var(--bb-consent-ink);
    text-transform: none;
    letter-spacing: normal;
}
.bb-analytics-notice p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--bb-consent-ink); }
.bb-analytics-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bb-analytics-actions button,
.bb-analytics-preferences button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--bb-consent-accent);
    border-radius: 6px;
    background: var(--bb-consent-surface);
    color: var(--bb-consent-accent);
    font: 650 15px/1.4 Manrope, system-ui, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: none;
}
.bb-analytics-actions button { flex: 1 1 160px; }
.bb-analytics-actions button:hover,
.bb-analytics-preferences button:hover { background: #e8eff2; color: var(--bb-consent-ink); }
.bb-analytics-notice a { color: var(--bb-consent-accent); text-decoration: underline; text-underline-offset: 3px; }
.bb-analytics-notice :focus-visible,
.bb-analytics-preferences :focus-visible { outline: 3px solid var(--bb-consent-accent); outline-offset: 3px; }
.bb-analytics-notice .bb-analytics-small { margin: 16px 0 0; font-size: 13px; }
.bb-analytics-preferences {
    background: var(--bb-consent-surface);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 12px 20px;
    font-size: 13px;
}
.bb-analytics-preferences button { border: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
    .bb-analytics-notice { inset: auto 12px 12px; width: auto; padding: 20px; max-height: calc(100dvh - 24px); }
    .bb-analytics-actions button { flex-basis: 100%; }
}
