/* --- Global Review Styles --- */

/* Basic Styles for Customer Reviews List Container */
.customer-reviews-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Space between review items */
    justify-content: center;
}

/* Base Style for Each Individual Review Item */
.customer-review-item,
.customer-review-slide {
    /* Apply common styles to both list and carousel items */
    /* background-color: #f9f9f9;
    border: 1px solid #eee; */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

/* Individual Review Item Child Elements */
.customer-review-item .cr-reviewer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.customer-review-item .cr-reviewer-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

/* Star Rating Styles */
.customer-review-item .cr-review-rating .dashicons {
    font-size: 20px;
    /* Consistent size for all dashicons within rating */
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.customer-review-item .cr-review-rating .dashicons-star-filled {
    color: #FFD700;
    /* Gold for filled stars */
}

.customer-review-item .cr-review-rating .dashicons-star-empty {
    color: #CCCCCC;
    /* Light grey for empty stars */
}

.customer-review-item .cr-review-text {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.customer-review-item .cr-review-date {
    font-size: 0.8em;
    color: #fff;
}

/* --- Specific Styles for List Display --- */
.customer-reviews-list .customer-review-item {
    flex: 1 1 calc(33% - 20px);
    /* Adjust for 3-column layout with 20px gap */
    max-width: 350px;
    /* Max width for individual review in list */
}

/* --- Specific Styles for Swiper Carousel Display --- */
.customer-reviews-carousel {
    width: 100%;
    height: auto;
    /* Allow height to adjust to content */
    padding-bottom: 40px;
    /* Space for pagination dots */
    padding-top: 20px;
    /* Space for navigation arrows if they overlap content */
}

.customer-review-slide {
    display: flex;
    /* Use flexbox for vertical alignment within slide */
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space vertically */
    align-items: center;
    min-height: 250px;
    /* Minimum height to prevent too short slides */
}

/* Swiper Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
    /* Example color for arrows */
    font-size: 24px;
}

/* Swiper Pagination Dots */
.swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
    /* Example active dot color */
}

/* Responsive adjustments for carousel */
@media (max-width: 767px) {
    .customer-reviews-carousel {
        padding-left: 15px;
        /* Add some padding on small screens */
        padding-right: 15px;
    }

    .customer-review-item .cr-review-text {
        font-size: 1.25rem;
    }
}