/* Credit card payment page (#recharge-mastercard) */
#recharge-mastercard {
    width: 800px;
    max-width: 100%;
    margin: 50px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

#recharge-mastercard img {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#recharge-mastercard .recharge-pay-container {
    font-size: 18px;
    background: #f1f1f1;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
}

#recharge-mastercard .recharge-pay-icing,
#recharge-mastercard .recharge-pay-dough {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#recharge-mastercard .recharge-pay-icing {
    width: 33%;
    position: relative;
    padding-right: 24px;
    background: linear-gradient(to right, #799aff 0%, #9cc5fb 80%);
    color: #fff;
}

#recharge-mastercard .recharge-pay-dough {
    width: 67%;
    color: #000;
}

#recharge-mastercard .hiliqlogo {
    text-align: center;
    margin: 50px 0;
}

#recharge-mastercard .hiliqlogo img {
    width: 77%;
    margin: 0 auto !important;
}

#recharge-mastercard .recharge-pay-icing h2 {
    text-align: center;
    font-size: 17px;
    margin: 14px 0;
    font-weight: 600;
}

#recharge-mastercard .order {
    border: 1px solid #fff;
    border-color: #fff transparent;
    border-top: 0;
    text-align: center;
}

#recharge-mastercard .order p {
    margin: 5px 0;
    word-break: break-all;
}

#recharge-mastercard .total {
    font-size: 2em;
    color: #000;
    font-weight: bold;
    text-align: center;
    flex-grow: 0.6;
    line-height: 110px;
}

#recharge-mastercard .total-jp {
    text-align: right;
    margin: 10px 0;
}

#recharge-mastercard .total-jp span {
    color: #f00;
    font-size: 16px;
}

#recharge-mastercard .paylogo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#recharge-mastercard .paylogo img {
    width: 15%;
    margin-left: 10px !important;
}

#recharge-mastercard .paylogo img.gray {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    opacity: 0.5;
}

#recharge-mastercard .buttons {
    width: 100%;
}

#recharge-mastercard .column {
    width: 100%;
}

#recharge-mastercard .column:not(:last-child) {
    margin-right: 10px;
}

#recharge-mastercard .label,
#recharge-mastercard .text-input {
    float: left;
    display: block;
    clear: both;
    text-align: left;
}

#recharge-mastercard .label {
    font-size: 0.8em;
    margin-bottom: 0.2em;
}

#recharge-mastercard .cvc-group {
    flex-basis: 140px;
}

#recharge-mastercard .name-group {
    flex-grow: 1;
    flex-basis: 200px;
}

#recharge-mastercard .expiry-group {
    flex-basis: 100px;
}

#recharge-mastercard .cvc-help {
    padding: 4px 0;
    flex-grow: 0;
    width: 330px;
    font-size: 0.6em;
    line-height: 1.3em;
    opacity: 0.6;
    text-align: left;
}

#recharge-mastercard .row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
    margin-left: 0;
    flex-wrap: nowrap;
}

#recharge-mastercard .text-input {
    box-sizing: border-box;
    width: 100%;
    height: 49px;
    padding: 10px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    border: 1px solid rgba(144, 81, 14, 0.4);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) inset;
}

#recharge-mastercard select.text-input {
    padding: 0 5px;
}

#recharge-mastercard .order-button {
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    color: inherit;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(144, 81, 14, 0.3);
    box-shadow: 0 2px 2px rgba(144, 81, 14, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}

#recharge-mastercard .order-button:hover {
    background: #799aff;
    color: #fff;
    border-color: transparent;
}

#recharge-mastercard .order-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#recharge-mastercard .recharge-pay-message.success {
    color: #006400;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    clear: both;
    text-align: left;
}

#recharge-mastercard .recharge-pay-message.error {
    color: #c0392b;
    background: #fdecea;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    clear: both;
    text-align: left;
}

#recharge-preloader-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.3);
}

