/**
 * Google Reviews Display Styles
 */

/* Base Review Styles */
.google-review {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Star Rating - Override WooCommerce */
.google-reviews .star-rating,
.google-reviews-trio .star-rating,
.divi-marquee-reviews .star-rating {
    display: flex !important;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

/* Override WooCommerce star rating before content */
.google-reviews .star-rating:before,
.google-reviews-trio .star-rating:before,
.divi-marquee-reviews .star-rating:before {
    content: none !important;
    display: none !important;
}

.google-reviews .star-rating .star,
.google-reviews-trio .star-rating .star,
.divi-marquee-reviews .star-rating .star {
    font-size: 18px;
    margin-right: 2px;
    line-height: 1;
}

.google-reviews .star-rating .star.filled,
.google-reviews-trio .star-rating .star.filled,
.divi-marquee-reviews .star-rating .star.filled {
    color: #fbbf24 !important;
}

.google-reviews .star-rating .star.empty,
.google-reviews-trio .star-rating .star.empty,
.divi-marquee-reviews .star-rating .star.empty {
    color: #d1d5db !important;
}

/* Review Content */
.review-content {
    margin-bottom: 16px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    font-style: italic;
}

.review-text:before {
    content: '"';
    font-size: 20px;
    color: #9ca3af;
}

.review-text:after {
    content: '"';
    font-size: 20px;
    color: #9ca3af;
}

/* Author Info */
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    max-width: 40px !important;
    max-height: 40px !important;
}

/* Specific targeting for Google Review author images to override site CSS */
img[id^="google-review-author-"] {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

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

/* Layout Variations */

/* Grid Layout */
.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.google-reviews-grid .google-review {
    margin-bottom: 0;
}

/* List Layout */
.google-reviews-list .google-review {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
}

.google-reviews-list .review-rating {
    flex-shrink: 0;
    margin-bottom: 0;
}

.google-reviews-list .review-content {
    flex: 1;
    margin-bottom: 8px;
}

.google-reviews-list .review-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.google-reviews-list .review-author {
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* Card Style */
.google-review-card {
    border-radius: 12px;
    overflow: hidden;
}

.google-review-card .review-rating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -20px -20px 16px -20px;
    padding: 16px 20px;
}

.google-review-card .star-rating .star.filled {
    color: #fbbf24;
}

.google-review-card .star-rating .star.empty {
    color: rgba(255, 255, 255, 0.4);
}

/* Compact Style */
.google-review-compact {
    padding: 12px 16px;
    border-radius: 6px;
}

.google-review-compact .review-text {
    font-size: 14px;
    line-height: 1.5;
}

.google-review-compact .star-rating .star {
    font-size: 14px;
}

.google-review-compact .author-image {
    width: 32px;
    height: 32px;
}

/* Minimal Style */
.google-review-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.google-review-minimal:hover {
    transform: none;
    box-shadow: none;
    background: #f9fafb;
}

.google-review-minimal .review-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.google-review-minimal .review-author {
    gap: 8px;
}

.google-review-minimal .author-image {
    width: 28px;
    height: 28px;
}

/* Marquee Layout */
.google-reviews-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 20px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 60s linear infinite;
    gap: 30px;
}

.google-reviews-marquee .google-review {
    flex-shrink: 0;
    width: 350px;
    white-space: normal;
    margin-bottom: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause marquee on hover */
.google-reviews-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Carousel Layout */
.google-reviews-carousel {
    position: relative;
}

.google-reviews-carousel .reviews-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
}

.google-reviews-carousel .google-review {
    flex: 0 0 300px;
    scroll-snap-align: start;
    margin-bottom: 0;
}

.google-reviews-carousel .reviews-container::-webkit-scrollbar {
    height: 8px;
}

.google-reviews-carousel .reviews-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.google-reviews-carousel .reviews-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.google-reviews-carousel .reviews-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .google-reviews-list .google-review {
        flex-direction: column;
        gap: 12px;
    }
    
    .google-reviews-list .review-author {
        align-items: flex-start;
        text-align: left;
    }
    
    .google-reviews-marquee .google-review {
        width: 280px;
    }
    
    .google-reviews-carousel .google-review {
        flex: 0 0 280px;
    }
    
    .review-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .google-review {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .google-reviews-marquee .google-review {
        width: 240px;
    }
    
    .google-reviews-carousel .google-review {
        flex: 0 0 240px;
    }
    
    .star-rating .star {
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .google-review {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .review-text {
        color: #d1d5db;
    }
    
    .author-name {
        color: #f9fafb;
    }
    
    .review-date {
        color: #9ca3af;
    }
    
    .google-review-minimal:hover {
        background: #374151;
    }
    
    .google-reviews-marquee {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .google-reviews-marquee .google-review {
        background: #1f2937;
    }
}

/* Divi Marquee Review Styles */
.divi-marquee-reviews {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin: 20px 0;
    padding: 10px 0; /* Add padding to prevent cutoff */
}

.divi-marquee-reviews .divi-marquee-track {
    display: inline-flex;
    animation: divi-marquee-scroll 80s linear infinite;
    gap: 20px;
    white-space: nowrap;
    align-items: stretch; /* Changed to stretch for uniform height */
    will-change: transform; /* Optimize for animation */
}

.divi-marquee-reviews:hover .divi-marquee-track {
    animation-play-state: paused;
}

@keyframes divi-marquee-scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); 
    }
}

.divi-review-block {
    display: flex;
    align-items: stretch; /* Changed from flex-start to stretch */
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    max-width: 350px;
    flex-shrink: 0;
    white-space: normal;
    height: 100%; /* Ensure full height */
}

/* Make all review blocks in marquee the same height */
.divi-marquee-reviews .divi-marquee-track {
    align-items: stretch; /* Stretch all items to same height */
}

.divi-marquee-reviews .divi-review-block {
    align-self: stretch; /* Individual blocks stretch to track height */
    min-height: 150px; /* Minimum height to ensure consistent size */
}

.divi-review-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
}

