/**
 * WooCommerce Review Carousel styles
 */

/* Main container */
.wrc-review-carousel-container {
    padding: 20px 0;
}

/* Title */
.wrc-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Review item */
.wrc-review-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Minimum height to improve consistency */
}

/* Review header (product image & name) */
.wrc-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wrc-product-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wrc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wrc-review-meta {
    flex: 1;
}

.wrc-product-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.4;
}

.wrc-product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wrc-product-name a:hover {
    color: #0073aa;
}

/* Star rating */
.wrc-star-rating {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 5px;
}

.wrc-star {
    color: #d3d3d3;
    margin-right: 2px;
}

.wrc-star-filled {
    color: #f8b84e;
}

/* Review content */
.wrc-review-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    flex: 1;
}

/* Review footer */
.wrc-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.wrc-reviewer-name {
    color: #777;
}

.wrc-review-date {
    color: #999;
    font-style: italic;
}

/* No reviews placeholder */
.wrc-no-reviews {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Editor placeholder */
.wrc-carousel-placeholder {
    background-color: #f5f5f5;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.wrc-editor-notice {
    color: #666;
    font-style: italic;
}

/* Slick carousel customizations */
.wrc-carousel .slick-prev,
.wrc-carousel .slick-next {
    z-index: 10;
    width: 30px;
    height: 30px;
}

.wrc-carousel .slick-prev {
    left: -30px;
}

.wrc-carousel .slick-next {
    right: -30px;
}

.wrc-carousel .slick-dots li button:before {
    font-size: 10px;
}

/* Swipe Indicator for Mobile */
.wrc-swipe-indicator {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 10px 0;
    margin-top: 10px;
    font-style: italic;
    animation: pulse 1.5s infinite;
    display: none; /* Hidden by default, shown only on mobile */
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .wrc-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wrc-product-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .wrc-review-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wrc-reviewer-name {
        margin-bottom: 5px;
    }
    
    .wrc-carousel .slick-prev {
        left: -15px;
    }
    
    .wrc-carousel .slick-next {
        right: -15px;
    }
    
    .wrc-review-item {
        padding: 15px;
        margin: 5px 0;
        min-height: 220px; /* Slightly taller on mobile */
    }
    
    /* Better padding for mobile carousel items */
    .wrc-carousel .slick-slide {
        padding: 0 5px;
    }
    
    /* Improve mobile slider when product details are hidden */
    .wrc-review-content {
        margin-top: 10px;
    }
    
    /* Show swipe indicator on mobile */
    .wrc-swipe-indicator {
        display: block;
    }
}