/*
 * Copyright (c) 2021 Nexi Payments S.p.A.
 * @author      iPlusService S.r.l.
 * @copyright   Copyright (c) 2021 Nexi Payments S.p.A. (https://ecommerce.nexi.it)
 * @license     GNU General Public License v3.0
 * @category    Payment Module
 * @version     5.3.0
 */

#pagodil-installments-number-title {
    display: inline;
    margin-right: 10px;
}

#pagodil-installments-number {
    min-width: 100px;
    display: inline;
}

.payment-option label img:where([src*="ecommerce.nexi.it"]),
.payment-option label img:where([src*="nexigroup.com"]),
.payment-option label img:where([src*="klarna"]) {
    /* width: fit-content; */
    max-width: 40px;
    max-height: 20px;
    transform: scale(1.2);
    margin-left: 15px;
}

.payment-option label img:where([src*="ecommerce.nexi.it"]):where([src*=".svg"]),
.payment-option label img:where([src*="nexigroup.com"]):where([src*=".svg"]) {
    height: 20px;
}

.payment-option label img:where([src*="amazonpay"]) {
    width: 60px;
}

.payment-option label img:where([src*="ecommerce.nexi.it"]):where([src*="google-pay"]),
.payment-option label img:where([src*="ecommerce.nexi.it"]):where([src*="alipay"]) {
    transform: scale(1.5);
}

.nexixpay-loghi-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-inline: -5px;
    margin-bottom: 15px;
}

.nexixpay-loghi-container div.img-container {
    max-width: 50px;
    max-height: 50px;
    padding: 5px;
}

.nexixpay-loghi-container div.img-container img {
    width: 100%;
    height: 100%;
}

#nexi-payment-form .build-field-row {
    display: flex;
    flex-direction: row;
    max-width: 300px;
    gap: 5px;
}

#nexi-payment-form .build-field-row:has(div:empty) {
    gap: 0 !important;
}

#nexi-payment-form .build-field-row div#EXPIRATION_DATE {
    width: 60%;
}

#nexi-payment-form .build-field-row div#SECURITY_CODE {
    width: 40%;
}

#nexi-payment-form .iframe-field {
    height: 50px;
    border: none;
    width: 100%;
    flex: 0 1;
}

.npg-build-error-msg-container {
    color: red;
    margin-block: 5px;
}

.nexi-hide {
    display: none !important;
}

p.loading {
    color: black;
    font-size: 2em;
}

p.loading:after {
    content: ' .';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        color: rgba(0, 0, 0, 0);
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    40% {
        color: black;
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    60% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    80%,
    100% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 black;
    }
}