/* ========================================
   ReviewDetail Component
   리뷰 상세보기 컴포넌트 (이미지 슬라이더 + 내용)
======================================== */

/* 이미지 슬라이더 */
.c-review-detail-slider {
    overflow: hidden;
    width: 100%;
    height: 100%;
    visibility: hidden; /* 초기 숨김 */
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
}

.c-review-detail-slider.loaded {
    visibility: visible;
    opacity: 1;
}

.c-review-detail-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 2;
    pointer-events: none;
}

.c-review-detail-slides {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
}

.c-review-detail-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.c-review-detail-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========================================
   StarRating Component
   별점 표시 컴포넌트 (Figma 디자인 기반)
======================================== */
.c-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.c-star-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 개별 별 컨테이너 */
.c-star-rating-star {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* 빈 별 (배경) */
.c-star-rating-star-empty {
    display: block;
}

.c-star-rating-star-empty img {
    display: block;
    width: 100%;
    height: 100%;
}

/* 채워진 별 (오버레이) */
.c-star-rating-star-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    display: block;
}

.c-star-rating-star-filled img {
    display: block;
    width: auto;
    height: 100%;
}

/* 별점 숫자 */
.c-star-rating-count {
    font-family: var(--font-pretendard);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #212529;
    margin-left: 4px;
}

/* StarRating Sizes - 기본 크기와 small 2가지만 사용 */

/* 기본 크기 (size 미지정 시) - Figma 디자인 기준 21px */
.c-star-rating .c-star-rating-star {
    width: 21px;
    height: 21px;
}

.pc.reviewContainer .c-review-section-header .c-star-rating .c-star-rating-star {
    width: 26px;
    height: 26px;
}

.c-star-rating .c-star-rating-count {
    font-size: 14px;
}

/* Small 크기 */
.c-star-rating-small .c-star-rating-star {
    width: 12px;
    height: 12px;
}

.c-star-rating-small .c-star-rating-count {
    font-size: 12px;
}

/* Large 크기 */
.c-star-rating-large .c-star-rating-star {
    width: 32px;
    height: 32px;
}

.c-star-rating-large .c-star-rating-count {
    font-size: 32px;
}

/* StarRating Interactive Mode (클릭 가능) */
.c-star-rating-interactive .c-star-rating-star {
    cursor: pointer;
    transition: transform 0.1s ease;
}

.c-star-rating-interactive .c-star-rating-star:hover {
    transform: scale(1.1);
}

.c-star-rating-interactive .c-star-rating-star:active {
    transform: scale(0.95);
}

/* ========================================
   ReviewContextBox Component
   리뷰 컨텍스트 박스 컴포넌트 (Figma 디자인 기반)
======================================== */
.c-review-context-box {
    /* Layout & Size */
    display: flex;
    flex-direction: column;
    width: 100%;

    /* Background */
    background-color: #ffffff;

    /* Border */
    border: 1px solid #e2e2e2;
    border-radius: 15px;

    /* Box Model */
    box-sizing: border-box;

    /* Typography */
    font-family: var(--font-pretendard);
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;

    /* Shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* PC용 정렬 컨텍스트 박스 래퍼 */
.c-review-context-box-wrapper {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
}

/* PC용 정렬 컨텍스트 박스 */
.c-review-sort-context-box {
    width: auto;
    min-width: 140px;
}

.c-review-context-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 34px;
    min-width: 140px;
    border-bottom: 1px solid #e2e2e2;
}

.c-review-context-item:hover {
    background-color: #f8f8f8;
}

#sort-context-box .c-review-context-item {
    border-radius: 0;
    box-sizing: border-box;
    padding: 10.5px 20px;
    height: 42px;
}

.c-review-context-item:first-child {
    border-radius: 15px 15px 0 0 !important;
}

.c-review-context-item:last-child {
    border-radius: 0 0 15px 15px !important;
    border-bottom: 0;
}

.c-review-context-item.selected {
    background-color: #f0f0f0;
    font-weight: 600;
    color: var(--color-primary);
}

