.wc-custom-reviews-container {
    margin: 30px 0;
}
.wc-custom-reviews-tabs {
    display: flex;
    margin-bottom: 20px;
}
.wc-custom-reviews-tab {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background-color: #f0f8ff;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
	font-weight: 700;
}
.wc-custom-reviews-tab:first-child {
    background-color: #0e793e;
    color: white;
}
.wc-custom-reviews-tab-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}
.wc-custom-reviews-summary {
    display: flex;
    margin-bottom: 30px;
}
.wc-custom-reviews-average {
    flex: 0 0 200px;
    text-align: center;
}
.wc-custom-reviews-average-score {
    font-size: 64px;
    color: #0e793e;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}
.wc-custom-reviews-stars {
    color: #0e793e;
    font-size: 24px;
    margin-bottom: 10px;
}
.wc-custom-reviews-count {
    color: #777;
    font-size: 14px;
}
.wc-custom-reviews-breakdown {
    flex: 1;
    padding-left: 30px;
}
.wc-custom-reviews-breakdown-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.wc-custom-reviews-breakdown-stars {
    flex: 0 0 120px;
    color: #0e793e;
}
.wc-custom-reviews-breakdown-bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}
.wc-custom-reviews-breakdown-fill {
    height: 100%;
    background-color: #0e793e;
    width: 0%;
}
.wc-custom-reviews-breakdown-count {
    flex: 0 0 30px;
    text-align: right;
    color: #777;
}
/* Review list styles */
.wc-custom-reviews-list {
    margin-top: 30px;
}
.wc-custom-reviews-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.wc-custom-reviews-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.wc-custom-reviews-item-author {
    font-weight: bold;
    margin-right: 15px;
}
.wc-custom-reviews-item-date {
    color: #777;
    font-size: 12px;
}
.wc-custom-reviews-item-rating {
    color: #0e793e;
    margin-left: auto;
}
.wc-custom-reviews-item-content {
    line-height: 1.6;
}
/* Review form */
.wc-custom-reviews-form {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.wc-custom-reviews-form-title {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.wc-custom-reviews-form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0e793e;
    border-radius: 3px;
}

/* Cải thiện hiển thị sao đánh giá */
.wc-custom-reviews-form-rating {
    margin-bottom: 25px;
    text-align: center;
}

.wc-custom-reviews-form-rating-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #444;
}

.wc-custom-reviews-form-rating-stars {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    display: inline-flex;
    gap: 5px;
	justify-content: center;
}

.wc-custom-reviews-form-rating-stars .fas,
.wc-custom-reviews-form-rating-stars .far:hover {
    color: #FFD700; /* Màu vàng cho sao */
    transition: color 0.2s ease;
}

.wc-custom-reviews-form-rating-stars .far:hover ~ .far {
    color: #ddd;
}

/* Cải thiện các trường nhập liệu */
.wc-custom-reviews-form-field {
    margin-bottom: 20px;
}

.wc-custom-reviews-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.wc-custom-reviews-form-field input,
.wc-custom-reviews-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wc-custom-reviews-form-field input:focus,
.wc-custom-reviews-form-field textarea:focus {
    border-color: #0e793e;
    box-shadow: 0 0 0 2px rgba(0, 161, 224, 0.2);
    outline: none;
}

.wc-custom-reviews-form-field textarea {
    height: 150px;
    resize: vertical;
}

.wc-custom-reviews-form-field .required {
    color: #e53935;
    margin-left: 3px;
}

/* Cải thiện nút gửi đánh giá */
.wc-custom-reviews-form-submit-wrapper {
    text-align: center;
    margin-top: 10px;
}

