.payment_module .montonio_payment_option_details,
.payment_module #montonio_payments_payment_button_link {
    background-color: var(--light-bg-color);
}

.payment_module #montonio_payments_payment_button_link:has(+ .montonio_payment_option_details) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

.payment_module #montonio_payments_payment_button_link .col-xs-9,
.payment_module #montonio_card_payments_payment_button_link .col-xs-9 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-weight: 700;
    line-height: 140%;
}
.payment_module #montonio_payments_payment_button_link .col-xs-9 span,
.payment_module #montonio_card_payments_payment_button_link .col-xs-9 span {
    font-weight: 400;
}
.payment_module #montonio_payments_payment_button_link .col-xs-3 img {
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}
.payment_module .montonio-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap-md);
}
.payment_module .montonio-target-container {
    background-color: inherit;
    padding: 15px;
}
.payment_module .montonio-bank-active {
    border-color: #bee6ff!important;
}
.payment_module .montonio-bank-active::before {
    content: '\f058';
    color: #452dd2;
    font-family: var(--icon-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    bottom: 5px;
    right: 5px;
}
.payment_module .montonio_payment_option_details {
    border-bottom-left-radius: var(--rounded-md);
    border-bottom-right-radius: var(--rounded-md);
    border: 1px solid var(--bg-color);
    overflow: hidden;
}
.payment_module .montonio-bank {
    position: relative;
    width: auto;
    height: auto;
    padding: 10px;
    margin: 0;
    transition: background-color .25s ease;
    border: 1px solid var(--bg-color);
    border-radius: var(--rounded-md);
    box-shadow: none;
    aspect-ratio: 1;
}
.payment_module .montonio-bank img {
    max-height: 40px;
}
.montonio_payment_option_content {
    display: flex;
    flex-direction: column;
}

p.payment_module.montonio_payment_module a {
    padding: 33px 40px 34px 15px;
    background: #fbfbfb;
}

p.payment_module.montonio_payment_module.has-details {
    margin-bottom: 0;
}

p.payment_module.montonio_payment_module.has-details a {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 0;
    cursor: auto;
}

p.payment_module.montonio_payment_module a img {
    height: 42px;
    margin-right: 8px;
}

p.payment_module a.chevron-right:after {
    display: block;
    content: "\f054";
    position: absolute;
    right: 15px;
    margin-top: -11px;
    top: 50%;
    font-family: "FontAwesome";
    font-size: 25px;
    height: 22px;
    width: 14px;
    color: #777777;
}

.montonio_payment_option_details .button-submit-payment {
    display: block;
    margin: 0 15px 15px auto;
}
.montonio_payment_option_details .button-submit-payment[disabled] {
    background-color: var(--grey-color);
    border-color: var(--grey-color);
    opacity: .3;
}
.montonio_payment_option_details .button-submit-payment.loading {
    background-color: var(--bg-color);
}

#montonio-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

#montonio-spinner {
    width: 40px;
    height: 40px;
    border: 4px #F0EEFB solid;
    border-top: 4px #558AFF solid;
    border-radius: 50%;
    animation: montonioAnimateSpinner 0.8s infinite linear;
}

@keyframes montonioAnimateSpinner {
    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .payment_module .montonio-container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1100px) and (max-width: 1200px) {
    .payment_module .montonio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 991px) and (max-width: 1100px) {
    .payment_module .montonio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .payment_module .montonio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .payment_module .montonio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .payment_module #montonio_payments_payment_button_link .col-xs-9,
    .payment_module #montonio_card_payments_payment_button_link .col-xs-9 {
        align-items: center;
    }
    .montonio_payment_option_details .button-submit-payment {
        width: calc(100% - 30px);
    }
}

@media only screen and (max-width: 768px) {
    .montonio_payment_option_details.same-level {
        display: block;
    }

    .montonio_payment_option_details.same-level .button-submit-payment {
        margin-left: auto;
        display: block;
    }
}
