/* 🏛️ 공통 종목 검색 컴포넌트 전용 네임스페이스 스타일 명세 (맑은 라이트 핏) */
.sz-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}
.sz-widget-container *, .sz-widget-container *::before, .sz-widget-container *::after {
    box-sizing: border-box;
}

/* 마켓 토글 컨트롤 바 라이트 그레이 */
.sz-widget-toggle-bar {
    display: flex;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    gap: 4px;
}
.sz-widget-market-btn {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}
.sz-widget-market-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
/* 🎯 [보라색 숙청] 활성화 마켓 버튼을 청량한 스마트 블루(#2563eb)로 변경 */
.sz-widget-market-btn.sz-active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

/* 입력창 라이트 스킨 및 포커스 이펙트 교정 */
.sz-widget-input-wrapper {
    position: relative;
    flex: 1 1 auto !important;
    width: 100%;
}
.sz-widget-input {
    width: 100%;
    padding: 6px 32px 6px 12px;
    border: 1px solid #cbd5e1; /* 연한 회색 테두리 */
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a !important; /* 🎯 글자색 선명한 차콜 블랙 */
    outline: none;
    background-color: #ffffff !important; /* 🎯 인풋창 배경 무조건 순백색 고정 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* 🎯 [포커스 링 개편] 클릭 시 뿜어져 나오던 보라색 아우라를 지워버리고, 맑은 하늘색 잔영(rgba(59, 130, 246, 0.2))으로 교체! */
.sz-widget-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* 입력창 내부 우측 정밀 밀착형 'X' 리셋 버튼 디자인 */
.sz-widget-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
    display: none;
    line-height: 1;
    transition: color 0.1s ease;
    z-index: 10;
}
.sz-widget-clear-btn:hover {
    color: #334155;
}

/* 자동완성 드롭다운 바스켓 백색 정화 */
.sz-widget-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background-color: #ffffff !important; /* 🎯 드롭다운 판넬 바탕 순백색 지정 */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}
.sz-widget-item {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #334155 !important; /* 🎯 리스트 내부 텍스트 선명한 다크 그레이 */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.sz-widget-item:last-child {
    border-bottom: none;
}
/* 드롭다운 호버 및 방향키 선택 시 소프트 블루 매칭 */
.sz-widget-item:hover, .sz-widget-item.sz-selected {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}
.sz-widget-badge {
    color: #475569;
    font-size: 10px;
    font-family: monospace;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.sz-widget-loading-indicator {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}