/* Global Reviews Container - Left Aligned */
.global-reviews-container,
.global-reviews-list,
.global-reviews-grid,
.global-reviews-band,
.global-reviews-carousel {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: left;
    overflow-x: hidden;
}

/* Base Container Styles */
.global-reviews-container,
.global-reviews-list,
.global-reviews-grid,
.global-reviews-carousel,
.global-reviews-band {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* List Layout (Default) */
.global-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Grid Layout */
.global-reviews-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.global-reviews-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.global-reviews-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.global-reviews-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.global-reviews-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Band Layout (Horizontal Scroll) */
.global-reviews-band {
    display: flex;
    overflow-x: hidden;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.global-reviews-band::-webkit-scrollbar {
    height: 8px;
}

.global-reviews-band::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.global-reviews-band::-webkit-scrollbar-thumb {
    background: #4285F4;
    border-radius: 4px;
}

.global-reviews-band .global-review-card {
    min-width: 0px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Carousel Container - Left Aligned */
.global-reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 40px 0;
    text-align: left;
}

.global-reviews-carousel .swiper-wrapper {
    padding: 0;
    align-items: stretch;
    /* Make all slides same height */
}

.global-reviews-carousel .swiper-slide {
    height: auto;
    display: flex;
    /* Ensure child card fills height */
}

.global-reviews-carousel .swiper-slide .global-review-card {
    width: 100%;
}

.global-reviews-carousel .swiper-button-next,
.global-reviews-carousel .swiper-button-prev {
    display: none;
}

.global-reviews-carousel .swiper-button-next:after,
.global-reviews-carousel .swiper-button-prev:after {
    font-size: 16px;
}

.global-reviews-carousel .swiper-pagination {
    bottom: 0 !important;
}

.global-reviews-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    opacity: 1;
}

.global-reviews-carousel .swiper-pagination-bullet-active {
    background: #4285F4;
    width: 20px;
    border-radius: 4px;
}

/* Review Card Styles - Minimal Design */
.global-review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px;
    border-left: 3px solid #4285F4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* Fixed height for all cards */
    height: 200px;
    display: flex;
    flex-direction: column;
}

.global-review-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.global-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.global-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.global-review-author {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-review-rating {
    color: #fbbc05;
    margin-left: auto;
    font-size: 14px;
    flex-shrink: 0;
}

.global-review-text {
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 8px;
    flex: 1;

    /* Limit to 4 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.global-review-card small {
    color: #a0aec0;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .global-reviews-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .global-reviews-grid,
    .global-reviews-grid[data-columns="2"],
    .global-reviews-grid[data-columns="3"],
    .global-reviews-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .global-reviews-band .global-review-card {
        min-width: 280px;
    }

    .global-reviews-carousel .swiper-button-next,
    .global-reviews-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .global-reviews-carousel .swiper-button-next:after,
    .global-reviews-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .global-reviews-grid,
    .global-reviews-grid[data-columns="2"],
    .global-reviews-grid[data-columns="3"],
    .global-reviews-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }

    .global-reviews-band .global-review-card {
        min-width: 260px;
    }

    .global-reviews-carousel .swiper-button-next,
    .global-reviews-carousel .swiper-button-prev {
        display: none;
    }
}