@charset "UTF-8";
/**
 * TICKETNARA 내 리뷰 페이지 스타일
 * @description reviews.jsp 전용 - Figma 2026-02 Redesign
 * @compile css/slecs/components/tn-reviews.css (watchSass 자동 컴파일)
 */
/* ===== 페이지 래퍼 ===== */
.tn-page--reviews {
  padding-bottom: 56px;
  background: var(--bg-color-secondary);
}

html.dark-mode .tn-page--reviews {
  background: var(--bg-color, #2D2A26);
}

.tn-bottom-spacer {
  height: 20px;
}

/* ===== 탭 메뉴 ===== */
.tn-rv-tabs {
  display: flex;
  background: var(--bg-color);
  position: sticky;
  top: 56px;
  z-index: 99;
  box-shadow: 0px 0px 24px rgba(26, 24, 22, 0.16);
}

html.dark-mode .tn-rv-tabs {
  box-shadow: 0px 0px 24px #1A1816;
}

.tn-rv-tabs__btn {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 18px;
  font-family: inherit;
}

.tn-rv-tabs__btn.is-active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

html.dark-mode .tn-rv-tabs__btn.is-active {
  color: var(--text-color);
  border-bottom-color: var(--text-color);
}

/* ===== 리뷰 개수 바 ===== */
.tn-rv-count-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.tn-rv-count-bar__text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  line-height: 16px;
}

/* ===== 탭 컨텐츠 ===== */
.tn-tab-panel {
  display: none;
}

.tn-tab-panel.is-active {
  display: block;
}

/* ===== 리뷰 목록 ===== */
.tn-rv-list {
  display: flex;
  flex-direction: column;
}

/* ===== 빈 상태 ===== */
.tn-rv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}

.tn-rv-empty__icon-wrap {
  width: 56px;
  height: 56px;
  padding: 16px;
  background: var(--border-color, #e5e3df);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-rv-empty__icon-svg {
  width: 20px;
  height: 19px;
  color: var(--text-color-muted);
}

.tn-rv-empty__text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color-muted);
  line-height: 16px;
  text-align: center;
  margin: 0;
}

.tn-rv-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #F9F9F8;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.tn-rv-empty__btn:hover {
  opacity: 0.9;
}

/* ===== 주문 그룹 헤더 ===== */
.tn-rv-order-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 20px;
  background: var(--border-color, #E5E3DF);
  overflow: hidden;
}

.tn-rv-order-header__date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color-muted);
  line-height: 20px;
}

.tn-rv-order-header__dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--border-color);
  flex-shrink: 0;
}

.tn-rv-order-header__status {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 20px;
}

html.dark-mode .tn-rv-order-header__status {
  color: var(--text-color);
}

/* ===== 리뷰 카드 ===== */
.tn-rv-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.tn-rv-card:last-child {
  border-bottom: none;
}

/* 상품 정보 */
.tn-rv-card__product {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-rv-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-color-secondary);
  flex-shrink: 0;
}

.tn-rv-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-rv-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-tertiary, #999);
  font-size: 28px;
}

.tn-rv-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-rv-card__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 14px;
  margin: 0;
}

.tn-rv-card__qty {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color-muted);
  line-height: 14px;
  margin: 0;
}

.tn-rv-card__price-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tn-rv-card__discount {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger-color, #E56060);
  line-height: 18px;
}

.tn-rv-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 18px;
}

.tn-rv-card__price-unit {
  font-weight: 500;
}

/* 리뷰 토글 버튼 */
.tn-rv-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  font-family: inherit;
}

.tn-rv-card__toggle-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color-muted);
  line-height: 12px;
}

.tn-rv-card__toggle-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tn-rv-card__toggle-arrow svg {
  width: 8px;
  height: 5px;
  color: var(--text-color-muted);
}

.tn-rv-card__toggle.is-open .tn-rv-card__toggle-arrow {
  transform: rotate(180deg);
}

/* 리뷰 수정 버튼 */
.tn-rv-card__edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--text-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.tn-rv-card__edit-btn:hover {
  opacity: 0.8;
}

/* 리뷰 콘텐츠 (펼침 영역) */
.tn-rv-card__review {
  display: none;
  margin-top: 16px;
}

.tn-rv-card__review.is-open {
  display: flex;
  gap: 12px;
}

.tn-rv-card__review-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border-color);
  flex-shrink: 0;
}

.tn-rv-card__review-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-rv-card__review-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 별점 */
.tn-rv-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tn-rv-stars__icon {
  width: 20px;
  height: 19px;
  flex-shrink: 0;
}

.tn-rv-stars__icon--filled {
  color: #FBBC05;
}

.tn-rv-stars__icon--empty {
  color: var(--text-color-muted);
}

/* 리뷰 메타 (작성자 | 날짜) */
.tn-rv-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tn-rv-card__meta-name,
.tn-rv-card__meta-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color-muted);
  line-height: 12px;
}

.tn-rv-card__meta-divider {
  width: 1px;
  height: 10px;
  background: var(--border-color);
}

/* 리뷰 텍스트 */
.tn-rv-card__review-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  line-height: 20px;
  margin: 0;
}

/* ===== 작성 가능 카드 ===== */
.tn-rv-pending {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.tn-rv-pending__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tn-rv-pending__product {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-rv-pending__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-color-secondary);
  flex-shrink: 0;
}

.tn-rv-pending__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-rv-pending__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-tertiary, #999);
  font-size: 28px;
}

.tn-rv-pending__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-rv-pending__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 14px;
  margin: 0;
}

.tn-rv-pending__qty {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color-muted);
  line-height: 14px;
  margin: 0;
}

.tn-rv-pending__price-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tn-rv-pending__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 18px;
}

.tn-rv-pending__price-unit {
  font-weight: 500;
}

.tn-rv-pending__discount {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger-color, #E56060);
  line-height: 18px;
}

.tn-rv-pending__write-btn {
  width: 80px;
  flex-shrink: 0;
  padding: 8px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #F9F9F8;
  line-height: 12px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: inherit;
  height: 36px;
}

.tn-rv-pending__write-btn:hover {
  opacity: 0.8;
}

/* ===== 로딩 ===== */
.tn-page--reviews .tn-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color-muted);
  font-size: 14px;
}
