.reviews-widget {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    position: relative;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.reviews-nav {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-arrow {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #66C293;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background: #66C293;
    color: #fff;
    border-color: #66C293;
}

.nav-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.trustpilot-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-summary {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.trustpilot-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.trustpilot-logo .star {
    font-size: 50px;
    color: #66C293;
    margin-right: 8px;
}

.trustpilot-logo .text {
    font-size: 50px;
    font-weight: bold;
}

.reviews-container {
    position: relative;
    overflow: hidden;
    margin: 0 -10px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 0 10px;
}

.review-item {
    flex: 0 0 calc(25% - 15px); /* 4 items per row by default */
    min-width: calc(25% - 15px);
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #66C293;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

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

.review-author {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.review-author:hover {
    text-decoration: underline;
}

.review-count {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.review-stars {
    color: #66C293;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-content {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    color: #666666;
    font-size: 12px;
}

/* Light theme styles */
.reviews-widget[data-theme="light"] {
    background-color: #ffffff;
    color: #333333;
}

/* Dark theme styles */
.reviews-widget[data-theme="dark"] {
    background-color: #2d2d2d;
    color: #ffffff;
}

.reviews-widget[data-theme="dark"] .review-item {
    background-color: #3d3d3d;
    border-color: #444444;
}

.reviews-widget[data-theme="dark"] .review-content {
    color: #ffffff;
}

.reviews-widget[data-theme="dark"] .review-author {
    color: #ffffff;
}

.reviews-widget[data-theme="dark"] .review-count,
.reviews-widget[data-theme="dark"] .review-date {
    color: #cccccc;
}

.reviews-widget[data-theme="dark"] .nav-arrow {
    background: #3d3d3d;
    border-color: #444444;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .review-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 items per row */
        min-width: calc(33.333% - 14px);
    }
}

@media screen and (max-width: 992px) {
    .review-item {
        flex: 0 0 calc(50% - 10px); /* 2 items per row */
        min-width: calc(50% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .reviews-widget {
        padding: 15px;
    }
    
    .review-item {
        flex: 0 0 calc(100% - 20px); /* 1 item per row */
        min-width: calc(100% - 20px);
    }
    
    .trustpilot-logo .star,
    .trustpilot-logo .text {
        font-size: 40px;
    }
    
    .rating-summary {
        font-size: 16px;
    }
    
    .review-stars {
        font-size: 18px;
    }
    
    .review-content {
        font-size: 13px;
    }
    
    .review-count,
    .review-date {
        font-size: 11px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }
    
    .avatar-initials {
        font-size: 16px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
} 