.site-payment-open {
    overflow: hidden;
}

.site-payment-layer {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.46);
}

.site-payment-layer.is-visible {
    display: flex;
}

.site-payment-panel {
    width: min(430px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.site-payment-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 54px;
    border-bottom: 1px solid #ebeef5;
}

.site-payment-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #303133;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.site-payment-alipay-icon {
    display: inline-block;
    width: 41px;
    height: 38px;
    margin-right: 8px;
    background: url("../img/alipay-pay.png") 0 -113px no-repeat;
    flex: 0 0 auto;
}

.site-payment-close {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #909399;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
}

.site-payment-close:hover {
    color: #303133;
}

.site-payment-body {
    min-height: 430px;
    padding: 24px 24px 18px;
    text-align: center;
}

.site-payment-amount-label,
.site-payment-status {
    color: #909399;
    font-size: 13px;
    letter-spacing: 0;
}

.site-payment-amount {
    margin: 2px 0 4px;
    color: #303133;
    font-size: 30px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
}

.site-payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 246px;
    padding-top: 18px;
}

.site-payment-qr {
    width: 228px;
    height: 228px;
    padding: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
}

.site-payment-qr canvas,
.site-payment-qr img {
    display: block;
    width: 218px;
    height: 218px;
}

.site-payment-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #dcdfe6;
    border-top-color: #409eff;
    border-radius: 50%;
    animation: site-payment-spin 0.8s linear infinite;
}

@keyframes site-payment-spin {
    to { transform: rotate(360deg); }
}

.site-payment-state-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 58px;
}

.site-payment-state-icon.is-success {
    background: #f0f9eb;
    color: #67c23a;
}

.site-payment-state-icon.is-error {
    background: #fef0f0;
    color: #f56c6c;
}

.site-payment-message {
    max-width: 100%;
    margin-top: 14px;
    color: #606266;
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.site-payment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    margin-top: 16px;
}

.site-payment-button {
    min-width: 108px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #409eff;
    border-radius: 4px;
    background: #409eff;
    color: #fff;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.site-payment-button:hover,
.site-payment-button:focus {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}

.site-payment-button.is-secondary {
    border-color: transparent;
    background: transparent;
    color: #328ce5;
}

.site-payment-button.is-secondary:hover,
.site-payment-button.is-secondary:focus {
    border-color: transparent;
    background: #f5f7fa;
    color: #2b8ae8;
}

.site-payment-scan-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed #dcdfe6;
}

.site-payment-scan-icon {
    width: 56px;
    height: 55px;
    margin-right: 18px;
    background: url("../img/alipay-pay.png") 0 0 no-repeat;
    flex: 0 0 auto;
}

.site-payment-scan-text {
    color: #303133;
    font-size: 15px;
    line-height: 25px;
    text-align: left;
    letter-spacing: 0;
}

.site-payment-scan-text p {
    margin: 0;
}

.site-payment-status {
    min-height: 20px;
    margin-top: 14px;
}

@media (max-width: 480px) {
    .site-payment-layer {
        align-items: flex-end;
        padding: 12px;
    }

    .site-payment-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .site-payment-body {
        min-height: 420px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .site-payment-header {
        min-height: 58px;
    }

    .site-payment-title {
        font-size: 17px;
    }

    .site-payment-alipay-icon {
        width: 34px;
        height: 32px;
        background-size: 48px auto;
        background-position: 0 -97px;
    }

    .site-payment-content {
        min-height: 238px;
        padding-top: 12px;
    }

    .site-payment-actions {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .site-payment-scan-tip {
        margin-top: 16px;
        padding-top: 16px;
    }
}
