@charset "utf-8";

/* 자사몰 포인트 컬러 */
:root {
  --color-primary: #74b600;           /* 메인 포인트 컬러 */
  --color-primary-dark: #5a8e00;      /* 호버/눌렸을 때 등 어두운 버전 */
  --color-primary-light: #a0d400;     /* 연한 버전 (배경 등에 활용) */
  --color-primary-bg: #f4fce3;        /* 아주 연한 배경색 (예: 뱃지 배경) */
}


:root{
  --faq-text:#111;
  --faq-sub:#555;
  --faq-line:#ececec;
  --faq-bg:#fff;
  --faq-chip:#f5f5f5;
  --faq-dark:#111;
}

/* 전체 */
.faq-wrap{
  width:100%;
}

/* 검색 */
.faq-search {
    flex: 1;
    min-width: 0;
}

.faq-search-top {
    display: flex;
    margin-bottom: 20px;
    justify-content: flex-start;
    gap: 10px;
}

.faq-search form {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
}

.faq-search-input{
  position:relative;
  flex: 1;
  max-width:420px;
}

.faq-search-input input{
  width: 100%;
  height: 48px;
  padding: 0 110px 0 16px;
  border: 1px solid #ececec;
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
}

.faq-search-input button{
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background:var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

/* 카테고리 */
.faq-cate ul{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px;
}

.faq-cate li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--faq-chip);
  color: #5f5f5f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
}

.faq-cate a.is-active{
  background:var(--color-primary-bg);
  color:var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* 리스트 */
.faq-list{
  list-style:none;
  padding:0;
  margin:0;
  border-top:2px solid #000;
}

.faq-item{
  border-bottom:1px solid var(--faq-line);
}

.faq-question{
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px;
  cursor:pointer;
}

.faq-q{
  font-weight:800;
  font-size:18px;
}

.faq-subject{
  flex:1;
  font-weight:700;
  font-size: 16px;
}

.faq-toggle{
  font-size:18px;
  font-weight: 600;
}

/* 답변 */
.faq-answer{
  display:none;
  padding:24px;
  background:#fafafa;
}

.faq-answer-inner{
  color:#444;
  line-height:1.6;
  font-size: 16px;
}

.faq-answer-inner p{
  line-height: 1.6 !important;
}

/* 빈값 */
.faq-empty{
  padding:60px 20px;
  text-align:center;
  color:#777;
}

/* 버튼 */
.faq-btn{
  display:inline-flex;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid #111;
  text-decoration:none;
}

.faq-btn-dark{
  background:#111;
  color:#fff;
}

/* 페이징 */
.faq-pagination{
  margin-top:30px;
  display:flex;
  justify-content:center;
}

/* 빈값 (검색 결과 없음 / 데이터 없음) */
.faq-empty{
  font-size:16px;
  padding:60px 20px;
  text-align:center;
  color:#777;
  font-weight:500;
  border:1px solid #e5e5e5;
  border-radius:16px;
  background:#fafafa;
  margin-top:20px;
}

/* 검색 결과 없을 때 강조 */
.faq-empty.is-search{
  font-size:16px;
  border:1px solid #111;
  background:#fff;
  color:#111;
  font-weight:500;
}

.faq-admin{
  font-size: 16px;
  font-weight: 500;
}

.faq-admin {
    font-size: 16px;
    font-weight: 500;
    position: absolute;
    right: 0;
}

@media (max-width:768px){
  .faq-wrap{
    padding: 10px;
  }
  .faq-head{
    margin-bottom: 10px;
  }
  .faq-cate ul {
    gap: 5px;
    margin-bottom: 10px;
  }
  .faq-cate li a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 14px;
  }
  .faq-search-top{
    margin-bottom: 16px;
  }
  .faq-search-input {
    max-width: none;
  }
  .faq-search-input input {
    height: 44px;
    padding: 0 96px 0 14px;
    font-size: 16px;
  }
  .faq-search-input button {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }
  .faq-question{
    padding: 10px;
  }
  .faq-answer{
    padding: 10px;
  }
  .faq-btn-dark{
    align-items: anchor-center;
    color: #fff !important;
    min-height: 30px;
    padding: 0 10px;
    margin-right: 10px;
  }
  .faq-admin{
    font-size: 14px;
  }
  .faq-subject{
    font-size: 14px;
  }
}
