:root {
    --bvcb-navy: #0b2343;
    --bvcb-navy-light: #153a65;
    --bvcb-gold: #c9a45c;
    --bvcb-gold-light: #e0c58a;
    --bvcb-cream: #f7f4ee;
    --bvcb-text: #172033;
    --bvcb-muted: #667085;
    --bvcb-border: rgba(11, 35, 67, 0.14);
}

.bvcb,
.bvcb * {
    box-sizing: border-box;
}

.bvcb {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 44px);
    font-family: inherit;
    pointer-events: none;
}

.bvcb[hidden],
.bvcb [hidden] {
    display: none !important;
}

.bvcb__panel {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(201, 164, 92, 0.5);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 55px rgba(4, 18, 36, 0.26);
    color: var(--bvcb-text);
    animation: bvcb-rise 260ms ease-out both;
    pointer-events: auto;
    scrollbar-width: thin;
}

.bvcb__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.bvcb__brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bvcb__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(201, 164, 92, 0.65);
    border-radius: 12px;
    background: linear-gradient(145deg, var(--bvcb-navy), var(--bvcb-navy-light));
    color: var(--bvcb-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(11, 35, 67, 0.2);
}

.bvcb__eyebrow {
    margin: 0 0 4px;
    color: var(--bvcb-gold);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bvcb__title {
    margin: 0;
    color: var(--bvcb-navy);
    font-size: 20px;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.22;
}

.bvcb__content {
    margin-top: 15px;
}

.bvcb__text {
    margin: 0;
    color: var(--bvcb-muted);
    font-size: 13px;
    line-height: 1.58;
}

.bvcb__links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #98a2b3;
    font-size: 11px;
}

.bvcb__links a {
    color: var(--bvcb-navy-light);
    font-weight: 650;
    text-decoration: none;
}

.bvcb__links a:hover,
.bvcb__links a:focus-visible {
    color: var(--bvcb-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bvcb__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 17px;
}

.bvcb__button {
    min-height: 41px;
    width: 100%;
    padding: 10px 13px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.bvcb__button:hover {
    transform: translateY(-1px);
}

.bvcb__button:focus-visible,
.bvcb__settings-back:focus-visible,
.bvcb__switch:focus-visible {
    outline: 3px solid rgba(201, 164, 92, 0.42);
    outline-offset: 2px;
}

.bvcb__button--primary {
    border: 1px solid var(--bvcb-navy);
    background: var(--bvcb-navy);
    color: #fff;
    box-shadow: 0 7px 18px rgba(11, 35, 67, 0.17);
}

.bvcb__button--primary:hover {
    border-color: var(--bvcb-navy-light);
    background: var(--bvcb-navy-light);
}

.bvcb__button--secondary {
    border: 1px solid var(--bvcb-gold);
    background: #fff;
    color: var(--bvcb-navy);
}

.bvcb__button--secondary:hover {
    background: var(--bvcb-cream);
}

.bvcb__button--full {
    grid-column: 1 / -1;
}

.bvcb__button--text {
    grid-column: 1 / -1;
    min-height: 31px;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: var(--bvcb-muted);
}

.bvcb__button--text:hover {
    color: var(--bvcb-navy);
}

.bvcb__settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bvcb-border);
}

.bvcb__settings-head h3 {
    margin: 0;
    color: var(--bvcb-navy);
    font-size: 18px;
    line-height: 1.3;
}

.bvcb__settings-back {
    flex: 0 0 auto;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--bvcb-navy-light);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bvcb__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bvcb-border);
}

.bvcb__category strong {
    color: var(--bvcb-navy);
    font-size: 13px;
}

.bvcb__category p {
    margin: 4px 0 0;
    color: var(--bvcb-muted);
    font-size: 11px;
    line-height: 1.48;
}

.bvcb__status {
    flex: 0 0 auto;
    color: var(--bvcb-gold);
    font-size: 11px;
    font-weight: 760;
}

.bvcb__switch {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #d0d5dd;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.bvcb__switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.2);
    transition: transform 160ms ease;
}

.bvcb__switch[aria-checked="true"] {
    background: var(--bvcb-navy);
}

.bvcb__switch[aria-checked="true"] span {
    transform: translateX(20px);
}

.bvcb__save {
    margin-top: 16px;
}

@keyframes bvcb-rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .bvcb {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .bvcb__panel {
        max-height: calc(100vh - 20px);
        padding: 18px;
        border-radius: 14px;
    }

    .bvcb__brand-mark {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .bvcb__title {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .bvcb__actions {
        grid-template-columns: 1fr;
    }

    .bvcb__button--full,
    .bvcb__button--text {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bvcb__panel,
    .bvcb__button,
    .bvcb__switch,
    .bvcb__switch span {
        animation: none;
        transition: none;
    }
}
