/* =========================================================
   글사유 ON · 1:1 문의 (gsu-on 스킨 전용) - 시안 inquiry_handoff (2026-11-29)
   마크업: cham/cs/inquiry.php. 머리말 · 바닥글은 chrome_on.php, 제목 · 소목차 · 칩(.gb-chip) · 글자 단추(.gb-txt)는 board-on.css.
   값은 tokens-on.css 의 var(--gs-…)만. 이름은 시안 이름 앞에 iq- 를 붙임(예전 common.css 와 안 겹치게), 선택자는 #gb 로 시작.
   움직임(사이트 통일 - 로그인 · 가입 auth-on.css, 자주 묻는 질문과 같음): 카드 · 오류 문구 · 펼친 내용이 나타날 때 0.2초 흐려짐,
   칩 · 단추 · 줄은 색 0.2초, 꺾쇠 0.2초. 동작 줄이기 설정이면 모두 끔(board-on.css 끝의 #gb * 와 tokens 의 --gs-dur: 0).
   ========================================================= */
@keyframes iq-in { from { opacity: 0; } to { opacity: 1; } }

#gb .iq [hidden] { display: none !important; }
#gb .iq fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#gb .iq dt { margin: 0; }
#gb .iq a, #gb .iq button, #gb .iq label { -webkit-tap-highlight-color: transparent; }

/* 가운데 한 장 */
#gb .iq { width: 820px; max-width: 100%; margin: 0 auto; }
#gb .iq.is-narrow { width: 560px; }
#gb .iq-card { padding: 40px 48px 44px; animation: iq-in var(--gs-dur) var(--gs-ease) both; }
#gb .iq-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#gb .iq-head h3 { font-size: var(--gs-fs-h2); font-weight: 800; color: var(--gs-navy); letter-spacing: var(--gs-ls-title); }
#gb .iq-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--gs-r-pill); background: var(--gs-navy); color: var(--gs-ivory); font-size: var(--gs-fs-micro); font-weight: 800; line-height: 1; }

/* 입력 */
#gb .iq-form { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
#gb .iq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#gb .iq .gs-field > label, #gb .iq-lab { display: block; margin: 0 0 8px; padding: 0; font-size: var(--gs-fs-small); font-weight: 700; color: var(--gs-text-sub); }
#gb .iq .gs-field > label em, #gb .iq-lab em { font-style: normal; font-weight: 500; color: var(--gs-text-muted); margin-left: 6px; }
#gb .iq .gs-input { height: 52px; font-size: var(--gs-fs-body); color: var(--gs-text); background: var(--gs-tint); transition: box-shadow var(--gs-dur) var(--gs-ease), background var(--gs-dur) var(--gs-ease); }
#gb .iq .gs-input:focus { background: var(--gs-white); }
#gb .iq .gs-input[aria-invalid="true"] { background: var(--gs-error-bg); }
#gb .iq textarea.gs-input { display: block; height: 220px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
#gb .iq .gs-msg { margin: 7px 0 0; animation: iq-in var(--gs-dur) var(--gs-ease) both; }
#gb .iq-cnt { margin: 6px 0 0; text-align: right; font-size: var(--gs-fs-micro); color: var(--gs-text-muted); }
#gb .iq-form3 { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; }
#gb .iq-sep { width: 100%; height: 1px; margin: 4px 0; border: 0; background: var(--gs-line); }

/* 문의 유형: 고르기 칩 */
#gb .iq-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
#gb .iq-seg label { position: relative; margin: 0; }
#gb .iq-seg input { position: absolute; opacity: 0; pointer-events: none; }
#gb .iq-seg span { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: var(--gs-r-btn); background: var(--gs-tint);
  font-size: var(--gs-fs-ui); font-weight: 600; color: var(--gs-text-sub); cursor: pointer; white-space: nowrap;
  transition: background var(--gs-dur) var(--gs-ease), box-shadow var(--gs-dur) var(--gs-ease), color var(--gs-dur) var(--gs-ease); }
