/**
 * WHMCS Stripe 支付宝/微信支付 - 样式
 */

/* 支付方式选择容器 */
#stripe-payment-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 支付方式选项 */
.stripe-payment-option {
    display: block;
    margin-bottom: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stripe-payment-option:hover {
    border-color: #635bff;
    background: #f8f9fa;
}

.stripe-payment-option.selected {
    border-color: #635bff;
    background: #f0f0ff;
}

.stripe-payment-option input[type="radio"] {
    margin-right: 12px;
    vertical-align: middle;
}

/* 支付宝样式 */
.stripe-alipay-label {
    color: #1677FF;
    font-weight: 600;
    font-size: 16px;
}

.stripe-alipay-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 微信支付样式 */
.stripe-wechat-label {
    color: #07C160;
    font-weight: 600;
    font-size: 16px;
}

.stripe-wechat-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 支付按钮 */
#stripe-pay-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#stripe-pay-button:hover {
    background: linear-gradient(135deg, #5851db 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

#stripe-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 错误消息 */
#stripe-error-message {
    margin-top: 15px;
    padding: 12px;
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    font-size: 14px;
}

/* 加载状态 */
#stripe-loading {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    color: #666;
    font-size: 14px;
}

#stripe-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #635bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: stripe-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* 微信支付二维码弹窗 */
.stripe-wechat-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.stripe-wechat-qr-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
}

.stripe-wechat-qr-title {
    color: #07C160;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stripe-wechat-qr-image {
    max-width: 200px;
    margin: 0 auto 20px;
}

.stripe-wechat-qr-tip {
    color: #666;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
    #stripe-payment-container {
        margin: 10px;
        padding: 15px;
    }
    
    .stripe-payment-option {
        padding: 12px;
    }
    
    #stripe-pay-button {
        padding: 12px 16px;
        font-size: 15px;
    }
}
