/* overseas-preview.css */
[data-overseas-preview] .globalpay-demo-page {
    transition: transform 1s cubic-bezier(.4,0,.2,1);
}

[data-overseas-preview] .globalpay-demo-option.is-selected {
    border-color: #000;
}

.overseas-demo-payment {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
    color: #333;
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(.4,0,.2,1);
}

[data-overseas-preview].is-card-form .globalpay-demo-start {
    transform: translateX(-100%);
}

[data-overseas-preview].is-card-form .overseas-demo-payment {
    transform: translateX(0);
}

.overseas-demo-provider {
    height: 51px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d7e2e7;
}

.overseas-demo-provider-logo {
    display: block;
    width: 134px;
    height: 28px;
    background: url('../../images/service/overseas-payment-reference.png') -34px -14px/350px auto no-repeat;
}

.overseas-demo-language {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #c1cdd1;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 12px;
}

.overseas-demo-language svg {
    width: 11px;
    height: 8px;
    fill: none;
    stroke: #333;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overseas-demo-form-scroll {
    position: absolute;
    inset: 51px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.overseas-demo-form-scroll::-webkit-scrollbar {
    display: none;
}

.overseas-demo-form {
    padding: 14px 20px 22px;
}

.overseas-demo-form>h4 {
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid #224a5b;
    color: #16465f;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

.overseas-demo-summary {
    margin: 8px 0 16px;
}

.overseas-demo-summary>div {
    display: grid;
    grid-template-columns: 42% minmax(0,1fr);
    align-items: center;
    min-height: 36px;
    gap: 8px;
}

.overseas-demo-summary dt,.overseas-demo-card-row>strong {
    margin: 0;
    font-size: 12px;
    line-height: 17px;
    font-weight: 600;
    color: #4399bc;
}

.overseas-demo-summary dd {
    margin: 0;
    font-size: 13px;
    line-height: 19px;
}

.overseas-demo-summary dd>b {
    font-size: 15px;
    font-weight: 500;
}

.overseas-demo-card-brand {
    padding: 10px 0 var(--overseas-message-space,63px) 42%;
}

.overseas-demo-card-brand>img {
    display: block;
    width: 35px;
    height: 24px;
    object-fit: contain;
}

.overseas-demo-card-row {
    display: grid;
    grid-template-columns: 42% minmax(0,1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 19px;
}

.overseas-demo-input {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 29px;
    border: 1px solid #b7b7b7;
    border-radius: 11px;
    background: #fff;
    color: #858585;
    font-size: 14px;
}

.overseas-demo-expiry {
    display: grid;
    grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr);
    align-items: center;
    gap: 6px;
}

.overseas-demo-expiry>em {
    color: #8b8b8b;
    font-size: 15px;
    font-style: normal;
    text-align: center;
}

.overseas-demo-terms {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 24px 0 18px;
}

.overseas-demo-checkbox {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    border: 1px solid #777;
    border-radius: 2px;
    margin-top: 1px;
}

.overseas-demo-terms>p {
    margin: 0;
    font-size: 10px;
    line-height: 16px;
    color: #888;
}

.overseas-demo-terms u {
    color: #4399bc;
    text-underline-offset: 2px;
    font-weight: 600;
}

.overseas-demo-pay {
    display: grid;
    place-items: center;
    width: 68%;
    height: 32px;
    margin: 0 auto;
    border-radius: 22px;
    background: #499ac9;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.overseas-demo-pay.is-pressed {
    background: #337eab;
}

.overseas-demo-message {
    position: absolute;
    z-index: 3;
    top: var(--overseas-message-top,8px);
    left: var(--overseas-message-left,8px);
    right: auto;
}

@media(prefers-reduced-motion:reduce) {
    [data-overseas-preview] .globalpay-demo-page,.overseas-demo-payment {
        transition: none;
    }
}

@media (max-width: 480px) {
    .overseas-demo-form {
        padding-left: 16px;
        padding-right: 16px;
    }
    .overseas-demo-card-brand {
        padding-left: 0;
    }
    .overseas-demo-card-row {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
        margin-bottom: 16px;
    }
    .overseas-demo-card-row > strong {
        min-width: 0;
        white-space: nowrap;
    }
    .overseas-demo-input {
        width: 100%;
        height: 40px;
        line-height: 1.4;
    }
    .overseas-demo-expiry {
        min-width: 0;
        width: 100%;
    }
}
