/* Widget wrapper */
.grw-widget {
    max-width: 1400px;
    margin: 0 auto;
}

/* Slider */
.grw-slider-wrap {
    position: relative;
    padding: 20px 50px;
}

.grw-slider-overflow {
    overflow: hidden;
}

.grw-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

/* Few reviews: center cards instead of sliding */
.grw-slider-track.grw-no-slide {
    justify-content: center;
}

/* Card — now an <a> tag */
.grw-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.grw-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Avatar */
.grw-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

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

.grw-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.grw-google-icon {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 22px !important;
    height: 22px !important;
    background: #fff !important;
    border-radius: 50% !important;
    padding: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    object-fit: contain !important;
    display: block !important;
}

/* Ensure avatar photo is circular */
img.grw-avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 64px;
    height: 64px;
}

/* Text content */
.grw-author {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.grw-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.grw-rating {
    color: #fbbc04;
    font-size: 15px;
    margin-bottom: 10px;
}

.grw-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrows */
.grw-widget .grw-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    cursor: pointer !important;
    font-size: 20px !important;
    color: #666 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
}

.grw-widget .grw-arrow:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}

.grw-widget .grw-arrow-left {
    left: -4px !important;
}

.grw-widget .grw-arrow-right {
    right: -4px !important;
}

/* Hide arrows when not needed */
.grw-widget .grw-arrow.grw-hidden {
    display: none !important;
}

/* Summary bar */
.grw-summary {
    text-align: center;
    padding: 12px 20px;
    margin-top: 4px;
}

.grw-summary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.grw-summary-link:hover {
    background: #f5f5f5;
    color: #333;
}

.grw-summary-google {
    flex-shrink: 0;
}

.grw-summary-label {
    font-weight: 600;
    color: #1a1a1a;
}

.grw-summary-stars {
    color: #fbbc04;
    font-size: 16px;
    letter-spacing: 1px;
}

.grw-summary-rating {
    font-weight: 600;
    color: #1a1a1a;
}

.grw-summary-count {
    color: #999;
}

/* Responsive breakpoints */

/* Wide screens: 4 cards */
@media (min-width: 1200px) {
    .grw-card {
        flex: 0 0 calc(25% - 18px);
    }
}

/* Default (769px - 1199px): 3 cards */
@media (min-width: 769px) and (max-width: 1199px) {
    .grw-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

/* Tablet: 2 cards */
@media (min-width: 481px) and (max-width: 768px) {
    .grw-slider-wrap {
        padding: 20px 44px;
    }

    .grw-card {
        flex: 0 0 calc(50% - 12px);
    }

    .grw-widget .grw-arrow {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 18px !important;
    }
}

/* Mobile: 1 card */
@media (max-width: 480px) {
    .grw-slider-wrap {
        padding: 20px 40px;
    }

    .grw-card {
        flex: 0 0 100%;
    }

    .grw-widget .grw-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        font-size: 16px !important;
    }

    .grw-widget .grw-arrow-left {
        left: 2px !important;
    }

    .grw-widget .grw-arrow-right {
        right: 2px !important;
    }

    .grw-summary-link {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
    }
}
