/*
 * 고객센터 화면용 보조 스타일 (inquiry.html · inquiry_write.html · inquiry_view.html · reservation.html · faq.html).
 * 원본 CSS(content.css · responsive.css)는 건드리지 않고, 새로 필요한 것만 여기에 둔다 (CLAUDE.md §1-5).
 */
/* 상담예약 — 희망일시(날짜 + 시간) 한 줄 · 안내 문구 (2026-10-09) */
#sub.board .board-write-table .resv-datetime{display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start;}
#sub.board .board-write-table .resv-datetime .ipt-box.iptdatepicker{width:240px; max-width:100%; box-sizing:border-box;}
#sub.board .board-write-table .resv-datetime .ipt-box.iptdatepicker input{cursor:pointer;}
#sub.board .board-write-table .resv-hours-note{clear:both; padding-top:10px; font-size:1.4rem; line-height:1.5; color:#666;}
/* 상담예약 — 시간 목록을 4칸으로 펼쳐 한눈에 (기본 목록은 395px 에서 잘려 14:00 까지만 보였음 · 2026-10-09) */
#sub.board .board-write-table .resv-datetime .nice-select .list{width:300px; max-height:none; padding:6px; overflow:hidden;}
#sub.board .board-write-table .resv-datetime .nice-select .list .option{float:left; width:25%; min-height:38px; padding:0; box-sizing:border-box; text-align:center; line-height:38px; border-radius:6px;}
#sub.board .board-write-table .resv-datetime .nice-select .list .option:first-child{float:none; width:100%; padding-left:10px; text-align:left;}
@media (max-width:768px){
    #sub.board .board-write-table .resv-datetime .nice-select .list{width:236px;}
}
/* 고객센터 입력칸 형식 안내 (이름 · 연락처 · 이메일) */
#sub.board .board-write-table .cs-field-err{display:none; clear:both; padding-top:6px; font-size:1.3rem; line-height:1.4; color:#e11d48;}
#sub.board .board-write-table .ipt-box.cs-invalid{border-color:#e11d48;}

/* 1:1 문의 상세 — 답변 · 추가 문의 (2026-10-12) */
#sub.board .inq-thread{display:flex; flex-direction:column; gap:14px; margin-top:30px;}
#sub.board .inq-thread:empty{display:none;}
#sub.board .inq-thread .inq-thread-item{padding:22px 24px; border:1px solid #e5e5e5; border-radius:14px; background-color:#fff;}
#sub.board .inq-thread .inq-thread-item.answer{border-color:#d9cfff; background-color:#f6f3ff;}
#sub.board .inq-thread .inq-thread-head{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; font-size:1.4rem; color:#999;}
#sub.board .inq-thread .inq-thread-head strong{font-size:1.5rem; font-weight:600; color:#222;}
#sub.board .inq-thread .inq-thread-item.answer .inq-thread-head strong{color:#3B02F8;}
#sub.board .inq-thread .inq-thread-body{font-size:1.6rem; line-height:1.6; color:#222; white-space:pre-line; word-break:break-word;}
#sub.board .board-view .board-view-table thead tr th .board-view-title .board-view-type.waiting{background-color:#eee; color:#666;}
#sub.board .inq-followup{margin-top:40px; padding-top:30px; border-top:1px solid #eee;}
#sub.board .inq-followup .inq-followup-tit{font-size:1.8rem; font-weight:600; color:#222;}
#sub.board .inq-followup .inq-followup-note{margin:8px 0 16px; font-size:1.4rem; line-height:1.5; color:#777;}
#sub.board .inq-followup .ipt-box.txtarea-box{height:160px;}
#sub.board .inq-followup .ipt-box.txtarea-box textarea{width:100%; height:100%; border:0; outline:0; resize:none; font-size:1.6rem; line-height:1.6; background:transparent;}
#sub.board .inq-followup .ipt-box.txtarea-box:focus-within{border-color:#3B02F8;}
#sub.board .inq-followup .ipt-box.cs-invalid{border-color:#e11d48;}
#sub.board .inq-followup .cs-field-err{display:none; padding-top:6px; font-size:1.3rem; line-height:1.4; color:#e11d48;}
#sub.board .inq-followup .inq-followup-btn{display:flex; justify-content:flex-end; margin-top:14px;}
@media (max-width:768px){
    #sub.board .inq-thread{margin-top:20px; gap:10px;}
    #sub.board .inq-thread .inq-thread-item{padding:16px;}
    #sub.board .inq-thread .inq-thread-head{flex-direction:column; align-items:flex-start; gap:2px;}
    #sub.board .inq-thread .inq-thread-body{font-size:1.5rem;}
    #sub.board .inq-followup{margin-top:30px; padding-top:24px;}
    #sub.board .inq-followup .ipt-box.txtarea-box{height:130px;}
}

