/**
 * Copyright (c) 2019 Nexi Payments S.p.A.
 *
 * @author      iPlusService S.r.l.
 * @category    Payment Module
 * @package     Nexi XPay
 * @version     6.0.0
 * @copyright   Copyright (c) 2019 Nexi Payments S.p.A. (https://ecommerce.nexi.it)
 * @license     GNU General Public License v3.0
 */

#payment .payment_methods li[class*="payment_method_xpay"] label img {
    width: fit-content;
    max-width: 50px;
    max-height: 20px;
    transform: scale(1.2);
    margin-left: 15px;
}

#payment .payment_methods li[class*="payment_method_xpay"] label img:where([src*="google-pay"]) {
    transform: scale(2);
}

#payment .payment_methods li[class*="payment_method_xpay"] label img:where([src*="skrill"]) {
    max-width: 40px;
}

#payment .payment_methods li[class*="payment_method_xpay"] label img:where([src*="wechat"]) {
    transform: scale(1.5);
}

#payment .payment_methods li[class*="payment_method_xpay"] label img:where([src*=".svg"]),
#payment .payment_methods .nexixpay-loghi-container div.img-container img:where([src*=".svg"]) {
    width: 50px;
    height: auto;
}

#payment .payment_methods .nexixpay-loghi-container {
    float: right;
}

#payment .payment_methods .nexixpay-loghi-container .internal-container {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

#payment .payment_methods .nexixpay-loghi-container div.img-container {
    width: 100%;
    max-width: 50px;
    max-height: 50px;
}

#payment .payment_methods li p.pagodil-select,
.entry-content p.pagodil-select {
    margin-bottom: 0px;
    margin-top: 15px;
    font-size: 16px;
}

#payment .payment_methods select.pagodil-select {
    width: 127px;
}

#payment .payment_methods p.with-margin-top {
    margin-top: 15px;
}

.pagodil-p-size {
    font-size: 16px;
}

.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:
            0.25em 0 0 rgba(0, 0, 0, 0),
            0.5em 0 0 rgba(0, 0, 0, 0);
    }

    40% {
        color: black;
        text-shadow:
            0.25em 0 0 rgba(0, 0, 0, 0),
            0.5em 0 0 rgba(0, 0, 0, 0);
    }

    60% {
        text-shadow:
            0.25em 0 0 black,
            0.5em 0 0 rgba(0, 0, 0, 0);
    }

    80%,
    100% {
        text-shadow:
            0.25em 0 0 black,
            0.5em 0 0 black;
    }
}

#card-fieldset-build {
    border: none;
    margin-bottom: 10px;
    padding: 0;
    max-width: 350px;
}

#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;
}
