/* /theme/s005/css/renewal/list_style.css */
/* 26 1월 pshop/list.php 리뉴얼 */

/* 리스트 카테고리 시작 */
#renewal_list_category_wrap {
  width: 100%;

  margin: 0 auto;
  padding: 30px 50px 0;
  border-radius: 50px;
  background-color: #fff;
}

.renewal_list_category .list_category_grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 15px !important;
  max-width: 700px;
  margin: 0 auto;
}

.renewal_list_category .na-category-icon {
  background-color: #fff;
  border-radius: 20px;
  text-align: center;
}

.renewal_list_category .na-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#renewal_list_category_wrap h2 {
  font-size: 17px;
  font-weight: bold;
  padding-left: 10px;
  margin-bottom: 10px;
}

.renewal-category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.renewal-category-link.is-active .na-category-icon {
  position: relative;
}

.renewal-category-link.is-active .na-category-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: #2563eb;
  border-radius: 99px;
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.mySwiperTest.swiper {
  overflow: visible;
}

.renewal-category-item.swiper-slide {
  width: auto !important;
  margin-right: 0 !important;
}

/* 리스트 카테고리 끝 */

/* 검색 시작 */
#renewal_search_wrap {
  max-width: 570px;
  margin-top: 40px;
  margin: 0 auto;
}

#renewal_search_wrap h2 {
  font-size: 26px;
  margin-bottom: 15px;
  line-height: 1.4;
  padding-left: 10px;
  text-align: center;
}

#renewal_search_wrap h2 span {
  color: #2563eb;
  font-weight: bold;
}

#renewal_search_form {
  width: 100%;
  border: solid 1px #2563eb;
  border-radius: 30px;
  height: 50px;
  /* overflow: hidden; */
  position: relative;
}

#renewal_search_form form {
  height: 100%;
}

#renewal_search_form .search_inner_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.search_keyword {
  width: 25%;
  font-size: 16px;
  color: #2563eb;
  border-right: solid 1px #2563eb;
  padding: 0 10px;
  height: 70%;
}

.search_keyword select {
  border: none;
  height: 100%;
}

.search_inner_input {
  width: 60%;
}

.search_inner_input input {
  border: none;
  width: 100%;
  height: 40px;
  font-weight: 400;
  padding-left: 10px;
  font-size: 16px;
}

.search_inner_btn {
  width: 30px;
  height: 30px;
  margin-left: 35px;
  margin-right: 10px;
}

.search_inner_btn button {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
}

.search_inner_btn svg.feather {
  stroke: #2563eb;
}
/* 검색 끝 */

/* 인기검색어 시작 */
.popular_keyword_wrap {
  max-width: 700px;
  margin: 0 auto;
  height: fit-content;
  position: relative;
}

.popular_keyword_wrap::after {
  content: "";
}

.popular_keyword_contents {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 20px;
}

.left_popular_keyword_title {
  width: fit-content;
  border-right: solid 1px #ccc;
  height: fit-content;
  padding-right: 10px;
  margin-right: 10px;
}

.left_popular_keyword_title h3 {
  font-size: 16px;
  margin-bottom: 0;
}

.left_popular_keyword_title h3 > span {
  display: inline;
}

.keyword_contents_box {
  text-align: left;
  width: 67%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#keyword_contents_btn {
  width: 10%;
  align-items: center;
  justify-content: right;
  display: none;
}

.keyword_style {
  background-color: #f1f4f7;
  color: #a1acbd;
  border: solid 1px #e0e3e7;
  padding: 5px 8px;
  border-radius: 50px;
  margin: 0 3px 5px;
  font-size: 16px;
}

.keyword_contents_box.is-closed .keyword_style:nth-child(n + 4) {
  display: block;
}

.section_line_gray {
  position: relative;
  margin: 50px auto;
  height: 5px;
}

.section_line_gray::after {
  content: "";
  position: absolute;
  width: 100vw;
  z-index: -1;
  display: block;
  height: 5px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f1f4f7;
  border-top: solid 1px #e0e3e7;
  border-bottom: solid 1px #e0e3e7;
}

.information_card_wrap,
.news_lank_info_modal {
  display: none;
  position: relative;
}
.information_card_wrap.active,
.news_lank_info_modal.active {
  display: block;
}

.news_lang_modal {
  padding-top: 3px;
}

#lank_info_hover {
  position: relative;
  cursor: pointer;
  display: block;
  width: 16px;
  height: 16px;
}

#lank_info_card {
  position: absolute;
  width: fit-content;
  height: fit-content;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  min-width: 310px;
  box-shadow: 0px 0px 7px #dfdfdf;
  display: none;
  z-index: 99;
}

#lank_info_hover:hover #lank_info_card {
  display: block;
}

#lank_info_card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

#lank_info_card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  padding-bottom: 0;
  margin-bottom: 0;
}

.style_select {
  position: relative;
}

.style_select .new_option-list {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  background-color: #fff;
  z-index: 999;
}

#new_option_list_info {
  display: flex;
  align-items: center;
  justify-content: left;
}

#new_option_list_info a {
  width: fit-content;
  padding: 8px 0 8px 8px;
}

#new_option_list_info svg.feather {
  width: 16px;
  height: 16px;
  stroke: #a1acbd;
  margin-left: 3px;
}

.style_select.active .new_option-list {
  max-height: none;
}

.select_first_text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  color: #a1acbd;
}
.select_theme .style_select {
  border: solid 1px #f0f0f0;
  color: #a1acbd;
  border-radius: 10px;
  padding: 4px 10px;
  width: 110px;
  cursor: pointer;
}
.select_theme .style_select:hover {
  color: #333;
  transition: all 0.3s;
}
.select_theme .style_select .select_text {
  width: 82%;
}

.select_first_text span svg.feather {
  width: 21px;
  height: 21px;
}

.select_first_text > span {
  width: 21px;
  height: 21px;
  display: block;
}
.select_theme .style_select .new_option-list {
  list-style: none;
  padding: 0;
  border-radius: 15px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  width: 110px;
}
.select_theme .style_select .new_option-list .new_option {
  font-size: 16px;
  color: #ccc;
}

.select_theme .style_select .new_option-list .new_option > a {
  width: fit-content;
  height: 100%;
  padding: 8px;
  display: block;
  text-decoration: none;
  color: #a1acbd;
  font-size: 14px;
}

.select_theme .style_select .new_option-list li:hover {
  background-color: #f2f2f2;
  color: #333;
}

.select_theme .style_select .new_option-list li:hover a {
  color: #333;
  stroke: #333;
}

.select_theme .style_select .new_option-list .new_option > a.active {
  color: #2563eb;
  font-weight: 600;
}

/* 리스트 리뉴얼 */
/* 좌우 여백을 50 -> 20 으로, 필터와의 간격을 20 -> 28 로 바꿨다. 본문 상자는 1080px 인데
   여백 50 + 필터 300 을 떼고 나면 카드에 650px 밖에 안 남아, 그 안에서 썸네일 140 과 네
   칸을 나눠 쓰느라 매체명 칸이 140px 까지 줄었다(제보하기 버튼이 카드 밖으로 나간 것도
   같은 이유였다). 마일리지 목록은 같은 1080px 안에서 카드가 784px 이라 눈에 띄게 넓어
   보였다("마일리지는 널찍널찍한데 제보하기는 너무 좁아 보인다"). 이 값으로 카드가
   650 -> 762px 이 된다.
   .ai-banner-outer 의 좌우 여백도 같이 20 으로 바꿔야 한다 - 그 띠가 필터 왼쪽 끝부터
   목록 오른쪽 끝까지와 나란히 맞춰져 있어서, 한쪽만 고치면 띠가 목록보다 안으로 들어간다 */
#list_renewal_wrap {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  margin: 30px auto 0;
  padding: 0 20px 100px;
  max-width: 1080px;
}

.renewal_filter_wrap {
  height: 100%;
  max-height: none;
  overflow-y: visible;
  padding-bottom: 0 !important;
  position: relative;
  top: auto;
}

/* .renewal_filter_wrap.is-sticky {
  position: fixed;
  top: 120px;
  z-index: 9998;
} */

.product_list_wrap {
  height: fit-content;
  /* overflow-y: auto;
  overflow-x: hidden; */
  /* padding-bottom: 100px; */
}

/* 필터 칸은 폭을 지키고, 남는 자리는 전부 목록이 가져간다. 이걸 안 정해 두면 목록의
   flex:1 이 필터를 밀어 196px 까지 눌러 버린다(실측). 좁은 화면(991px 이하)에서는 필터가
   화면을 덮는 다른 물건이 되므로 아래 구간에서 이 값을 푼다 */
