.custom-reviews-container {
    max-width: 100%;
    margin: 30px 0;
    font-family: Arial, sans-serif;
}

.reviews-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.review-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.rating-label {
    margin-bottom: 10px;
    font-weight: bold;
}

.star-rating {
    margin-bottom: 15px;
}

.star {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
}

.star.selected {
    color: #FFD700;
}

.review-form-container {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.review-form input[type="text"],
.review-form input[type="tel"],
.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.review-form textarea {
    height: 100px;
}

.submit-review {
    background-color: var(--theme-button-background-initial-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.reviews-count {
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.review-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.reviewer-initial {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-content {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.review-date {
    font-weight: normal;
    color: #777;
    font-size: 0.9em;
}

.review-text {
    margin-bottom: 10px;
}

.review-actions {
    margin-bottom: 15px;
}

.reply-link {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
}

.admin-reply {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.admin-info {
    margin-bottom: 10px;
}

.admin-badge {
    background-color: #e53935;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.reply-date {
    color: #777;
    font-size: 0.9em;
}

.reply-text p {
    margin: 5px 0;
}


/* CSS cho hệ thống đánh giá sao */
.rating-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
}
.rating-container {
    margin-bottom: 20px;
}

.rating-label {
    margin-bottom: 10px;
    font-weight: bold;
}

.star-rating-wrapper {
    display: inline-block;
}

.star-rating {
    border: none;
    float: left;
}

.star-rating > input {
    display: none;
}

.star-rating > label:before {
    content: "\2605";
    margin: 0;
    font-size: 28px;
    font-family: Arial;
    display: inline-block;
    color: #ccc;
    cursor: pointer;
}

.star-rating > label {
    color: #ccc;
    float: right;
    padding: 0 2px;
    cursor: pointer;
}

.star-rating > input:checked ~ label:before,
.star-rating:not(:checked) > label:hover:before,
.star-rating:not(:checked) > label:hover ~ label:before {
    color: #FFD700;
}

.star-rating > input:checked + label:hover:before,
.star-rating > input:checked ~ label:hover:before,
.star-rating > label:hover ~ input:checked ~ label:before,
.star-rating > input:checked ~ label:hover ~ label:before {
    color: #FFED85;
}

.clear:after {
    content: "";
    display: table;
    clear: both;
}

/* CSS cho hiển thị đánh giá sao trong bình luận */
.displayed-rating {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 3px;
}


/* Đảm bảo hiển thị đúng trên các trình duyệt */
.star-rating:after {
    content: "";
    display: table;
    clear: both;
}

/* CSS cho nút "Xem thêm đánh giá" */
.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more-button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.load-more-button:hover {
    background-color: #e64a19;
}

.down-arrow {
    margin-left: 5px;
    font-size: 12px;
}

/* CSS cho "Đang cập nhật..." */
.loading-text {
    display: block;
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    color: #777;
}


/* CSS cho thông báo */
.review-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
}

/* CSS cho phần tải lên hình ảnh */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="file"] {
    padding: 8px 0;
}

.image-preview-container {
    margin-top: 10px;
    display: none; /* Ẩn mặc định, sẽ hiển thị khi có ảnh được chọn */
}

#image-preview {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
}

.remove-image-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 14px;
}

.file-upload-container {
    margin-bottom: 15px;
}

.file-upload-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* CSS cho hiển thị ảnh trong bình luận */
.review-image {
    margin-top: 10px;
    margin-bottom: 10px;
}

.review-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* CSS cho modal xem ảnh */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Thêm vào style.css */
.user-reply-form {
    margin: 10px 0 15px 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.user-reply-form .form-group {
    margin-bottom: 10px;
}

.user-reply-form input,
.user-reply-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.user-reply-form textarea {
    height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.submit-reply-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.cancel-reply-button {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.user-reply {
    margin: 10px 0 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}

.reply-initial {
    background: #eaeaea;
    color: #666;
}

.reply-content {
    flex: 1;
}

.reply-to {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.error-message {
    background: #ffe6e6;
    color: #d63638;
    padding: 10px;
    border-left: 4px solid #d63638;
    margin-bottom: 15px;
}

.success-message {
    background: #e6ffe6;
    color: #00a32a;
    padding: 10px;
    border-left: 4px solid #00a32a;
    margin-bottom: 15px;
}