#gb .iq-seg span:hover { color: var(--gs-navy); }
#gb .iq-seg input:checked + span { background: var(--gs-white); box-shadow: var(--gs-ring-on); color: var(--gs-navy); font-weight: 800; }
#gb .iq-seg input:focus-visible + span { outline: 2px solid var(--gs-navy); outline-offset: 2px; }

/* 사진 첨부 */
#gb .iq-files { display: flex; flex-wrap: wrap; gap: 10px; }
#gb .iq-thumb { position: relative; width: 84px; height: 84px; border-radius: var(--gs-r-item); background: var(--gs-tint); overflow: hidden; animation: iq-in var(--gs-dur) var(--gs-ease) both; }
#gb .iq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 누르는 칸은 44px, 보이는 동그라미는 시안대로 26px */
#gb .iq-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 4px; border: 0; background: none; color: var(--gs-white); display: grid; place-items: start end; cursor: pointer; }
#gb .iq-x svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(30,42,63,.72); stroke-width: 2.4; box-sizing: border-box; transition: background var(--gs-dur) var(--gs-ease); }
#gb .iq-x:hover svg { background: var(--gs-navy); }
#gb .iq-x:focus-visible { outline: 2px solid var(--gs-navy); outline-offset: -2px; border-radius: var(--gs-r-item); }
#gb .iq-files .iq-add { position: relative; width: 84px; height: 84px; margin: 0; border: 1.5px dashed var(--gs-line-strong); border-radius: var(--gs-r-item); background: var(--gs-white); color: var(--gs-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--gs-fs-micro); font-weight: 600; cursor: pointer;
  transition: border-color var(--gs-dur) var(--gs-ease), color var(--gs-dur) var(--gs-ease); }
#gb .iq-add:hover { border-color: var(--gs-navy); color: var(--gs-navy); }
#gb .iq-add:has(input:focus-visible) { outline: 2px solid var(--gs-navy); outline-offset: 2px; }
#gb .iq-add svg { width: 22px; height: 22px; }
#gb .iq-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }

/* 확인 상자 · 동의 */
#gb .iq-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: var(--gs-r-item); background: var(--gs-tint); }
#gb .iq-ck { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--gs-touch); margin: 0; cursor: pointer; font-size: var(--gs-fs-ui); color: var(--gs-text-sub); font-weight: 500; }
#gb .iq-ck input { position: absolute; opacity: 0; pointer-events: none; }
#gb .iq-ck b { font-weight: 700; color: var(--gs-text); }
#gb .iq-box { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--gs-white); box-shadow: inset 0 0 0 1.5px var(--gs-line-strong); display: grid; place-items: center; color: transparent; transition: background var(--gs-dur) var(--gs-ease), box-shadow var(--gs-dur) var(--gs-ease); }
#gb .iq-box svg.gb-i { width: 16px; height: 16px; stroke-width: 3; }
#gb .iq-ck input:checked + .iq-box { background: var(--gs-navy); box-shadow: none; color: var(--gs-ivory); }
#gb .iq-ck input:focus-visible + .iq-box { outline: 2px solid var(--gs-navy); outline-offset: 2px; }
#gb .iq-more { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border: 0; background: none; font-size: var(--gs-fs-small); font-weight: 600; color: var(--gs-text-muted); cursor: pointer; transition: color var(--gs-dur) var(--gs-ease); }
#gb .iq-more:hover { color: var(--gs-navy); }
#gb .iq-more:focus-visible { outline: 2px solid var(--gs-navy); border-radius: var(--gs-r-btn); }
#gb .iq-more svg { width: 16px; height: 16px; transition: transform var(--gs-dur) var(--gs-ease); }
#gb .iq-more[aria-expanded="true"] svg { transform: rotate(180deg); }
#gb .iq-pv { margin-top: 6px; padding: 14px 18px; border-radius: var(--gs-r-item); background: var(--gs-white); box-shadow: inset 0 0 0 1px var(--gs-line); font-size: var(--gs-fs-small); color: var(--gs-text-sub); line-height: 1.7; animation: iq-in var(--gs-dur) var(--gs-ease) both; }
#gb .iq-pv dl { display: grid; grid-template-columns: 74px 1fr; gap: 4px 12px; }
#gb .iq-pv dt { font-weight: 700; color: var(--gs-text-muted); }

