/* ==========================================================
   9GRAD OST · REVIEWS V2
   ========================================================== */

.neo-reviews--slider {
    --r9-red: #690f00;
    --r9-yellow: #fbbc04;
    --r9-google: #4285f4;
    --r9-text: #181818;
    --r9-muted: #6f7378;
    --r9-line: #dadce0;
    --r9-bg: #f5f3f0;

    padding:
        clamp(75px, 7vw, 115px)
        max(38px, calc((100vw - 1420px) / 2))
        clamp(75px, 7vw, 105px);

    background: var(--r9-bg);
    overflow: hidden;
}

.neo-reviews--slider,
.neo-reviews--slider * {
    box-sizing: border-box;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
}


/* ==========================================================
   HEAD
   ========================================================== */

.neo-reviews--slider .neo-reviews__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: end;
    gap: clamp(50px, 7vw, 120px);

    margin: 0 0 clamp(48px, 5vw, 72px);
}

.neo-reviews--slider .neo-reviews__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 26px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #60656a;
}

.neo-reviews--slider .neo-reviews__eyebrow span {
    width: 38px;
    height: 1px;
    background: var(--r9-red);
}

.neo-reviews--slider .neo-reviews__heading h2 {
    max-width: 1000px;
    margin: 0;

    font-size: clamp(47px, 4.8vw, 74px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.052em;

    color: var(--r9-text);
}

.neo-reviews--slider .neo-reviews__heading h2 em {
    font-style: normal;
    color: var(--r9-red);
}


/* Score */

.neo-reviews--slider .neo-reviews__score {
    min-height: 132px;
    padding-left: 28px;

    border-left: 1px solid rgba(20,20,20,.13);
}

.neo-reviews__score-brand {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 9px;
}

.neo-reviews__score-brand img {
    width: 18px;
    height: 18px;
}

.neo-reviews__score-brand strong {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #202124;
}

.neo-reviews__score-value {
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;

    color: #3c4043;
}

.neo-reviews__score-stars {
    margin-top: 8px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;

    color: var(--r9-yellow);
}

.neo-reviews__score-count {
    margin-top: 7px;

    font-family: Arial, sans-serif;
    font-size: 11px;

    color: var(--r9-muted);
}


/* ==========================================================
   MAIN REVIEW WIDGET
   ========================================================== */

.neo-review-v2 {
    width: 100%;
    padding: 25px 28px 27px;

    background: #fff;

    border: 1px solid #dedede;
    border-radius: 20px;

    box-shadow:
        0 1px 2px rgba(60,64,67,.04),
        0 2px 6px rgba(60,64,67,.06);
}


/* ==========================================================
   TOP BAR
   ========================================================== */

.neo-review-v2__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 46px;
    margin-bottom: 22px;
}

.neo-review-v2__summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    font-family: Arial, sans-serif;
    font-size: 13px;

    color: #202124;
}

.neo-review-v2__summary > img {
    width: 27px;
    height: 27px;
    margin-right: 2px;
}

.neo-review-v2__summary > strong {
    font-size: 15px;
    font-weight: 600;
}

.neo-review-v2__excellent {
    margin-left: 8px;
    font-weight: 600;
}

.neo-review-v2__stars {
    color: var(--r9-yellow);
    letter-spacing: 1px;
}

.neo-review-v2__rating {
    font-size: 13px !important;
}

.neo-review-v2__separator {
    color: #c8c8c8;
}


/* Controls */

.neo-review-v2__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.neo-review-v2 .neo-review-carousel__button {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;
    padding: 0;

    border: 1px solid rgba(105,15,0,.22);
    border-radius: 50%;

    background: #fff;
    color: var(--r9-red);

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

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.neo-review-v2 .neo-review-carousel__button:hover {
    background: var(--r9-red);
    border-color: var(--r9-red);
    color: #fff;
}


/* ==========================================================
   VIEWPORT / TRACK
   ========================================================== */

.neo-review-v2__viewport {
    width: 100%;

    overflow-x: hidden;
    overflow-y: visible;

    padding: 4px 2px 7px;
}

.neo-review-v2__track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 32px) / 3) !important;
    gap: 16px !important;

    width: auto !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

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

    padding: 0 0 5px !important;

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

.neo-review-v2__track::-webkit-scrollbar {
    display: none;
}


/* ==========================================================
   CARDS
   ========================================================== */

.neo-review-v2__card {
    position: relative;

    display: flex !important;
    flex-direction: column !important;

    min-width: 0 !important;
    min-height: 275px !important;
    height: 275px !important;

    padding: 22px !important;

    scroll-snap-align: start;

    background: #fff !important;

    border: 1px solid var(--r9-line) !important;
    border-radius: 13px !important;

    box-shadow: none !important;

    font-family: Arial, sans-serif;

    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.neo-review-v2__card:hover {
    transform: none !important;

    border-color: rgba(105,15,0,.24) !important;

    box-shadow:
        0 2px 8px rgba(60,64,67,.10) !important;
}


/* Card header */

.neo-review-v2__card-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
}

.neo-review-v2__card .neo-review-card__avatar {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

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

    color: #fff;
}


