.rating-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
}
.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.carousel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}
.user-info {
    flex: 1;
}
.user-name {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #0f172a;
}
.comment {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}
.read-more {
    color: #5b8022;
    cursor: pointer;
    font-weight: 600;
}
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8fafc;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    width: fit-content;
    font-family: 'Inter', sans-serif;
}
.carousel-prev-wrapper, .carousel-next-wrapper {
    display: none;
}:root {
    --primary-theme: #5b8022;
    --primary-theme-dark: #46631a;
    --accent-yellow: #f59e0b;
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --bg-light: #ffffff;
    --bg-container: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* Base */
.enterprise-reviews-wrapper,
.premium-trust-badge {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    box-sizing: border-box;
}

.enterprise-reviews-wrapper * {
    box-sizing: border-box;
}

.star-icon {
    color: var(--accent-yellow);
    font-size: 1.1em;
}
.star-icon.empty {
    color: #cbd5e1;
}

/* Layout */
.enterprise-reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .enterprise-reviews-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar */
.reviews-sidebar {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

@media (min-width: 992px) {
    .reviews-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 24px;
    }
}

/* Overall Score */
.overall-score-box {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.score-stars {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.score-total {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Distribution Bars */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.dist-row:hover {
    background-color: var(--bg-container);
}

.dist-row.active {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.dist-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dist-stars {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    width: 60px;
    text-align: right;
}

[dir="ltr"] .dist-stars {
    text-align: left;
}

.dist-bar-bg {
    flex-grow: 1;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background-color: var(--accent-yellow);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.dist-row:hover .dist-bar-fill {
    background-color: #fbbf24;
}

.dist-pct {
    font-size: 0.875rem;
    color: var(--text-light);
    width: 36px;
    text-align: left;
}

[dir="ltr"] .dist-pct {
    text-align: right;
}

.clear-filter-btn {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background-color: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filter-btn:hover {
    background-color: #e2e8f0;
}

/* Reviews Main Grid */
.reviews-main {
    flex-grow: 1;
    width: 100%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Review Card */
.review-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.review-card.hidden-review {
    display: none !important;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-stars {
    font-size: 1rem;
}

.card-body {
    position: relative;
    flex-grow: 1;
}

.quote-icon {
    position: absolute;
    top: -4px;
    right: 0;
    color: #f1f5f9;
    width: 32px;
    height: 32px;
    z-index: 0;
}

[dir="ltr"] .quote-icon {
    right: auto;
    left: 0;
}

.comment-text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.read-more {
    color: var(--primary-theme);
    font-weight: 600;
    cursor: pointer;
    margin-right: 4px;
}

[dir="ltr"] .read-more {
    margin-right: 0;
    margin-left: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 32px;
}

.load-more-btn {
    background-color: var(--bg-light);
    border: 2px solid var(--primary-theme);
    color: var(--primary-theme);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.load-more-btn:hover {
    background-color: var(--primary-theme);
    color: #ffffff;
}

/* Trust Badge (Summary Shortcode) */
.premium-trust-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 12px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    text-decoration: none;
}

.premium-trust-badge:hover {
    box-shadow: var(--shadow-md);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-score {
    display: flex;
    align-items: baseline;
    color: var(--text-dark);
}

.score-val {
    font-size: 1.5rem;
    font-weight: 800;
}

.score-max {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.badge-stars {
    font-size: 1.25rem;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

[dir="ltr"] .badge-stars {
    padding-left: 0;
    padding-right: 16px;
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.badge-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-count {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.badge-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-theme);
    text-decoration: none;
    margin-top: 2px;
}

.badge-link:hover {
    text-decoration: underline;
}

/* Modal */
.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(4px);
    justify-content: center; 
    align-items: center; 
    z-index: 9999; 
    padding: 20px;
}
.modal.show { 
    display: flex; 
    animation: fadeIn 0.2s ease;
}
.modal-content { 
    background: white; 
    padding: 32px; 
    border-radius: var(--radius-lg); 
    width: 100%; 
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    line-height: 1.6;
    color: var(--text-medium);
}
.close-modal { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: #f1f5f9; 
    border: none; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background 0.2s;
}

[dir="ltr"] .close-modal {
    right: auto;
    left: 16px;
}

.close-modal:hover {
    background: #e2e8f0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden { display: none !important; }



    .badge-content {
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    .score-val {
        font-size: 1.25rem;
    }
    .badge-stars {
        font-size: 1rem;
        padding-left: 8px;
    }
    [dir="ltr"] .badge-stars {
        padding-right: 8px;
    }
    .badge-count {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .badge-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}


/* Mobile Adjustments for Summary Badge */
@media (max-width: 480px) {
    .premium-trust-badge {
        width: fit-content !important;
        max-width: 100%;
        padding: 10px 16px;
    }
    .badge-content {
        flex-wrap: nowrap !important;
        gap: 12px;
    }
    .badge-count, .badge-link {
        white-space: nowrap;
    }
}
