/* globalpay-preview.css */
.globalpay-demo-window {
    position: relative;
    height: var(--globalpay-demo-height,342px);
    overflow: hidden;
    background: #fff;
    color: #252525;
    font-family: var(--font-family);
}

.globalpay-demo-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
    transition: transform 1s cubic-bezier(.4,0,.2,1);
}

.globalpay-demo-start {
    padding: 0;
    transform: translateX(0);
}

.globalpay-demo-pay {
    transform: translateX(100%);
}

.globalpay-demo-window.is-payment .globalpay-demo-start {
    transform: translateX(-100%);
}

.globalpay-demo-window.is-payment .globalpay-demo-pay {
    transform: translateX(0);
}

.globalpay-demo-start-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    width: 354px;
    height: 362px;
    transform: translateX(-50%) scale(var(--globalpay-start-scale,.9));
    transform-origin: top center;
}

.globalpay-demo-brand {
    position: absolute;
    top: 28px;
    left: 21px;
    right: 25px;
    height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.globalpay-demo-brand small {
    font-size: 11px;
    line-height: 14px;
    color: #a3a3a3;
    white-space: nowrap;
    margin-bottom: 2px;
}

.globalpay-demo-start h4 {
    position: absolute;
    top: 115px;
    left: 21px;
    margin: 0;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 0;
}

.globalpay-demo-options {
    position: absolute;
    top: 170px;
    left: 21px;
    right: 25px;
    height: 180px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: 84px 84px;
    column-gap: 19px;
    row-gap: 12px;
}

.globalpay-demo-option {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding-top: 17px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    line-height: 18px;
    transition: transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}

.globalpay-reference-logo {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.globalpay-reference-brand {
    width: 106px;
    height: 47px;
}

.globalpay-reference-cards {
    width: 104px;
    height: 30px;
}

.globalpay-reference-union {
    width: 49px;
    height: 30px;
}

.globalpay-reference-alipay {
    width: 74px;
    height: 30px;
}

.globalpay-reference-wechat {
    width: 108px;
    height: 30px;
}

.globalpay-demo-option.is-pressed,
.globalpay-demo-option.is-selected {
    transform: none;
    border-color: #000;
    background: #fff;
    box-shadow: none;
}

.globalpay-demo-message {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
}

[data-globalpay-wallet="wechat"] .globalpay-demo-message {
    left: auto;
    right: 12px;
}

@media(max-width:768px) {
    .globalpay-demo-message {
        top: 8px;
        left: 8px;
    }
    [data-globalpay-wallet="wechat"] .globalpay-demo-message {
        right: 8px;
    }
}

.globalpay-demo-alipay {
    background: #fcfcfc;
}

.globalpay-demo-alipay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / var(--globalpay-payment-scale,1));
    height: calc(var(--globalpay-demo-height,342px) / var(--globalpay-payment-scale,1));
    transform: scale(var(--globalpay-payment-scale,1));
    transform-origin: top left;
}

.globalpay-demo-alipay-wordmark {
    height: 59px;
    padding: 16px 10px 4px;
    background: #fff;
}

.globalpay-payment-logo {
    display: block;
    flex-shrink: 0;
    background-image: url('../../images/service/alipay-payment-reference.png');
    background-repeat: no-repeat;
    background-size: 342.5px 410.5px;
}

.globalpay-payment-logo-plus {
    width: 103px;
    height: 35px;
    background-position: -7px -3px;
}

.globalpay-demo-wallet-list {
    position: absolute;
    top: 62px;
    bottom: 89px;
    left: 3px;
    right: 3px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9edfa;
    border-radius: 10px;
    padding: 17px 16px 0;
    background: #fff;
}

.globalpay-demo-wallet-list h4 {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 21px;
    margin: 0 0 8px;
    font-weight: 700;
    color: #000;
}

.globalpay-demo-wallet-row {
    flex: 1;
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f7;
    padding: 3px 0;
}

.globalpay-demo-wallet-tag {
    border: 0;
    border-radius: 0;
    padding: 0;
}

.globalpay-payment-logo-alipay {
    width: 71px;
    height: 29px;
    background-position: -23px -113px;
}

.globalpay-payment-logo-gcash {
    width: 74px;
    height: 31px;
    background-position: -21px -162px;
}

.globalpay-payment-logo-dana {
    width: 74px;
    height: 31px;
    background-position: -21px -211px;
}

.globalpay-demo-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #c5d0e2;
    border-radius: 50%;
    margin-right: 2px;
}

.globalpay-demo-radio.is-selected {
    display: grid;
    place-items: center;
    background: #1976f5;
    border-color: #1976f5;
}

.globalpay-demo-radio svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.globalpay-demo-other {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: #aab6cf;
    font-size: 13px;
    line-height: 18px;
    padding: 10px 0 12px;
}

.globalpay-demo-other svg {
    width: 12px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
}

.globalpay-demo-total {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 79px;
    padding: 10px 5px 10px 17px;
    background: #fcfcfc;
}

.globalpay-demo-total small {
    display: block;
    font-size: 11px;
    line-height: 17px;
    color: #808080;
    margin-bottom: 4px;
}

.globalpay-demo-total strong {
    display: block;
    font-size: 17px;
    line-height: 23px;
    font-weight: 700;
    color: #000;
}

.globalpay-demo-total em {
    display: block;
    font-size: 8px;
    line-height: 11px;
    color: #888;
    font-style: normal;
}

.globalpay-demo-pay-action {
    display: grid;
    place-items: center;
    min-width: 121px;
    height: 36px;
    padding: 0 12px;
    border-radius: 3px;
    background: #1677ff;
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.globalpay-demo-wechat {
    padding: 34px 13px;
    background: #fcfcfc;
    text-align: center;
}

.globalpay-demo-order {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}

.globalpay-demo-amount {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 22px;
}

.globalpay-demo-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    border: 1px solid #999;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.globalpay-demo-confirm {
    display: grid;
    place-items: center;
    height: 40px;
    background: #16a616;
    border-radius: 15px;
    color: white;
    font-size: 21px;
    font-weight: 700;
}

@media(prefers-reduced-motion:reduce) {
    .globalpay-demo-page,.globalpay-demo-option {
        transition: none;
    }
}

[data-globalpay-review] .globalpay-demo-page,[data-globalpay-review] .globalpay-demo-option {
    transition: none;
}

.globalpay-demo-message.is-payment-message {
    top: var(--globalpay-message-top,240px);
    left: auto;
    right: 8px;
}

[data-globalpay-wallet="wechat"] .globalpay-demo-message.is-payment-message {
    right: 8px;
}

[data-service-page="globalpay"] .service-process--preview .service-process-number {
    transition: background-color .32s ease,color .32s ease,box-shadow .32s ease,transform .32s ease;
    transform: scale(1);
}

[data-service-page="globalpay"] .service-process--preview .service-process-item.is-active .service-process-number {
    transform: none;
}

[data-service-page="globalpay"] .service-process--preview .service-process-item-title {
    opacity: .78;
    transform: translateX(0);
    transition: opacity .32s ease,transform .32s ease;
}

[data-service-page="globalpay"] .service-process--preview .service-process-item.is-active .service-process-item-title {
    opacity: 1;
    transform: none;
}

@media(prefers-reduced-motion:reduce) {
    [data-service-page="globalpay"] .service-process--preview .service-process-number,[data-service-page="globalpay"] .service-process--preview .service-process-item-title {
        transition: none;
        transform: none!important;
    }
}
