/* =========================================================
   AVERTO GOOGLE REVIEWS
   ========================================================= */


/* FIX FOR .wrapper { display:flex } */

.reviews-section .container1 {
    min-width: 0;
}


/* MAIN SLIDER */

.averto-reviews {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 25px 0;


    padding: 0;

    box-sizing: border-box;


    overflow: visible;
}

/* SCROLL AREA */

.reviews-scroll {
    display: flex;
    flex-wrap: nowrap;

    width: 100%;
    min-width: 0;

    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 2px 15px;

    box-sizing: border-box;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   REVIEW CARD
   ========================================================= */

.reviews-card {
    /*
     * Exactly 4 cards.
     * 3 gaps × 16px = 48px
     */
    flex: 0 0 calc((100% - 48px) / 4);
    width: calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);

    box-sizing: border-box;

    padding: 18px;

    background: #fff;

    border: 1px solid #e9e9e9;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    scroll-snap-align: start;

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

.reviews-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   SUMMARY CARD
   ========================================================= */

.reviews-summary-card {
    background: #f7f8f5;
    border-color: #e5e8df;
}

.reviews-summary-label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 600;

    color: #777;
}

.reviews-summary-icon {
    font-size: 17px;
    color: #779348;
}

.reviews-summary-card h3 {
    margin: 0 0 10px;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;

    color: #222;
}

.reviews-summary-card p {
    margin: 10px 0 0;

    font-size: 14px;
    line-height: 1.55;

    color: #555;
}


/* =========================================================
   REVIEW HEADER
   ========================================================= */

.reviews-card-head {
    display: flex;
    align-items: center;

    min-width: 0;
}

.reviews-card__photo {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    margin-right: 11px;
}

.reviews-card__photo img,
.reviews-avatar-placeholder {
    display: flex;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    object-fit: cover;
}

.reviews-avatar-placeholder {
    background: #efefef;

    font-size: 16px;
    font-weight: 600;

    color: #666;
}

.reviews-card-author {
    min-width: 0;
}

.reviews-card__name {
    overflow: hidden;

    font-size: 14px;
    font-weight: 600;

    color: #222;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.reviews-google-label {
    margin-top: 3px;

    font-size: 11px;

    color: #999;
}


/* =========================================================
   STARS
   ========================================================= */

.reviews-stars {
    margin: 12px 0 8px;

    color: #fbbc04;

    font-size: 17px;
    line-height: 1;

    letter-spacing: 1px;
}


/* =========================================================
   REVIEW TEXT
   ========================================================= */

.reviews-card-body {
    position: relative;
}

.review-text {
    display: -webkit-box;

    overflow: hidden;

    max-height: 101px;

    font-size: 13px;
    line-height: 1.55;

    color: #555;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}


/* EXPANDED TEXT */

.review-text.is-open {
    display: block;

    overflow: visible;

    max-height: none;

    -webkit-line-clamp: unset;
}


/* READ MORE */

.review-more {
    display: inline-block;

    margin-top: 7px;
    padding: 0;

    border: 0;
    background: transparent;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    color: #555;

    cursor: pointer;
}

.review-more:hover {
    text-decoration: underline;
}


/* =========================================================
   NAVIGATION ARROWS
   ========================================================= */

.reviews-nav {
    position: absolute;

    z-index: 20;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 1px solid #dedede;
    border-radius: 50%;

    background: #fff;

    box-shadow: 0 3px 12px rgba(0,0,0,.14);

    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    color: #555;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        box-shadow .2s ease,
        background .2s ease;
}

.reviews-nav:hover {
    background: #fafafa;

    box-shadow: 0 5px 16px rgba(0,0,0,.20);
}


/* LEFT ARROW */

.reviews-nav-prev {
    left: -62px;
}

.reviews-nav-next {
    right: -62px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .averto-reviews {
        padding-left: 52px;
        padding-right: 52px;
    }

    /*
     * Exactly 2 cards
     */
    .reviews-card {
        flex: 0 0 calc((100% - 16px) / 2);
        width: calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
    }

    .reviews-nav {
        width: 42px;
        height: 42px;

        font-size: 30px;
    }

    .reviews-nav-prev {
        left: 2px;
    }

    .reviews-nav-next {
        right: 2px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .averto-reviews {
        padding-left: 0;
        padding-right: 0;
    }

    .reviews-scroll {
        gap: 12px;

        padding-left: 15px;
        padding-right: 15px;
    }

    /*
     * One large card + small visible part
     * of next card to indicate swipe
     */
    .reviews-card {
        flex: 0 0 84vw;

        width: 84vw;
        min-width: 84vw;

        padding: 16px;
    }

    /*
     * Mobile uses swipe instead of arrows
     */
    .reviews-nav {
        display: none;
    }

    .reviews-summary-card h3 {
        font-size: 18px;
    }
}

/////////////////

.reviews-section .rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-section .rating-wrapper__val {
    font-weight: 600;
}

.reviews-section .google-rating-stars {
    color: #fbbc04;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    padding-left: 10px;
    margin-bottom: 5px;
}
////////////
.review-text {
    max-height: 100px;
    overflow: hidden;

    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

.review-text.is-open {
    max-height: none !important;
    overflow: visible !important;
}
.review-more {
    display: inline-block;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
}

.review-more:hover {
    text-decoration: underline;
}