/*
 * 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     8.0.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*="card_image.png"]),
.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%;
}


#card-fieldset-build {
    border: none;
    margin-bottom: 10px;
}

#card-fieldset-build .form--fieldset {
    display: flex;
    flex-direction: column;
}

#card-fieldset-build .form--wrap__row {
    display: flex;
    flex-direction: row;
    height: 40px;
    margin-bottom: 12px;
}

#card-fieldset-build .form--input__wrap.col-5 {
    width: 50%;
}

#card-fieldset-build .form--wrap__row .form--input__wrap.col-5:first-child {
    margin-right: 5px;
}

#card-fieldset-build .form--wrap__row .form--input__wrap.col-5:last-child {
    margin-left: 5px;
}

#card-fieldset-build .form--input__wrap.col-10 {
    width: 100%;
}

#card-fieldset-build .form--input__wrap>iframe {
    width: 100%;
    height: 40px;
    border: 1px solid #888;
    border-radius: 3px;
}

#card-fieldset-build .form--input__wrap.with-errors>iframe {
    border: 1px solid #ff0000;
}

#card-fieldset-build .card-field-form .messages {
    margin-bottom: 20px;
}

#card-fieldset-build .build-error-message {
    color: #df0000;
}

.nexi-hide {
    display: none !important;
}

p.loading {
    color: black;
    font-size: 2em;
}

p.loading:after {
    content: ' .';
    animation: dots 1s steps(5, end) infinite;
}

#xpay-card-pan iframe,
#xpay-card-expire iframe,
#xpay-card-cvv iframe {
    max-width: 100%;
}

@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;
    }
}