/* TeePay 支付方式选择样式 */
.teepay-payment-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.teepay-payment-option {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--classA, #e0e0e0);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--background, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
}

.teepay-payment-option:hover {
    border-color: var(--theme, #06B4FD);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teepay-payment-option.selected {
    border-color: #FF6B00;
    background: linear-gradient(135deg, var(--classD, #fff8f0), var(--background, #fff));
}

.teepay-payment-icon {
    width: 32px;
    height: 32px;
    display: block;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.teepay-payment-option:hover .teepay-payment-icon {
    transform: scale(1.05);
}

.teepay-payment-label {
    font-size: 14px;
    color: var(--main, #333);
    font-weight: 500;
    white-space: nowrap;
}

.teepay-checkmark {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.teepay-payment-option.selected .teepay-checkmark {
    opacity: 1;
    transform: scale(1);
}

.teepay-checkmark::before {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 隐藏原始的radio按钮 */
.teepay-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 深色模式样式 */
html[data-night='night'] .teepay-payment-option {
    border-color: var(--classA, #515253);
    background: var(--background, #232323);
}

html[data-night='night'] .teepay-payment-option:hover {
    border-color: var(--theme, #54b5db);
}

html[data-night='night'] .teepay-payment-option.selected {
    border-color: #FF6B00;
    background: linear-gradient(135deg, var(--classC, #414243), var(--background, #232323));
}

html[data-night='night'] .teepay-payment-label {
    color: var(--main, #999);
}

/* 深色模式下的内联样式适配 */
html[data-night='night'] div[style*="border:1px dashed"] {
    border-color: var(--classA, #515253) !important;
}

html[data-night='night'] div[style*="background:"] {
    background: var(--background, #232323) !important;
}

html[data-night='night'] span[style*="color:"] {
    color: var(--routine, #888) !important;
}

html[data-night='night'] a[style*="background-color:"] {
    background-color: var(--theme, #54b5db) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .teepay-payment-container {
        gap: 12px;
    }
    
    .teepay-payment-option {
        padding: 6px 10px;
    }
    
    .teepay-payment-icon {
        width: 28px;
        height: 28px;
    }
    
    .teepay-payment-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .teepay-payment-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .teepay-payment-option {
        width: auto;
        max-width: none;
    }
}