/* Support for Knowband Supercheckout */
.alert-info .paymentInfo {
    position: relative;
    z-index: 1;
}

#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);
    }
}

.montonio-payment-method-form {
    margin-bottom: 1em;
}

#wrapper .opc_payment_method li .montonio-payment-method .paymentInfo {
    display: block !important;
}

.payment-options div[data-payment-module="montonio"] img, .payment-options .montonio-payment-method img {
    height: 25px;
}

/* house365: bigger Visa / Mastercard logo for card payments (theme puts logos into a narrow col-md-2) */
.payment-options .payment-option .row > div:has(> img[src*="images/logos/visa-mc"]) {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.payment-options .payment-option img[src*="images/logos/visa-mc"] {
    height: 26px !important;
    width: auto !important;
    max-width: none !important;
}

/* house365: compact bank tiles (Montonio SDK renders fixed 100x100 squares with 15px gaps) */
#montonio-payments-checkout {
    margin-top: 12px;
}

#montonio-payments-checkout .montonio-bank-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

#montonio-payments-checkout .montonio-bank {
    width: auto;
    height: 56px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

#montonio-payments-checkout .montonio-bank img {
    height: auto;
    max-width: 100%;
    max-height: 24px;
}

@media (max-width: 380px) {
    #montonio-payments-checkout .montonio-bank-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}