/* ===== ms_faq FAQ 스킨 스타일 ===== */

/* G5 기본 FAQ 스타일 리셋 */
#faq_wrap, #faq_con, #faq_sch, #bo_cate { display: none !important; }

/* ===== 레이아웃 ===== */
#cs_faq {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 헤더 h2 리셋 (G5 기본 숨김 해제) */
#cs_faq .title {
    position: static;
    overflow: visible;
    line-height: normal;
    width: auto;
    height: auto;
    clip: auto;
}

#cs_faq .top-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== 카테고리 탭 ===== */
#cs_faq .cs-faq-cate {
    padding: 16px 0;
    border-bottom: 1px solid #EFEFEF;
}
#cs_faq .cs-faq-cate ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#cs_faq .cs-faq-cate li { display: inline-block; }
#cs_faq .cs-faq-cate a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: all 0.15s;
    background: #fff;
}
#cs_faq .cs-faq-cate a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
#cs_faq .cs-faq-cate a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ===== 검색 ===== */
#cs_faq .cs-faq-search {
    padding: 12px 0 8px;
}
#cs_faq .cs-faq-search form {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
#cs_faq .cs-faq-search-input {
    width: 240px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    box-sizing: border-box;
}
#cs_faq .cs-faq-search-input:focus { outline: none; border-color: var(--primary); }
#cs_faq .cs-faq-search-input::placeholder { color: #bbb; }

/* ===== FAQ 리스트 (table-box 내부) ===== */
#cs_faq .cs-faq-list {
    border-top: none;
}
#cs_faq .cs-faq-item {
    border-top: 1px solid #EFEFEF;
}
#cs_faq .cs-faq-item:first-child {
    border-top: none;
}

/* 질문 행 */
#cs_faq .cs-faq-question {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.15s;
}
#cs_faq .cs-faq-question:hover { background: #FAFAFA; }

#cs_faq .cs-faq-q {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
#cs_faq .cs-faq-subject {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    font-weight: 400;
}
#cs_faq .cs-faq-arrow {
    flex-shrink: 0;
    color: #999;
    transition: transform 0.25s;
    display: inline-flex;
    align-items: center;
    width: 14px;
    height: 14px;
}
#cs_faq .cs-faq-item.is-open .cs-faq-arrow {
    transform: rotate(180deg);
}
#cs_faq .cs-faq-item.is-open .cs-faq-question {
    background: #FAFAFA;
}
#cs_faq .cs-faq-item.is-open .cs-faq-subject {
    color: var(--primary);
    font-weight: 600;
}

/* 답변 영역 */
#cs_faq .cs-faq-answer {
    display: none;
    background: #F8F8F8;
}
#cs_faq .cs-faq-answer-inner {
    display: flex;
    gap: 10px;
    padding: 16px 16px 16px 42px;
}
#cs_faq .cs-faq-a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
#cs_faq .cs-faq-content {
    flex: 1;
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    word-break: keep-all;
}
#cs_faq .cs-faq-content img { max-width: 100%; height: auto; }

/* ===== 빈 목록 ===== */
#cs_faq .cs-faq-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 13px;
}

/* ===== 페이지네이션 ===== */
#cs_faq .pg_wrap { text-align: center; padding: 20px 0 0; }
