@charset "utf-8";
/* =========================================================================
 * 고객센터(community) 모바일 레이아웃 : notice.php · faq.php · event.php · reviewBoard.php 공통
 * - PC 화면에는 영향 없음 (모두 1024px 이하에서만 적용)
 * - 게시판 스킨 CSS(skin/board/basic/style.css)가 이 파일보다 나중에 로드되므로
 *   모든 선택자 앞에 body #cm_wrap 을 붙여 우선순위를 높인다 (#cm_wrap : 각 페이지 바깥 div)
 * ========================================================================= */

/* 모바일 탭은 PC 에서 숨김 (.mobile 클래스가 모바일에서만 보이게 함) */

@media screen and (max-width: 1024px) {

	/* ---------- 바깥 틀 : 고정 폭(1170 / 905px)·높이 해제, 왼쪽 메뉴 숨김 ---------- */
	body #cm_wrap { width: auto !important; height: auto !important; margin: 0 !important; overflow-wrap: anywhere; }
	body #cm_wrap > div[style*="width:220px"] { display: none; }
	body #cm_wrap #customer_area,
	body #cm_wrap > div[style*="width:905px"] { float: none; width: auto !important; height: auto !important; }
	body #cm_wrap #customer_area > div,
	body #cm_wrap > div[style*="width:905px"] > div { margin: 0 !important; overflow: visible !important; }

	/* ---------- 상단 탭 (왼쪽 메뉴 대신) ---------- */
	body .mobile.cm_tabs {
		display: flex !important; gap: 22px; padding: 0 20px;
		overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap;
		box-shadow: inset 0 -1px 0 #e5e5e5;
	}
	body .cm_tabs::-webkit-scrollbar { display: none; }
	body .cm_tabs a { position: relative; flex: 0 0 auto; padding: 14px 0 13px; font-size: 15px; color: #777 !important; }
	body .cm_tabs a.on { color: #004172 !important; font-weight: 700; }
	body .cm_tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #004172; }

	/* ---------- 제목 · 배너 ---------- */
	body #cm_wrap #page_cutomer_area .page_name { float: none; width: auto; padding: 20px 20px 4px; border: 0; font-size: 18px; }
	body #cm_wrap #page_cutomer_area .page_bar,
	body #cm_wrap #page_cutomer_area .page_el,
	body #cm_wrap #page_cutomer_area .long_bar { display: none; }
	body #cm_wrap #page_cutomer_area > div[style*="margin-top"] { margin: 12px 20px 0 !important; border-radius: 12px; overflow: hidden; }
	body #cm_wrap #page_cutomer_area img { display: block; width: 100%; height: auto; }

	/* 본문 안 이미지 · 표가 화면을 넘지 않게 (글 보기 화면 포함) */
	body #cm_wrap img { max-width: 100%; height: auto; }
	body #cm_wrap table { max-width: 100%; }

	/* ---------- 게시판 목록 (공지사항 · 이벤트 · 인증후기) : 한 줄씩 카드 ---------- */
	body #cm_wrap #customer_area > div > div[style*="margin-top:50px"] { margin: 16px 0 0 !important; border-top: 10px solid #f4f4f4; }
	body #cm_wrap #customer_area > div > div[style*="margin-top:50px"] > div[style*="float"] { float: none !important; padding: 0 !important; }
	body #cm_wrap #qna_list_tit { display: none; }
	body #cm_wrap #qna_list_cont {
		display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px;
		width: auto; padding: 14px 20px; border-bottom: 1px solid #eee; color: #888; font-size: 12px;
	}
	body #cm_wrap #qna_list_cont > div { float: none; width: auto; text-align: left; line-height: 1.5; }
	body #cm_wrap #qna_list_cont .tab1,
	body #cm_wrap #qna_list_cont .tab2 { display: none; }   /* 선택 · 번호 */
	body #cm_wrap #qna_list_cont .tab4 { order: -1; flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: #222; word-break: keep-all; }
	body #cm_wrap #qna_list_cont .tab4 .l { float: none; }
	body #cm_wrap #qna_list_cont .tab4 a { color: #222 !important; }
	body #cm_wrap #qna_list_cont .tab4 img { margin: 0; vertical-align: middle; }
	body #cm_wrap #qna_list_cont .image_icon { float: none; margin: 0; }
	body #cm_wrap #qna_list_cont .tab3:not(:empty) { padding: 2px 9px; border-radius: 999px; background: #eef3f8; color: #004172; font-weight: 700; }
	body #cm_wrap #qna_list_cont .tab3:empty { display: none; }
	body #cm_wrap #qna_list_cont .tab5 ~ div::before { content: '·'; margin-right: 8px; color: #ccc; }
	body #cm_wrap #qna_list_cont > div[style*="text-align:center"] { flex: 1 1 100%; padding: 50px 0; text-align: center !important; font-size: 14px; color: #9b9b9b; }

	/* 페이지 번호 · 아래 버튼 */
	body #cm_wrap .mypage_num { width: 100%; height: auto; padding: 16px 0; }
	body #cm_wrap .page_num { display: flex; justify-content: center; gap: 4px; width: auto; height: auto; margin: 0; }
	body #cm_wrap .page_num li { float: none; width: auto; margin: 0; padding: 0 6px; font-size: 14px; }
	body #cm_wrap .page_num li:empty { display: none; }
	body #cm_wrap form[name="ListForm"] table td { padding: 0 20px 24px; }

	/* 글 보기 화면 : 표가 화면 폭을 쓰도록 */
	body #cm_wrap #customer_area > div > div[style*="margin-top:50px"] > table { width: 100% !important; }

	/* ---------- 자주찾는질문 (faq.php, #cm_wrap.cm_faq) ---------- */
	body #cm_wrap.cm_faq > div[style*="width:905px"] > div { padding: 0 20px 24px; }
	body #cm_wrap.cm_faq #page_cutomer_area .page_name { padding: 20px 0 4px; }
	body #cm_wrap.cm_faq > div[style*="width:905px"] > div > div[style*="margin:40px"] { display: none; }
	/* 검색 */
	body #cm_wrap.cm_faq form[name="SchForm"] { margin-top: 12px; }
	body #cm_wrap.cm_faq form[name="SchForm"] > div { display: flex; align-items: center; gap: 6px; }
	body #cm_wrap.cm_faq form[name="SchForm"] .l { flex: 1 1 auto; min-width: 0; float: none; }
	body #cm_wrap.cm_faq .search300 {
		float: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px;
		border: 1px solid #ddd; border-radius: 8px; font-size: 16px; position: static; top: auto;
	}
	body #cm_wrap.cm_faq form[name="SchForm"] .check_btn {
		float: none; display: flex; align-items: center; width: auto; height: 44px; margin: 0; padding: 0 18px;
		border-radius: 999px; background: #EE4445; color: #fff; font-size: 14px; font-weight: 600; line-height: 1;
	}
	body #cm_wrap.cm_faq > div[style*="width:905px"] > div > div[style*="margin-top:34px"] { margin-top: 16px !important; }
	/* 분류 탭 : 둥근 버튼 */
	body #cm_wrap.cm_faq .tab_click,
	body #cm_wrap.cm_faq .tab { float: none; display: inline-block; width: auto; height: auto; margin: 0 4px 8px 0; border: 0; line-height: 1; text-align: center; vertical-align: top; }
	body #cm_wrap.cm_faq .tab_click a,
	body #cm_wrap.cm_faq .tab a {
		float: none; display: block; width: auto; height: auto; padding: 9px 14px;
		border: 1px solid #dcdfe4 !important; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; line-height: 1; color: #555 !important;
	}
	body #cm_wrap.cm_faq .tab_click a { border-color: #004172 !important; background: #004172; color: #fff !important; font-weight: 700; }
	body #cm_wrap.cm_faq > div[style*="width:905px"] > div > div[style*="margin-top:25px"] { margin-top: 8px !important; }
	/* 질문 목록 : 분류(작게) + 질문(굵게) */
	body #cm_wrap.cm_faq .faq_cont { display: flex; flex-direction: column; gap: 4px; width: auto; height: auto; padding: 14px 0; line-height: 1.5; border-bottom: 1px solid #eee; }
	body #cm_wrap.cm_faq .faq_line { display: none; }
	body #cm_wrap.cm_faq .faq_arr { display: none; }
	body #cm_wrap.cm_faq .faq_cont_tit { float: none; width: auto; margin: 0; font-size: 12px; font-weight: 700; color: #004172; }
	body #cm_wrap.cm_faq .faq_cont_tit .l { float: none; }
	body #cm_wrap.cm_faq .faq_cont_txt { font-size: 0; }   /* 질문 앞 '|' 구분 문자 숨김 */
	body #cm_wrap.cm_faq .faq_cont_txt a { display: block; font-size: 15px; font-weight: 600; color: #222 !important; word-break: keep-all; }
	/* 답변 */
	body #cm_wrap.cm_faq .faq_reply { width: auto; margin: 0 0 6px; padding: 16px; border-radius: 10px; background: #f6f7f9; font-size: 14px; line-height: 1.7; }
	body #cm_wrap.cm_faq .faq_reply * { max-width: 100%; }
}
