.bp-consent-banner,
.bp-consent-panel,
.bp-consent-toast {
    box-sizing: border-box;
    color: #1B2E38;
    font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bp-consent-banner {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 18px;
    z-index: 9999;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    width: min(940px, calc(100vw - 32px));
    padding: 18px;
    background: #FDFCFA;
    border: 1px solid rgba(27, 58, 75, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(27, 46, 56, 0.18);
    transform: translateX(-50%);
}

.bp-consent-banner[hidden],
.bp-consent-panel[hidden],
.bp-consent-toast[hidden] {
    display: none !important;
}

.bp-consent-banner h2,
.bp-consent-panel h2 {
    margin: 0 0 8px;
    color: #1B3A4B;
    font-family: Lora, Georgia, serif;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
}

.bp-consent-banner p,
.bp-consent-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.bp-consent-banner__note {
    margin-top: 8px !important;
    color: #566871;
}

.bp-consent-banner__mobile {
    display: none;
}

.bp-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
}

.bp-consent-links a,
.bp-consent-linkbtn {
    color: #1B3A4B;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-consent-banner__actions,
.bp-consent-panel__actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.bp-consent-banner__actions {
    max-width: 310px;
}

.bp-consent-btn,
.bp-consent-linkbtn {
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(27, 58, 75, 0.22);
    border-radius: 6px;
    background: #fff;
    color: #1B3A4B;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
}

.bp-consent-btn--primary {
    border-color: #1B3A4B;
    background: #1B3A4B;
    color: #fff;
}

.bp-consent-linkbtn {
    border-color: transparent;
    background: transparent;
    font-weight: 700;
}

.bp-consent-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 18px;
    background: #FDFCFA;
    border: 1px solid rgba(27, 58, 75, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(27, 46, 56, 0.22);
}

.bp-consent-panel__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bp-consent-panel__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(27, 58, 75, 0.16);
    border-radius: 6px;
    background: #fff;
    color: #1B3A4B;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.bp-consent-panel__prefs {
    display: grid;
    gap: 10px;
}

.bp-consent-pref {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(61, 126, 143, 0.16);
    border-radius: 8px;
    background: #fff;
}

.bp-consent-pref strong,
.bp-consent-pref span {
    display: block;
}

.bp-consent-pref strong {
    color: #1B3A4B;
    font-size: 15px;
}

.bp-consent-pref span {
    margin-top: 2px;
    color: #3D7E8F;
    font-size: 12px;
    font-weight: 700;
}

.bp-consent-pref p {
    margin-top: 7px;
    color: #40545E;
    font-size: 13px;
}

.bp-consent-switch {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
}

.bp-consent-switch input {
    position: absolute;
    opacity: 0;
}

.bp-consent-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #D8E0E3;
    cursor: pointer;
}

.bp-consent-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(27, 46, 56, 0.25);
    transition: transform .16s ease;
}

.bp-consent-switch input:checked + span {
    background: #3D7E8F;
}

.bp-consent-switch input:checked + span::before {
    transform: translateX(20px);
}

.bp-consent-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .7;
}

.bp-consent-panel__actions {
    margin-top: 14px;
}

.bp-consent-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 10001;
    width: min(420px, calc(100vw - 32px));
    padding: 12px 14px;
    border-radius: 8px;
    background: #1B3A4B;
    color: #fff;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 14px 35px rgba(27, 46, 56, 0.25);
}

@media (max-width: 760px) {
    .bp-consent-banner {
        grid-template-columns: 1fr;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 14px;
    }

    .bp-consent-banner h2,
    .bp-consent-panel h2 {
        font-size: 18px;
    }

    .bp-consent-banner__desktop {
        display: none;
    }

    .bp-consent-banner__mobile {
        display: block;
    }

    .bp-consent-banner__actions,
    .bp-consent-panel__actions {
        max-width: none;
        justify-content: stretch;
    }

    .bp-consent-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .bp-consent-btn,
    .bp-consent-linkbtn {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .bp-consent-linkbtn {
        grid-column: auto;
    }

    .bp-consent-panel {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }
}
