/* Google Reviews Widget Styles */

.grw-container {
    max-width: 1400px;
    /* Increased max-width for 4 items */
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', 'Arial', sans-serif;
    background: transparent;
}

/* Header */
.grw-header {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.grw-brand-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grw-google-logo {
    height: 24px;
    width: auto;
}

.grw-header-title {
    font-size: 22px;
    color: #202124;
    font-weight: 500;
}

.grw-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grw-rating-number {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.grw-stars {
    display: flex;
    gap: 1px;
}

.grw-rating-count {
    font-size: 14px;
    color: #70757a;
}

/* Carousel Wrapper */
.grw-carousel-wrapper {
    position: relative;
    padding: 0 10px;
    /* Slight padding for arrows if outside */
}

.grw-carousel {
    overflow: hidden;
    padding: 10px 4px;
    /* Space for shadow/overflow */
}

.grw-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-out;
    /* Smoother ease-out */
}

/* Review Card */
.grw-review-card {
    /* 4 items: 100% / 4 = 25%. Minus gap (20px * 3 / 4) = 15px */
    flex: 0 0 280px;
    /* Fallback */
    flex: 0 0 calc(25% - 15px);
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 220px;
    /* Restore min-height for visual consistency */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Card Top: Avatar and Info */
.grw-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.grw-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.grw-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.grw-g-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.grw-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grw-author-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grw-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
}

.grw-verified-badge {
    display: flex;
    /* To align SVG */
    align-items: center;
}

.grw-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.grw-short-logo {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.grw-date-text {
    font-size: 12px;
    color: #70757a;
}

/* Review Content */
.grw-stars-row {
    display: flex;
    gap: 1px;
}

.grw-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #3c4043;
    flex-grow: 1;
}

.grw-text-content {
    margin: 0;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Limit to 5 lines as requested */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grw-text-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.grw-read-more {
    font-size: 14px;
    color: #70757a;
    /* Grey color for 'Leia mais' often */
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    display: none;
    /* Hidden by default, JS will show when needed */
}

/* Navigation Buttons */
.grw-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker background as requested */
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.grw-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.grw-nav-prev {
    left: -20px;
    /* Adjust positioning */
}

.grw-nav-next {
    right: -20px;
}

@media (max-width: 1240px) {
    .grw-review-card {
        flex: 0 0 calc(33.333% - 14px);
        /* 3 items */
    }

    .grw-nav-prev {
        left: -10px;
    }

    .grw-nav-next {
        right: -10px;
    }
}

@media (max-width: 1024px) {
    .grw-review-card {
        flex: 0 0 calc(50% - 14px);
        /* 2 items to give more space */
    }
}

@media (max-width: 600px) {
    .grw-review-card {
        flex: 0 0 100%;
        /* 1 item */
    }

    .grw-nav {
        width: 32px;
        height: 32px;
    }
}