/* [손님-배치판 2026-11-26] 손님 화면 배치·글자·초점 — 총괄지시 22:20(페이블 프론트 점검 F-11·F-12·F-16·F-20)
   _Common.html 이 관리자 화면이 아닐 때만 싣는다. 화면마다 있는 규칙보다 앞서야 하는 곳은 html:not(#taNo) 로 우선순위를 올림(값·이름은 그대로).
   폰(768px 이하) 모양은 F-11·F-16·F-20 만 바뀌고, 넓은 화면 배치(F-12)는 769px 넘을 때만. */

/* ───────── F-20 초점 표시: 키보드로 옮길 때(:focus-visible)만 테두리. 누를 때(마우스·손가락)는 전처럼 안 보임 ───────── */
html:not(#taNo) :focus-visible{outline:2px solid #1D4ED8 !important;outline-offset:2px !important;border-radius:4px}
html:not(#taNo) .taSrIn{position:absolute !important;width:1px !important;height:1px !important;margin:-1px !important;padding:0 !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;clip-path:inset(50%) !important;border:0 !important;opacity:0 !important;white-space:nowrap !important}/* ta_ui.js: display:none 이던 체크박스·라디오를 '안 보이지만 키보드로 잡히게' */
html:not(#taNo) .taSrIn:focus-visible + label,html:not(#taNo) label:has(> .taSrIn:focus-visible){outline:2px solid #1D4ED8;outline-offset:2px;border-radius:6px}
.taBnPause{position:absolute;z-index:5;right:104px;bottom:20px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.8);color:#FFFFFF;cursor:pointer}
.taBnPause::after{content:"";position:absolute;left:-4px;top:-4px;right:-4px;bottom:-4px}/* 누르는 칸 44px */
.taBnPause svg{display:block}
@media (min-width:962px){.taBnPause{right:150px;bottom:40px;width:44px;height:44px}}/* 배너 오른쪽 아래 '1/3' 왼쪽 */

/* ───────── F-16 글자·누르는 범위 ───────── */
/* 아래 탭: 이름 11 → 12px, 꺼진 칸 옅기 .4 → .6(검정 위 흰 글자 대비 약 3.7 → 7.4), 누르는 높이 40 → 44px(겉 높이 68px 그대로: 위아래 14 → 12px) */
html:not(#taNo) #mnb{padding:12px 0}
html:not(#taNo) #mnb li a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;opacity:.6}
html:not(#taNo) #mnb li.active a{opacity:1}
html:not(#taNo) #mnb li a span{font-size:12px;margin-top:4px}
/* 뒤로가기(25px) · 위 막대 그림 단추 — 보이는 그림은 그대로, 누르는 칸만 44px */
html:not(#taNo) #container .container-mo-title .oiBtn.back,html:not(#taNo) #container .container-mo-title .backbtn{min-width:44px;background-position:center}
html:not(#taNo) #container .container-mo-title .btns .oiBtn{position:relative}
html:not(#taNo) #container .container-mo-title .btns .oiBtn::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
/* 누르는 칸만 44px(보이는 크기는 그대로): 분류 목록 칩, 수량 +/−, 로그인 유지·이메일/비밀번호 찾기, 체크 이름표 */
html:not(#taNo) #category.taCatList .taWtChips a,html:not(#taNo) #category.taCatList .category-list li a,html:not(#taNo) #market.taIn .list .count_box button{position:relative}
html:not(#taNo) #category.taCatList .taWtChips a::after,html:not(#taNo) #category.taCatList .category-list li a::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
html:not(#taNo) #market.taIn .list .count_box button::before{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
html:not(#taNo) .taLg7 .taLg7Keep label{display:inline-flex;align-items:center;gap:6px;min-height:44px}
html:not(#taNo) .taLg7 .taLg7Keep input[type=checkbox]{width:20px;height:20px;margin:0}
html:not(#taNo) .taLg7 .links.taLg7Find a{display:inline-flex;align-items:center;min-height:44px}

/* ───────── F-11 상품 상세(상장마켓·트아마켓): 아래 탭 숨기고 구매 막대만 맨 아래, 아래로 내리면 위 막대 접기 ───────── */
html:not(#taNo) body.taGoodsPg #mnb{display:none}
html:not(#taNo) body.taGoodsPg .taV1 .goodsMobilefix.taBar.taBarNav{bottom:0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
html:not(#taNo) body.taGoodsPg{padding-bottom:calc(73px + env(safe-area-inset-bottom) + 16px)}
html:not(#taNo) body.taHdFold #container .container-mo-title{transition:transform .2s ease}
html:not(#taNo) body.taHdFold.taHdUp #container .container-mo-title{transform:translate(-50%,-100%)}/* 상품 상세·주문서(구매·판매) */

/* ───────── F-12 넓은 화면(태블릿 769px~·PC 1024px~) ───────── */
@media (min-width:769px){
	/* 첫 화면: 배너는 왼쪽 정사각(높이 상한 420px), 오른쪽에 '어떻게 거래할까요?' 두 카드 */
	html:not(#taNo) body.taWide #index.mobile{display:grid;grid-template-columns:minmax(0,clamp(320px,44%,420px)) minmax(0,1fr);column-gap:24px;align-items:start}
	html:not(#taNo) body.taWide #index.mobile > *{grid-column:1 / -1}
	html:not(#taNo) body.taWide #index.mobile > .main_banner{grid-column:1;grid-row:1 / span 2;margin-bottom:40px}
	html:not(#taNo) body.taWide #index.mobile > .taHomeH{grid-column:2;grid-row:1;margin-top:0}
	html:not(#taNo) body.taWide #index.mobile > .taMk{grid-column:2;grid-row:2;margin-bottom:40px}
	/* 상품 사진: 높이 420px 상한(사진은 잘리지 않게 안에 맞춤) */
	html:not(#taNo) body.taWide .taV1 .goodsContents .imgArea #goodsSlide{max-width:420px;margin-left:auto;margin-right:auto}
	html:not(#taNo) body.taWide .taV1 .goodsContents .imgArea #goodsSlideThumb{max-width:420px;margin-left:auto;margin-right:auto}
	/* 목록 3열 */
	html:not(#taNo) body.taWide #category .goods-list,html:not(#taNo) body.taWide .taL7 #list.goods-list{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (min-width:1024px){
	/* 폭: 가운데 768px 한 줄 → 1200px. 위 막대·아래 탭·구매 막대도 같은 폭 */
	html:not(#taNo) body.taWide{max-width:1200px}
	html:not(#taNo) body.taWide #container .container-mo-title,html:not(#taNo) body.taWide #mnb{max-width:1200px}
	/* 목록 4열 */
	html:not(#taNo) body.taWide #category .goods-list,html:not(#taNo) body.taWide .taL7 #list.goods-list{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
	/* 상품 상세: 사진 왼쪽(내려도 따라옴) · 이름·가격·구매 단추·나머지 오른쪽 */
	html:not(#taNo) body.taWide .taV1 .goodsContents{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);column-gap:40px;align-items:start}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .imgArea{position:sticky;top:88px}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea{display:flex;flex-direction:column;min-width:0}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea > *{order:5}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea > .goodsName{order:1}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea > .goodsPrice{order:2}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea > .goodsMobilefix.taBar{order:3;position:sticky;top:72px;bottom:auto;left:auto;right:auto;z-index:20;max-width:none;margin:12px 0 8px;padding:12px 0;border-top:0;border-bottom:1px solid #EEECE7;transform:none}
	html:not(#taNo) body.taWide.taGoodsPg{padding-bottom:40px}
	html:not(#taNo) body.taWide .taV1 .goodsContents > .infoArea > .taBand{display:none}
	html:not(#taNo) body.taWide.taGoodsPg.taHdUp .taV1 .goodsContents > .infoArea > .goodsMobilefix.taBar{top:0}
}

/* ───────── F-13 시세: 기준 시각·금/은 바꾸기·차트 링크 ───────── */
.taPxT{margin-left:auto;padding-left:8px;font-size:12px;font-weight:500;line-height:1.5;color:#6B7078;white-space:nowrap}
#index .main_title:has(.taPxT){display:flex;align-items:center}
.taC7 .taC7Lbl{display:flex;align-items:center}
.taC7Sw{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0 14px;padding:4px;border-radius:12px;background:#F6F5F2}
.taC7Sw a{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;font-size:15px;font-weight:500;color:#5B5F66;text-decoration:none}
.taC7Sw a.on{background:#FFFFFF;font-weight:700;color:#121316;box-shadow:0 1px 2px rgba(0,0,0,.06)}
html:not(#taNo) .taC7 .chart_tab .tb{min-height:44px}
.taC7Note{margin:10px 0 0;font-size:12px;line-height:1.6;color:#6B7078;word-break:keep-all}
.taChLinks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.taM7 .taChLinks{margin:12px 16px}
.taChLinks a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;border:1px solid #EEECE7;border-radius:14px;background:#FFFFFF;font-size:14px;font-weight:600;color:#121316;text-decoration:none}
.taChLinks a i{font-style:normal;color:#6B7078}
