@charset "UTF-8";
/* ============================================
   p_shop_review - 후기 페이지 디자인 개선 v2
   기존 디자인 시스템 (Pretendard, #005f4c) 유지
   CSS만으로 작동, 마크업 변경 없음
   ============================================ */

/* ---------- 카드 묶음: 상품(article) + 후기(section)을 하나의 카드로 ---------- */

.p_shop_review .com_order_product.has_star {
  background: #fff;
  border: 1px solid #e8eeec;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 20px;
  margin-bottom: 0;
  transition: border-color 0.2s ease;
}

@media screen and (min-width: 1023.9px) {
  .p_shop_review .com_order_product.has_star {
    padding: 24px 28px;
  }
}

.p_shop_review .com_shop_reply {
  background: #fff;
  border: 1px solid #e8eeec;
  border-radius: 0 0 14px 14px;
  margin-top: 0;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

/* 카드 hover 효과 - 상품/후기 같이 떠오르게 */
.p_shop_review .com_order_product.has_star:hover,
.p_shop_review .com_order_product.has_star:hover + .com_shop_reply {
  border-color: #cfddd8;
}

/* ---------- 썸네일 라운드 조정 ---------- */
.p_shop_review .order_product__thumb {
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- 상품 정보 영역: flex-start 정렬로 좌측 고정 ---------- */
.p_shop_review .order_product__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 좌측 정렬 강제 */
  gap: 6px;
}

.p_shop_review .order_product__tit {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
  line-height: 1.4;
  text-align: left;
}

@media screen and (min-width: 1023.9px) {
  .p_shop_review .order_product__tit {
    font-size: 17px;
  }
}

/* ---------- 작성일: 한 줄로 강제, 줄바꿈 방지, 좌측 정렬 ---------- */
.p_shop_review .order_product__txt {
  font-size: 12px;
  font-weight: 400;
  color: #8f8f8f;
  margin: 0 auto 0 0 !important; /* 우측 마진을 auto로 → 좌측 강제 */
  white-space: nowrap;
  text-align: left;
  align-self: flex-start !important;
  width: auto !important;
  justify-content: flex-start !important;
}

/* ---------- 별점: 좌측 정렬 강제 ---------- */
.p_shop_review .order_product__star {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0;
  margin-top: 0;
  height: 16px;
  align-self: flex-start; /* 부모 flex에서 좌측 정렬 */
}

.p_shop_review .order_product__star img {
  display: none;
}

.p_shop_review .order_product__star::before {
  content: "★★★★★";
  font-size: 15px;
  letter-spacing: 2px;
  color: #ffb800;
  line-height: 1;
  font-family: Arial, sans-serif;
}

/* ---------- 후기 본문 ---------- */
.p_shop_review .com_shop_reply .shop_reply__item {
  padding: 18px 20px 16px;
  border-top: 1px solid #f0f3f2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media screen and (min-width: 1023.9px) {
  .p_shop_review .com_shop_reply .shop_reply__item {
    padding: 20px 28px 18px;
  }
}

.p_shop_review .shop_reply__comment {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #2d2d2d;
  word-break: break-word;
  margin: 0;
}

@media screen and (min-width: 1023.9px) {
  .p_shop_review .shop_reply__comment {
    font-size: 15px;
  }
}

/* ---------- 후기 첨부 사진 ---------- */
.p_shop_review .shop_reply__img {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.p_shop_review .shop_reply__img:empty {
  display: none;
}

.p_shop_review .shop_reply__img li {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #ececec;
  transition: transform 0.2s ease;
}

.p_shop_review .shop_reply__img li:hover {
  transform: scale(1.03);
}

.p_shop_review .shop_reply__img li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* ---------- 수정/삭제 버튼 ---------- */
.p_shop_review .shop_reply__btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f0f3f2;
}

.p_shop_review .shop_reply__btns a,
.p_shop_review .shop_reply__btns button {
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #8f8f8f;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.p_shop_review .shop_reply__btns a:hover {
  background: #f5f7f6;
  color: #005f4c;
}

.p_shop_review .shop_reply__btns button:hover {
  background: #fef3f2;
  color: #e01100;
}

/* 아이콘 옆에 라벨 텍스트 추가 */
.p_shop_review .shop_reply__btns a::after {
  content: "수정";
}

.p_shop_review .shop_reply__btns button::after {
  content: "삭제";
}

/* svg_icon 크기 조정 */
.p_shop_review .shop_reply__btns .svg_icon.icon_write_line,
.p_shop_review .shop_reply__btns .svg_icon.icon_waste {
  width: 14px;
  height: 14px;
  min-width: 14px;
}

/* ---------- 더보기 버튼 ---------- */
.p_shop_review .com_paging_more.my_review_btn,
.p_shop_review .com_paging_more.possible_btn {
  margin-top: 28px;
}

/* ---------- 작성 가능한 후기 탭 카드 ---------- */
.p_shop_review .com_order_product__wrap {
  background: #fff;
  border: 1px solid #e8eeec;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

@media screen and (min-width: 1023.9px) {
  .p_shop_review .com_order_product__wrap {
    padding: 24px 28px;
  }
}

.p_shop_review .com_order_product__wrap:hover {
  border-color: #cfddd8;
}

.p_shop_review .com_order_product__wrap .com_order_product {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------- 빈 상태 ---------- */
.p_shop_review .my_like__nodata {
  text-align: center;
  padding: 80px 20px;
}

.p_shop_review .my_like__nodata img {
  width: 72px;
  height: 72px;
  opacity: 0.6;
  margin-bottom: 16px;
}

.p_shop_review .my_like__nodata__txt {
  font-size: 14px;
  color: #8f8f8f;
  font-weight: 500;
}

/* ---------- 모바일 미세조정 ---------- */
@media screen and (max-width: 1023.9px) {
  .p_shop_review .com_order_product.has_star {
    padding: 16px;
    border-radius: 12px 12px 0 0;
  }

  /* 모바일에서 has_star의 info 영역이 wrap돼서 50%씩 차지하는 부분 원복 */
  .p_shop_review .com_order_product.has_star .order_product__info {
    flex-wrap: nowrap;
  }

  .p_shop_review .com_order_product.has_star .order_product__txt,
  .p_shop_review .com_order_product.has_star .order_product__star {
    width: auto;
  }

  .p_shop_review .com_shop_reply {
    border-radius: 0 0 12px 12px;
    margin-bottom: 12px;
  }

  .p_shop_review .com_shop_reply .shop_reply__item {
    padding: 14px 16px 12px;
  }

  .p_shop_review .shop_reply__img li {
    width: 60px;
    height: 60px;
  }

  .p_shop_review .order_product__tit {
    font-size: 14px;
  }

  .p_shop_review .order_product__star::before {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .p_shop_review .shop_reply__comment {
    font-size: 13px;
  }
}