/* Reviews Section Styles */

/* Write Review Button */
.write-review-link {
    margin-top: 10px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Rating Display */
.woocommerce-product-rating {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-product-rating .star-rating {
    margin: 0;
    display: inline-block;
    float: none;
    vertical-align: middle;
}

.woocommerce-product-rating .woocommerce-review-link {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: #666;
    text-decoration: none;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
	color: #007cba;
	text-decoration: underline;
}

/* No Rating State */
.no-rating-yet {
	display: flex;
	align-items: center;
	gap: 10px;
}

.no-rating-text {
	color: #999;
	font-size: 14px;
	font-style: italic;
}

.write-review-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #007cba;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #007cba;
    visibility: visible !important;
    opacity: 1 !important;
}

.write-review-btn:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #ffffff;
    text-decoration: none;
}

.write-review-btn i {
    font-size: 12px;
}

/* Reviews Section Container */
.reviews-section-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Reviews Section Wrapper */
.reviews-section-wrapper {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none; /* Hidden by default */
}

.reviews-section-wrapper.active {
    display: block;
}

/* Reviews Section Header */
.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
}

.reviews-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.close-reviews-section {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-reviews-section:hover {
    background-color: #e1e1e1;
    color: #333;
}

/* Reviews Section Content */
.reviews-section-content {
    padding: 25px;
}

/* Reviews List */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.commentlist li {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.commentlist li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Customer Comment */
.customer-comment {
    display: flex;
    gap: 20px;
}

.goal-avata {
    flex-shrink: 0;
}

.goal-image img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.star-rating {
    margin-top: 8px;
    color: #ffc107;
    font-size: 14px;
}

.comment-text {
    flex: 1;
}

.comment-ifo {
    margin-bottom: 10px;
}

.date {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.goal-author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.content-comment {
    color: #555;
    line-height: 1.6;
}

/* Review Form */
#review_form_wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

#review_form h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.comment-form-rating select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-comment textarea:focus {
    outline: none;
    border-color: #007cba;
}

.for-control {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Submit Button */
#reply-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* No Reviews Message */
.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
}

.no-reviews-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.woocommerce-noreviews {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.be-first-review {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.form-submit input[type="submit"] {
    background-color: #007cba;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .reviews-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reviews-section-content {
        padding: 20px;
    }
    
    .customer-comment {
        flex-direction: column;
        gap: 15px;
    }
    
    .goal-avata {
        text-align: center;
    }
}

/* Animation for opening/closing */
.reviews-section-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.reviews-section-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay for mobile */
.reviews-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.reviews-overlay.active {
    display: block;
}

/* Mobile fullscreen reviews */
@media (max-width: 768px) {
    .reviews-section-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        border-radius: 0;
        margin: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .reviews-section-header {
        position: sticky;
        top: 0;
        background: #f8f9fa;
        z-index: 1;
    }
}
