/* 환전 탭 — 「서울 지하철 안내판」 (style.css 토큰·.board/.sbox/.flt/.homemap 위에 이 페이지 몫만) */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 금액 + 통화: .sbox 한 줄 */
.fxbox{margin-top:14px}
.fxbox input{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.fxbox select{flex:none;max-width:56%;height:30px;padding:0 26px 0 12px;border:0;border-left:1px solid var(--line);background:none;color:var(--ink);
  font:inherit;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer;
  appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center}
.fxbox select:focus{outline:0}

/* 외화 사기/팔기: 칩 모양 라디오 (선택 = 검정 채움) */
.fxdir{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0}
.fxdir label{position:relative;display:block;min-width:0;cursor:pointer}
.fxdir input,.fxview input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.fxdir span{display:flex;flex-direction:column;justify-content:center;min-height:46px;padding:4px 12px;border:1.5px solid var(--ink);border-radius:var(--r);background:var(--paper);color:var(--ink);line-height:1.25;min-width:0}
.fxdir b{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fxdir small{font-size:12px;font-weight:500;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fxdir input:checked+span{background:var(--ink);color:var(--paper)}
.fxdir input:checked+span small{color:var(--paper);opacity:.8}
.fxdir input:focus-visible+span,.fxview input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}

/* 기준 시각 + 목록/지도 */
.fxhead{align-items:center;margin:12px 0 0}
.fxhead #fxts{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fxview{flex:none;margin:0;padding:0;overflow:visible}
.fxview label{flex:none;cursor:pointer;position:relative}
.fxview span{display:inline-flex;align-items:center;gap:4px;height:29px;border:1.5px solid var(--ink);border-radius:999px;padding:0 11px;font-size:13px;font-weight:600;background:var(--paper);color:var(--ink);white-space:nowrap}
.fxview span svg{width:14px;height:14px}
.fxview input:checked+span{background:var(--ink);color:var(--paper)}

/* 지도 */
#fxmapwrap .homemap{height:min(62vh,440px)}
#fxmapwrap .legend .ex{font-size:12px}

/* 목록 머리 (오른쪽 열 = 받는/내는 원화) */
.fxcols{display:flex;justify-content:space-between;gap:12px;margin:14px 0 0;padding:0 0 6px;border-bottom:1.5px solid var(--ink);font-size:12px;font-weight:700;color:var(--mut);white-space:nowrap}
.fxcols[hidden]{display:none}

/* 안내판 행: 배지 | 이름·상세 | 금액, 아래 줄에 메타·링크 */
.fxlist2 li{align-items:start;row-gap:6px;padding:10px 0}
.fxlist2 li>.sq{margin-top:2px}
.fxlist2 .dt{white-space:normal;overflow:visible;line-height:1.45}
.fxlist2 .dt .sv{display:block}
.fxlist2 .up{color:var(--ok-ink);font-weight:700}
.fxlist2 .down{color:var(--rd);font-weight:700}
.fxlist2 .rt{padding-top:1px}
.fxlist2 .amt{font-size:18px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.fxlist2 .amt.na{font-size:13px;font-weight:600;color:var(--mut)}
.fxlist2 .fxx{grid-column:2/-1;min-width:0;font-size:12.5px;color:var(--mut);line-height:1.45}
.fxlist2 .fxx .addr{display:block;font-size:12.5px}
.fxlist2 .fxx .links{margin-top:6px;gap:6px}
.fxlist2 .lk{gap:4px;height:30px}
.fxlist2 .lk svg{width:14px;height:14px;flex:none}
.fxlist2 .lk.cta{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.fxlist2 li.closed>.sq,.fxlist2 li.closed .nm,.fxlist2 li.closed .amt{opacity:.55}

/* 키오스크 */
.fxks{margin-top:28px}
.fxks h2{margin:0 0 6px}
.fxks h3{font-size:15px;margin:20px 0 4px}
.fxks .tool{border-top:1px solid var(--line);margin-top:8px}
#kslist li{grid-template-columns:44px minmax(0,1fr) auto}
#kslist .dt{white-space:normal}

/* 지점명은 자르지 않는다 (같은 브랜드 지점이 이름 끝에서만 갈린다) — 길면 다음 줄로 */
.fxlist2 .nm,#kslist .nm{white-space:normal;flex-wrap:wrap;column-gap:8px;row-gap:0;overflow:visible}
.fxlist2 .nm>span:first-child,#kslist .nm>span:first-child{overflow:visible;overflow-wrap:anywhere}
.fxlist2 .nm small,#kslist .nm small{max-width:100%;white-space:nowrap}
.fxlist2 .lk{height:28px;padding:0 9px;font-size:12.5px}
.fxh2{font-size:20px;font-weight:800;margin:0;color:var(--ink)}
.fxcols{align-items:baseline}

/* 업체별 버튼(예약·전화·길찾기)은 모든 언어에서 한 줄 (사업주 지시 10-03) */
.fxlist2 .fxx .links{display:flex;flex-wrap:nowrap;gap:6px;min-width:0}
.fxlist2 .fxx .links .lk{flex:0 1 auto;min-width:0;white-space:nowrap}
.fxlist2 .fxx .links .lk>span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.fxlist2 .fxx .links.n3 .lk .dirtx{display:none}
.fxlist2 .fxx .links .lk.mapdual .dirtx{display:inline} /* Google·NAVER 병기는 글자로 구분 (사업주 10-08) */
.fxlist2 .fxx .links.n3 .lk:last-child{flex:none;width:34px;padding:0;justify-content:center}
.fxlist2 .fxx .links .lk.cta{flex-shrink:2}
@media (max-width:380px){.fxlist2 .fxx .links{gap:4px}.fxlist2 .fxx .links .lk{padding:0 7px;font-size:12px}.fxlist2 .fxx .links .lk svg{width:12px;height:12px}}

/* 350px 대응: 좁은 폰에서는 버튼 줄을 배지 아래까지 넓혀 한 줄 유지 */
@media (max-width:400px){.fxlist2 .fxx .links{margin-left:-56px}}
