/**
 * USDT Payment Styles
 */

/* USDT支付信息框 */
.usdt-info-box {
    border: 1px solid #e8f4fd;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
}

/* 支付弹窗样式 */
.usdt-payment-modal {
    padding: 20px;
    font-size: 14px;
}

.usdt-payment-modal .status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.usdt-payment-modal .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e3e3e3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.usdt-payment-modal .status-text {
    font-weight: 500;
    color: #333;
}

/* 二维码区域 */
.usdt-payment-modal .qr-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.usdt-payment-modal #usdt-qrcode {
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

/* 支付详情 */
.usdt-payment-modal .payment-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.usdt-payment-modal .detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.usdt-payment-modal .detail-item:last-child {
    border-bottom: none;
}

.usdt-payment-modal .detail-item>span:first-child {
    color: #666;
    font-weight: 500;
    min-width: 80px;
}

.usdt-payment-modal .detail-item>span:last-child {
    color: #333;
    font-weight: 600;
}

/* 地址和金额文本 */
.usdt-payment-modal .address-text,
.usdt-payment-modal .amount-text {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.usdt-payment-modal .address-text:hover,
.usdt-payment-modal .amount-text:hover {
    background: #f0f8ff;
    border-color: #007cba;
}

/* 复制按钮 */
.usdt-payment-modal .copy-btn {
    color: #007cba;
    cursor: pointer;
    transition: color 0.2s ease;
}

.usdt-payment-modal .copy-btn:hover {
    color: #005a87;
}

/* 支付提醒 */
.usdt-payment-modal .payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
}

.usdt-payment-modal .notice-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.usdt-payment-modal .notice-list {
    margin: 0;
    padding-left: 20px;
}

.usdt-payment-modal .notice-list li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 支付方式选择样式增强 */
.payment-method-radio[data-value="usdt"] {
    position: relative;
}

.payment-method-radio[data-value="usdt"].active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #007cba;
    border-radius: 6px;
    pointer-events: none;
}

.payment-method-radio[data-value="usdt"] img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

/* USDT图标样式 */
.usdt-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #26a17b 0%, #2db88f 100%);
    border-radius: 50%;
    position: relative;
    margin-right: 8px;
}

.usdt-icon::before {
    content: 'U';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .usdt-payment-modal {
        padding: 15px;
    }

    .usdt-payment-modal .detail-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }

    .usdt-payment-modal .detail-item>span:first-child {
        min-width: auto;
    }

    .usdt-payment-modal .address-text,
    .usdt-payment-modal .amount-text {
        width: 100%;
        word-break: break-all;
    }
}

/* 支付成功动画 */
.payment-success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 错误状态样式 */
.usdt-payment-modal .status-indicator.error {
    border-left-color: #dc3545;
}

.usdt-payment-modal .status-indicator.error .status-text {
    color: #dc3545;
}

.usdt-payment-modal .status-indicator.success {
    border-left-color: #28a745;
}

.usdt-payment-modal .status-indicator.success .status-text {
    color: #28a745;
}

/* 倒计时样式 */
.payment-countdown {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 网络状态指示器 */
.network-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #e8f5e8;
    color: #2d8f2d;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.network-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #2d8f2d;
    border-radius: 50%;
}

/* 金额高亮样式 */
.amount-highlight {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc02;
    color: #e65100;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* USDT支付插件样式 */

/* USDT支付选项样式 */
.payment-method-item[for="payment_method_usdt"] {
    position: relative;
}

.payment-method-item[for="payment_method_usdt"] .payment-method-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* USDT支付提示样式 */
.usdt-payment-info {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.usdt-payment-info .usdt-amount {
    font-size: 18px;
    font-weight: bold;
    color: #26a17b;
    margin-bottom: 10px;
}

.usdt-payment-info .usdt-address {
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    background: #fff;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

.usdt-payment-info .usdt-token {
    font-family: monospace;
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
}

/* 二维码样式 */
.usdt-qr-code {
    text-align: center;
    margin: 20px 0;
}

.usdt-qr-code img {
    max-width: 200px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

/* 支付状态提示 */
.usdt-status-checking {
    color: #f39c12;
    font-weight: bold;
}

.usdt-status-success {
    color: #27ae60;
    font-weight: bold;
}

.usdt-status-failed {
    color: #e74c3c;
    font-weight: bold;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .usdt-payment-info {
        padding: 10px;
        margin: 10px 0;
    }

    .usdt-payment-info .usdt-amount {
        font-size: 16px;
    }

    .usdt-qr-code img {
        max-width: 150px;
    }
}