.ks-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

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

.ks-pay-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(53, 52, 51, 0.45);
}

.ks-pay-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fefefe;
    border: 1px solid rgba(170, 166, 161, 1);
    border-radius: 10px;
    padding: 32px 24px 24px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ks-pay-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 1px solid #AAA6A1;
    border-radius: 50%;
    background: #EEEDEC;
    color: #353433;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ks-pay-modal__close:hover,
.ks-pay-modal__close:focus {
    color: #000;
}

.ks-pay-modal__title {
    margin: 0 48px 20px 0;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    font-weight: 600;
}

.ks-pay-modal__title:empty {
    display: none;
}

.ks-pay-modal__body {
    text-align: center;
}

.ks-pay-modal__footer {
    margin-top: 24px;
    text-align: center;
}

.ks-pay-modal .payment_block {
    text-align: center;
}

.ks-pay-modal .payment_block p,
.ks-pay-modal .payment_block .alert {
    display: none;
}

.ks-pay-modal .payment_block__text {
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 20px;
}

.ks-pay-modal .payment_block .d-flex {
    justify-content: center;
}

.ks-pay-modal #paysystem-button-pay {
    display: inline-flex !important;
    margin: 12px auto 0;
}

.ks-pay-modal .mb-4 {
    display: block !important;
}