/* ========================================
   ReviewCard Component
   리뷰 카드 컴포넌트 (Figma 디자인 기반)
   - 닉네임, 별점, 날짜, 이미지, 내용 포함
======================================== */
.c-review-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: var(--font-pretendard);
    border-bottom: 1px solid #E8E8E8;
    padding: 16px;
}

.pc .c-review-card {
    padding: 30px 0; 
}

.c-review-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

/* 헤더 영역 (닉네임, 프로필, 메뉴) */
.c-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 33px;
    position: relative;
}

.c-review-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.c-review-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-review-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-review-profile-image img.default {
    width: 14px;
    height: 18px;
}

.c-review-profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.c-review-nickname {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    color: #1d1d1d;
    width: 100%;
}

.c-review-rating-date {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.c-review-date {
    font-weight: 500;
    font-size: 11px;
    line-height: 1.4;
    color: #a1a1a1;
    flex: 1;
    min-width: 0;
}

.pc .c-review-date {
    font-size: 14px;
}

.c-review-menu-button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.c-review-menu-button img {
    width: 3px;
    height: 15px;
}

.c-context-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    margin-top: 4px;
}

.c-context-wrapper.left {
    left: 0;
}

.c-review-body {
    padding-left: 38px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.c-review-addition-info {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.12px;
    color: #8c8c8c;
}

.pc .c-review-addition-info {
    font-size: 14px;
}

.c-review-main-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.pc .c-review-main-section {
    gap: 16px;
}

/* 전화인증, 베스트 뱃지 */
.c-review-badge-row {
    display: flex;
}

.c-review-badge-row > div:first-child {
    margin-right: 4px;
}

.c-review-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    background-color: rgba(56, 161, 105, 0.05);
    border: 0.8px solid #38a169;
    border-radius: 4px;
    padding: 0 6px;
    align-self: flex-start;
}

.c-review-verify-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

.c-review-verify-icon img {
    width: 100%;
    height: 100%;
}

.c-review-verify-text {
    font-weight: 700;
    font-size: 11px;
    line-height: 1.4;
    color: #38a169;
    white-space: nowrap;
}

.c-review-featured-button {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    background: rgba(255, 165, 0, 0.07);
    border: 0.8px solid orange;
    border-radius: 4px;
    height: 24px;
    align-self: flex-start;
}

.c-review-featured-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.c-review-featured-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: orange;
    white-space: nowrap;
}

/* 이미지 갤러리 */
.c-review-images {
    display: flex;
    gap: 4px;
    height: auto;
    height: 145px;
    cursor: pointer;
}

.pc .c-review-images {
    height: 200px;
}

.c-review-images-single .c-review-image-large {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #dcdcdc;
}

.c-review-images-double,
.c-review-images-multiple {
    justify-content: flex-end;
    width: 100%;
}

.c-review-image-half {
    width: 50%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #dcdcdc;
    position: relative;
}

.c-review-image-half img,
.c-review-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-review-image-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25.044px;
    height: 25.044px;
    background-color: #8c8c8c;
    border-radius: 0 0 10px 0;
}

.c-review-image-count {
    position: absolute;
    bottom: 5px;
    right: 4px;
    font-weight: 700;
    font-size: 14.61px;
    line-height: 1;
    color: #ffffff;
    z-index: 1;
}

/* PC - 모든 이미지를 33.3% 크기로 통일 */
.pc .c-review-images-single,
.pc .c-review-images-double,
.c-review-images-triple,
.c-review-images-triple-more {
    justify-content: flex-start;
    width: 100%;
}

.pc .c-review-images-single .c-review-image-large,
.pc .c-review-images-double .c-review-image-half {
    width: calc((100% - 8px) / 3);
}

.c-review-image-third {
    width: calc((100% - 8px) / 3);
    border-radius: 10px;
    overflow: hidden;
    background-color: #dcdcdc;
    position: relative;
}

.c-review-image-third img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 리뷰 내용 */
.c-review-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 16px;
}

.c-review-content-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #656565;
    min-width: 100%;
    word-wrap: break-word;
    transition: max-height 0.3s ease;
}