/* 비회원: 로그인 권유 띠 */
#gb .iq-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 14px 18px; border-radius: var(--gs-r-item); background: var(--gs-tint); font-size: var(--gs-fs-ui); color: var(--gs-text-sub); }

#gb .iq-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
#gb .iq-btns .gs-btn { min-width: 180px; }
#gb .iq-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: var(--gs-fs-small); color: var(--gs-text-muted); }
#gb .iq-contact a { display: inline-flex; align-items: center; gap: 7px; color: var(--gs-text-muted); }
#gb .iq-contact b { color: var(--gs-text-sub); font-weight: 700; transition: color var(--gs-dur) var(--gs-ease); }
#gb .iq-contact a:hover b { color: var(--gs-navy); }
#gb .iq-contact svg { width: 16px; height: 16px; }

/* 접수 완료 */
#gb .iq-done { text-align: center; padding: 56px 48px 52px; }
#gb .iq-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--gs-navy); color: var(--gs-ivory); display: grid; place-items: center; }
#gb .iq-mark svg.gb-i { width: 30px; height: 30px; stroke-width: 2.6; }
#gb .iq-done h3 { margin-top: 22px; font-size: var(--gs-fs-h2); font-weight: 800; color: var(--gs-navy); letter-spacing: var(--gs-ls-title); }
#gb .iq-done p { margin-top: 10px; font-size: var(--gs-fs-body); color: var(--gs-text-sub); }
#gb .iq-sum { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 16px; max-width: 420px; margin: 28px auto 0; padding: 20px 24px; border-radius: var(--gs-r-item); background: var(--gs-tint); text-align: left; font-size: var(--gs-fs-ui); }
#gb .iq-sum dt { color: var(--gs-text-muted); font-weight: 600; }
#gb .iq-sum dd { color: var(--gs-text); font-weight: 700; overflow-wrap: anywhere; }
#gb .iq-acts { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
#gb .iq-acts > * { min-width: 160px; }