/* Google-like varying avatars */

.neo-review-v2__card:nth-child(6n+1) .neo-review-card__avatar {
    background: #1a73e8;
}

.neo-review-v2__card:nth-child(6n+2) .neo-review-card__avatar {
    background: #0097a7;
}

.neo-review-v2__card:nth-child(6n+3) .neo-review-card__avatar {
    background: #8d6e63;
}

.neo-review-v2__card:nth-child(6n+4) .neo-review-card__avatar {
    background: #7e57c2;
}

.neo-review-v2__card:nth-child(6n+5) .neo-review-card__avatar {
    background: #ef6c00;
}

.neo-review-v2__card:nth-child(6n+6) .neo-review-card__avatar {
    background: #43a047;
}


.neo-review-v2__author {
    min-width: 0;
}

.neo-review-v2__author strong {
    display: block;

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

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

    color: #202124;
}

.neo-review-v2__author span {
    display: block;
    margin-top: 3px;

    font-size: 11px;

    color: #80868b;
}

.neo-review-v2__google {
    width: 19px;
    height: 19px;
}


/* Stars */

.neo-review-v2__card-stars {
    margin: 16px 0 14px;

    font-size: 15px;
    line-height: 1;
    letter-spacing: 1px;

    color: var(--r9-yellow);
}


/* Text */

.neo-review-v2__text {
    display: -webkit-box;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

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

    border: 0 !important;

    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.52;

    color: #3c4043;
}


/* Link */

.neo-review-v2__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    align-self: flex-start;

    margin-top: auto;
    padding-top: 14px;

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

    color: var(--r9-red);
    text-decoration: none;
}

.neo-review-v2__link span {
    transition: transform .2s ease;
}

.neo-review-v2__link:hover span {
    transform: translateX(3px);
}


/* ==========================================================
   PROGRESS
   ========================================================== */

.neo-review-v2__bottom {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-top: 19px;
}

.neo-review-v2__progress {
    position: relative;
    flex: 1;

    height: 1px;

    background: rgba(105,15,0,.13);
}

.neo-review-v2__progress > span {
    display: block;

    width: 0;
    height: 2px;

    background: var(--r9-red);

    transition: width .3s ease;
}

.neo-review-v2__counter {
    display: flex;
    align-items: baseline;
    gap: 5px;

    min-width: 66px;

    font-family: Arial, sans-serif;
    font-size: 11px;

    color: #70757a;
}

.neo-review-v2__counter strong {
    font-size: 18px;
    font-weight: 500;

    color: var(--r9-red);
}


/* ==========================================================
   BOTTOM SECTION FOOTER
   ========================================================== */

.neo-reviews--slider .neo-reviews__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-top: 26px;

    font-size: 12px;
}

.neo-reviews--slider .neo-reviews__footer p {
    margin: 0;
    color: #70757a;
}

.neo-reviews--slider .neo-reviews__footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-weight: 600;

    color: var(--r9-red);
    text-decoration: none;
}


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

@media (max-width: 1050px) {

    .neo-reviews--slider .neo-reviews__head {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .neo-review-v2__track {
        grid-auto-columns: calc((100% - 14px) / 2) !important;
        gap: 14px !important;
    }

}


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

@media (max-width: 720px) {

    .neo-reviews--slider {
        padding:
            68px
            20px
            70px;
    }

    .neo-reviews--slider .neo-reviews__head {
        display: block;
        margin-bottom: 38px;
    }

    .neo-reviews--slider .neo-reviews__heading h2 {
        font-size: clamp(40px, 11.5vw, 56px);
    }

    .neo-reviews__desktop-break {
        display: none;
    }

    .neo-reviews--slider .neo-reviews__score {
        margin-top: 30px;
        padding: 20px 0 0;

        border-left: 0;
        border-top: 1px solid rgba(20,20,20,.12);
    }

    .neo-reviews__score-value {
        font-size: 34px;
    }

    .neo-review-v2 {
        padding: 20px 0 23px 20px;

        border-radius: 17px;

        overflow: hidden;
    }

    .neo-review-v2__bar {
        padding-right: 20px;
    }

    .neo-review-v2__summary {
        gap: 6px;
    }

    .neo-review-v2__excellent,
    .neo-review-v2__separator {
        display: none;
    }

    .neo-review-v2__total {
        width: 100%;
        margin-left: 35px;
    }

    .neo-review-v2 .neo-review-carousel__button {
        width: 39px;
        height: 39px;
    }

    .neo-review-v2__viewport {
        overflow: visible;
    }

    .neo-review-v2__track {
        grid-auto-columns: 86% !important;
        gap: 12px !important;

        padding-right: 20px !important;
    }

    .neo-review-v2__card {
        height: 285px !important;
        min-height: 285px !important;
    }

    .neo-review-v2__bottom {
        padding-right: 20px;
    }

    .neo-reviews--slider .neo-reviews__footer {
        display: block;
    }

    .neo-reviews--slider .neo-reviews__footer p {
        margin-bottom: 17px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .neo-review-v2__track {
        scroll-behavior: auto;
    }

}