#recharge-preloader {
    position: fixed;
    height: 50px;
    width: 50px;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    margin: auto;
}

#recharge-preloader span {
    display: block;
    bottom: 0;
    width: 9px;
    height: 5px;
    background: #9b59b6;
    position: absolute;
    animation: recharge-preloader 1.5s infinite ease-in-out;
}

#recharge-preloader span:nth-child(2) { left: 11px; animation-delay: 0.2s; }
#recharge-preloader span:nth-child(3) { left: 22px; animation-delay: 0.4s; }
#recharge-preloader span:nth-child(4) { left: 33px; animation-delay: 0.6s; }
#recharge-preloader span:nth-child(5) { left: 44px; animation-delay: 0.8s; }

@keyframes recharge-preloader {
    0% { height: 5px; transform: translateY(0); background: #9b59b6; }
    25% { height: 30px; transform: translateY(15px); background: #3498db; }
    50% { height: 5px; transform: translateY(0); background: #9b59b6; }
    100% { height: 5px; transform: translateY(0); background: #9b59b6; }
}

@media all and (max-width: 769px) {
    #recharge-mastercard {
        width: 100%;
        margin: 30px auto;
        padding: 0;
    }

    #recharge-mastercard .recharge-pay-container {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    #recharge-mastercard .recharge-pay-icing,
    #recharge-mastercard .recharge-pay-dough {
        width: 100%;
        padding: 15px;
    }

    #recharge-mastercard .hiliqlogo {
        text-align: right;
        margin: 20px 0;
    }

    #recharge-mastercard .hiliqlogo img {
        width: 35%;
    }

    #recharge-mastercard .recharge-pay-icing h2 {
        font-size: 19px;
        margin: 15px 0;
    }

    #recharge-mastercard .total {
        font-size: 27px;
        line-height: 56px;
    }

    #recharge-mastercard .paylogo img {
        width: 23%;
    }

    #recharge-mastercard .text-input {
        height: auto;
        padding: 10px;
        font-size: 15px;
        margin-bottom: 10px;
    }

    #recharge-mastercard .years {
        display: block;
    }

    #recharge-mastercard .cvc-help {
        width: 100%;
    }
}

/* Amount charge page */
#recharge-card {
    width: 800px;
    max-width: 100%;
    margin: auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
}

/*
 * 覆盖主题 styles-m.css 等全局 img { margin: 0 auto; }
 * flex 布局下 margin-left/right: auto 会把图标挤到右侧
 */
#recharge-card img {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#recharge-card .cardimgbox .error {
    display: none;
    background-color: #ffb9b9;
    padding: 3px 15px;
    color: #926c6c;
    margin-bottom: 10px;
}

#recharge-card .cardimgbox .cardimg {
    background-image: url(/media/wysiwyg/page/paypalcard/charge_02b.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 318px;
    height: 195px;
    margin: auto;
    position: relative;
}

#recharge-card .cardimgbox .cardimg .usd {
    display: flex;
    padding: 7px 10px 0 10px;
    align-items: center;
}

#recharge-card .cardimgbox .cardimg .usd p {
    font-size: 30px;
    line-height: 43px;
    margin: 0 0 0 10px;
}

#recharge-card .cardimgbox .cardimg input {
    width: 123px;
    height: 47px;
    font-size: 31px;
    border: 0;
    padding: 0 13px;
    line-height: 47px;
    outline: none;
    background: #fff;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

#recharge-card .cardimgbox .cardimg input:focus {
    background: #fff;
    background-color: #fff;
}

#recharge-card .cardimgbox .cardimg .jpy p {
    font-size: 22px;
    margin: 0;
    padding: 0 19px;
}

#recharge-card .cardimgbox .cardbotton {
    text-align: center;
    margin: 50px 0 30px;
}

#recharge-card .cardimgbox .cardbotton .recharge-submit-btn {
    padding: 11px 32px;
    font-size: 18px;
    background-color: #f5cc00;
    border: 0;
    border-radius: 10px;
    line-height: 25px;
    outline: none;
    font-weight: 600;
    cursor: pointer;
}

