/* Google latest-reviews Grid Layout */
.meo-google-latest-reviews-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .meo-google-latest-reviews-grid.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .meo-google-latest-reviews-grid.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .meo-google-latest-reviews-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .meo-google-latest-reviews-grid.columns-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}



/* latest-review Card Style */
/* Card container: flex column */
.meo-google-latest-review-card.google-latest-review-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 8px;
    background-color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.5s ease-out forwards;
    overflow: hidden;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Author heading */
.latest-review-header {
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.latest-review-author-image {
    background: rgb(0, 0, 0, 0.1);
    border-radius: 20px;
    width: 28px;
    height: 28px;
}

.latest-review-header h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.latest-review-header .author {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-transform: capitalize;
}

.latest-review-meta {
    width: calc(100% - 40px);
}

/* Wrap rating + time in a row flex container */
.stars-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-review-author {
    display: flex;
    justify-content: space-between;
}

.latest-review-shop-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    display: block;
    padding: 4px;
    margin-top: 6px;
    background: rgba(255, 234, 253, 0.55);
    border-radius: 5px;
}

.latest-review-shop-link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    font-size: 0px;
}

/* Rating stars */
.latest-review-stars {
    font-size: 1em;
    color: gold;
    line-height: 1;
    white-space: nowrap;
}

/* Time info */
.latest-review-date {
    font-size: 0.875em;
    color: #666;
    white-space: nowrap;
}

/* latest-review text */
.latest-review-text {
    line-height: 1.6;
    display: initial;
}

button.google-load-more.elementor-button span {
    pointer-events: none;
}

button.google-load-more.elementor-button[disabled] {
    opacity: .2;

}

.latest-review-content {
    position: relative;
    max-height: 8.2em;
    overflow: hidden;
    background: #fff;
    overflow: auto;
    scrollbar-width: thin;
}

.latest-review-card__toggle {
    background: none;
    border: none;
    color: var(--e-global-color-primary, #0073aa);
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 5px;
    padding: 0;
}

.latest-review-card__toggle:hover,
.latest-review-card__toggle:focus {
    background: none;
    color: var(--e-global-color-primary, #0073aa);
}

@media (max-width: 768px) {

    .stars-date {
        flex-direction: column;
        align-items: baseline;
        gap: 0;
        margin-top: 4px;
    }

    .latest-review-date {
        font-size: 14px;
    }
}