/*
 * CUSTOMER(공지사항·FAQ·1:1문의·제작문의) 스킨 정리 (2026-11-24)
 * - 기존 스킨 파일은 그대로 두고 이 파일만 덧씌움. head.sub.php 에서 CUSTOMER 화면일 때만 불러옴.
 * - 되돌리기: head.sub.php 의 "ux_customer" 한 줄 삭제
 * 토큰: 글자 #16181d / 보조 #5b6270 / 선 #dfe3e8 / 바탕 #f5f6f8 / 강조 #e0245e
 */

/* 1) 탭: GUIDE 탭과 같은 알약형 전환 버튼. 현재 위치는 흰 바탕+굵기+그림자로 표시(색만으로 구분하지 않음) */
.board_head .board_tab {display:inline-flex !important;flex-wrap:wrap;justify-content:center;gap:4px;padding:5px !important;margin-left:auto;margin-right:auto;border-radius:999px;background:#eef0f4;list-style:none}
.board_head {text-align:center}
.board_head .board_tab > li {float:none !important;margin:0 !important;padding:0 !important}
.board_head .board_tab > li::before, .board_head .board_tab > li::after {display:none !important}
.board_head .board_tab > li > a {display:flex !important;align-items:center;justify-content:center;min-width:112px;min-height:44px;padding:0 22px !important;border-radius:999px;font-size:17px !important;font-weight:600 !important;line-height:1.2 !important;color:#5b6270 !important;transition:background .2s,color .2s}
.board_head .board_tab > li > a:hover {color:#16181d !important}
.board_head .board_tab > li.active > a {background:#fff;color:#16181d !important;font-weight:700 !important;box-shadow:0 1px 4px rgba(20,24,40,.14)}

/* 2) 검색줄 */
.bo_sch select, .bo_sch input[type=text], #faq_sch input[type=text] {height:48px !important;font-size:16px !important;color:#16181d}
.bo_sch .sch_btn, #faq_sch .btn_submit {min-width:48px;height:48px !important}

/* 3) 빈 목록 안내 */
#gall_ul li.empty_list, .empty_list, .empty_table {padding:64px 16px !important;font-size:15px !important;line-height:1.6 !important;color:#5b6270 !important}

/* 4) FAQ */
#bo_cate_ul > li > a {display:inline-flex !important;align-items:center;min-height:40px;padding:0 16px !important;border-radius:999px;font-size:15px !important}
#faq_wrap li > h3, #faq_con li > h3 {line-height:1.5}
#faq_wrap #faq_con ol > li > h3 a p, #faq_wrap #faq_con ol > li > h3 a p span {font-weight:600 !important}
#faq_wrap #faq_con ol > li > h3 .tit_bg {color:#e0245e !important}
#faq_wrap .con_inner, #faq_con .con_inner, #faq_wrap li > div, #faq_con li > div {font-size:16px !important;line-height:1.75 !important;color:#33373f}

/* FAQ 질문줄: Q·질문·열기 버튼 한 줄 가운데 정렬, 줄 높이 정리 */
#faq_wrap #faq_con ol > li > h3 {display:flex !important;align-items:center !important;gap:0;margin:0 !important;padding:22px 16px !important;cursor:pointer}
#faq_wrap #faq_con ol > li > h3 .tit_bg {flex:none;width:40px !important;margin:0 !important;font-size:18px !important;line-height:1.5 !important;text-align:left !important}
#faq_wrap #faq_con ol > li > h3 > a {flex:1;min-width:0}
#faq_wrap #faq_con ol > li > h3 a p {margin:0 !important;line-height:1.5 !important}
#faq_wrap #faq_con ol > li > h3 .tit_btn {flex:none;display:flex;align-items:center;justify-content:center;width:40px !important;height:40px !important;border-radius:50%;color:#8a909c !important;cursor:pointer}
#faq_wrap #faq_con ol > li > h3 .tit_btn:hover {background:#f1f3f6 !important}
/* 펼쳤을 때: + 를 - 로, 답변 안의 중복 닫기 버튼은 숨김 */
#faq_wrap #faq_con ol > li:has(.con_inner[style*="block"]) > h3 .tit_btn i::before {content:"\f068"}
#faq_wrap #faq_con ol > li:has(.con_inner[style*="block"]) > h3 .tit_btn {color:#e0245e !important}
#faq_wrap #faq_con .con_inner .closer_btn {display:none !important}
/* 답변: 연한 바탕, 질문 글자와 같은 위치(56px)에서 시작 */
#faq_wrap #faq_con .con_inner {margin:0 0 16px !important;padding:20px 24px 24px 56px !important;border-radius:8px;background:#f7f8fa !important}
#faq_wrap #faq_con .con_inner p {margin:0}

/* 5) 글쓰기 폼(제작문의·1:1문의): 숨겨진 이름표를 보이게, 필수는 글자로 표시 */
#fwrite label.sound_only[for], #fqa label.sound_only[for], #bo_w label.sound_only[for], #bo_vc_w label.sound_only[for] {
  position:static !important;display:block !important;width:auto !important;height:auto !important;margin:0 0 8px !important;padding:0 !important;
  overflow:visible !important;clip:auto !important;text-indent:0 !important;font-size:14px !important;line-height:1.4 !important;font-weight:600;color:#16181d;text-align:left}
#fwrite label.sound_only[for] strong, #fqa label.sound_only[for] strong, #bo_w label.sound_only[for] strong {
  position:static !important;display:inline-block !important;width:auto !important;height:auto !important;overflow:visible !important;clip:auto !important;
  margin-left:6px !important;padding:1px 6px !important;text-indent:0 !important;border-radius:4px;background:#fdecf2;font-size:12px !important;line-height:1.5 !important;font-weight:600;color:#c8104f}
#fwrite .frm_input, #fwrite select, #fwrite textarea, #fqa .frm_input, #fqa select, #fqa textarea {
  height:48px !important;padding:0 14px !important;border:1px solid #cfd4dc !important;border-radius:8px !important;font-size:16px !important;color:#16181d;background-image:none !important;box-sizing:border-box}
#fwrite textarea, #fqa textarea {height:auto !important;min-height:220px;padding:14px !important;line-height:1.65 !important}
#fwrite .frm_input:focus, #fwrite select:focus, #fwrite textarea:focus, #fqa .frm_input:focus, #fqa select:focus, #fqa textarea:focus {border-color:#16181d !important;outline:2px solid rgba(22,24,29,.15);outline-offset:0}
/* 항목 간격 24px 로 통일, 라벨→입력창 8px */
#fwrite > .write_div {margin:0 0 24px !important}
#fwrite #autosave_wrapper {margin:0 !important}
#fwrite ul.infoInput {display:grid !important;grid-template-columns:1fr 1fr;gap:24px 20px !important;margin:0 !important;padding:0 !important}
#fwrite ul.infoInput > li {float:none !important;width:auto !important;margin:0 !important}
#fwrite ul.infoInput > li > .frm_input {width:100% !important}
/* 라벨이 보이므로 입력창 안의 같은 안내 글씨는 숨김 */
#fwrite .frm_input::placeholder {color:transparent}
/* 첨부파일: 한 줄 상자 안에 아이콘·버튼·파일명 정렬 + 제목 */
#fwrite .write_div:not(.bo_w_flie) + .bo_w_flie::before {content:"첨부파일 (선택)";display:block;margin:0 0 8px;font-size:14px;font-weight:600;line-height:1.4;color:#16181d}
#fwrite > .bo_w_flie {margin-bottom:12px !important}
#fwrite .bo_w_flie .file_wr {display:flex !important;align-items:center;gap:12px;min-height:56px;margin:0 !important;padding:8px 14px !important;border:1px solid #cfd4dc !important;border-radius:8px;box-sizing:border-box}
#fwrite .bo_w_flie .file_wr label.lb_icon {position:static !important;display:flex;align-items:center;width:auto !important;height:auto !important;color:#8a909c}
#fwrite .bo_w_flie .file_wr input[type=file] {position:static !important;margin:0 !important;padding:0 !important;border:0 !important;width:auto !important}
#fwrite #captcha {margin-top:12px}
/* 버튼: 취소는 흰 바탕 보조 버튼(대비 확보), 작성완료는 검정 주 버튼 */
#fwrite .btnBox {display:flex !important;justify-content:center;gap:12px;margin-top:32px !important}
#fwrite .btnBox .listBtn {background:#fff !important;color:#16181d !important;border:1px solid #cfd4dc !important;box-sizing:border-box}
#fwrite .btnBox .listBtn:hover {border-color:#16181d !important}
#fwrite .btnBox .writeBtn, #fwrite .btnBox #btn_submit {background:#16181d !important;color:#fff !important;border:0 !important}
#fwrite .btnBox a, #fwrite .btnBox button {display:inline-flex !important;align-items:center;justify-content:center;min-width:160px !important;height:52px !important;margin:0 !important;padding:0 24px !important;border-radius:8px !important;font-size:16px !important;font-weight:700 !important;line-height:1 !important}
#fwrite .bo_w_flie input[type=file], #fqa input[type=file] {height:auto !important;font-size:14px !important}
#fwrite input[type=file]::file-selector-button, #fqa input[type=file]::file-selector-button {height:40px;margin-right:12px;padding:0 16px;border:1px solid #cfd4dc;border-radius:6px;background:#f5f6f8;font-size:14px;color:#16181d;cursor:pointer}
#fqa .btn_confirm a, #fqa .btn_confirm button, #fqa .btn_confirm input {min-width:120px;height:52px !important;padding:0 24px !important;border-radius:8px !important;font-size:16px !important;font-weight:700 !important;line-height:52px !important}

/* 6) 목록 버튼(글쓰기 등) */
.bo_fx .btn_b01, .bo_fx .btn_b02, .btn_bo_user a, a.btn_write, .writeBtn {min-height:44px}

/* 7) 키보드 이동 표시 */
.board_head .board_tab a:focus-visible, #bo_cate_ul a:focus-visible, #fwrite :focus-visible, #fqa :focus-visible {outline:2px solid #e0245e !important;outline-offset:2px}

/* 모바일 */
@media (max-width:640px) {
  .board_head .board_tab {gap:2px;padding:4px !important}
  .board_head .board_tab > li > a {min-width:0;min-height:44px;padding:0 14px !important;font-size:15px !important}
  #faq_wrap #faq_con ol > li > h3 a p, #faq_wrap #faq_con ol > li > h3 a p span {font-size:16px !important;line-height:1.5 !important}
  #faq_wrap #faq_con ol > li > h3 .tit_bg {width:32px !important;font-size:16px !important}
  #faq_wrap #faq_con ol > li > h3 {padding:16px 4px !important}
  #faq_wrap #faq_con .con_inner {padding:16px 16px 20px 36px !important}
  #bo_cate .label, #faq_sch input[type=text] {font-size:16px !important}
  #fwrite .btnBox a, #fwrite .btnBox button {flex:1;min-width:0 !important}
  #fwrite ul.infoInput {grid-template-columns:1fr}
}

/* 8) 한글 단어 중간 줄바꿈 방지 (사이트 기본 break-all 덮어쓰기) */
#faq_wrap, #faq_wrap *, .board_head, .board_head *, #fwrite label, .empty_list {word-break:keep-all !important;overflow-wrap:break-word !important}

/* 9) 제작문의 작성 화면 위 안내 */
.ux-cs-intro {margin:0 0 32px;padding:20px 24px;border-radius:10px;background:#f5f6f8;text-align:left;word-break:keep-all}
.ux-cs-intro .t {margin:0 0 6px;font-size:17px;font-weight:700;line-height:1.5;color:#16181d}
.ux-cs-intro .d {margin:0;font-size:15px;line-height:1.7;color:#4a505c}
.ux-cs-intro a {color:#16181d;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* 10) 빈 화면 안내: 다음 행동 버튼 */
li.ux-empty {display:flex !important;flex-direction:column;align-items:center;gap:8px;list-style:none;word-break:keep-all}
li.ux-empty strong {font-size:17px;font-weight:700;color:#16181d}
li.ux-empty > span {font-size:15px;line-height:1.6;color:#5b6270}
li.ux-empty .ux-empty-btns {display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:12px}
li.ux-empty .ux-empty-btns a {display:inline-flex;align-items:center;justify-content:center;min-width:140px;height:48px;padding:0 20px;border:1px solid #cfd4dc;border-radius:8px;background:#fff;font-size:15px;font-weight:700;color:#16181d}
li.ux-empty .ux-empty-btns a.is-primary {background:#16181d;border-color:#16181d;color:#fff}

@media (max-width:640px) {
  .ux-cs-intro {margin-bottom:24px;padding:16px 18px}
  .ux-cs-intro .t {font-size:16px}
  .ux-cs-intro .d {font-size:14px}
  li.ux-empty .ux-empty-btns a {flex:1;min-width:0}
}

/* 11) 공지 본문: 읽기 좋은 글자 크기와 한 줄 폭 */
#bo_v #bo_v_con {max-width:none;font-size:16px !important;line-height:1.75 !important;color:#2a2e36;word-break:keep-all}
#bo_v #bo_v_con p, #bo_v #bo_v_con li {font-size:16px !important;line-height:1.75 !important}
#bo_v #bo_v_con h3 {margin:1.6em 0 .5em;font-size:18px;font-weight:700;color:#16181d}
#bo_v #bo_v_con ul {margin:.4em 0 1em;padding-left:1.3em;list-style:disc}
#bo_v #bo_v_con li {margin:.25em 0}
#bo_v #bo_v_con a {color:#16181d;text-decoration:underline;text-underline-offset:3px}
li.ux-empty .ux-empty-btns a {white-space:nowrap}
@media (max-width:640px) {
  #bo_v #bo_v_con, #bo_v #bo_v_con p, #bo_v #bo_v_con li {font-size:15px !important;line-height:1.7 !important}
  #bo_v #bo_v_con h3 {font-size:17px}
  li.ux-empty .ux-empty-btns a {padding:0 12px}
}

/* 12) 공지 목록: 제목이 먼저 읽히게 (번호는 작게, 요약·정보는 보통 굵기) */
#bo_gall .gall_con .num {font-size:15px !important;font-weight:500 !important;color:#8a909c !important;line-height:1.6 !important}
#bo_gall .gall_text_href .bo_tit {font-size:18px !important;font-weight:600 !important;line-height:1.5 !important;color:#16181d !important}
#bo_gall .gall_text_href .bo_txt {font-size:15px !important;font-weight:400 !important;line-height:1.6 !important;color:#5b6270 !important}
#bo_gall .gall_info, #bo_gall .gall_info span {font-size:14px !important;font-weight:400 !important;color:#6b7280 !important}
#bo_gall #gall_ul > li:not(.ux-empty) {padding-top:24px !important;padding-bottom:24px !important}
#bo_gall #gall_ul > li:not(.ux-empty):hover .bo_tit {text-decoration:underline;text-underline-offset:4px}

/* 13) 공지 본문: 860px 가운데 한 단, 제목 26px, 작성 정보 색 통일, 댓글 수 숨김 */
#bo_v {max-width:860px !important;margin-left:auto !important;margin-right:auto !important}
#bo_v #bo_v_title .bo_v_tit {font-size:26px !important;line-height:1.4 !important;letter-spacing:-.01em;color:#16181d}
#bo_v ul.writer_info, #bo_v ul.writer_info li, #bo_v ul.writer_info span {font-size:14px !important;font-weight:400 !important;color:#6b7280 !important}
#bo_v ul.writer_info li:has(.fa-commenting-o) {display:none !important}
#bo_v .bo_v_nb li, #bo_v .bo_v_nb li a, #bo_v .bo_v_nb .nb_tit, #bo_v .bo_v_nb .nb_date {font-size:15px !important}
#bo_v .bo_v_nb li a {color:#16181d !important}
/* 목록 버튼: 아이콘만 있던 것을 '목록' 글자 버튼으로 */
#bo_v a.btn[title="목록"] {display:inline-flex !important;align-items:center;gap:8px;width:auto !important;min-height:44px;padding:0 18px !important;border:1px solid #cfd4dc !important;border-radius:8px !important;background:#fff !important;color:#16181d !important;font-size:15px;font-weight:600}
#bo_v a.btn[title="목록"] .sound_only {position:static !important;display:inline !important;width:auto !important;height:auto !important;overflow:visible !important;clip:auto !important;margin:0 !important;font-size:15px !important;line-height:1 !important;text-indent:0 !important}
@media (max-width:640px) {
  #bo_v #bo_v_title .bo_v_tit {font-size:21px !important}
  #bo_gall .gall_text_href .bo_tit {font-size:16px !important}
}
