section{
    width: auto;
}

.text-center {
    text-align: center;
}

.anchor-target {
    scroll-margin-top: 140px;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: auto;
}

.border-bottom {
    border-bottom: 1px solid #F3F3F3;
}

.bg-red {
    background-color: #CC0000;
}

.bg-gray {
    background-color: #797A7C;
}

.text-red {
    color: #CC0000;
}

.text-black {
    color: #202124;
}

/* TOP BANNER */
.layoutArea {
    margin-bottom: 40px;
}

.customer-voice{
    margin-top: 40px;
}

h2.contentsTitle{
    font-size: 3rem;
    font-weight: bold;
    text-decoration:none;
	height: 50px;
	line-height: 50px;
	text-indent: 15px;
    display:block;
    color: #000000;
	background:#ffffff url('../img/receive/title_point.png') left no-repeat;
    margin-bottom: 0;
}

/* Review Total */
.review-total {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px 0;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.review-rating-number {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 24px;
    color: #FFC107;
    line-height: 1;
    display: inline-block;
}

.star-filled {
    color: #FFC107;
}

.star-half {
    position: relative;
    color: #E5E7EB;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
}

.star-half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 91%;
    height: 100%;
    overflow: hidden;
    color: #FFC107;
    display: block;
    line-height: 24px;
    clip-path: polygon(0 0, 61% 0, 61% 100%, 0 100%);
}

.review-count {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 400;
}

/* Review Filter */
.review-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px 0;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 16px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover:not(.active) {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.filter-btn.active {
    background-color: #01b5aa !important;
    border-color: #01b5aa !important;
    color: #FFFFFF !important;
}

.filter-btn.active:hover {
    background-color: #01b5aa;
    border-color: #01b5aa;
}

.filter-text {
    display: inline-block;
}

.sort-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    line-height: 1;
    margin-left: 4px;
    width: 12px;
    height: 14px;
}

.sort-arrow {
    font-size: 11px;
    color: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    height: 7px;
    display: block;
    line-height: 1;
}

.filter-btn.active .sort-arrow {
    color: #FFFFFF;
    opacity: 0;
}

.filter-btn.active .sort-arrow.active {
    opacity: 1 !important;
    font-weight: bold;
}

.filter-btn:not(.active) .sort-arrow {
    opacity: 0;
}

.filter-btn:not(.active) .sort-arrow.active {
    opacity: 0;
}

.sort-arrow.sort-asc {
    margin-bottom: -2px;
}

.sort-arrow.sort-desc {
    margin-top: -2px;
}



/* Reviews Container */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.review-item {
    padding: 24px 0;
}

.review-item:first-child {
    border-top: 1px solid #F3F3F3;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    color: #FFC107;
    font-size: 16px;
    letter-spacing: 2px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.reviewer-name {
    color: #4B5563;
}

.separator {
    color: #D1D5DB;
}

.verified-buyer {
    color: #cc0000;
    font-weight: 500;
}

.device-type {
    display: flex;
    align-items: center;
    gap: 4px;
}

.device-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.device-text {
    font-size: 14px;
    color: #4B5563;
}

.review-date {
    color: #9CA3AF;
    font-size: 14px;
}

.review-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.review-body {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.review-product {
    font-size: 14px;
    color: #01b5aa;
    margin-bottom: 12px;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

.helpful-icon {
    font-size: 12px;
}

.helpful-count {
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 40px 0;
    padding: 0 20px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.pagination-btn.active {
    background-color: #cc0000;
    color: #FFFFFF;
    border-color: #cc0000;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination-ellipsis:hover {
    background: transparent;
}


.pagination-btn:disabled,
.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.helpful-btn:disabled,
.helpful-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width:799px) {

    h2.contentsTitle{
        font-size: 2.2rem;
        height: auto;
        text-indent: 0;
        padding-left: 15px;
        line-height: 1.2;
    }

    /* Review Total Mobile */
    .review-total {
        margin: 20px 0 15px 0;
        padding: 0 16px;
        gap: 10px;
    }

    .review-rating-number {
        font-size: 28px;
    }

    .star {
        font-size: 20px;
    }

    .review-count {
        font-size: 13px;
    }

    /* Review Filter Mobile */
    .review-filter {
        margin: 20px 0 15px 0;
        padding: 0 16px;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 4px;
    }

    .sort-arrow {
        font-size: 9px;
    }

    /* Reviews Mobile */
    .reviews-container {
        margin: 30px auto;
        padding: 0 16px;
    }

    .review-item {
        padding: 20px 0;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .review-rating {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stars {
        font-size: 14px;
    }

    .reviewer-info {
        font-size: 12px;
        gap: 6px;
    }

    .device-icon {
        width: 12px;
        height: 12px;
    }

    .device-text {
        font-size: 12px;
    }

    .review-date {
        font-size: 12px;
        align-self: flex-end;
    }

    .review-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .review-body {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .review-product {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .helpful-btn {
        padding: 6px 12px;
        font-size: 13px;
        gap: 4px;
    }

    .helpful-icon {
        font-size: 14px;
    }

    /* Pagination Mobile */
    .pagination-container {
        margin: 30px 0;
        padding: 0 16px;
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* 모바일에서는 일부 페이지 번호만 표시 (로직에서 제어) */
    .pagination-number {
        display: flex;
    }

}