.dbt-cookie-banner,
.dbt-cookie-panel {
    box-sizing: border-box;
    color: #172b4d;
    font-family: inherit;
}

.dbt-cookie-banner {
    position: fixed;
    z-index: 2147483000;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    max-width: 760px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #dce4ef;
    border-left: 5px solid #f39a00;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(15, 47, 92, .22);
}

.dbt-cookie-copy { flex: 1 1 auto; }
.dbt-cookie-copy h2,
.dbt-cookie-panel h2 { margin: 0 0 8px; color: #0f2f5c; font-size: 21px; }
.dbt-cookie-copy p,
.dbt-cookie-panel p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.dbt-cookie-copy a { color: #0f2f5c; font-size: 13px; text-decoration: underline; }
.dbt-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dbt-cookie-button { min-height: 40px; padding: 9px 14px; border: 1px solid #0f2f5c; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dbt-cookie-primary { color: #fff; background: #0f2f5c; }
.dbt-cookie-secondary { color: #0f2f5c; background: #fff; }
.dbt-cookie-button:hover { border-color: #f39a00; }
.dbt-cookie-button:focus-visible,
.dbt-cookie-option input:focus-visible,
.dbt-cookie-settings-link:focus-visible { outline: 3px solid #f39a00; outline-offset: 2px; }
.dbt-cookie-panel { position: fixed; z-index: 2147483001; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15, 47, 92, .55); }
.dbt-cookie-panel-inner { box-sizing: border-box; width: min(520px, 100%); padding: 24px; background: #fff; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.dbt-cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #e5eaf1; cursor: pointer; }
.dbt-cookie-option span { display: grid; gap: 3px; }
.dbt-cookie-option small { color: #52627a; line-height: 1.4; }
.dbt-cookie-option input { width: 20px; height: 20px; accent-color: #0f2f5c; }
.dbt-cookie-settings-link { padding: 0; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
/* Keep the promotional lead popup behind any consent surface. */
html.dbt-consent-open .lead-popup,
html.dbt-consent-open .lead-popup-backdrop {
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 767px) {
    .dbt-cookie-banner { right: 10px; bottom: 10px; left: 10px; display: block; padding: 18px; }
    .dbt-cookie-banner .dbt-cookie-actions,
    .dbt-cookie-panel .dbt-cookie-actions { margin-top: 15px; flex-direction: column; align-items: stretch; gap: 10px; }
    .dbt-cookie-banner .dbt-cookie-button,
    .dbt-cookie-panel .dbt-cookie-button { width: 100%; flex: 0 0 auto; white-space: nowrap; }
    .dbt-cookie-panel {
        align-items: center;
        overflow-y: auto;
        padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }
    .dbt-cookie-panel-inner {
        width: min(520px, 100%);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
        overflow-y: auto;
        padding: 20px;
    }
    .dbt-cookie-panel .dbt-cookie-button[data-consent="accept"] { order: 1; }
    .dbt-cookie-panel .dbt-cookie-button[data-consent="reject"] { order: 2; }
    .dbt-cookie-panel .dbt-cookie-button[data-consent="save"] { order: 3; }
}
