.bp-modal[hidden] {
    display: none !important;
}

.bp-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 30, .72);
    backdrop-filter: blur(2px);
}

.bp-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    color: #202633;
    animation: bp-modal-in .18s ease-out;
}

.bp-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #667085;
    font: 30px/34px Arial, sans-serif;
    cursor: pointer;
}

.bp-modal__close:hover,
.bp-modal__close:focus-visible {
    background: #f2f4f7;
    color: #111827;
    outline: none;
}

.bp-modal__content {
    padding: 30px;
}

.bp-modal__title {
    margin: 0 42px 20px 0;
    color: #171d2b;
    font-size: 24px;
    line-height: 1.25;
}

.bp-modal__field {
    margin-bottom: 14px;
}

.bp-modal__input {
    display: block;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #fff;
    color: #171d2b;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bp-modal__input:focus {
    border-color: #2475d0;
    box-shadow: 0 0 0 3px rgba(36, 117, 208, .14);
    outline: none;
}

.bp-modal__submit,
.bp-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #1e6fc7;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}

.bp-modal__submit {
    width: 100%;
}

.bp-modal__submit:hover,
.bp-modal__action:hover {
    background: #175ca8;
    color: #fff;
}

.bp-modal__submit:disabled {
    cursor: wait;
    opacity: .65;
}

.bp-modal__status {
    min-height: 20px;
    margin: 12px 0 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.4;
}

.bp-modal__success {
    padding: 18px 0 8px;
    text-align: center;
}

.bp-modal__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e9f8ef;
    color: #12813a;
    font-size: 30px;
    font-weight: 700;
}

.bp-modal__success p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

.bp-modal__payment {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #e4e7ec;
    border-left-width: 5px;
    border-radius: 8px;
    background: #fafbfc;
}

.bp-modal__payment h4 {
    margin: 0 0 7px;
    color: #171d2b;
    font-size: 17px;
}

.bp-modal__payment p {
    margin: 4px 0;
    color: #586174;
    font-size: 14px;
    line-height: 1.45;
}

.bp-modal__payment--paypal {
    border-left-color: #2c98d8;
}

.bp-modal__payment--usdt {
    border-left-color: #17446d;
}

.bp-modal__payment--swift {
    border-left-color: #df2524;
}

.bp-modal__payment-action {
    margin-top: 18px;
    text-align: center;
}

.bp-modal__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.bp-modal-open {
    overflow: hidden;
}

@keyframes bp-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575px) {
    .bp-modal {
        align-items: center;
        padding: 10px;
    }

    .bp-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 14px 14px 10px 10px;
    }

    .bp-modal__content {
        padding: 26px 20px 22px;
    }

    .bp-modal__title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-modal__dialog {
        animation: none;
    }
}