.pc .c-review-content-text {
    font-size: 15px;
}

.c-review-content-text p {
    margin: 0 0 0 0;
}

.c-review-more-button {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.c-review-more-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    color: #656565;
    letter-spacing: -0.12px;
    white-space: nowrap;
}

.c-review-more-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-review-more-icon img {
    width: 12px;
    height: 6.5px;
    transform: rotate(180deg);
}

.c-review-more-button.expanded .c-review-more-icon img {
    transform: rotate(0deg);
}

.c-review-divider {
    height: 12px;
    width: 1px;
    background-color: #E8E8E8;
}

/* ========================================
   ReviewSectionHeader Component
   리뷰 섹션 헤더 컴포넌트
======================================== */
#c-Review-List {
    padding:0 !important;
}

.reviewContainer {
    margin-top: 60px;
}

.pc.reviewContainer {
    width: 810px;
    margin: 0 auto;
    margin-top: 35px;
}

.c-review-section {
    display: flex;
    flex-direction: column;
    font-family: 'Pretendard', -apple-system, sans-serif;
    border-bottom: 6px solid #f0f0f0;
    padding: 16px !important;
}

.c-review-section.pc {
    margin-top: 50px;
    border-top: 2px solid #ececec;
    padding: 20px 0 !important;
    border-bottom: 6px solid #e8e8e899;
    margin-bottom: 16px;
}

.pc.reviewContainer .c-review-section.pc {
    margin-top: 0;
    border-top: 0;
    padding-top: 0 !important;
    margin-bottom: 0;
    border-bottom: 6px solid #e8e8e8;
}

.c-featured-review-guide + .c-review-section.pc {
    margin-top: 0;
}

.c-review-section.pc.detail {
    padding-bottom: 16px !important;
    margin-bottom: 16px;
}

.c-review-section.pad0 {
    padding: 0 !important;
}

.c-review-section.featured {
    border-top:0;
    margin-top:0;
    border-bottom:0;
}

.reviewContainer .c-review-section {
    padding-top: 8px !important;
}

.pc.reviewContainer .c-review-section {
    padding-top: 0 !important;
    border-bottom: 0;
    margin-bottom: 70px;
}

.pc.reviewContainer .c-review-contents-list {
    /* padding: 30px 0; */
}

.c-review-section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff;
}

.pc .c-review-section-header {
    /* border-bottom: 6px solid #e8e8e899; */
    gap: 8px;
}

/* 정보 섹션 (제목 + 평점 + 참여자) */
.c-review-info-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

/* 상단 (제목 + 작성 버튼) */
.c-review-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pc .c-review-section-top {
    position: relative;
    justify-content: center;
}

.c-pc-modal-close-btn {
    left: 0;
    background: #fff;
    border: none;
    outline: none;
    position: absolute;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 1;
}

.pc .c-review-section-top button {
    position: absolute;
    right: 0;
}

.c-review-title-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.c-review-section-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    color: #1d1d1d;
    margin: 0;
}

.pc.reviewContainer .c-review-section-title {
    font-size: 24px;
}

/* 평점 + 참여자 wrapper */
.c-review-rating-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc .c-review-rating-wrapper {
    margin-top: 5px;
    align-items: center;
    gap: 0;
}

.pc.reviewContainer .c-review-rating-wrapper {
    margin-top: 0;
}

/* 평점 영역 */
.c-review-rating-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 0 5px 0;
}

.pc .c-review-rating-row {
    padding: 16px 0;
}

.c-review-rating-score {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #f45859;
    top: 2px;
    position: relative;
}

.c-review-rating-score.gray {
    color: #ccc;
}

.c-review-section-divider {
    width: 450px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #D9D9D9 23.56%, #D9D9D9 77.88%, rgba(255, 255, 255, 0.00) 100%);
    margin-bottom: 16px;
}