.divi-review-text {
    flex: 1; /* Allow text to take available space */
    margin-bottom: 10px;
}

.divi-review-meta {
    margin-top: auto; /* Push meta to bottom */
}

.divi-review-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Prevent cutoff in marquee */
.divi-marquee-reviews .divi-review-block:hover {
    transform: none; /* Disable hover transform in marquee to prevent cutoff */
}

/* Clickable review styles */
.clickable-review {
    cursor: pointer;
    position: relative;
}

.clickable-review:hover {
    opacity: 0.9;
}

.read-more-indicator {
    color: #0073aa;
    font-size: 0.9em;
}

/* Review Modal Styles */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.review-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.review-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

.review-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    color: #333;
}

.review-modal-body {
    padding: 25px;
}

.modal-review-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.modal-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-rating-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-stars {
    color: #ffd700;
    font-size: 1.2em;
}

.modal-date {
    color: #666;
    font-size: 0.9em;
}

.modal-review-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

.modal-review-text::before {
    content: '"';
    font-size: 1.5em;
    color: #ccc;
}

.modal-review-text::after {
    content: '"';
    font-size: 1.5em;
    color: #ccc;
}

.divi-review-avatar {
    flex-shrink: 0;
}

/* Basic Google Reviews Grid Layout */
.google-reviews {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Grid layout for reviews */
.reviews-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.google-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.google-review {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.google-review:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.google-review-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.google-review-avatar {
    flex-shrink: 0;
}

.google-review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.google-review-author-info {
    flex: 1;
}

.google-review-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.google-review-rating {
    color: #ffd700;
    font-size: 1.1em;
}

.google-review-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

.google-review-date {
    font-size: 0.9em;
    color: #888;
    text-align: right;
}

/* List layout adjustments */
.google-review-list {
    max-width: 100%;
}

.google-review-list .google-review-header {
    align-items: flex-start;
}

.google-review-list .google-review-text {
    margin-left: 65px; /* Align with author info */
}

/* Responsive design */
@media (max-width: 768px) {
    .reviews-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .google-review {
        padding: 15px;
    }
    
    .google-review-list .google-review-text {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .reviews-grid-container {
        grid-template-columns: 1fr !important;
    }
}

.divi-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    display: block;
}

.divi-avatar-square {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    display: block;
}

.divi-review-content {
    flex: 1;
    min-width: 0;
}

.divi-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
    font-style: italic;
}

.divi-review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.divi-star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.divi-star {
    color: #ffc107;
    font-size: 14px;
    line-height: 1;
}

.divi-star-empty {
    color: #e0e0e0;
}

.divi-review-author {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin: 0;
}

.divi-review-date {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Minimal style variant for Divi */
.divi-review-minimal {
    background: transparent;
    box-shadow: none;
    border-left: 3px solid #007cba;
    border-radius: 0;
    padding: 15px;
}

.divi-review-minimal:hover {
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
}

/* Single Divi Review Block Styles */
.divi-single-review .divi-review-block {
    margin: 0;
    width: 100%;
    max-width: none;
    min-width: auto;
}

/* Responsive adjustments for single blocks */
@media (max-width: 768px) {
    .divi-marquee-reviews {
        flex-direction: column;
    }
    
    .divi-review-block {
        min-width: 98vw;
        max-width: 98vw;
    }
    
    .divi-single-review .divi-review-block {
        min-width: auto;
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .google-reviews-marquee,
    .google-reviews-carousel {
        overflow: visible;
    }
    
    .marquee-content {
        animation: none;
        display: block;
    }
    
    .google-review {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .divi-marquee-reviews {
        flex-direction: column;
    }
}

/* Google Reviews Trio Layout */
.google-reviews-trio {
    margin: 0;
    width: 100%;
    padding-top: 1.3em;
}

.reviews-trio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch; /* Equal height items */
}

.review-trio-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px; /* Ensure consistent height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.trio-rating {
    margin-bottom: 12px;
}

.trio-rating .star-rating {
    margin-bottom: 0;
}

/* Additional WooCommerce override for trio ratings */
.trio-rating .star-rating:before {
    content: none !important;
    display: none !important;
}

.trio-rating .star-rating {
    display: flex !important;
    position: relative;
}

/* Specific class override for all Google Reviews stars */
.google-reviews-stars:before {
    content: none !important;
    display: none !important;
}

.google-reviews-stars {
    display: flex !important;
    position: relative;
}

.google-reviews-stars .star {
    font-size: 18px !important;
    margin-right: 2px !important;
    line-height: 1 !important;
}

.trio-content {
    flex-grow: 1;
    margin-bottom: 15px;
}

.trio-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.trio-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

.trio-author {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: auto;
}

.trio-author-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Responsive design for trio layout */
@media (max-width: 768px) {
    .reviews-trio-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-trio-item {
        min-height: auto;
        padding: 15px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .reviews-trio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-trio-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* ========================================
   VERTICAL SCROLLING REVIEWS (3-Card Viewport)
   ======================================== */

.google-reviews-vertical {
    position: relative;
    overflow: hidden;
    background: transparent;
    margin: 20px auto;
    /* Height determines viewport size, but only 3 reviews will be visible */
}

.vertical-scroll-viewport {
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Create a 3-card viewport window */
    mask: linear-gradient(transparent 5%, black 15%, black 85%, transparent 95%);
    -webkit-mask: linear-gradient(transparent 5%, black 15%, black 85%, transparent 95%);
}

.vertical-scroll-track {
    display: flex;
    flex-direction: column;
    animation: verticalScroll var(--animation-duration, 10s) linear infinite;
    position: relative;
}

/* Keyframe for smooth vertical scrolling */
@keyframes verticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-33.33%); /* Move up by 1/3 since we have 3 copies */
    }
}

/* Pause animation on hover */
.google-reviews-vertical:hover .vertical-scroll-track,
.google-reviews-vertical:hover .vertical-review-block {
    animation-play-state: paused;
}

/* Individual Review Blocks (using existing divi-review-block styles) */
.vertical-review-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e2e8f0;
    transform-origin: center center;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 140px;
    flex-shrink: 0;
    /* Default state - will be updated by JavaScript based on position */
    transform: scale(0.75);
    opacity: 0.6;
    z-index: 1;
}

/* Create smooth continuous scaling using CSS animation keyframes */
.vertical-scroll-track {
    animation-name: verticalScrollWithScaling;
}

@keyframes verticalScrollWithScaling {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-33.33%);
    }
}

