/* portal_lang_switch.css — 언어 선택 드롭다운 공용 부품 (portal_lang_switch.php) [2026-10-14]
 *  트리거 = 🌐 현재 언어 짧은 표기 · 다른 언어 3개 ▾ (예: 🌐 한 · EN · 日 · 中 ▾). 좁은 화면은 미리보기 2개.
 *  ★특이도: 페이지별 항목 CSS(.co_lang_btn 등 — inline-flex 버튼 줄 가정)를 메뉴 안에서 덮어야 해서 .pls .pls_menu .pls_item 로 잡는다. */
.pls { position: relative; display: inline-block; vertical-align: middle; }
.pls .pls_cur { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font-size: 12px; font-weight: 500; cursor: pointer; line-height: 1; white-space: nowrap; position: relative; }
.pls .pls_cur:hover { color: #0f172a; border-color: #94a3b8; }
.pls .pls_ico { font-size: 13px; margin-right: 1px; }
.pls .pls_cur_bt { font-weight: 700; letter-spacing: .2px; color: #0f172a; }
.pls .pls_cur_nm { color: #475569; font-weight: 500; margin-left: 2px; }
.pls .pls_cur_nm:empty { display: none; }
.pls .pls_prev { display: inline-flex; align-items: center; color: #94a3b8; font-weight: 500; }
.pls .pls_prev:empty { display: none; }
.pls .pls_prev span::before { content: '·'; margin: 0 4px; color: #cbd5e1; }
.pls .pls_caret { font-size: 10px; color: #94a3b8; margin-left: 2px; }
.pls.open .pls_caret { transform: rotate(180deg); }
.pls .pls_menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 176px; max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.16); padding: 4px; z-index: 1200; }
.pls.open .pls_menu { display: block; }
.pls.pls_left .pls_menu { right: auto; left: 0; }
.pls.pls_left_auto .pls_menu { right: auto; left: 0; }   /* ★[2026-10-21] JS fitMenu — 화면 왼쪽을 넘을 때 자동 왼쪽 정렬(모바일 헤더 줄바꿈으로 트리거가 왼쪽에 올 때) */
.pls .pls_head { padding: 6px 10px 5px; font-size: 11px; color: #94a3b8; font-weight: 500; border-bottom: 1px solid #f1f5f9; margin-bottom: 3px; white-space: nowrap; }
.pls .pls_menu .pls_item, .pls .pls_menu > button { display: flex; width: 100%; align-items: center; gap: 8px; height: auto; padding: 7px 10px; margin: 0; border: 0 !important; border-radius: 6px; background: transparent; color: #334155; font-size: 12.5px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; line-height: 1.2; box-shadow: none; }
.pls .pls_menu .pls_item:hover, .pls .pls_menu > button:hover { background: #f1f5f9; color: #0f172a; }
.pls .pls_menu .pls_item.on, .pls .pls_menu > button.on { background: #e2e8f0; color: #0f172a; font-weight: 600; }
.pls .pls_bt { display: inline-block; min-width: 26px; font-weight: 600; color: #475569; }
.pls .pls_menu .pls_item.on .pls_bt { color: #0f172a; }
.pls .pls_nm { color: #64748b; font-weight: 400; flex: 1; }
.pls .pls_menu .pls_item.on .pls_nm { color: #334155; }
.pls .pls_chk { display: none; color: #2563eb; font-weight: 700; margin-left: 6px; }
.pls .pls_revtag { display: inline-block; font-size: 10px; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }   /* 검토 전 언어(직원 미리보기) */
.pls .pls_menu .pls_item.on .pls_chk { display: inline; }
/* ★[2026-10-17] 키보드 포커스 · 2열(항목 15개 초과) · 검색창(25개 초과) · 필터 숨김 — 임계값은 portal_lang_switch.js LIMITS */
.pls .pls_menu > button:focus { outline: 2px solid #2563eb; outline-offset: -2px; background: #eff6ff; color: #0f172a; }
.pls .pls_menu > button:focus:not(:focus-visible) { outline: none; }
.pls .pls_menu > button.pls_hide { display: none; }
.pls.open .pls_menu.pls_cols2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; min-width: 380px; }
.pls .pls_menu.pls_cols2 .pls_head, .pls .pls_menu.pls_cols2 .pls_search, .pls .pls_menu.pls_cols2 .pls_none { grid-column: 1 / -1; }
.pls .pls_search { display: block; width: calc(100% - 8px); box-sizing: border-box; margin: 2px 4px 6px; height: 30px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12.5px; color: #0f172a; background: #f8fafc; }
.pls .pls_search:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.pls .pls_menu.pls_empty::after { content: '—'; display: block; grid-column: 1 / -1; text-align: center; color: #94a3b8; font-size: 12px; padding: 8px 0 6px; }
@media (max-width: 575.98px) { .pls.open .pls_menu.pls_cols2 { grid-template-columns: 1fr; min-width: 176px; } }
/* 첫 방문 강조 — 펄스 3회(테두리) + 말풍선 + 미선택 점 */
@keyframes plsPulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.55); } 70% { box-shadow: 0 0 0 9px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
.pls.pls_pulse .pls_cur { animation: plsPulse .9s ease-out 3; border-color: #2563eb; }
/* ★[2026-10-17] 말풍선이 떠 있는 동안 느린 반복 펄스(2.5초) — 열기·선택·✕ 와 함께 멈춤 */
.pls.pls_pulse_loop .pls_cur { animation: plsPulse 2.5s ease-out infinite; border-color: #2563eb; }
.pls.open .pls_bubble { display: none !important; }
.pls .pls_bubble { display: none; align-items: center; gap: 8px; cursor: pointer; }
.pls .pls_bubble_t { white-space: nowrap; }
.pls .pls_bubble_x { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; flex: 0 0 auto; }
.pls .pls_bubble_x:hover { background: rgba(255,255,255,.3); }
.pls.pls_show_bubble .pls_bubble { display: flex; }
@media (prefers-reduced-motion: reduce) { .pls.pls_pulse_loop .pls_cur { animation: none; } }
.pls.pls_dot .pls_cur::after { content: ''; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #2563eb; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(37,99,235,.35); }
.pls .pls_bubble { display: none; position: absolute; top: calc(100% + 9px); right: 0; background: #1e293b; color: #fff; font-size: 12px; font-weight: 500; padding: 7px 11px; border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 22px rgba(15,23,42,.28); z-index: 1210; }
.pls .pls_bubble::before { content: ''; position: absolute; top: -5px; right: 14px; width: 10px; height: 10px; background: #1e293b; transform: rotate(45deg); }
.pls.pls_show_bubble .pls_bubble { display: flex; animation: plsFade .25s ease-out; }
@keyframes plsFade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
/* 랜딩 히어로(어두운 배경) — 모바일 트리거 유리 룩 */
.site-lang-hero.pls { position: absolute; top: 14px; right: 14px; z-index: 20; }
.site-lang-hero.pls .pls_cur { background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.85); color: #fff; backdrop-filter: blur(3px); border-radius: 999px; }
.site-lang-hero.pls .pls_cur_bt, .site-lang-hero.pls .pls_cur_nm { color: #fff; }
.site-lang-hero.pls .pls_prev, .site-lang-hero.pls .pls_caret { color: rgba(255,255,255,.85); }
.site-lang-hero.pls .pls_prev span::before { color: rgba(255,255,255,.55); }
.site-lang-hero.pls .pls_bubble { right: 0; }
.site-lang-nav.pls { margin-right: 10px; }
/* 로그인·비밀번호 찾기 카드 */
.cl_lang_wrap.pls { margin: 18px 0 22px; }
.cl_lang_wrap.pls .pls_menu, .cl_lang_wrap.pls .pls_bubble { right: auto; left: 0; }
/* 인쇄 뷰어 바(포장표·주문서) — 트리거 높이를 옆 버튼(32px)과 맞춤 */
.pkv_wrap.pls .pls_cur, .osv_wrap.pls .pls_cur { height: 32px; }
/* 좁은 화면 — 미리보기 2개까지만 */
@media (max-width: 575.98px) { .pls .pls_prev span:nth-child(n+3) { display: none; } }
@media print { .pls { display: none !important; } }