/* 1:1 문의 상세 — 내 문의 수정 · 삭제 (2026-10-12) */
#sub.board .inq-owner{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px;}
#sub.board .inq-owner .inq-owner-note{font-size:1.4rem; line-height:1.5; color:#777;}
#sub.board .inq-owner-btn{display:flex; justify-content:flex-end; gap:8px;}
/* 삭제 = 빨간색(관리자 · 마이페이지의 삭제 버튼과 같은 색) · 취소 = 흰 바탕 회색 테두리. sm-btn 의 글자색(!important)을 이기도록 같이 지정 */
#sub.board .sm-btn.back-del{background-color:#dc2626; color:#fff !important;}
#sub.board .sm-btn.back-del:hover{background-color:#b91c1c; color:#fff !important;}
#sub.board .sm-btn.back-cancel{background-color:#fff; border:1px solid #ddd; color:#555 !important;}
#sub.board .sm-btn.back-cancel:hover{background-color:#f5f5f5; color:#1D1E1F !important;}
#sub.board #inq_edit_box .ipt-box.txtarea-box{height:200px;}
#sub.board #inq_edit_box .ipt-box.txtarea-box textarea{width:100%; height:100%; border:0; outline:0; resize:none; font-size:1.6rem; line-height:1.6; background:transparent;}
#sub.board #inq_edit_box .ipt-box.txtarea-box:focus-within{border-color:#3B02F8;}
#sub.board #inq_edit_box .ipt-box.cs-invalid{border-color:#e11d48;}
#sub.board #inq_edit_box .cs-field-err{display:none; padding-top:6px; font-size:1.3rem; line-height:1.4; color:#e11d48;}
#sub.board #inq_edit_box .inq-owner-btn{margin-top:14px;}

/* 1:1 문의 — 목록의 작성자 칸 · 작성 폼의 입력 안내 · 추가 문의 수정/삭제 (2026-10-12) */
#sub.board .board-list-table tbody tr .board-list-writer{white-space:nowrap;}
#sub.board .board-write-table .cs-field-hint{clear:both; padding-top:6px; font-size:1.3rem; line-height:1.4; color:#999;}
#sub.board .inq-thread .inq-followup-own{margin-top:12px;}
#sub.board .inq-thread .inq-thread-head em{font-style:normal; color:#aaa;}
#sub.board .inq-fu-editbox{margin-top:10px;}
#sub.board .inq-fu-editbox .ipt-box.txtarea-box{height:140px;}
#sub.board .inq-fu-editbox .ipt-box.txtarea-box textarea{width:100%; height:100%; border:0; outline:0; resize:none; font-size:1.6rem; line-height:1.6; background:transparent;}
#sub.board .inq-fu-editbox .ipt-box.cs-invalid{border-color:#e11d48;}
#sub.board .inq-fu-editbox .cs-field-err{display:none; padding-top:6px; font-size:1.3rem; line-height:1.4; color:#e11d48;}
#sub.board .inq-fu-editbox .inq-owner-btn{margin-top:12px;}
@media (max-width:768px){
    #sub.board .board-list-table tbody tr .board-list-writer{font-size:1.3rem;}
}

