.bxc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(2px);
}

.bxc-overlay[hidden],
.bxc-modal[hidden] {
    display: none !important;
}

html.bxc-locked,
html.bxc-locked body {
    overflow: hidden !important;
}

.bxc-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-sizing: border-box;
    background: #fff;
    color: #1f1f1f;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.bxc-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 26px 0;
}

.bxc-modal__title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f1f1f;
}

.bxc-modal__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a9a9a;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
    border-radius: 8px;
}

.bxc-modal__close:hover {
    color: #1f1f1f;
    background: #f3f3f3;
}

.bxc-modal__body {
    padding: 16px 26px 4px;
}

.bxc-modal__text {
    margin: 0 0 14px;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
}

.bxc-modal__links {
    margin: 4px 0 10px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.bxc-modal__links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bxc-modal__links li::before,
.bxc-modal__links li::marker {
    content: none !important;
    display: none !important;
}

.bxc-modal__links a,
.bxc-modal__links a:link,
.bxc-modal__links a:visited,
.bxc-modal__text a,
.bxc-modal__text a:link,
.bxc-modal__text a:visited {
    color: #111 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bxc-modal__links a:hover,
.bxc-modal__text a:hover {
    color: #f28b00 !important;
}

.bxc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 26px 26px;
}

.bxc-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #1f1f1f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.bxc-btn:hover {
    border-color: #bdbdbd;
    background: #fafafa;
}

.bxc-btn--primary {
    border: 0;
    background: linear-gradient(152.72deg, #fdc224 1.7%, #ff9500 114.52%);
    color: #fff;
}

.bxc-btn--primary:hover {
    background: linear-gradient(152.72deg, #f7b70b 1.7%, #f28b00 114.52%);
}

.bxc-btn[disabled] {
    opacity: 0.55;
    cursor: default;
}

.bxc-switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.bxc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bxc-switch__track {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px;
    margin-top: 3px;
    background: #cfcfcf;
    border-radius: 26px;
    transition: background 0.2s ease;
}

.bxc-switch__dot {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.bxc-switch input:checked + .bxc-switch__track {
    background: linear-gradient(152.72deg, #fdc224 1.7%, #ff9500 114.52%);
}

.bxc-switch input:checked + .bxc-switch__track .bxc-switch__dot {
    transform: translateX(22px);
}

.bxc-switch input:focus-visible + .bxc-switch__track {
    outline: 2px solid #f28b00;
    outline-offset: 2px;
}

.bxc-switch__text {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.55;
    color: #4a4a4a;
}

.bxc-switch__text b {
    color: #1f1f1f;
}

.bxc-footer-link {
    color: inherit;
}

@media (max-width: 640px) {
    .bxc-modal {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
    }

    .bxc-modal__title {
        font-size: 20px;
    }

    .bxc-modal__actions {
        flex-direction: column-reverse;
    }

    .bxc-btn {
        width: 100%;
    }
}