#list_renewal_wrap > #mobileFilterOverlay {
  flex: none;
  width: 250px;
}

.product_list_wrap {
  /* 650px 을 못박아 두면 바깥 여백과 필터를 줄여도 목록이 그만큼 그대로 남는다. 남는
     자리를 다 쓰게 두고, 위쪽 상자(#list_renewal_wrap, 1080px)가 상한을 정한다 */
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow: visible !important;
}

.mobile_filter_btn {
  display: none;
}

/* 리스트 헤더(총매체사) */
#list_fixed_header_wrap {
  background-color: #fff;
  width: 100vw;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
  will-change: transform;
}

#list_fixed_header_wrap.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.list_fixed_header_inner_wrap {
  max-width: 1080px;
  padding: 8px 20px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.list_fixed_search_wrap {
  display: grid;
  align-items: left;
  justify-content: left;
}

.list_fixed_search {
  width: 650px;
}

.list_fixed_search_wrap .search_inner_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.list_fixed_search_wrap .search_inner_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 0 10px;
}
.list_fixed_search_wrap .search_inner_input input {
  font-size: 14px;
  background-color: #f7f7f7;
}
.list_fixed_search_wrap .search_inner_btn button {
  padding-top: 4px;
  padding-right: 4px;
}

.list_fixed_search_wrap .search_inner_wrap svg.feather {
  width: 21px;
  height: 21px;
  stroke: #fff;
  padding-right: 3px;
}

.list_fixed_search_wrap .search_inner_wrap > .search_keyword {
  font-size: 14px;
  color: #42545e;
  padding-left: 0;
  background-color: #f7f7f7;
  width: 15%;
  border-right: solid 1px #42545e;
}

.list_fixed_search_wrap .search_inner_wrap > .search_keyword select {
  background-color: transparent;
}
.list_fixed_search_wrap .search_inner_wrap .search_inner_btn {
  background-color: #2563eb;
  border-radius: 8px;
}
.list_fixed_search_wrap .search_inner_input {
  width: 70%;
}
.list_fixed_top_keyword .popular_keyword_wrap {
  width: fit-content;
}
.list_fixed_top_keyword .popular_keyword_contents {
  margin: 5px auto 0;
  justify-content: left;
}

.list_fixed_top_keyword .keyword_style {
  font-size: 13px;
  padding: 0 8px;
  margin: 0 0;
}

.list_fixed_top_keyword .left_popular_keyword_title h3 {
  font-size: 13px;
  padding-left: 10px;
}

.list_fixed_header_right {
  display: flex;
  align-items: center;
  justify-content: right;
  width: 10%;
}
.list_fixed_right_icon {
  margin-right: 20px;
}

.list_fixed_header_right svg.feather {
  width: 28px;
  height: 28px;
}

.list_fixed_right_hamburger {
  cursor: pointer;
}

.product_list_header {
  width: 100%;
  border-radius: 10px;
  /* border: solid 1px #e0e3e7; */
  background-color: #fff;
  height: fit-content;
  position: sticky;
  top: calc(100px + var(--hd-shift, 0px));
  z-index: 40;
}

.list_header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  height: fit-content;
}

.list_header_top h3 {
  font-size: 17px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: left;
}

.list_header_top h3 span {
  background-color: #f6f3f4;
  display: inline-block;
  text-align: center;
  padding: 3px 8px;
  border-radius: 20px;
  color: #999;
  font-weight: 300;
  font-size: 13px;
  line-height: 15px;
  margin-left: 5px;
}

.list_tag_info {
  width: fit-content;
  padding: 0 0;
  display: flex;
  align-items: center;
}

.list_tag_info > p {
  font-size: 13px;
  margin-left: 8px;
  margin-bottom: 0;
}

.list_tag_info > p > [class^="list_tag_info_C"] {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 30px;
  margin-right: 5px;
}

.list_fixed_top_table {
  width: 100%;
  background-color: #fbf9fa;
  height: fit-content;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px #e0e3e7;
  border-radius: 10px;
}

.naver {
  background-color: #03c75a;
}

.daum {
  background-color: #fee500;
}

.google {
  background-color: #4285f4;
}

.list_fixed_top_box h4 {
  font-size: 13px;
  color: #6c6c6c;
  text-align: center;
  margin-bottom: 0;
}

/* CP · 소재 기명 · 언론사명 */
/* 카드 앞에 썸네일(120 + 여백 14 = 134px)이 붙었다. 네 칸의 퍼센트를 그대로 두면 합이
   100% + 134px 이 되어 넘치고, 넘친 만큼 글자가 세로로 쪼개진다. 그래서 퍼센트 기준을
   "썸네일을 뺀 나머지" 로 바꾼다.
   열 이름 줄에는 썸네일 자리를 따로 두지 않는다 - 빈 칸을 넣으면 nth-child 번호가 하나씩
   밀려서 아래 규칙들이 엉뚱한 칸에 걸린다. 대신 첫 칸이 썸네일 폭까지 함께 쓰게 해서
   "CP · 기명 · 소재 · 언론사명" 이 한 줄로 들어가게 한다 */
.list_fixed_top_box:nth-child(1) {
  width: calc((100% - 150px) * 0.30 + 150px);
}
/* 카드 쪽은 로고 자리를 카드의 padding-left 로 이미 비워 두었으므로(.product_list_style_wrap)
   남은 폭에 퍼센트를 그대로 쓴다. 열 이름 줄과 같은 비율이다 */
.product_list_name {
  width: 30%;
}

.list_fixed_top_box:nth-child(1) h4 {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: left;
}

.list_fixed_top_box:nth-child(1) > h4 > span > svg.feather {
  width: 16px;
  height: 16px;
  stroke: #6c6c6c;
  margin-left: 2px;
}

/* 노출 포털 */
.list_fixed_top_box:nth-child(2) {
  width: calc((100% - 150px) * 0.18);
}
.product_list_port {
  width: 18%;
}

/* 평균 소요 · 마감 시간 */
.list_fixed_top_box:nth-child(3) {
  width: calc((100% - 150px) * 0.22);
}
.product_list_time {
  width: 22%;
}

/* 단가 / 신청 */
.list_fixed_top_box:nth-child(4) {
  width: calc((100% - 150px) * 0.30);
}
.product_list_price {
  width: 30%;
}

.list_fixed_top_box:nth-child(4) h4 {
  padding-left: 55px;
}

.product_list_style_wrap {
  border: solid 1px #f1f1f1;
  width: 100%;
  /* 왼쪽 166 = 여백 16 + 로고 140 + 간격 10. 로고는 흐름에 두지 않고 이 자리에 덧놓는다(아래
     .product_list_thumb) - 흐름에 두면 첫 줄에만 들어가서 참고사항 줄만큼 카드 아래쪽이 비었다 */
  padding: 16px 16px 16px 166px;
  border-radius: 20px;
  margin: 10px 0;
  position: relative;
}

.product_list_style {
  width: 100%;
}

.product_list_tag {
  display: flex;
  margin-bottom: 5px;
}

.product_list_tag > [class^="list_tag"] {
  font-size: 13px;
  padding: 0 5px;
  border-radius: 4px;
  margin-right: 5px;
  height: 18px;
  text-align: center;
  line-height: 18px;
}

._cp {
  color: #fff;
  background-color: #9810fa;
}

._name {
  color: #0c923d;
  background-color: #d8f7e3;
}

.list_tag_cate {
  color: #2563eb;
  background-color: #e7f7ff;
}
/* ========================================
   리뷰 모달
   ======================================== */
.rv_modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.rv_modal_overlay.is-open {
  display: flex;
}

.rv_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.rv_modal_box {
  position: relative;
  width: 520px;
  max-width: 92vw;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  z-index: 1;
  overflow-y: auto;
}

.rv_modal_close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  z-index: 2;
  padding: 4px;
  line-height: 1;
}

.rv_modal_close:hover {
  color: #333;
}

.rv_modal_content {
}

/* 모달 헤더 */
.rv_modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fffbeb;
}

.rv_modal_title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv_modal_title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.rv_modal_summary {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.rv_modal_summary .rv_modal_star {
  font-size: 17px;
}

.rv_modal_summary .rv_modal_avg {
  font-size: 17px;
  font-weight: 700;
  color: #333;
}

.rv_modal_summary .rv_modal_cnt {
  font-size: 13px;
  color: #999;
  margin-left: 2px;
}

/* 모달 본문 */
.rv_modal_body {
  overflow-y: auto;
  padding: 0;
  flex: 1;
}

.rv_modal_item {
  padding: 18px 24px;
  border-bottom: 1px solid #f5f5f5;
}

.rv_modal_item:last-child {
  border-bottom: none;
}

.rv_modal_item_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rv_modal_item_user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv_user_name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.rv_user_badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: #e8f4fd;
  padding: 1px 6px;
  border-radius: 3px;
}