/* 목록 — 불러오는 중 · 글 없음 · 오류 안내 줄 */
#sub.board .board-list-table td.board-list-empty{padding:60px 20px; text-align:center; font-size:1.6rem; color:#888;}
/* 상세 — 문의 내용은 글자 그대로 넣고 줄바꿈만 살린다 */
#sub.board .board-view-body .inq-view-text{white-space:pre-line; word-break:break-word;}

/* 비밀번호 보기(눈) 버튼 — 입력 칸 오른쪽 안쪽 */
#sub.board .ipt-box:has(> .cs-pw-eye){position:relative;}
#sub.board .ipt-box:has(> .cs-pw-eye) > input{padding-right:52px;}
#sub.board .cs-pw-eye{position:absolute; top:50%; right:10px; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:0; background:none; color:#999; cursor:pointer; border-radius:6px;}
#sub.board .cs-pw-eye:hover, #sub.board .cs-pw-eye.on{color:#4802F8;}
#sub.board .cs-pw-eye:focus-visible{outline:2px solid #4802F8; outline-offset:1px;}
#sub.board .cs-pw-eye .cs-pw-eye-off{display:none;}
#sub.board .cs-pw-eye.on .cs-pw-eye-on{display:none;}
#sub.board .cs-pw-eye.on .cs-pw-eye-off{display:block;}
/* 상세 — 작성일시 줄: 왼쪽에 작성자 이름 · 오른쪽에 일시 */
#sub.board .board-view .board-view-table tbody tr .board-view-date.inq-view-meta{display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:left;}
#sub.board .board-view-date.inq-view-meta .inq-view-writer{color:inherit; font-weight:500; word-break:break-all;}

/* 목록(모바일) — 칸이 많아 답답해 보여 작성일 칸을 가린다 (2026-10-14 사용자 결정 · PC 는 그대로) */
@media (max-width:768px){
    #sub.board .board-list-table colgroup col:nth-child(5),
    #sub.board .board-list-table thead tr th:nth-child(5),
    #sub.board .board-list-table tbody tr td:nth-child(5){display:none;}
}

/* 1:1 문의 첨부 이미지 (2026-10-19) — 고르기 칸 · 썸네일. 썸네일을 누르면 새 창에서 크게 열린다 */
#sub.board .cs-img-picker{margin-top:4px;}
#sub.board .cs-img-list{display:flex; flex-wrap:wrap; gap:10px; margin:0; padding:0; list-style:none;}
#sub.board .cs-img-list li{position:relative; width:96px; height:96px; border:1px solid #e5e5e5; border-radius:10px; overflow:hidden; background-color:#f8f8f8;}
#sub.board .cs-img-list li img{display:block; width:100%; height:100%; object-fit:cover;}
#sub.board .cs-img-list li a{display:block; width:100%; height:100%;}
#sub.board .cs-img-list li a:hover{opacity:.85;}
#sub.board .cs-img-remove{position:absolute; top:5px; right:5px; width:24px; height:24px; padding:0; border:0; border-radius:50%; background-color:rgba(0,0,0,.6); color:#fff; font-size:14px; line-height:24px; text-align:center; cursor:pointer;}
#sub.board .cs-img-add{box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:96px; height:96px; border:1px dashed #c9c9c9; border-radius:10px; color:#888; font-size:1.3rem; cursor:pointer; background-color:#fff;}
#sub.board .cs-img-add:hover{border-color:#3B02F8; color:#3B02F8;}
#sub.board .cs-img-add.busy{opacity:.5; pointer-events:none;}
#sub.board .cs-img-add .plus{font-size:2.2rem; line-height:1;}
#sub.board .cs-img-guide{margin-top:8px; font-size:1.3rem; color:#888;}
#sub.board .cs-img-err{margin-top:4px; font-size:1.3rem; color:#e5372a;}
#sub.board .cs-img-err:empty{display:none;}
#sub.board .board-view-body .cs-img-list,
#sub.board .inq-thread .cs-img-list{margin-top:14px;}
#sub.board .cs-img-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
@media (max-width:768px){
    #sub.board .cs-img-list li, #sub.board .cs-img-add{width:80px; height:80px;}
}
#sub.board .cs-img-list li.cs-img-add-li{border:0; background:none; overflow:visible;}

