#bv-consent-manager,
#bv-consent-manager *,
#bv-consent-manager *::before,
#bv-consent-manager *::after {
    box-sizing: border-box;
}

#bv-consent-manager,
#bv-consent-manager button,
#bv-consent-manager input {
    font-family: Montserrat, "Open Sans", Arial, sans-serif;
}

.bv-consent-banner {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: 24px;
    left: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #fff;
    background: #0d1b2a;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(13, 27, 42, .28);
}

.bv-consent-banner[hidden],
.bv-consent-modal[hidden],
.bv-consent-reopen[hidden] {
    display: none !important;
}

.bv-consent-banner__layout {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}

.bv-consent-banner__copy {
    flex: 1 1 auto;
    max-width: 690px;
}

.bv-consent-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #65c466;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bv-consent-banner h2,
.bv-consent-dialog h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.bv-consent-banner p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.65;
}

.bv-consent-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bv-consent-actions {
    display: flex;
    flex: 0 0 480px;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 480px;
}

.bv-consent-btn {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #0d1b2a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bv-consent-btn:hover {
    background: #f3f4f6;
}

.bv-consent-btn--primary {
    border-color: #4caf50;
    background: #4caf50;
    color: #fff;
    box-shadow: 0 3px 10px rgba(76, 175, 80, .28);
}

.bv-consent-btn--primary:hover {
    border-color: #3f9843;
    background: #3f9843;
}

.bv-consent-btn--outline {
    border-color: rgba(255, 255, 255, .72);
    background: transparent;
    color: #fff;
}

.bv-consent-btn--outline:hover {
    background: #fff;
    color: #0d1b2a;
}

.bv-consent-btn:focus-visible,
.bv-consent-switch input:focus-visible + .bv-consent-switch__track,
.bv-consent-reopen:focus-visible,
.bv-consent-close:focus-visible,
#bv-consent-title:focus-visible {
    outline: 3px solid #8bd98c;
    outline-offset: 3px;
}

.bv-consent-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 27, 42, .72);
}

.bv-consent-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 30px;
    color: #222831;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.bv-consent-dialog h2 {
    color: #0d1b2a;
    font-size: 26px;
}

.bv-consent-dialog__intro {
    margin: 0 42px 22px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.bv-consent-dialog__intro a {
    color: #176b3a;
    font-weight: 700;
}

.bv-consent-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #0d1b2a;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.bv-consent-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
}

.bv-consent-category h3 {
    margin: 0 0 5px;
    color: #0d1b2a;
    font-size: 16px;
    font-weight: 800;
}

.bv-consent-category p {
    margin: 0;
    color: #5f6670;
    font-size: 13px;
    line-height: 1.5;
}

.bv-consent-always-on {
    color: #176b3a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.bv-consent-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.bv-consent-switch__label {
    color: #0d1b2a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.bv-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.bv-consent-switch__track {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #aeb4bc;
    transition: background-color .15s ease;
}

.bv-consent-switch__track::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    content: "";
    transition: transform .15s ease;
}

.bv-consent-switch input:checked + .bv-consent-switch__track {
    background: #4caf50;
}

.bv-consent-switch input:checked + .bv-consent-switch__track::after {
    transform: translateX(22px);
}

.bv-consent-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.bv-consent-reopen {
    position: fixed;
    z-index: 9990;
    bottom: 14px;
    left: 14px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #0d1b2a;
    box-shadow: 0 4px 16px rgba(13, 27, 42, .16);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.bv-consent-open {
    overflow: hidden;
}

@media (max-width: 1050px) {
    .bv-consent-banner__layout {
        display: block;
    }

    .bv-consent-actions {
        flex: none;
        min-width: 0;
        margin-top: 18px;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .bv-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px;
    }

    .bv-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bv-consent-actions .bv-consent-btn--primary {
        order: -1;
    }

    .bv-consent-btn {
        width: 100%;
    }

    .bv-consent-dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 20px;
    }

    .bv-consent-dialog h2 {
        padding-right: 38px;
        font-size: 22px;
    }

    .bv-consent-dialog__intro {
        margin-right: 0;
    }

    .bv-consent-category {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bv-consent-dialog__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-consent-btn,
    .bv-consent-switch__track,
    .bv-consent-switch__track::after {
        transition: none;
    }
}