/* 내 문의 목록 */
#gb .iq-list { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
#gb .iq-q { border-radius: var(--gs-r-item); background: var(--gs-tint); transition: background var(--gs-dur) var(--gs-ease), box-shadow var(--gs-dur) var(--gs-ease); }
#gb .iq-q > summary { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; min-height: 64px; padding: 12px 20px; cursor: pointer; list-style: none; }
#gb .iq-q > summary::-webkit-details-marker { display: none; }
#gb .iq-q > summary:focus-visible { outline: 2px solid var(--gs-navy); outline-offset: 2px; border-radius: var(--gs-r-item); }
#gb .iq-q .gb-chip { justify-content: center; }
#gb .iq-t { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--gs-fs-ui); font-weight: 600; color: var(--gs-text); transition: color var(--gs-dur) var(--gs-ease); }
#gb .iq-q > summary:hover .iq-t { color: var(--gs-navy); }
#gb .iq-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gb .iq-k { flex: none; font-size: var(--gs-fs-small); font-weight: 600; color: var(--gs-text-muted); }
#gb .iq-new { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gs-amber); transition: opacity var(--gs-dur) var(--gs-ease); }
#gb .iq-new.is-off { opacity: 0; }
#gb .iq-d { font-size: var(--gs-fs-small); color: var(--gs-text-muted); }
#gb .iq-q[open] { background: var(--gs-white); box-shadow: inset 0 0 0 1px var(--gs-line); }
#gb .iq-q[open] .iq-t { color: var(--gs-navy); font-weight: 800; }
#gb .iq-q[open] .gb-chev { transform: rotate(180deg); }
#gb .iq-body { padding: 0 20px 20px; animation: iq-in var(--gs-dur) var(--gs-ease) both; }
#gb .iq-ask { padding: 18px 20px; border-radius: var(--gs-r-item); background: var(--gs-tint); font-size: var(--gs-fs-body); line-height: 1.8; color: var(--gs-text); overflow-wrap: anywhere; }
#gb .iq-ask p + p, #gb .iq-read p + p { margin-top: .7em; }
#gb .iq-pics { display: flex; gap: 8px; margin-top: 12px; }
#gb .iq-pics a { display: block; width: 64px; height: 64px; border-radius: var(--gs-r-sm); background: var(--gs-line); overflow: hidden; transition: opacity var(--gs-dur) var(--gs-ease); }
#gb .iq-pics a:hover { opacity: .85; }
#gb .iq-pics a:focus-visible { outline: 2px solid var(--gs-navy); outline-offset: 2px; }
#gb .iq-pics img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb .iq-ans { margin-top: 10px; padding: 18px 20px 20px; border-radius: var(--gs-r-item); background: var(--gs-white); box-shadow: inset 0 0 0 1px var(--gs-line); }
#gb .iq-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: var(--gs-fs-small); color: var(--gs-text-muted); }
#gb .iq-who b { color: var(--gs-navy); font-weight: 800; font-size: var(--gs-fs-ui); }
#gb .iq-read { font-size: var(--gs-fs-body); line-height: 1.85; color: var(--gs-text); overflow-wrap: anywhere; }
#gb .iq-wait { margin-top: 10px; padding: 16px 20px; border-radius: var(--gs-r-item); box-shadow: inset 0 0 0 1px var(--gs-line); font-size: var(--gs-fs-ui); color: var(--gs-text-muted); }
#gb .iq-edit { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
#gb .iq-edit .gb-txt { border: 0; background: none; cursor: pointer; color: var(--gs-text-muted); }
#gb .iq-edit .gb-txt:hover { background: var(--gs-tint); color: var(--gs-navy); }
#gb .iq-edit .gb-txt:focus-visible { outline: 2px solid var(--gs-navy); }

/* 비회원 조회 */
#gb .is-look .iq-form { gap: 20px; }
#gb .is-look .gs-btn { width: 100%; }
#gb .iq-foot { margin-top: 18px; text-align: center; font-size: var(--gs-fs-small); color: var(--gs-text-muted); }
#gb .iq-foot a { color: var(--gs-navy); font-weight: 700; }
#gb .iq-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 빈 목록 */
#gb .iq .gs-empty { margin-top: 26px; padding: 56px 20px; }
#gb .iq .gs-empty .gs-btn { margin-top: 20px; }