/* FAQ 분류 탭 (2026-10-19) — 분류 이름은 관리자가 정해 길어질 수 있어 휴대폰에서 두 줄로 꺾이지 않게 좌우 여백만 줄인다 */
@media (max-width:768px){
    #sub.board .faq-type li a{padding-left:4px; padding-right:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
}

/* 공지사항/이벤트 (2026-10-19) — 카드 썸네일은 380:210 틀 · 글 보기 본문은 관리자 편집기(Quill)의 모양(정렬 · 목록 · 제목 · 인용 · 그림 · 유튜브) */
#sub.board .board-gallery .gallery_item a .gallery_img img{aspect-ratio:380/210; object-fit:cover; background:#eee;}
#sub.board .board-view-body img{max-width:100%; height:auto;}
#sub.board .board-view-body iframe.ql-video{display:block; width:100%; max-width:720px; aspect-ratio:16/9; height:auto; border:0; margin:10px 0;}
#sub.board .board-view-body h1{font-size:2.6rem; font-weight:700; line-height:1.4; margin:10px 0;}
#sub.board .board-view-body h2{font-size:2.2rem; font-weight:700; line-height:1.4; margin:8px 0;}
#sub.board .board-view-body h3{font-size:1.9rem; font-weight:700; line-height:1.4; margin:6px 0;}
#sub.board .board-view-body ol, #sub.board .board-view-body ul{padding-left:2.4rem; margin:6px 0;}
#sub.board .board-view-body li{list-style:decimal;}
#sub.board .board-view-body ul > li, #sub.board .board-view-body li[data-list="bullet"]{list-style:disc;}
#sub.board .board-view-body li[data-list="ordered"]{list-style:decimal;}
#sub.board .board-view-body blockquote{border-left:4px solid #ddd; padding-left:12px; color:#555; margin:8px 0;}
#sub.board .board-view-body a{color:#3B02F8; text-decoration:underline;}
#sub.board .board-view-body em{font-style:italic;}
#sub.board .board-view-body u{text-decoration:underline;}
#sub.board .board-view-body s{text-decoration:line-through;}
#sub.board .board-view-body .ql-align-center{text-align:center;}
#sub.board .board-view-body .ql-align-right{text-align:right;}
#sub.board .board-view-body .ql-align-justify{text-align:justify;}
#sub.board .board-view-body .ql-indent-1{padding-left:3em;} #sub.board .board-view-body .ql-indent-2{padding-left:6em;} #sub.board .board-view-body .ql-indent-3{padding-left:9em;}

/* FAQ 읽기 편하게 (2026-10-19 사용자 지시) — 한글은 낱말 단위로 줄바꿈 · '- ' · '1) ' 줄은 내어쓰기(customer.js 가 class 를 붙임) · 문단 사이 조금 띄움 */
#sub.board .board-faq .accordion-detail .txt{word-break:keep-all; overflow-wrap:break-word;}
#sub.board .board-faq .accordion-detail .txt p + p{margin-top:4px;}
#sub.board .board-faq .accordion-detail .txt p.faq-li{display:flex; align-items:baseline; gap:0.35em;}
#sub.board .board-faq .accordion-detail .txt p.faq-li .faq-li-mark{flex:0 0 auto;}
#sub.board .board-faq .accordion-detail .txt p.faq-li .faq-li-body{flex:1 1 auto; min-width:0;}
#sub.board .accordion-list .accordion-header .btn-accordion-menu .txt{word-break:keep-all; overflow-wrap:break-word;}
@media (max-width:768px){
    /* 원본은 분류 이름표 폭이 63px 고정이라 '수강신청/수업' 이 두 줄로 꺾였다 → 글자 길이만큼 */
    #sub.board .accordion-list .accordion-header .btn-accordion-menu .txt > em{display:table; width:auto; min-width:63px; padding-right:10px; padding-left:10px; white-space:nowrap; box-sizing:border-box;}
}