.wc-custom-reviews-form-submit {
    background-color: #0e793e;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-custom-reviews-form-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Hiệu ứng hover cho các trường */
.wc-custom-reviews-form-field input:hover,
.wc-custom-reviews-form-field textarea:hover {
    border-color: #bbb;
}

/* Thông báo đăng nhập */
.wc-custom-reviews-login-notice {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 30px;
    color: #555;
}

.wc-custom-reviews-login-notice a {
    color: #0e793e;
    font-weight: bold;
    text-decoration: none;
}

.wc-custom-reviews-login-notice a:hover {
    text-decoration: underline;
}

/* Responsive cho form */
@media (max-width: 768px) {
    .wc-custom-reviews-form {
        padding: 20px 15px;
    }
    
    .wc-custom-reviews-form-rating-stars {
        font-size: 28px;
    }
    
    .wc-custom-reviews-form-submit {
        width: 100%;
    }
}
/* Empty state */
.wc-custom-reviews-empty {
    text-align: center;
    padding: 40px 0;
    color: #777;
}
/* Responsive */
@media (max-width: 768px) {
    .wc-custom-reviews-summary {
        flex-direction: column;
    }
    .wc-custom-reviews-average {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    .wc-custom-reviews-breakdown {
        padding-left: 0;
    }
    .wc-custom-reviews-breakdown-stars {
        flex: 0 0 100px;
        flex-direction: row;
        flex-wrap: nowrap;
    }
	.wc-custom-reviews-form-rating-star{
		font-size: 15px;
	}
}
/* Thêm vào cuối file nếu cần tùy chỉnh thêm */
#wc-custom-reviews-comments .wc-custom-reviews-form {
    margin-top: 30px;
}

#wc-custom-reviews-comments .wc-custom-reviews-item {
    padding: 15px 0;
}

/* Highlight effect */
@keyframes highlight-comment {
    0% { background-color: rgba(0, 161, 224, 0.2); }
    100% { background-color: transparent; }
}

.wc-custom-reviews-item-highlight {
    animation: highlight-comment 3s;
}
/* Styles for replies */
.wc-custom-reviews-item-actions {
    margin-top: 10px;
}

.wc-custom-reviews-reply-link {
    color: #0e793e;
    text-decoration: none;
    font-size: 14px;
}

.wc-custom-reviews-reply-link:hover {
    text-decoration: underline;
}

.wc-custom-reviews-reply-form {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.wc-custom-reviews-reply-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 80px;
    margin-bottom: 10px;
}

.wc-custom-reviews-reply-form input[type="text"],
.wc-custom-reviews-reply-form input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wc-custom-reviews-form-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.wc-custom-reviews-replies {
    margin-top: 15px;
    margin-left: 30px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.wc-custom-reviews-reply {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.wc-custom-reviews-reply:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wc-custom-reviews-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.wc-custom-reviews-reply-author {
    font-weight: bold;
    margin-right: 10px;
}

.wc-custom-reviews-reply-date {
    color: #777;
    font-size: 12px;
}

.wc-custom-reviews-reply-content {
    line-height: 1.5;
}
.wc-custom-reviews-form-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.wc-custom-reviews-form-field textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    resize: vertical;
}
.wc-custom-reviews-form-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.wc-custom-reviews-upload-label {
    color: #0099e5;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wc-custom-reviews-upload-info {
    color: #888;
    font-size: 13px;
}
.wc-custom-reviews-form-rating-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.wc-custom-reviews-form-rating-stars {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.wc-custom-reviews-star-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 8px;
}
.wc-custom-reviews-form-rating-star {
    font-size: 18px;
    color: #ff9800;
    cursor: pointer;
    transition: color 0.2s;
}
.wc-custom-reviews-form-rating-star.selected,
.wc-custom-reviews-form-rating-star:hover {
    color: #ff5722;
}
.wc-custom-reviews-star-text {
    font-size: 12px;
    color: #444;
    margin-top: 2px;
    white-space: nowrap;
}
.wc-custom-reviews-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.wc-custom-reviews-form-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}
.wc-custom-reviews-form-checkbox {
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}
.wc-custom-reviews-form-checkbox input[type="checkbox"] {
    margin-right: 5px;
}
.wc-custom-reviews-form-submit-wrapper {
    text-align: center;
    margin-bottom: 10px;
}
.wc-custom-reviews-form-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 36px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.wc-custom-reviews-form-submit:hover {
	opacity: 0.8;
}
.wc-custom-reviews-form-note {
    font-size: 13px;
    color: #444;
    margin-top: 8px;
    text-align: left;
}
.wc-custom-reviews-form-note a,
.must-log-in a{
    color: #0099e5;
    text-decoration: underline;
}

.wc-custom-reviews-login-required {
	padding-top: 20px;
}
.wc-custom-reviews-form-rating > p.stars {
	display: none;
}