/* ---------- 휴대폰 (900px 미만) ---------- */
@media (max-width: 899px) {
	/* 공통 머리말 · 바닥글(chrome-on.css)은 아직 PC 폭(1000px)뿐이라, 이 쪽에서만 화면 폭에 맞게 접는다:
	   작은 줄 → 로고 → 메뉴 한 줄(펼침 없음 - 고객센터 안은 소목차로). 사이트 공통 휴대폰 머리말이 생기면 이 묶음을 지울 것. */
	html.iq-page body { padding-top: 0 !important; }
	html.iq-page .gon-wrap { width: auto; }   /* 본문의 좌우 16px 은 #gb 가 가짐 */
	html.iq-page .gon-hd .gon-wrap, html.iq-page .gon-ft .gon-wrap { padding: 0 16px; }
	html.iq-page header.gon-hd { position: static; }
	html.iq-page .gon-hd .gon-util, html.iq-page .gon-hd.is-solid .gon-util { gap: 14px; height: 44px; max-height: 44px; padding: 0; opacity: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
	html.iq-page .gon-hd .gon-util > * { display: flex; align-items: center; flex: none; height: 44px; font-size: 14px; }
	html.iq-page .gon-hd .gon-util > :first-child { margin-left: auto; }
	html.iq-page .gon-hd .gon-row, html.iq-page .gon-hd.is-solid .gon-row { display: block; height: auto; }
	html.iq-page .gon-hd h1.gon-logo img, html.iq-page .gon-hd.is-solid h1.gon-logo img { width: 190px; }
	html.iq-page .gon-hd .gon-gnb { height: 48px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
	html.iq-page .gon-hd .gon-gnb > li > a { padding: 0 12px; font-size: 16px; }
	html.iq-page .gon-hd .gon-gnb > li:first-child > a { padding-left: 0; }
	html.iq-page .gon-hd .gon-drop { display: none; }
	html.iq-page footer.gon-ft { min-width: 0; }
	html.iq-page .gon-ft-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	html.iq-page .gon-ft-links { flex-wrap: wrap; gap: 0 20px; }
	html.iq-page .gon-ft-links > * { display: flex; align-items: center; min-height: var(--gs-touch); }
	#gb .iq, #gb .iq.is-narrow { width: auto; }
	#gb .iq-card { padding: 22px 16px 24px; }
	#gb .iq-head h3 { font-size: 22px; }
	#gb .iq-head .gs-btn-line { height: var(--gs-touch); padding: 0 12px; font-size: var(--gs-fs-small); }
	#gb .iq-form { margin-top: 20px; gap: 20px; }
	#gb .iq-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#gb .iq-seg span { height: var(--gs-touch); font-size: var(--gs-fs-small); }
	#gb .iq-form3 { grid-template-columns: minmax(0, 1fr); }
	#gb .iq textarea.gs-input { height: 180px; }
	#gb .iq-btns > * { flex: 1; min-width: 0; }
	#gb .iq-hint { margin-top: 18px; padding: 12px 14px; font-size: var(--gs-fs-small); }
	#gb .iq-hint .gs-btn-line { height: var(--gs-touch); padding: 0 12px; }
	#gb .iq-opt { padding: 0 14px; }
	#gb .iq-contact { flex-direction: column; align-items: center; gap: 0; margin-top: 12px; }
	#gb .iq-contact a { min-height: var(--gs-touch); }
	#gb .iq-done { padding: 36px 16px 30px; }
	#gb .iq-acts { flex-direction: column; }
	#gb .iq-sum { padding: 16px; }
	#gb .iq-list { margin-top: 18px; }
	#gb .iq-q > summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 10px; padding: 14px; }
	#gb .iq-q > summary .gb-chip { grid-column: 1; grid-row: 1; width: fit-content; }
	#gb .iq-q > summary .iq-t { display: block; grid-column: 1; grid-row: 2; font-size: var(--gs-fs-body); }
	#gb .iq-t .iq-k { display: block; margin-bottom: 2px; }
	#gb .iq-t .iq-s { white-space: normal; overflow-wrap: anywhere; }
	#gb .iq-t .iq-new { display: inline-block; vertical-align: 3px; margin-left: 6px; }
	#gb .iq-q > summary .iq-d { grid-column: 1; grid-row: 3; }
	#gb .iq-q > summary .gb-chev { grid-column: 2; grid-row: 1 / 4; }
	#gb .iq-body { padding: 0 12px 14px; }
	#gb .iq-ask, #gb .iq-ans { padding: 14px; }
	#gb .iq-edit .gb-txt { height: var(--gs-touch); padding: 0 14px; }
	#gb .iq-foot a { display: inline-flex; align-items: center; min-height: var(--gs-touch); }
	#gb .iq-foot { margin-top: 8px; }
}
