
div:has(> .rev-card) {       
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    margin-bottom: 40px;
}

.rev-card {
    background: #fff;
    border: 1px solid #f0f0f0; 
    border-radius: 12px;       
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;              
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.rev-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color); 
}

.reviews-page .rev-card .review_container {
    border-bottom: none !important;
}

.review_container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rev-card .star-rating {
    color: #FFC107; 
    font-size: 14px;
    margin-bottom: 15px;
    order: 1; 
    font-family: 'WooCommerce'; 
}

.review-author {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5; 
    order: 2;
}

.review-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
    font-style: normal;
    font-weight: 400;
}

.review-text {
    order: 3;
    flex-grow: 1; 
}

.review-text .description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.rev-card .clear {
    display: none;
}

@media (max-width: 600px) {
    
    div:has(> .rev-card),
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}