#recharge-card .cardimgbox h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
}

#recharge-card .charging {
    background-color: #fbfcf7;
    padding: 40px 35px;
    border-radius: 30px;
    margin: 40px auto;
    max-width: 800px;
}

#recharge-card .charging .procedure {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    text-align: left;
    margin-bottom: 10px;
    width: 100%;
}

#recharge-card .charging .procedure img {
    margin-top: auto !important;
    margin-bottom: auto !important;
    margin-left: 0 !important;
    margin-right: 5px !important;
    flex-shrink: 0;
    display: block;
    max-width: none;
    width: auto;
    height: auto;
}

#recharge-card .charging .stroelink img {
    margin-top: 14px !important;
    margin-bottom: auto !important;
    margin-left: 0 !important;
    margin-right: 5px !important;
}

#recharge-card .charging .procedure h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 !important;
    padding: 0;
    text-align: left !important;
    flex: 0 1 auto;
}

#recharge-card .charging ul {
    padding-left: 36px;
    margin: 0;
    text-align: left;
}

#recharge-card .charging ul li {
    list-style: none;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

#recharge-card .charging .procedure p {
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    width: 100%;
    text-align: left !important;
    flex: 1 1 auto;
}

#recharge-card .charging .procedure p span {
    color: #ff0000;
}

#recharge-card .charging .procedure p a {
    color: #ff0000;
    word-break: break-all;
}

#recharge-card .charpink {
    background-color: #fcf8f7 !important;
}

#recharge-card .charblue {
    background-color: #f3f8fd !important;
    position: relative;
    top: 85px;
}

#recharge-card .charblue > .procedure {
    position: relative;
    justify-content: flex-start;
}

#recharge-card .charblue .charbgimg {
    position: absolute;
    right: 33px;
    top: -91px;
    margin: 0 !important;
    max-width: none;
    width: auto;
    height: auto;
}

#recharge-card .charblue ul li {
    line-height: 28px;
    margin: 30px 0 !important;
}

#recharge-card .chargreen .askimg {
    margin-top: 18px !important;
    margin-bottom: auto !important;
    margin-left: 0 !important;
    margin-right: 5px !important;
    max-width: none;
    width: auto;
    height: auto;
}

#recharge-card .charyellow {
    background-color: #fdfbf3 !important;
    margin-top: 135px !important;
}

#recharge-card .chargreen {
    background-color: #f7fdf9 !important;
}

#recharge-card .chargreen p.charq {
    padding-left: 34px !important;
    margin: 0 0 27px;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
}

#recharge-card .recharge-highlight {
    color: red;
    font-size: 16px;
}

@media all and (max-width: 769px) {
    #recharge-card {
        width: 100%;
        padding: 0 0 30px;
    }

    #recharge-card .cardimgbox h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    #recharge-card .cardimgbox .cardimg {
        width: 290px;
        height: 195px;
    }

    #recharge-card .cardimgbox .cardimg .usd p {
        font-size: 28px;
        line-height: 48px;
    }

    #recharge-card .charblue {
        top: 0;
    }

    #recharge-card .charblue .charbgimg {
        display: none;
    }

    #recharge-card .charyellow {
        margin-top: 40px !important;
    }

    #recharge-card .chargreen p.charq {
        padding-left: 32px !important;
        margin-bottom: 30px;
    }

    #recharge-card .cardimgbox .cardbotton {
        margin: 25px 0 20px;
    }

    #recharge-card .cardimgbox .cardbotton .recharge-submit-btn {
        padding: 8px 23px;
        font-size: 15px;
    }

    #recharge-card .charging {
        padding: 25px 15px;
        margin: 20px 0;
    }

    #recharge-card .charging .procedure h2 {
        font-size: 16px;
    }

    #recharge-card .charging ul li {
        font-size: 12px;
    }
}