.rv_modal_item_stars {
  font-size: 15px;
  letter-spacing: 1px;
}

.rv_modal_item_content {
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  word-break: break-word;
}

.rv_modal_item_date {
  margin-top: 8px;
  font-size: 13px;
  color: #bbb;
}

.rv_modal_empty {
  padding: 60px 24px;
  text-align: center;
}

.rv_modal_empty p {
  color: #bbb;
  font-size: 14px;
  margin: 0;
}

/* 모바일 */
@media (max-width: 768px) {
  .rv_modal_box {
    width: 100%;
    max-width: 100vw;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .rv_modal_overlay.is-open {
    align-items: flex-end;
  }

  .rv_modal_header {
    padding: 18px 20px 14px;
  }

  .rv_modal_title h4 {
    font-size: 14px;
  }

  .rv_modal_item {
    padding: 14px 20px;
  }
}
.product_list_title h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0;
}

.product_list_port,
.product_list_center_info,
.product_list_style,
.product_list_time {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product_list_port > [class^="list_port"] {
  font-size: 14px;
  padding: 0 5px;
  margin: 0 2px;
  width: 25px;
  height: 25px;
  border-radius: 20px;
  text-align: center;
  line-height: 25px;
  font-weight: 800;
}

._naver {
  color: #fff;
  background-color: #03c75a;
}
._daum {
  color: #000000;
  background-color: #fee500;
}
._google {
  color: #ffffff;
  background-color: #4285f4;
}

._none_port {
  color: rgb(200 200 215);
  background-color: #ededed;
}

.list_time_average {
  font-size: 13px;
  font-weight: 600;
}

.list_time_line {
  width: 1px;
  height: 10px;
  background-color: #ccc;
  margin: 0 10px;
  display: inline-block;
}

.list_time_last {
  font-size: 13px;
  color: rgb(235, 63, 41);
}

.list_time_last > span {
  display: flex;
  align-items: center;
  justify-content: left;
}

.list_time_last > span > span {
  padding-right: 3px;
}

.list_purchase_btn_wrap {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 3px;
  margin-top: 7px;
}

.list_cart_btn {
  display: none;
  width: 30px;
  height: 30px;
  border: solid 1px #ccc;
  border-radius: 10px;
  text-align: center;
  line-height: 30px;
}

.list_cart_btn svg.feather {
  width: 16px;
  height: 16px;
  stroke: #c6c6c6;
  padding-top: 2px;
}

/* 폭에서 30px 을 빼던 것을 되돌렸다. 그 30px 은 옆에 붙던 장바구니 버튼(.list_cart_btn)
   자리인데 그 버튼은 지금 어느 폭에서도 안 나온다(display:none 뿐이고 되살리는 규칙이
   없다) - 안 쓰는 자리를 비워 두느라 정작 제보하기 버튼이 칸 밖으로 밀려났다 */
.list_purchase_btn {
  width: 100%;
}

.list_purchase_btn input {
  font-size: 16px;
  color: #fff;
  background-color: #2563eb;
  border-radius: 10px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  width: 100%;
  border: none;
  /* min-width 를 두지 않는다. 130px 을 못박아 둬서 단가 칸이 그보다 좁아지는 순간
     버튼이 카드 오른쪽 테두리를 뚫고 나갔다(사용자 지적: "제보하기 비져나온건?").
     칸 폭을 따라 줄어들어도 "제보하기" 넉 자는 들어간다 */
  min-width: 0;
}

.product_list_price {
  text-align: right;
  font-size: 17px;
  color: #333;
  padding-left: 25px;
}

.list_price_top,
.list_price_top > span {
  display: flex;
  align-items: center;
  justify-content: right;
}

.list_price_top > span {
  color: #2563eb;
  font-size: 13px;
  margin-right: 7px;
  font-weight: 600;
}

.list_price_top > span > span {
  padding-left: 2px;
}

.price_sale_tag svg.feather {
  width: 8px;
  height: 8px;
  transform: rotate(180deg);
  fill: #2563eb;
}

.list_price_top > p {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

/* 참고사항은 이제 .product_list_style 안에 있다(카드의 마지막 줄과 같은 줄에 놓기 위해서.
   ajax.product_list.php 주석 참고). 넓은 화면에서는 제 줄을 통째로 차지하고, 썸네일
   폭(140+10)만큼 들여써서 리뷰 아래에서 시작한다 - 왼쪽 끝에서 시작하면 썸네일 밑에 걸려
   어느 칸에도 안 속한 것처럼 보인다 */
.product_list_style {
  flex-wrap: wrap;
}

.it_basic_wrap {
  flex: 0 0 100%;
}

.it_basic_open_btn {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: left;
  margin-top: 5px;
}

.it_basic_open_btn svg.feather {
  width: 16px;
  height: 16px;
}

.it_basic_open_btn p {
  margin-bottom: 0;
  margin-right: 2px;
}

.product_list_info {
  width: 100%;
  background-color: #fbf9fa;
  padding: 5px 10px;
  margin-top: 10px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: left;
}

.it_basic_open_btn i {
  transition: transform 0.2s ease;
}

.it_basic_wrap.is-open .it_basic_open_btn svg.feather {
  transform: rotate(180deg);
}

.it_basic_wrap.is-open .product_list_info {
  display: flex;
}

.it_basic_open_btn.is-enabled {
  cursor: pointer;
  user-select: none;
}

.it_basic_open_btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.product_list_info svg.feather {
  width: 16px;
  height: 16px;
  stroke: #6c6c6c;
}

.product_list_info p {
  color: #6c6c6c;
  font-size: 13px;
  margin-left: 5px;
  margin-bottom: 0;
}

.hover_information {
  position: relative;
  height: 18px;
  cursor: pointer;
}

.product_list_header_array {
  display: none;
}

.fixed_mobile_under_wrap,
.list_fixed_mobile_filter {
  display: none;
}

.service_all_navigation {
  padding-top: 0;
}

.only768 {
  display: none;
}

.only991 {
  display: block;
}

.modal__open_btn {
  cursor: pointer;
}

.fixed_modal_cp {
  display: none;
}

.fixed_modal_cp.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

/* .filter-sticky-ph {
  position: relative; 
}
.renewal_filter_wrap.is-sticky {
  z-index: 9999;
}
.renewal_filter_wrap.is-docked {
  z-index: 9999;
} */

.fixed_mobile_search {
  display: none;
  width: 100vw;
  height: 100dvh;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow-y: scroll;
}

.fixed_mobile_search.active {
  display: block;
  z-index: 9999;
}

.mobile_search_overlay {
  display: none;
}
.list_review_wrap,
.list_review_wrap .review_star {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: left;
}

.list_review_wrap .review_star {
  color: #333;
  margin-right: 5px;
}

.list_review_wrap .review_count {
  margin-left: 5px;
}

.list_review_wrap .review_star svg.feather {
  stroke: rgb(255, 217, 0);
  fill: rgb(255, 217, 0);
  width: 14px;
  height: 14px;
  margin-right: 3px;
}

.pc_top_fixed_filter {
  padding: 8px 4px;
  font-size: 13px;
}

.pc_top_fixed_filter ul {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 0;
  margin: 0;
}

.pc_top_fixed_filter ul li {
  list-style: none;
  padding: 0 7px;
  border-right: solid 1px #dfe3e8;
}

.pc_top_fixed_filter ul li a {
  color: #333;
}

.pc_top_fixed_filter ul li a.active {
  color: #2563eb;
  font-weight: 600;
}

.pc_top_fixed_filter ul li:nth-child(1) {
  padding: 0 7px 0 0;
  display: flex;
  align-items: center;
  justify-content: left;
}

.pc_top_fixed_filter ul li:nth-child(1) svg.feather {
  width: 16px;
  height: 16px;
  margin-left: 3px;
}

.pc_top_fixed_filter ul li:nth-last-child(1) {
  border-right: none;
}

@media (min-width: 991px) {
  .renewal_list_category .list_category_grid {
    width: 100% !important;
  }
}

@media (max-width: 991px) {
  /* max-width */
  #renewal_list_category_wrap,
  #renewal_search_wrap,
  .popular_keyword_contents,
  #list_renewal_wrap {
    max-width: 90vw;
  }

  .product_list_header_array {
    display: block;
  }
  /* 검색 시작 */
  #renewal_search_wrap {
    margin: 40px 10vw 0;
  }
  #renewal_search_wrap h2 {
    text-align: left;
    font-size: 20px;
  }

  #renewal_search_form {
    height: 50px;
  }

  .search_keyword {
    font-size: 14px;
  }

  .search_inner_input input {
    font-size: 14px;
  }

  .search_inner_btn {
    margin-left: 5px;
  }

  /* 인기검색어 시작 */
  .popular_keyword_wrap {
    padding: 15px 0;
    margin-top: 20px;
    display: none;
    margin-bottom: 35px;
  }

  .popular_keyword_wrap::after {
    content: "";
    position: absolute;
    width: 100vw;
    z-index: -1;
    display: block;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f4f7;
  }

  .popular_keyword_contents {
    margin: 0 auto;
    padding: 0 10px;
  }

  .popular_keyword_contents {
    display: flex;
    align-items: start;
    justify-content: left;
  }

  .keyword_contents_box {
    overflow: hidden;
    transition: max-height 0.3s ease;
    justify-content: left;
    flex-wrap: wrap;
  }

  .keyword_contents_box.is-closed {
    max-height: 40px;
  }

  .left_popular_keyword_title h3 {
    font-size: 14px;
    margin-bottom: 0;
    margin-top: 5px;
  }

  .keyword_style {
    background-color: #fff;
    color: #a1acbd;
    border: solid 1px #e0e3e7;
    padding: 5px 8px;
    border-radius: 50px;
    margin: 0 3px 5px;
    font-size: 13px;
  }

  .keyword_contents_box.is-open {
    max-height: fit-content;
  }

  .keyword_contents_box.is-closed .keyword_style:nth-child(n + 4) {
    display: none;
  }

  #keyword_contents_btn {
    display: flex;
  }

  .left_popular_keyword_title {
    width: 23%;
    padding-right: 0;
  }

  /* 리스트 카테고리 시작 */
  #renewal_list_category_wrap {
    padding: 20px 20px;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 30px;
  }

  .renewal_list_category {
    max-width: 100%;
    margin: 4px auto;
    padding: 8px 6px 6px;
    border-radius: 16px;
    width: 100%;
    padding-bottom: 30px !important;
    overflow: hidden !important;
  }

  #renewal_list_category_wrap h2 {
    margin-bottom: 0;
  }

  .select_theme .style_select {
    width: 160px;
  }

  .left_notice_wrap > h3 {
    padding: 8px 8px;
    font-size: 14px;
  }

  .notice_click_btn svg.feather {
    width: 20px;
    height: 20px;
    margin-top: 3px;
  }

  .select_theme .style_select {
    padding: 8px 8px;
    width: 130px;
    min-width: 130px;
  }

  .select_first_text {
    font-size: 14px;
  }

  .select_theme .style_select .new_option-list {
    width: 120px;
    min-width: 120px;
  }

  #list_renewal_wrap {
    padding: 0 0;
  }

  .product_list_wrap {
    height: fit-content;
    padding-bottom: 50px;
  }

  .right_price_select_wrap {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 6px;
  }

  .mobile_filter_btn {
    display: grid;
    width: 44px;
    height: 44px;
    background-color: #2563eb;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile_filter_btn svg.feather {
    stroke: #fff;
  }

  .mobile_filter_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
  }

  .mobile_filter_panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 80%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile_filter_overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .mobile_filter_overlay.is-open .mobile_filter_panel {
    transform: translateX(0);
  }

  body.no-scroll {
    overflow: hidden;
  }

  .product_list_wrap {
    width: 100%;
    max-width: 100%;
  }

  /* 넓은 화면에서 필터 칸에 걸어 둔 고정 폭을 푼다 - 이 폭부터는 필터가 화면을 덮는다 */
  #list_renewal_wrap > #mobileFilterOverlay {
    flex: 0 1 auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  .only768 {
    display: block;
  }

  .only991 {
    display: none;
  }

  .mobile_search_overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    cursor: pointer;
  }

  .product_list_header_array {
    display: none;
  }
  /* 리스트 */
  #list_renewal_wrap {
    width: 100%;
    display: block;
    margin: 15px auto 0;
    padding: 0 0;
  }

  .section_line_gray {
    margin: 35px auto;
  }

  .information_inner_wrap {
    width: 100%;
    display: block;
    gap: 20px;
  }

  #renewal_search_form {
    display: none;
  }

  /* 리스트 헤더(총매체사) */
  #list_fixed_header_wrap {
    width: 100vw;
    top: calc(70px + var(--hd-shift, 0px));
    height: auto;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .list_fixed_header_inner_wrap {
    max-width: 100%;
    padding: 4px 20px 0;
    border-bottom: solid 2px #e9e9e9;
  }

  .list_fixed_header_right,
  .list_fixed_logo {
    display: none;
  }

  .list_fixed_search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .list_fixed_search form {
    width: 100%;
    position: relative;
  }

  .list_fixed_search_wrap {
    display: block;
    width: 100%;
  }

  .list_fixed_search_wrap .search_inner_input input {
    font-size: 13px;
  }

  .list_fixed_search_wrap .search_inner_input {
    width: 55%;
  }

  .list_fixed_search_wrap .search_inner_wrap {
    padding: 0 5px;
  }

  .list_fixed_search_wrap .search_inner_wrap > .search_keyword {
    width: 28%;
    font-size: 13px;
    padding-left: 5px;
  }

  .list_fixed_mobile_filter {
    display: block;
    width: 45px;
    border: solid 1px #2563eb;
    border-radius: 5px;
    color: #2563eb;
    cursor: pointer;
    padding: 3px 5px;
    text-align: center;
    font-size: 14px;
  }

  .fixed_mobile_under_left svg.feather {
    width: 14px;
    height: 14px;
  }

  .fixed_mobile_under_left > p {
    display: flex;
    align-items: center;
    justify-content: left;
    font-size: 14px;
    margin-bottom: 0;
  }

  .fixed_mobile_under_left > p > span {
    padding-right: 2px;
  }

  .list_fixed_top_keyword > .popular_keyword_contents {
    display: none;
  }

  .fixed_mobile_under_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
  }

  .fixed_mobile_under_right .select_theme .style_select {
    padding: 8px 0;
    width: fit-content;
    min-width: auto;
    border: none;
  }

  .service_all_navigation {
    padding-top: 70px;
  }

  .product_list_header_array,
  .product_list_header {
    display: none;
  }

  .product_list_style {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .product_list_name {
    width: 45%;
  }
  .product_list_port {
    width: 45%;
    justify-content: right;
  }

  .product_list_time {
    width: 100%;
    background-color: #f7f7f7;
    padding: 5px 10px;
    margin: 10px 0;
    text-align: left;
    justify-content: left;
    border-radius: 5px;
  }

  /* 마지막 줄에 참고사항 · 단가 · 신청 버튼을 한꺼번에 둔다. 셋이 각각 한 줄씩 쓰던 것을
     한 줄로 접은 것이다("신청하기가 너무 크고 금액이 혼자 있다", "참고사항까지 한 줄로",
     "포인트나 마일리지 옆에"). 참고사항이 왼쪽, 그 옆에 금액, 오른쪽 끝에 버튼이다.
     마크업 차례는 이름·포털·시간·단가·참고사항이라 order 로 참고사항을 단가 앞에 놓는다 */
  .product_list_name  { order: 1; }
  .product_list_port  { order: 2; }
  .product_list_time  { order: 3; }
  /* margin-top:5px 를 지운다 - 넓은 화면에서는 참고사항이 제 줄이라 그 여백이 위 줄과의
     사이를 벌려 주지만, 여기서는 같은 줄의 금액·버튼보다 2px 내려가 보이게 만든다 */
  .it_basic_wrap      { order: 4; flex: none; width: auto; padding-left: 0; align-self: center; }
  .it_basic_wrap .it_basic_open_btn { margin-top: 0; }
  /* 참고사항을 펴면 그 글이 한 줄을 다 쓰게 한다 - 안 그러면 단추 폭 안에서 글이 세로로
     길게 늘어진다 */
  .it_basic_wrap.is-open { flex: 1 1 100%; }

  .product_list_price {
    order: 5;
    flex: 1 1 auto;
    width: auto;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* 금액은 남는 자리를 다 쓰고 그 안에서 오른쪽 끝, 즉 버튼 바로 앞에 붙는다.
     왼쪽에 두면 참고사항에 바짝 붙어 두 글자 덩어리가 하나처럼 보였다("참고사항 바로
     옆에 있으니까 좀 그렇다"). 오른쪽에 붙이면 카드마다 금액의 오른쪽 끝이 한 줄로
     맞아서 목록을 세로로 훑을 때 값 비교가 된다 - 가운데 정렬은 금액 자릿수(5,000 과
     150,000)에 따라 좌우로 흔들려 그 줄이 안 생긴다.
     "단가 인하" 딱지가 붙은 매체는 이 줄이 딱지 + 금액이라 320px 짜리 화면에서 버튼과
     부딪힐 수 있다 - 그때는 딱지가 금액 위로 접히게 두고 줄 자체는 지킨다(로컬 자료에는
     단가 인하 매체가 없어 눈으로는 못 봤다. 그래서 부딪히지 않게 막아만 둔다) */
  .list_price_top {
    flex: 1 1 auto;
    justify-content: right;
    flex-wrap: wrap;
    min-width: 0;
    padding-right: 4px;
  }

  .list_price_top > p {
    font-size: 17px;
    font-weight: 700;
  }

  /* 버튼은 오른쪽에. 손가락으로 짚을 넓이(44px 높이)는 지키되 폭은 글자에 맞춘다 */
  .list_purchase_btn_wrap {
    margin-top: 0;
    flex: none;
    width: auto;
  }

  .list_purchase_btn {
    width: auto;
  }

  .list_time_average {
    display: flex;
    align-items: center;
    justify-content: left;
  }

  .list_time_average > span {
    padding-right: 5px;
  }

  #renewal_list_category_wrap {
    padding: 10px 20px;
  }

  #renewal_search_wrap h2 {
    text-align: center;
    padding-left: 0;
  }

  .list_purchase_btn input {
    height: 40px;
    line-height: 40px;
    min-width: 132px;
    padding: 0 18px;
    font-size: 15px;
  }

  .style_select {
    position: i;
  }

  .select_theme .style_select .new_option-list {
    position: fixed;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    padding: 9px;
    top: 160%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 899;
  }

  #background_option_list {
    width: 100vw;
    background-color: #000;
    top: 0;
    height: 100vh;
    display: block;
    position: fixed;
    left: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .select_theme .style_select .new_option-list.active {
    opacity: 1;
    top: 250%;
    pointer-events: auto;
  }

  #background_option_list.active {
    opacity: 0.4;
    pointer-events: auto;
  }
}