/* 참여자 정보 */
.c-review-participants {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.pc .c-review-participants {
    padding-bottom: 16px;
}

.c-review-participants-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.c-review-participants-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.pc .c-review-participants-icon {
    width: 15px;
    height: 15px;
}

.c-review-participants-text {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.12px;
    color: #656565;
    white-space: nowrap;
    line-height: 1;
}

.pc .c-review-participants-text {
    font-size: 14px;
}

.pc.reviewContainer .c-review-participants-text {
    font-size: 15px;
}

.c-review-participants-count,
.c-review-participants-verified {
    color: #f45859;
}

/* 컨트롤 섹션 wrapper (필터 + 정렬 + 구분선) */
.c-review-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 컨트롤 영역 (필터 + 정렬) */
.c-review-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 사진 리뷰 우선보기 */
.c-review-photo-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.c-review-photo-filter-icon {
    width: 17px;
    height: 14px;
    flex-shrink: 0;
}

.c-review-photo-filter-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.c-review-photo-filter.on .c-review-photo-filter-icon img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(98%) saturate(2476%) hue-rotate(200deg)
}
.c-review-photo-filter.on .c-review-photo-filter-text {
    color: #3c8bff;
}

.c-review-photo-filter-text {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.12px;
    color: #656565;
    white-space: nowrap;
    position: relative;
    /* top: 1px; */
}

.pc .c-review-photo-filter-text {
    font-size: 14px;
}

/* 오른쪽 액션 영역 (운영정책 + 정렬) */
.c-review-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.pc .c-review-actions {
    font-size: 14px;
}

.c-review-policy {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.12px;
    color: #656565;
    white-space: nowrap;
    cursor: pointer;
}

/* 정렬 버튼 */
.c-review-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.c-review-sort-label {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.12px;
    color: #656565;
    white-space: nowrap;
}

.c-review-sort-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    display: block;
    position: relative;
    top: -1px;
}

/* ========================================
   ReviewPolicy Component
   리뷰 운영정책 내용 컴포넌트
======================================== */
.c-review-policy-content {
    padding: 15px 16px 30px;
    font-family: var(--font-pretendard);
    line-height: 1.6;
}

.c-review-policy-section {
    padding: 20px;
    margin-bottom: 8px;
}

.c-review-policy-section:last-child {
    margin-bottom: 0;
}


.c-review-policy-list {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
}

.c-review-policy-list li {
    position: relative;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #656565;
    padding-left: 8px;
}

.c-review-policy-list li:before {
    content: '•';
    position: absolute;
    left: -8px;
    color: #777;
    font-weight: bold;
}

.c-review-policy-list li:last-child {
    margin-bottom: 0;
}

.c-review-policy-section.bg {
    border-radius: 20px;
    background: #F8F8F8
}

.c-review-policy-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #656565;
}

/* ========================================
   ReviewDetail Component
   리뷰 상세보기 컴포넌트 (MobileLayer black 테마용)
======================================== */
.c-review-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #1d1d1d;
}

/* 이미지 영역 */
.c-review-detail-image-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.c-review-detail-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-review-detail-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 사진 카운터 위치 */
.c-review-detail-counter-wrapper {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 3px;
    background: #656565;
    font-size: 14px;
    z-index: 3; /* 그라데이션 위에 표시 */
}

/* 내용 영역 */
.c-review-detail-content-area {
    height: 180px;
    background: #1d1d1d;
    display: flex;
    flex-direction: column;
}

.c-review-detail-content {
    flex: 1;
    padding: 20px 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: var(--font-pretendard);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.c-review-detail-content p {
    margin: 0 0 8px 0;
}

.c-review-detail-content p:last-child {
    margin-bottom: 0;
}

/* 스크롤바 커스터마이징 (webkit) */
.c-review-detail-content-box::-webkit-scrollbar {
    width: 5px;
}

.c-review-detail-content-box::-webkit-scrollbar-track {
    background: transparent;
}

.c-review-detail-content-box::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 5px;
}

.c-review-detail-content-box::-webkit-scrollbar-thumb:hover {
    background: #c3c3c3;
}

/* ========================================
   ReviewForm Component
   리뷰 작성/수정 폼 컴포넌트 (Figma 디자인 기반)
======================================== */

/* 폼 컨테이너 */
#review-form + .c-toast {
    bottom: 80px;
}

