.custom-woo-reviews-container {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.reviews-list {
    margin-bottom: 40px;
}

.custom-review-item {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.review-author {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

.star-rating {
    font-size: 0.9em;
}

.review-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    font-size: 0.85em;
    color: #999;
}

/* Form Styles */
.review-form-wrapper {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.comment-reply-title {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.comment-form-rating select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 200px;
    background: #fff;
}

.comment-form-author, .comment-form-email, .comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-author label, .comment-form-email label, .comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-form-author input, .comment-form-email input, .comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form-author input:focus, .comment-form-email input:focus, .comment-form-comment textarea:focus {
    border-color: #007cba;
    outline: none;
}

#submit {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: #007cba;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#submit:hover {
    background: #005a87;
    transform: scale(1.02);
}

#submit:active {
    transform: scale(0.98);
}

.required {
    color: #d63638;
}

/* Flexible Layouts: Accordion */
.custom-woo-reviews-accordion .review-form-wrapper {
    display: none;
    margin-top: 20px;
}

.custom-woo-reviews-accordion .review-form-wrapper.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.accordion-toggle-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.accordion-toggle-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.accordion-toggle-btn.active {
    background: #333;
}

/* Flexible Layouts: Tabs */
.review-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.review-tabs-nav .tab-link {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.review-tabs-nav .tab-link:hover {
    color: #007cba;
}

.review-tabs-nav .tab-link.active {
    color: #007cba;
}

.review-tabs-nav .tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007cba;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .custom-woo-reviews-container {
        padding: 15px;
    }

    .review-tabs-nav {
        flex-wrap: wrap;
        gap: 5px;
    }

    .review-tabs-nav .tab-link {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1 1 auto;
        text-align: center;
    }

    .custom-review-item {
        padding: 15px;
    }

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

    .review-form-wrapper {
        padding: 20px;
    }

    #submit {
        width: 100%;
        padding: 15px;
    }

    .accordion-toggle-btn {
        width: 100%;
        text-align: center;
    }
}