@media (max-width: 345px) {
  .select_theme .style_select {
    padding: 4px 4px;
    font-size: 13px;
  }

  .select_theme .style_select {
    width: 110px;
    min-width: 110px;
  }

  .list_tag_info > p {
    margin-left: 5px;
  }

  .product_list_name {
    width: fit-content;
  }

  .product_list_port {
    width: fit-content;
  }
}

/* ── AI 스마트 매칭 배너 ── */
.ai-banner-outer {
  max-width: 1080px;
  margin: 0 auto;
  /* 좌우 여백은 #list_renewal_wrap 과 같은 값이어야 한다(위 주석 참고) */
  padding: 8px 20px;
  position: relative;
  z-index: 100;
}
.ai-banner-outer.is-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9997;
  max-width: 100%;
  padding: 8px 50px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  transition: top 0.25s ease;
}
.ai-banner-outer.is-sticky .ai-banner {
  max-width: 980px;
  margin: 0 auto;
}
.ai-banner {
  position: relative;
  background: linear-gradient(to bottom right, #f5f3ff, #faf5ff, #eef2ff);
  border: 1px solid rgba(196, 181, 253, 0.6);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}
.ai-banner:hover { border-color: #a78bfa; }
.ai-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(167,139,250,0.05), rgba(192,132,252,0.05), rgba(129,140,248,0.05));
  opacity: 0;
  transition: opacity 0.5s;
}
.ai-banner:hover::before { opacity: 1; }
.ai-banner::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 128px; height: 128px;
  background: linear-gradient(to bottom right, rgba(196,181,253,0.1), transparent);
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.ai-banner-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  z-index: 10;
}
.ai-icon-box {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(to bottom right, #7c3aed, #a855f7, #4f46e5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(196,181,253,0.5);
  transition: box-shadow 0.3s, transform 0.3s;
}
.ai-banner:hover .ai-icon-box {
  box-shadow: 0 6px 12px rgba(167,139,250,0.5);
  transform: scale(1.05);
}
.ai-icon-box svg { width: 20px; height: 20px; color: #fff; }
.ai-text { min-width: 0; }
.ai-text-main {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  margin:0;
}
.ai-text-main-mobile { display: none; }
.ai-text-sub {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 0;
}
.ai-btn-wrap {
  position: relative;
  flex-shrink: 0;
}
.ai-btn-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(to right, #7c3aed, #a855f7, #ec4899);
  border-radius: 12px;
  opacity: 0.6;
  filter: blur(4px);
  transition: opacity 0.3s, filter 0.3s;
}
.ai-btn-wrap:hover .ai-btn-glow {
  opacity: 1;
  filter: blur(8px);
}
.ai-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(to bottom right, #7c3aed, #9333ea, #4f46e5);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}
.ai-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.ai-btn-wrap:hover .ai-btn::before { opacity: 1; }
.ai-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease-out;
}
.ai-btn-wrap:hover .ai-btn::after { transform: translateX(100%); }
.ai-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.ai-btn-content svg { width: 16px; height: 16px; color: #fff; }
.ai-btn-content .sparkle-icon { animation: ai-pulse 2s infinite; }
.ai-btn-content .chevron { opacity: 0.8; transition: transform 0.3s; }
.ai-btn-wrap:hover .chevron { transform: translateX(2px); }
.ai-btn-text-desktop {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
.ai-btn-text-mobile {
  display: none;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
/* AI 칸과 원고 대필 칸을 나란히(11/12 대표: 긴 AI 줄을 둘로 쪼개고 대필 신청을 넣자).
   같은 날 "알록달록하면 싸 보인다, 깔끔하고 고퀄로": 두 칸을 같은 흰 판·얇은 선 하나·검은 선 아이콘·파란 글자 링크로 맞춘다.
   보라 그라데이션·빛 번짐·반짝이 깜빡임은 이 두 칸에서는 뺀다(애플처럼 덜어 내기) */
.ai-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* 11/12 세 번째 판("아이콘 때문인가, 허접하다"): 아이콘·선·단추를 모두 빼고 글자로만. 작은 이름표 + 큰 제목 + 화살표, 옅은 회색 판 두 장 */
.ai-banner-outer.is-sticky .ai-duo { max-width: 980px; margin: 0 auto; }
.ai-banner-outer .ai-duo .ai-banner, .ai-banner-outer.is-sticky .ai-duo .ai-banner { max-width: none; width: auto; margin: 0; }
.ai-duo .ai-banner, .cw-banner {
  position: relative; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #f5f6f8; border: 0; border-radius: 18px; padding: 22px 26px;
  text-decoration: none; color: #191f28; cursor: pointer; overflow: hidden;
  transition: background-color .25s ease;
}
.ai-duo .ai-banner:hover, .cw-banner:hover { background: #f5f6f8; text-decoration: none; color: #191f28; }   /* 판은 그대로, 화살표만 반응(11/12 "회색 되는 것보다") */
.ai-duo .ai-banner::before, .ai-duo .ai-banner::after { display: none; }
.ai-duo .ai-banner-left { gap: 0; min-width: 0; }
.ai-duo .ai-icon-box, .cw-ic, .ai-duo .ai-btn-wrap, .cw-btn { display: none !important; }
.ai-duo .ai-text, .cw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.duo-eb { font-size: 13px; font-weight: 700; color: #2563eb; letter-spacing: -.01em; }
.ai-duo .ai-text-main, .cw-main { font-size: 17px; font-weight: 700; color: #191f28; letter-spacing: -.025em; line-height: 1.35; word-break: keep-all; margin: 0; }
.ai-duo .ai-text-sub, .cw-sub { font-size: 14px; color: #8b95a1; line-height: 1.45; word-break: keep-all; margin: 0; }
.cw-main-m { display: none; }
.duo-go { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #191f28; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.duo-go svg { width: 17px; height: 17px; }
.duo-go { transition: transform .3s cubic-bezier(.2,.7,.3,1), background-color .25s ease, color .25s ease; }
.ai-duo .ai-banner:hover .duo-go, .cw-banner:hover .duo-go { transform: translateX(3px); background: #191f28; color: #fff; }
.ai-banner-outer.is-sticky .ai-duo .ai-banner, .ai-banner-outer.is-sticky .cw-banner { padding: 12px 20px; border-radius: 14px; }
.ai-banner-outer.is-sticky .duo-eb, .ai-banner-outer.is-sticky .ai-text-sub, .ai-banner-outer.is-sticky .cw-sub { display: none; }
.ai-banner-outer.is-sticky .ai-text-main, .ai-banner-outer.is-sticky .cw-main { font-size: 15px; }
/* 내려서 위에 붙으면 짧은 이름만(11/12): AI 스마트 매칭 / 대필 신청 */
.ai-duo .duo-short { display: none; }
.ai-banner-outer.is-sticky .ai-duo .ai-text-main-desktop, .ai-banner-outer.is-sticky .ai-duo .ai-text-main-mobile,
.ai-banner-outer.is-sticky .cw-main-d, .ai-banner-outer.is-sticky .cw-main-m { display: none !important; }
.ai-banner-outer.is-sticky .ai-duo .duo-short { display: block !important; }
/* 고정 바는 짧은 이름 하나라 가운데로 모으고 화살표를 글자 바로 옆에(11/12 "왼쪽 정렬이 맞나?") */
.ai-banner-outer.is-sticky .ai-duo .ai-banner, .ai-banner-outer.is-sticky .cw-banner { justify-content: center !important; gap: 10px !important; }
.ai-banner-outer.is-sticky .ai-duo .ai-banner-left, .ai-banner-outer.is-sticky .ai-duo .ai-text, .ai-banner-outer.is-sticky .cw-text { flex: 0 0 auto; }
.ai-banner-outer.is-sticky .duo-go { width: 30px; height: 30px; }
@media (max-width: 1023px) {
  .ai-duo .ai-text-sub, .cw-sub { display: none; }
}
@media (max-width: 767px) {
  .ai-duo { gap: 8px; }
  .ai-duo .ai-banner, .cw-banner, .ai-banner-outer.is-sticky .ai-duo .ai-banner, .ai-banner-outer.is-sticky .cw-banner { padding: 14px 14px 14px 16px; border-radius: 14px; gap: 8px; }
  .duo-eb { display: none; }   /* 휴대폰은 제목이 곧 이름(원고 대필·AI 매체 추천)이라 겹친다 */
  .ai-duo .ai-text-main-desktop, .cw-main-d { display: none; }
  .ai-duo .ai-text-main-mobile, .cw-main-m { display: block; font-size: 15px; font-weight: 700; color: #191f28; letter-spacing: -.02em; }
  .duo-go, .ai-banner-outer.is-sticky .duo-go { width: 26px; height: 26px; }
  .duo-go svg { width: 14px; height: 14px; }
}
@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (max-width: 767px) {
  .ai-banner-outer { padding: 6px 12px; }
  .ai-banner-outer.is-sticky { padding: 4px 12px; }
  .ai-banner { padding: 10px 14px; border-radius: 12px; }
  .ai-icon-box { width: 30px; height: 30px; border-radius: 10px; }
  .ai-icon-box svg { width: 16px; height: 16px; }
  .ai-text-main-desktop { display: none; }
  .ai-text-main-mobile { display: block; font-size: 13px; }
  .ai-text-sub { display: none; }
  .ai-btn-text-desktop { display: none; }
  .ai-btn-text-mobile { display: inline; }
  .ai-btn { padding: 8px 12px; border-radius: 10px; }
  .ai-btn-content svg { width: 14px; height: 14px; }
}

/* 카드 썸네일(매체 로고). 마일리지 목록(#ms .ms-thumb)과 같은 규칙이다 -
   로고는 가로세로 비가 제각각이라 잘리지 않게 contain 으로 넣고 남는 자리는 흰 바탕으로 둔다.
   로고가 없는 매체는 이름 첫 글자 타일을 그린다.
   테두리는 그리지 않는다(로고마다 여백이 달라 상자가 보이면 지저분했다). 카드 왼쪽 면 세로
   가운데에 덧놓는다 - 참고사항 줄이 있어도 로고가 위로 쏠리지 않게 */
.product_list_thumb {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 105px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product_list_thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
.list_thumb_tile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  /* 좁은 화면 썸네일은 84px 에서 더 키우지 않는다. 96px 로 올려 봤더니 이름 칸이 그만큼
     좁아져 배지가 셋인 매체(CP·기명·인터뷰기사)에서 다시 두 줄로 갈렸다 */
  /* 좁은 화면은 카드가 줄바꿈되고 참고사항도 줄 안에 들어오므로 로고를 흐름에 되돌린다 */
  .product_list_style_wrap { padding-left: 16px; }
  .product_list_thumb { position: static; transform: none; flex: none; width: 84px; height: 64px; margin-right: 10px; }

  .list_thumb_tile { font-size: 20px; }
  /* 모바일 카드는 줄바꿈된다. 첫 줄에 썸네일 + 이름 + 포털, 그 아래로 시간과 단가가
     한 줄씩을 다 쓴다. 썸네일이 84 + 여백 10 = 94px 을 가져가는데, 이름/포털을 남은 폭의
     반씩으로 나누면 배지가 셋인 매체(예: CP·기명·인터뷰기사)에서 "기명" 이 두 줄로 갈렸다.
     포털은 동그라미 셋이라 필요한 폭이 정해져 있으므로 그만큼만 쓰게 하고(오른쪽 끝에 붙인다)
     나머지를 전부 이름 칸에 준다 */
  .product_list_name { width: auto; flex: 1 1 0; min-width: 0; }
  .product_list_port { width: auto; flex: none; margin-left: auto; }
  /* 배지가 셋(CP·기명·블록체인)이고 이름 칸이 좁으면 배지 하나가 "기/명" 처럼 글자 가운데서
     쪼개져 세로로 늘어났다. 배지는 글자를 안 자르고 통째로 다음 줄로 내린다 */
  .product_list_tag { flex-wrap: wrap; row-gap: 4px; }
  .product_list_tag > [class^="list_tag"] { white-space: nowrap; flex: none; }
  /* 좁은 화면 이름은 18px 이 커 보인다("크기 더 줄여야 될 듯"). 16px 에서 시작하고, 그래도
     넘치는 긴 이름은 list.php 의 fitListNames 가 12px 까지 더 줄인다 */
  .product_list_title h4 { font-size: 16px; }
}

/* 모바일: 아래로 스크롤하면 상단 헤더·검색창·AI 배너를 위로 숨기고, 위로 올리면 다시 보여준다 (list.php 스크롤 방향 감지) */
@media (max-width: 768px) {
  #new-header {
    transition: transform 0.25s ease;
  }
  #new-header.is-scroll-hide {
    transform: translateY(-100%);
  }
  #list_fixed_header_wrap.is-scroll-hide {
    /* 막대가 70px + 머리 높이 차이(--hd-shift)에 서 있으니 숨길 때도 그만큼 더 올린다(10/14 위 끝에 걸림) */
    transform: translateY(calc(-100% - 70px - var(--hd-shift, 0px)));
  }
  .ai-banner-outer.is-sticky {
    transition: top 0.25s ease, transform 0.25s ease;
  }
  .ai-banner-outer.is-sticky.is-scroll-hide {
    transform: translateY(-100%);
    box-shadow: none;
  }
}

/* 신규 매체 NEW(우리 사이트에 처음 올라온 지 30일 안). 제목 글자 크기 맞춤(h4)에 끼지 않게 h4 밖에 둔다 */
.product_list_title { display: flex; align-items: center; gap: 6px; }
.list_new_tag { flex: none; display: inline-block; padding: 1px 6px; border-radius: 4px; background: #e8352b; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .3px; line-height: 16px; }

/* /theme/s005/css/renewal/item_order.css */
/* ====== Modal Layout (기본 주문 폼) ====== */
#largeModal .modal-dialog { width: 1100px; max-width: 96%; margin-top: 20px; }
#largeModal .modal-header { border-bottom: 1px solid #e9edf3; padding: 18px 20px; }
#largeModal .modal-title { font-size: 18px; font-weight: 900; }
#largeModal .modal-body { padding: 18px 20px 10px; background:#f7f9fc; }
#largeModal .modal-footer { border-top: 1px solid #e9edf3; padding: 14px 20px; background:#fff; }

.pm-wrap { display:flex; gap:16px; }
.pm-left { flex: 1 1 auto; min-width:0; }
.pm-right { flex: 0 0 320px; }

.pm-card { background:#fff; border:1px solid #e9edf3; border-radius:14px; padding:14px; margin-bottom:12px; }
.pm-card-title { font-weight:900; font-size:14px; margin-bottom:10px; color:#111; }

/* 옵션 박스 스타일 */
.pm-option-box {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  min-height: 60px;
  flex-wrap: wrap;
}
.pm-option-box.gray-bg { background: #f3f6fb; border-color: transparent; }

/* 라디오 그룹 */
.pm-radio-group { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.pm-radio { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: 700; color: #111; cursor: pointer; white-space: nowrap; }
.pm-radio input { margin: 0; cursor: pointer; }

/* 예약 입력창 */
.pm-date-inputs { display: flex; gap: 8px; margin-left: 25px; align-items: center; }
.pm-native-input { height: 36px; border-radius: 8px; background: #fff; border: 1px solid #dfe6f0; padding: 0 10px; font-size: 13px; color: #333; }

/* 가격 태그 */
.pm-price-tag { font-size: 11px; color: #fff; background: #2563eb; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 4px; vertical-align: middle; }

/* 텍스트 입력창 스타일 */
.pm-textarea {
  width: 100%;
  min-height: 200px;
  padding: 14px;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}
.pm-textarea:focus { border-color: #2563eb; }

.pm-text-title { width:100%; height:42px; border-radius:12px; border:1px solid #dfe6f0; padding:0 12px; outline:none; transition: border-color 0.2s; }
.pm-text-title:focus { border-color: #2563eb; }

/* 모바일 대응 */
@media (max-width: 992px){
  .pm-wrap { flex-direction:column; }
  .pm-right { width:100%; }
  .pm-option-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pm-date-inputs { margin-left: 0; width: 100%; }
  .pm-native-input { flex: 1; }
  .pm-radio-group { gap: 15px; }
}

/* 기존 공통 스타일 */
.pm-tags{ border:1px solid #dfe6f0; border-radius:12px; padding:10px; background:#fff; }
.pm-tags-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.pm-tag{ display:inline-flex; align-items:center; gap:8px; background:#f3f4f6; border:1px solid #e5e7eb; border-radius:999px; padding:6px 10px; font-weight:700; font-size:12px; }
.pm-tag button{ border:0; background:transparent; cursor:pointer; font-size:14px; line-height:1; padding:0; color:#6b7280; }
.pm-tags input{ width:100%; border:0; outline:0; height:34px; }
.pm-drop{ border:2px dashed #d8e2f0; border-radius:12px; padding:16px 14px; background:#fbfdff; cursor:pointer; text-align:center; color:#6b7280; transition: border-color 0.2s; }
.pm-drop:hover{ border-color:#2563eb; color:#2563eb; }
.pm-filechips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.pm-filechip{ flex: 0 0 calc(50% - 5px); background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pm-filechip .name{ font-size:12px; font-weight:700; color:#111; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 240px; }
.pm-filechip .del{ font-size:12px; color:#ef4444; cursor:pointer; font-weight:900; }
.pm-help{ font-size:12px; color:#6b7280; margin-top:8px; }
.pm-summary-card{ background:#fff; border:1px solid #e9edf3; border-radius:14px; padding:14px; margin-bottom:12px; }
.pm-summary-title{ font-weight:900; font-size:14px; margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; }
.pm-summary-row{ display:flex; justify-content:space-between; padding:10px 0; border-top:1px solid #eef2f7; }
.pm-summary-row:first-of-type{ border-top:0; }
.pm-summary-row .k{ color:#6b7280; font-weight:700; }
.pm-summary-row .v{ color:#111; font-weight:900; }
.pm-summary-row .v.minus{ color:#ef4444; }
.pm-summary-row .v.blue{ color:#2563eb; }
.pm-pay-note{ margin-top:10px; font-size:12px; color:#6b7280; background:#f8fafc; border:1px solid #eef2f7; border-radius:12px; padding:10px 12px; }
.pm-btns{ display:flex; gap:10px; }
.pm-btn-cancel{ flex: 0 0 180px; height:46px; border-radius:12px; border:1px solid #dfe6f0; background:#fff; font-weight:900; }
.pm-btn-submit{ flex: 1 1 auto; height:46px; border-radius:12px; border:0; background:#2563eb; color:#fff; font-weight:900; }

/* ====== CW 스타일 (원고대필 모달) ====== */
#cwOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 20000;

  display: none;
  /* [수정] 상단 정렬 및 여백 조정 */
  align-items: flex-start;
  justify-content: center;
  padding: 10px; /* 전체 패딩 */
  padding-top: 10px; /* 상단 여백 최소화 (화면 위쪽에 붙게) */
  overflow-y: auto;
}

.cwPanel{
  position: relative;
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 20px); /* 화면 높이 거의 다 쓰도록 */
  background:#fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  margin-bottom: 20px;
}

@media (max-width: 768px){
  #cwOverlay{
    padding: 0; /* 모바일은 꽉 차게 */
    padding-top: 0;
    align-items: flex-start;
  }
  .cwPanel{
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

.cwHead{ padding: 16px 18px; border-bottom: 1px solid #eef2f7; display:flex; align-items:center; justify-content:space-between; flex: 0 0 auto; background: #fff; }
.cwTitle{ font-size:18px; font-weight:900; color:#111; }
.cwStep{ font-size:12px; color:#6b7280; margin-top:4px; font-weight:700; }
.cwClose{ width:36px; height:36px; border-radius: 10px; border:1px solid #e5e7eb; background:#fff; font-size: 20px; line-height: 1; cursor:pointer; display: flex; align-items: center; justify-content: center; }
.cwBody{ padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; background:#fff; -webkit-overflow-scrolling: touch; }
.cwFoot{ padding: 14px 18px; border-top: 1px solid #eef2f7; display:flex; gap:10px; background:#fff; flex: 0 0 auto; }
.cwBtn{ height:46px; border-radius:12px; font-weight:900; border:0; cursor:pointer; }
.cwBtnGray{ background:#f3f4f6; color:#111; flex: 1 1 auto; }
.cwBtnBlue{ background:#2563eb; color:#fff; flex: 1 1 auto; }
.cwBtnBlue:disabled{ opacity:.45; cursor:not-allowed; }

.cwBox{ background:#f8fafc; border:1px solid #eef2f7; border-radius: 14px; padding: 14px; margin-bottom:12px; }
.cwMsg{ border-radius: 14px; border:1px solid #dbeafe; background:#eff6ff; padding:14px; font-size: 13px; line-height: 1.5; }
.cwMsg *{ max-width:100%; }

.cwQTitle{ font-weight:900; font-size:16px; margin-bottom:8px; color:#111; }
.cwHelp{ font-size:12px; color:#6b7280; margin-bottom:12px; }

.cwInput, .cwTextarea, .cwSelect{ width:100%; border:1px solid #dfe6f0; border-radius: 12px; padding: 10px 12px; box-sizing: border-box; }
.cwTextarea{ min-height:140px; resize: vertical; }

/* [수정] 라디오/체크박스 리스트 스타일 (flex 적용으로 깨짐 방지) */
.cwChoice {
  display: flex;
  align-items: flex-start; /* 텍스트가 길 경우 상단 정렬 */
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.cwChoice:hover{ background:#f9fafb; }
.cwChoice input{ margin-top: 3px; cursor: pointer; flex-shrink: 0; /* 크기 줄어듦 방지 */ }

.cwRepeatRows{ display:flex; flex-direction:column; gap:10px; }
.cwRepeatRow{ display:flex; align-items:center; gap:10px; }
.cwRepeatLabel{ font-weight:900; color:#111; flex:0 0 auto; }
.cwRepeatInput{ flex:1 1 auto; height:42px; border:1px solid #dfe6f0; border-radius:12px; padding:0 12px; background:#fff; }
.cwRepeatDel{ width:42px; height:42px; border-radius:12px; border:1px solid #fecaca; background:#fff; color:#ef4444; font-weight:900; cursor:pointer; flex:0 0 auto; }
.cwRepeatAdd{ width:100%; height:44px; border-radius:12px; border:1px dashed #cbd5e1; background:#f8fafc; font-weight:900; cursor:pointer; margin-top:10px; }
.cwFilePick{ height:42px; border-radius:12px; border:1px solid #dfe6f0; background:#fff; font-weight:900; padding:0 12px; cursor:pointer; flex:0 0 auto; }
.cwFileName{ flex:1 1 auto; height:42px; display:flex; align-items:center; border:1px solid #dfe6f0; border-radius:12px; background:#fff; padding:0 12px; color:#374151; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 주의사항(Caution) 박스 스타일 */
.cwCautionBox {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 20px; /* 위쪽 여백 */
  margin-bottom: 10px;
  font-size: 13px;
  color: #c53030;
  line-height: 1.5;
}

/* ====== Dropzone 파일 업로드 스타일 ====== */
/* Dropzone 기본 스타일 커스터마이징 */
.dropzone {
  border: 2px dashed #d8e2f0;
  border-radius: 12px;
  background: #fbfdff;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  transition: all 0.2s;
}

/* Dropzone 호버 및 드래그 상태 */
.dropzone:hover,
.dropzone.dz-drag-hover {
  border-color: #2563eb;
  background: #eff6ff;
}

/* Dropzone 메시지 스타일 */
.dropzone .dz-message {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 700;
}

.dropzone .dz-message .dz-button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* 파일 미리보기 영역 */
.dropzone .dz-preview {
  position: relative;
  display: inline-block;
  margin: 10px;
  vertical-align: top;
  background: transparent !important; /* 하얀 배경 제거 */
}

.dropzone .dz-preview:before,
.dropzone .dz-preview:after {
  display: none !important; /* 불필요한 가상 요소 제거 */
}

/* 이미지 미리보기 */
.dropzone .dz-preview .dz-image {
  border-radius: 8px;
  width: 120px;
  height: 120px;
  overflow: hidden;
  display: block;
  z-index: 10;
  background: #f3f4f6;
}

.dropzone .dz-preview .dz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 파일 상세 정보 */
.dropzone .dz-preview .dz-details {
  opacity: 1;
  position: static;
  padding: 8px 0;
  text-align: center;
  background: transparent !important; /* 하얀 배경 제거 */
}

.dropzone .dz-preview .dz-filename {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  margin-top: 8px;
  display: block;
  background: transparent !important; /* 하얀 배경 제거 */
}

.dropzone .dz-preview .dz-filename span {
  color: #374151;
  background: transparent !important; /* 하얀 배경 제거 */
}

.dropzone .dz-preview .dz-size {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  display: none; /* 파일 크기는 숨김 */
}

/* 업로드 진행률 - 흰색 배경 제거 */
.dropzone .dz-preview .dz-progress {
  opacity: 0 !important; /* 완전히 숨김 */
  display: none !important; /* 완전히 숨김 */
  height: 4px;
  background: transparent !important;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
  position: static !important; /* absolute 위치 제거 */
  width: auto !important;
  left: auto !important;
  top: auto !important;
  margin-left: 0 !important;
  pointer-events: none;
}

.dropzone .dz-preview .dz-progress .dz-upload {
  display: none !important;
  height: 100%;
  background: #2563eb;
  transition: width 0.3s;
}

/* 삭제 버튼 */
.dropzone .dz-preview .dz-remove {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dropzone .dz-preview .dz-remove:hover {
  background: #dc2626;
}

/* 성공/에러 상태 - 완전히 숨김 */
.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.dropzone .dz-preview.dz-success .dz-success-mark,
.dropzone .dz-preview.dz-error .dz-error-mark {
  display: none !important;
}

/* 체크마크, X 마크 등 모든 SVG/아이콘 숨김 */
.dropzone .dz-preview .dz-success-mark svg,
.dropzone .dz-preview .dz-error-mark svg {
  display: none !important;
}

.dropzone .dz-preview.dz-error .dz-error-message {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  margin-top: 8px;
  z-index: 1000;
}

/* Dropzone 비활성화 상태 */
.dropzone.dz-clickable {
  cursor: pointer;
}

.dropzone.dz-started .dz-message {
  display: none;
}

/* Dropzone 모든 하얀 배경 제거 */
.dropzone .dz-preview .dz-image:before,
.dropzone .dz-preview .dz-image:after,
.dropzone .dz-preview .dz-details:before,
.dropzone .dz-preview .dz-details:after {
  display: none !important;
}

.dropzone .dz-preview * {
  box-shadow: none !important;
}


#articleEditorOverlay .articleEditorPanel {
  height: 100vh !important;
  width: 100% !important;
}

/* 기사 본문 에디터 높이 - 화면 꽉 채우기 */
/* 최대 높이를 묶으면 긴 글이 칸 밖으로 넘쳐 겹치고 스크롤도 안 됐다(10/16 대표 사진). 칸은 글만큼 늘고, 바깥 창이 스크롤한다 */
#editorContent {
  min-height: calc(100vh - 280px) !important;
  max-height: none !important;
}
#articleEditorOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    z-index: 99999 !important;
}
/* 모바일 대응 */
@media (max-width: 768px) {
  .dropzone {
    min-height: 100px;
    padding: 15px;
  }

  .dropzone .dz-preview .dz-image {
    width: 80px;
    height: 80px;
  }

  .dropzone .dz-preview .dz-filename {
    max-width: 80px;
  }

  /* 모바일에서 드래그 텍스트 숨기고 클릭 텍스트로 변경 */
  #dropzoneDoc .dz-message,
  #dropzoneArticleImg .dz-message,
  #dropzoneProof .dz-message {
    font-size: 0; /* 기본 텍스트 숨김 */
  }

  #dropzoneDoc .dz-message::after {
    content: "파일을 선택하여 업로드하세요";
    font-size: 14px;
    display: block;
  }

  #dropzoneArticleImg .dz-message::after {
    content: "이미지를 선택하여 업로드하세요";
    font-size: 14px;
    display: block;
  }

  #dropzoneProof .dz-message::after {
    content: "증빙자료를 선택하여 업로드하세요";
    font-size: 14px;
    display: block;
  }

  /* 모바일에서 아이콘만 보이도록 */
  .dropzone .dz-message i {
    font-size: 14px !important;
    display: block;
    margin-bottom: 8px;
  }
  /* 모바일 기사 본문 에디터 높이 */
  #editorContent {
    min-height: calc(100vh - 180px) !important;
    max-height: none !important;
    padding: 15px !important;
  }

  /* 모바일 기사 작성 에디터 본문 영역 */
  #articleEditorOverlay .articleEditorBody {
    padding: 10px !important;
  }
  #articleEditorOverlay .articleEditorBody > div {
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #articleEditorOverlay .articleEditorHead {
    padding: 10px 15px !important;
  }
  #articleEditorOverlay #editorTitle {
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
  }
  #articleEditorOverlay #addImageBtn {
    padding: 10px !important;
    margin-top: 8px !important;
  }

}

/* ====== 에디터 placeholder 스타일 ====== */
#editorContent:empty:before {
    content: '기사 본문을 입력해주세요';
    color: #9ca3af;
    pointer-events: none;
}

/* ====== 기사 작성 버튼 및 에디터 이미지 스타일 ====== */
.pm-btn-write {
    width: 100%;
    padding: 15px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.pm-btn-write:hover {
    background: #1d4ed8;
}
.pm-btn-write i {
    margin-right: 8px;
}
.editor-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 2px solid #2563eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.editor-image:hover {
    border-color: #ff6b6b;
}

/* ====== 모바일 스타일 - 입력폼 꽉 차게 ====== */
@media (max-width: 768px) {
    #largeModal .modal-dialog {

        margin: 5px;
        width: calc(100% - 10px);
    }
    #largeModal .modal-content {
        border-radius: 8px;
    }
    #largeModal .modal-body {
        padding: 10px;
    }
    #largeModal .pm-wrap {
        padding: 0;
    }
    #largeModal .pm-left {
        padding: 0;
    }
    #largeModal .pm-option-box {
        padding: 10px;
        margin-bottom: 10px;
    }
    #largeModal .form-group {
        margin-bottom: 10px;
    }
    #largeModal .form-control {
        width: 100%;
    }
    #largeModal #editorContent {
        min-height: 200px;
    }
    #largeModal .article-editor-wrapper {
        margin: 0;
    }

    /* 기사 작성 에디터 오버레이 - 모바일 전체 화면 */
    #articleEditorOverlay {
        overflow-y: auto !important;
    }
    #articleEditorOverlay .articleEditorPanel {
        height: 100vh;
        min-height: 100vh;
    }
    #articleEditorOverlay .articleEditorHead {
        padding: 15px !important;
    }
    #articleEditorOverlay .articleEditorBody {
        flex: 1;
        overflow-y: auto;
    }
    #articleEditorOverlay .articleEditorBody > div {
        padding: 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: calc(100vh - 180px);
    }
    #articleEditorOverlay .articleEditorFoot {
        padding: 15px !important;
        position: sticky;
        bottom: 0;
    }
    #articleEditorOverlay #editorContent {
        min-height: calc(100vh - 280px) !important;
        max-height: none !important;
    }

}
