.blinking {
	border: 10px solid #9ae2ff;
	animation-name: blinking;
	animation-duration: 1s;
	animation-iteration-count: 10000;
}
@keyframes blinking {
	50% {
		border-color: #FFBB26;
	}
}

.product-rating {
	cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
	margin-top:10px;
	margin-bottom:10px;
}

.stars i {
    font-size: 18px; /* ปรับขนาดไอคอนดาว */
    margin-right: 2px;
}

.full-star {
    color: #FFD700; /* สีเหลืองทอง */
}

.half-star {
    color: #FFD700; /* สีเหลืองทอง */
    position: relative;
}

.empty-star {
    color: #ccc; /* สีเทา */
}

.avg_rating-score{
	font-size: 12px;
    text-align: center;
}

.review-summary {
    display: flex;
    flex-wrap: wrap; /* ทำให้ไม่เกินขนาดของ container */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%; /* ป้องกันการล้น */
}

.full-star {
    color: #FFD700;
}

.half-star {
    color: #FFD700;
}

.empty-star {
    color: #ccc;
}

.review-distribution {
    width: 100%; /* ป้องกันการล้นขอบ */
    max-width: 500px; /* จำกัดขนาดไม่ให้เกิน */
}

.review-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    width: 100%; /* ทำให้ bar ไม่เกินขอบ */
	justify-content: center;
}

.bar {
    flex-grow: 1; /* ทำให้ขยายได้ แต่ไม่เกิน */
    max-width: 200px; /* ป้องกันการล้นขอบ */
    height: 10px;
    background: #ddd;
    position: relative;
    border-radius: 5px;
    overflow: hidden; /* ป้องกันไม่ให้เส้นเกิน */
}

.fill {
    height: 100%;
    background: #FFD700;
    border-radius: 5px;
    transition: width 0.3s ease-in-out; /* ทำให้การขยายดูสวยขึ้น */
}

.review-header {
	margin-top: 25px;
}

.review-stars {
	margin-top: 10px;
}
.review-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}
.review-item>p {
	margin-top: 10px;
}

.review-thumbnail {
    width: 120px; /* ขนาด thumbnail */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}
.review-thumbnail:hover {
    transform: scale(1.1);
}
.review-video-player {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
}
.video-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.video-wrapper:hover .play-icon {
    opacity: 1;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.review-media {
    display: flex;
    align-items: center;
    gap: 10px; /* ระยะห่างระหว่างรูปกับวิดีโอ */
    flex-wrap: wrap; /* ถ้าหน้าจอแคบ จะให้มันขึ้นบรรทัดใหม่อัตโนมัติ */
}
.img-thumbnail {
    width: 120px;
    height: auto;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .review-summary {
        display: flex;
        justify-content: center; /* จัดให้อยู่ตรงกลาง */
        align-items: center; /* จัดให้อยู่ตรงกลางแนวตั้ง */
        gap: 20px; /* เพิ่มระยะห่างระหว่างสองส่วน */
    }

    .rating-score, .review-distribution {
        flex: 1; /* ให้แต่ละส่วนขยายครึ่งหนึ่งของพื้นที่ */
        text-align: center; /* จัดเนื้อหาให้อยู่กลาง */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .review-summary {
        flex-direction: column; /* จัดเรียงแนวตั้ง */
        align-items: center; /* จัดให้อยู่ตรงกลาง */
        text-align: center;
    }

    .rating-score {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .review-distribution {
        width: 100%;
        max-width: 500px;
    }
}