/* 钱包选择器样式文件 */

/* 钱包选择器从右侧滑出样式 */
.wallet-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallet-selector-overlay.show {
    opacity: 1;
}

.wallet-selector-panel {
    position: relative;
    top: 0;
    right: -450px; /* 初始位置在屏幕右侧外 */
    width: 450px; /* 与用户信息面板相同的宽度 */
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wallet-selector-overlay.show .wallet-selector-panel {
    right: 0;
}

.wallet-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.wallet-selector-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.wallet-selector-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-height: 52px;
}

.wallet-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.wallet-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.wallet-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.wallet-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.wallet-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 钱包选择器 */
@media (max-width: 768px) {
    .wallet-selector-panel {
        width: 100%;
        right: -100%;
    }
    
    .wallet-selector-header {
        padding: 16px 20px;
    }
    
    .wallet-selector-content {
        padding: 20px;
    }
} 