.yith-reviews-needed-container {
    direction: rtl;
    text-align: right;
    margin: 20px 0;
}

.yith-reviews-needed-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.yith-reviews-needed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yith-reviews-needed-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.yith-reviews-needed-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #A0B9B6;
}

.yith-reviews-needed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.yith-reviews-needed-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yith-reviews-needed-product-img {
    flex-shrink: 0;
}

.yith-reviews-needed-product-img img {
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.yith-reviews-needed-product-img img:hover {
    transform: scale(1.04);
}

.yith-reviews-needed-product-details .product-title-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yith-reviews-needed-product-details .product-title-link:hover {
    color: #A0B9B6;
}

.yith-reviews-needed-toggle-btn {
    background-color: #A0B9B6 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.yith-reviews-needed-toggle-btn:hover {
    background-color: #8BA8A5 !important;
    box-shadow: 0 4px 10px rgba(160, 185, 182, 0.3) !important;
}

.yith-reviews-needed-toggle-btn.active {
    background-color: #7A9794 !important;
}

/* Form Styling within Account page context */
.yith-reviews-needed-form-wrapper {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    animation: fadeIn 0.3s ease-out;
}

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

/* YITH Form spacing enhancements inside our wrapper */
.yith-reviews-needed-form-wrapper .yith-ywar-edit-forms {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.yith-reviews-needed-form-wrapper .form-header {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #444;
}

.yith-reviews-needed-form-wrapper .form-element {
    margin-bottom: 16px !important;
}

.yith-reviews-needed-form-wrapper textarea.review-content {
    min-height: 120px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.yith-reviews-needed-form-wrapper textarea.review-content:focus {
    border-color: #A0B9B6;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .yith-reviews-needed-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .yith-reviews-needed-toggle-btn {
        width: 100%;
        text-align: center;
    }
}