/* Simple approach: Only animate the track, use position-based scaling */
.vertical-review-block {
    /* Remove individual animations - scaling will be handled by position */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Scaling is now handled by JavaScript based on actual position */

/* Avatar styling (same as marquee) */
.vertical-review-block .divi-review-avatar {
    flex-shrink: 0;
}

.vertical-review-block .divi-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vertical-review-block .divi-avatar-square {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content styling */
.vertical-review-block .divi-review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vertical-review-block .divi-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    font-style: italic;
    margin-bottom: 8px;
}

.vertical-review-block .divi-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vertical-review-block .divi-review-author {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

/* Star ratings */
.vertical-review-block .divi-star-rating {
    display: flex;
    gap: 2px;
}

.vertical-review-block .divi-star {
    font-size: 14px;
    line-height: 1;
}

.vertical-review-block .divi-star-filled {
    color: #fbbf24;
}

.vertical-review-block .divi-star-empty {
    color: #e5e7eb;
}

/* Read more indicator */
.vertical-review-block .read-more-indicator {
    color: #6366f1;
    font-size: 12px;
}

.vertical-review-block .read-more-indicator em {
    font-style: normal;
    opacity: 0.8;
}

/* Hover effects */
.vertical-review-block:hover {
    cursor: pointer;
    /* No scale changes on hover since we have smooth animation */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vertical-review-block {
        margin: 8px 15px;
        padding: 16px;
        min-height: 100px;
        gap: 12px;
    }
    
    .vertical-review-block .divi-avatar-circle,
    .vertical-review-block .divi-avatar-square {
        width: 40px;
        height: 40px;
    }
    
    .vertical-review-block .divi-review-text {
        font-size: 13px;
    }
    
    .vertical-review-block .divi-review-author {
        font-size: 12px;
    }
    
    .vertical-review-block .divi-star {
        font-size: 12px;
    }
    
    /* Mobile scaling adjustments are handled by the animation */
}

@media (max-width: 480px) {
    .google-reviews-vertical {
        border-radius: 8px;
        margin: 15px auto;
    }
    
    .vertical-review-block {
        margin: 6px 10px;
        padding: 12px;
        min-height: 80px;
        gap: 10px;
    }
    
    .vertical-review-block .divi-avatar-circle,
    .vertical-review-block .divi-avatar-square {
        width: 35px;
        height: 35px;
    }
    
    .vertical-review-block .divi-review-text {
        font-size: 12px;
    }
    
    .vertical-review-block .divi-review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