/* 공지 글 보기 — 이전 글 / 다음 글 · 아래 '목록' 버튼 (2026-10-19 · 게시판 표의 줄 · 글자색과 같게) */
#sub.board .board-view .board-view-nav{border-bottom:1px solid #111;}
#sub.board .board-view .board-view-nav li{display:flex; align-items:center; gap:20px; padding:18px 20px; font-size:1.6rem; line-height:24px;}
#sub.board .board-view .board-view-nav li + li{border-top:1px solid #eee;}
#sub.board .board-view .board-view-nav .nav-label{flex:0 0 auto; display:inline-flex; align-items:center; gap:8px; width:90px; color:#6B7072; font-weight:600;}
#sub.board .board-view .board-view-nav .nav-label:after{content:''; width:7px; height:7px; border-top:2px solid #6B7072; border-left:2px solid #6B7072; transform:rotate(45deg); margin-top:3px;}
#sub.board .board-view .board-view-nav .nav-next .nav-label:after{transform:rotate(225deg); margin-top:-4px;}
#sub.board .board-view .board-view-nav .nav-title{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
#sub.board .board-view .board-view-nav .nav-title a{color:#1D1E1F; transition:.3s ease-out;}
#sub.board .board-view .board-view-nav .nav-title a:hover{color:#3B02F8;}
#sub.board .board-view .board-view-nav .nav-empty{color:#999;}
#sub.board .board-view .board-view-btns{display:flex; justify-content:center; margin-top:40px;}
@media (max-width:768px){
    #sub.board .board-view .board-view-nav li{gap:12px; padding:12px; font-size:1.4rem; line-height:20px;}
    #sub.board .board-view .board-view-nav .nav-label{width:70px;}
    #sub.board .board-view .board-view-btns{margin-top:24px;}
}

/* FAQ 목록 아래 문의 방법 상자 (2026-11-16 대표 지시) — 1:1 문의 · 상담 예약 · 카카오채널(회사 정보에 있을 때만) */
.board-faq .faq-contact{display:flex; flex-wrap:wrap; gap:14px 24px; align-items:center; justify-content:space-between; margin-top:40px; padding:22px 26px; border:1px solid #E5E7EB; border-radius:12px; background:#FAFAFB;}
.board-faq .faq-contact-txt{flex:1; min-width:220px;}
.board-faq .faq-contact-tit{font-size:1.8rem; font-weight:700; color:#1D1E1F;}
.board-faq .faq-contact-desc{margin-top:6px; font-size:1.5rem; line-height:1.5; color:#6B7072;}
.board-faq .faq-contact-btns{display:flex; flex-wrap:wrap; gap:8px;}
.board-faq .faq-contact-btn{display:inline-block; padding:11px 18px; border:1px solid #D5D8DC; border-radius:8px; background:#fff; font-size:1.5rem; font-weight:700; color:#1D1E1F; white-space:nowrap; text-decoration:none;}
.board-faq .faq-contact-btn.faq-contact-kakao{border-color:#FEE500; background:#FEE500; color:#191919;}
@media (max-width:768px){
    .board-faq .faq-contact{margin-top:28px; padding:18px;}
    .board-faq .faq-contact-btns{width:100%;}
    .board-faq .faq-contact-btn{flex:1; text-align:center; padding:11px 8px;}
}
