.smart-reviews{display:grid;gap:24px;padding:20px 0}
.smart-reviews.layout-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;padding:20px 0;justify-items:stretch}
.smart-reviews.layout-list{display:block !important;gap:0 !important}
.smart-reviews.layout-carousel{display:flex !important;gap:16px;overflow-x:auto;scroll-behavior:smooth;padding:4px;flex-wrap:nowrap}
.smart-review{border:1px solid #e5e7eb;border-radius:12px;padding:20px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.smart-review-header{display:flex;gap:12px;margin-bottom:16px;align-items:flex-start}
.smart-avatar{flex-shrink:0;width:48px;height:48px;position:relative}
.smart-avatar img{border-radius:50%;border:2px solid #f3f4f6;background:#f3f4f6;width:48px;height:48px;object-fit:cover}
.smart-avatar-fallback{position:absolute;top:0;left:0;z-index:1}
.smart-avatar img[style*="display: none"]{display:none}
.smart-user-info{flex:1;min-width:0}
.smart-review h4{margin:0 0 8px;font-size:16px;font-weight:600;color:#111827}
.smart-review h4 a{color:#111827;text-decoration:none;transition:color 0.2s ease}
.smart-review h4 a:hover{color:#3b82f6;text-decoration:underline}
.smart-stars{line-height:1;margin-bottom:8px;color:#ffb400}
.smart-stars .star{font-size:16px;opacity:.35}
.smart-stars .star.filled{opacity:1}
.smart-stars-row{display:flex;align-items:center;gap:8px}
.smart-rating-num{color:#374151;font-size:13px;font-weight:500}
.smart-content{color:#374151;line-height:1.6;margin-bottom:16px}
.smart-meta{color:#6b7280;font-size:12px;margin-top:6px}
.smart-aggregate{margin-bottom:1rem;padding:16px;text-align:center}

/* Default title styling */
.smart-reviews-title{text-align:center;margin-bottom:1.5rem;color:#111827;font-size:1.5rem;font-weight:600}

/* List layout spacing - Force override */
.smart-reviews.layout-list{display:block !important;grid-template-columns:none !important;gap:0 !important}
.smart-reviews.layout-list .smart-review{margin-bottom:16px;width:100%}
.smart-reviews.layout-list .smart-review:last-child{margin-bottom:0}

/* Carousel tweaks - Force override */
.smart-reviews.layout-carousel{display:flex !important;grid-template-columns:none !important;gap:16px !important;overflow-x:auto;scroll-behavior:smooth;padding:4px;flex-wrap:nowrap;position:relative}
.smart-reviews.layout-carousel .smart-review{flex:0 0 320px;min-height:280px;margin:0}
.smart-reviews.layout-carousel .smart-content{font-size:14px}
.smart-reviews.layout-carousel .smart-meta{margin-top:8px}

/* Grid layout improvements */
.smart-reviews.layout-grid .smart-review{height:fit-content;margin:0;width:100%}
.smart-reviews.layout-grid .smart-review:not(:last-child){margin-bottom:0}
.smart-reviews.layout-grid{width:100%;max-width:100%}
.smart-reviews.layout-grid{display:block;column-count:3;column-gap:24px;padding:20px 0}
.smart-reviews.layout-grid .smart-review{display:inline-block;width:100%;margin-bottom:64px;break-inside:avoid;page-break-inside:avoid;box-shadow:0 2px 8px rgba(0,0,0,0.1)}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .smart-reviews.layout-grid{column-count:2;column-gap:20px}
}
@media (max-width: 768px) {
    .smart-reviews.layout-grid{column-count:1;column-gap:16px;padding:16px 0}
    .smart-reviews.layout-carousel .smart-review{flex:0 0 280px}
}


/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Carousel Navigation */
.smart-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.smart-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s ease;
}

.smart-carousel-nav:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.smart-carousel-nav.prev {
    left: 8px;
}

.smart-carousel-nav.next {
    right: 8px;
}

.smart-carousel-nav .dashicons {
    font-size: 18px;
    color: #666;
}

.smart-carousel-nav:hover .dashicons {
    color: #0073aa;
}

/* Avatar Styling */
.smart-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #f3f4f6;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: var(--avatar-bg-color, #6b7280);
}

.smart-avatar-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

/* Powered by footer */
.smart-powered-by{
	text-align:center;
	font-size:11px;
	color:#6b7280;
	margin-top:12px
}
.smart-powered-by a{color:#6b7280;text-decoration:none;border-bottom:1px dotted rgba(107,114,128,.4)}
.smart-powered-by a:hover{color:#374151;border-bottom-color:#374151}
.smart-powered-by-handle{opacity:.8}