.c-review-form {
    font-family: 'Pretendard', sans-serif;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    width: 100%;
    min-height: 100%;
}

/* 별점 영역 */
.c-review-form-rating-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.c-review-form-rating-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1d1d1d;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
}

.c-review-form-label span.c-review-form-rating-title-required {
    width: 16px;
    height: 16px;
}

.c-review-form-rating-title-required {
    display: inline-flex;
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    font-size: 20px;
    justify-content: center;
}

.c-pc-modal .c-review-form-rating-title-required {
    width: 26px;
    height: 26px;
    font-size: 26px;
}

/* 구분선 */
.c-review-form-divider {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* 후기 작성 영역 */
.c-review-form-content-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.c-review-form-label {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1d;
    display: flex;
    align-items: center;
}

.c-review-form-optional {
    color: #A1A1A1;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.12px;
    margin-left: 4px;
}

/* 전화인증 뱃지 영역 - 가로 배치 */
.c-review-form-verification-area {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-review-form-verification-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #4b4d49;
    letter-spacing: -0.12px;
}

.c-review-form-textarea {
    width: 100%;
    height: 198px;
    padding: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #353535;
    resize: none;
    box-sizing: border-box;
}

.c-review-form-textarea::placeholder {
    color: #a1a1a1;
}

/* 관리 선택 영역 */
.c-review-form-selection-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.c-review-form-selection-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

.c-review-form-selection-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.c-review-form-help-btn {
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 4px;
}

.c-review-form-help-btn img {
    width: 100%;
    height: 100%;
}

/* Select 버튼 - 회색 배경 */
.c-review-form-select-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 6px 8px;
    background: #f2f2f2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
    max-width: 100%;
}

.c-review-form-select-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #656565;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.c-review-form-select-btn img {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* 사진 업로드 영역 */
.c-review-form-photo-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.c-review-form-photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.c-review-form-photo-upload {
    position: relative;
    width: calc((100% - 40px) / 4);
    aspect-ratio: 1;
}

.c-review-form-photo-upload.empty {
    width: 100% !important;
    aspect-ratio: unset;
}

.c-review-form-photo-input {
    display: none;
}

.c-review-form-photo-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    cursor: pointer;
}

.c-review-form-photo-upload.empty .c-review-form-photo-upload-btn {
    flex-direction: row;
    padding: 12.5px 0;
    background: #fff;
    border: 1px dashed #A1A1A1;
    box-sizing: border-box;
}

.c-review-form-photo-empty-text {
    display: none;
}

.c-review-form-photo-upload.empty .c-review-form-photo-upload-btn > .c-review-form-photo-empty-text {
    color: #1d1d1d;
    font-size: 15px;
    font-weight: 700;
    margin-left: 3px;
    display: flex;
    align-items: center;
}

.c-review-form-photo-upload-btn img {
    width: 22px;
    height: 20px;
}

.c-review-form-photo-counter {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #1d1d1d;
    letter-spacing: -0.12px;
}

.c-review-form-photo-upload.empty .c-review-form-photo-counter {
    display: none;
}

.c-review-form-photo-item {
    position: relative;
    width: calc((100% - 40px) / 4);
    aspect-ratio: 1;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    overflow: hidden;
}

.c-review-form-photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(26deg, transparent 34%, #ffffff9c 85%);
    pointer-events: none;
}

.c-review-form-photo-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.c-review-form-photo-loading .c-review-form-photo-placeholder {
    opacity: 0.3;
}

.c-review-form-photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c-review-form-photo-delete {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    padding: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-review-form-photo-delete img {
    width: 18px;
    height: 18px;
}

.c-review-form-photo-notice {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.c-review-form-photo-notice p {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #a1a1a1;
    letter-spacing: -0.12px;
    margin: 0;
}

/* 하단 버튼 - 빨간색 */
.c-review-form-submit-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 16px;
}

/* 에러 메시지 */
.c-review-form-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #f45859;
}

/* ========================================
   더보기 버튼
======================================== */

