/* 언어 설정(js/i18n-settings.js) — 설정 > 언어, 로그인 화면·공개 페이지 선택기 */
.tf-lang-list { display: flex; flex-direction: column; border: 1px solid var(--border, #DDE1E6); border-radius: 12px; overflow: hidden; background: var(--bg-secondary, #FFFFFF); }
.tf-lang-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-top: 1px solid var(--border, #DDE1E6); background: transparent; color: var(--text-primary, #212529); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.tf-lang-option:first-child { border-top: 0; }
.tf-lang-option:hover { background: var(--bg-hover, rgba(0, 0, 0, .03)); }
.tf-lang-option.is-active { font-weight: 600; }
.tf-lang-option:disabled { cursor: default; }
.tf-lang-name { flex: 0 0 auto; }
.tf-lang-code { flex: 1 1 auto; color: var(--text-muted, #868E96); font-size: 12px; font-weight: 400; }
.tf-lang-check { color: var(--text-primary, #212529); font-size: 14px; }
.tf-lang-busy { color: var(--text-muted, #868E96); }
.tf-lang-note { margin: 10px 2px 0; color: var(--text-secondary, #495057); font-size: 12px; line-height: 1.6; }

.tf-lang-picker { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border, #DDE1E6); border-radius: 100px; background: var(--bg-secondary, #FFFFFF); color: var(--text-secondary, #495057); font-size: 13px; }
.tf-lang-picker select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; padding-right: 2px; cursor: pointer; outline: none; }
.tf-lang-picker-icon { font-size: 13px; line-height: 1; }
/* 공개 페이지에 붙는 떠 있는 선택기(js/i18n.js data-tf-lang-switcher="float") — 왼쪽 아래(위쪽 머리글·오른쪽 아래 상담 단추와 겹치지 않게) */
.tf-lang-float { position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; line-height: 0; }
.tf-lang-float .tf-lang-picker { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); line-height: normal; }
@media (max-width: 640px) { .tf-lang-float { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

/* 영어·일본어는 한국어보다 길다 — 좁은 왼쪽 메뉴 글자는 칸 안에서 줄이고 넘치면 말줄임(세로가 짧은 창에서 라벨을 숨기는 styles.css 규칙은 그대로) */
@media (min-height: 781px) {
    html[lang="en"] .rail-label, html[lang="ja"] .rail-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 11px; letter-spacing: -0.04em; }
    html[lang="ja"] .rail-label { font-size: 10.5px; letter-spacing: -0.06em; }
}