.c-review-load-more-btn {
    width: calc(100% - 32px);
    margin: 24px 16px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

/* ========================================
   Tooltip Component
   툴팁 컴포넌트
======================================== */
.tippy-box[data-theme='review'] {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background: #ffffff;
    border: 1px solid #4b4d49;
    border-radius: 5px;
    padding: 8px 10px;
    color: #656565;
    pointer-events: none;
    font-weight: 400;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: keep-all;
}

.tippy-box[data-theme='review']  .tippy-content {
    padding: 0;
}
.tippy-box[data-theme='review']  .tippy-arrow {
    display: none;
}

/* ========================================
   Pending Reviews Section
   검토중인 내 리뷰 섹션
======================================== */
.c-review-pending-section {
    padding: 0;
    border-bottom: 6px solid #f0f0f0;
    background: #fffbf0;
    margin-top: -8px;
    padding-top: 8px;
}

.pc.reviewContainer .c-review-pending-section {
    margin: 0 0 30px 0;
    padding: 0;
    background: #fffdf8;
}

.c-review-pending-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.c-review-pending-title {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #1d1d1d;
    margin: 0;
}

.c-review-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #ff9800;
    border-radius: 10px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: #fff;
}

.c-review-pending-list {
    display: flex;
    flex-direction: column;
}

.pc.reviewContainer .c-review-pending-list {
    padding: 0 15px;
}

/* 검토중 뱃지 (인라인) */
.c-review-pending-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #ff9800;
    border-radius: 4px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    color: #ffffff;
}

/* ========================================
   Empty State (리뷰 없음)
======================================== */
.c-review-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.c-review-empty-icon {
    margin-bottom: 16px;
}

.c-review-empty-icon svg {
    display: block;
}

.c-review-empty-text {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    color: #999;
    margin: 0;
}

/* ========================================
   Featured Review Guide
   대표리뷰 설정 안내 배너
======================================== */

.c-featured-review-guide {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF4D9 100%);
    border: 1px solid #FFE4A3;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.c-featured-review-guide.pc {
    margin-left: 15px;
    margin-top: 70px;
}

/* 배경 데코레이션 */
.c-featured-review-guide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.c-featured-review-guide:hover {
    box-shadow: 0 6px 24px rgba(255, 184, 0, 0.15);
    transform: translateY(-2px);
}

/* 아이콘 영역 */
.c-guide-icon-wrapper {
    flex-shrink: 0;
    position: relative;
}

.c-guide-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9500 0%, #FF8000 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.c-guide-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.c-guide-icon svg path {
    fill: #FFFFFF;
    stroke: #FFFFFF;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 콘텐츠 영역 */
.c-guide-content {
    flex: 1;
    min-width: 0;
}

.c-guide-title {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.c-guide-desc {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    line-height: 1.5;
}

/* 버튼 */
.c-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFB800 0%, #ff8000 100%);
    border-radius: 10px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.c-guide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.c-guide-btn:hover::before {
    left: 100%;
}

.c-guide-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF9500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.c-guide-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 184, 0, 0.3);
}

.c-guide-btn svg {
    transition: transform 0.3s ease;
}

.c-guide-btn:hover svg {
    transform: translateX(3px);
}

/* 모바일 대응 - 간소화 버전 */
@media (max-width: 768px) {
    .c-featured-review-guide {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        margin: 30px 16px 0;
        border-radius: 12px;
    }

    .c-guide-icon-wrapper {
        flex-shrink: 0;
    }

    .c-guide-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .c-guide-icon svg {
        width: 20px;
        height: 20px;
    }

    .c-guide-content {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .c-guide-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 0;
    }

    .c-guide-desc {
        display: none; /* 모바일에서는 설명 숨김 */
    }

    .c-guide-btn {
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .c-guide-btn span {
        display: inline;
    }

    .c-guide-btn svg {
        display: none; /* 모바일에서는 화살표 아이콘 숨김 */
    }

    /* 배경 데코레이션 모바일에서 축소 */
    .c-featured-review-guide::before {
        width: 120px;
        height: 120px;
        right: -30px;
    }
}