/* Homepage Google reviews carousel (Views/Shared/Components/GoogleReviews). Matches the home-*-card look. */
.gr-widget {
    --gr-ink: #183653;
    --gr-muted: #5b7086;
    --gr-line: #d8e4ef;
    --gr-star: #f2a900;
}

/* Summary: rating, stars, count. Deliberately no call-to-action buttons. */
.gr-widget-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--gr-ink);
}

.gr-widget-score {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.gr-widget-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gr-widget-count {
    color: var(--gr-muted);
    font-size: 14px;
    line-height: 1.2;
}

/* Partial-fill stars: a grey row of five with a clipped gold row on top, so 4.7
   reads as 4.7 instead of being rounded up to five full stars. */
.gr-widget-stars {
    position: relative;
    display: inline-block;
    color: #dde5ed;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

    .gr-widget-stars::before {
        content: "★★★★★";
    }

.gr-widget-stars-on {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--gr-fill, 0%);
    overflow: hidden;
    color: var(--gr-star);
    white-space: nowrap;
}

    .gr-widget-stars-on::before {
        content: "★★★★★";
    }

.gr-widget-track-wrap {
    position: relative;
}

    /* Edge fades hint that the row scrolls. */
    .gr-widget-track-wrap::before,
    .gr-widget-track-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 10px;
        z-index: 1;
        width: 36px;
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .gr-widget-track-wrap::before {
        left: -1px;
        background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
    }

    .gr-widget-track-wrap::after {
        right: -1px;
        background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
    }

    .gr-widget-track-wrap.is-scrolled::before,
    .gr-widget-track-wrap.has-more::after {
        opacity: 1;
    }

.gr-widget-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 2px 2px 10px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .gr-widget-track::-webkit-scrollbar {
        display: none;
    }

.gr-widget-item {
    display: flex;
    flex: 0 0 272px;
    scroll-snap-align: start;
}

.gr-widget-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
    border: 1px solid var(--gr-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.gr-widget-card:hover,
a.gr-widget-card:focus-visible {
    border-color: #c3d6e6;
    box-shadow: 0 10px 24px rgba(15, 35, 53, .10);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.gr-widget-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Avatar: the reviewer's Google photo when we have one, otherwise a tinted initial.
   Either way a small Google mark sits in the corner as the provenance cue. */
.gr-widget-avatar {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
}

    .gr-widget-avatar img,
    .gr-widget-initial {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .gr-widget-avatar img {
        display: block;
        background: #eef3f8;
    }

.gr-widget-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-tint-bg, #e8f0f7);
    color: var(--gr-tint-ink, var(--gr-ink));
    font-size: 16px;
    font-weight: 700;
}

.gr-widget-tint-0 { --gr-tint-bg: #e3edf9; --gr-tint-ink: #28557f; }
.gr-widget-tint-1 { --gr-tint-bg: #e6f2ec; --gr-tint-ink: #2b6a4d; }
.gr-widget-tint-2 { --gr-tint-bg: #fdeee1; --gr-tint-ink: #96561f; }
.gr-widget-tint-3 { --gr-tint-bg: #efeafa; --gr-tint-ink: #553f94; }
.gr-widget-tint-4 { --gr-tint-bg: #fde9ee; --gr-tint-ink: #96354f; }
.gr-widget-tint-5 { --gr-tint-bg: #e4f1f4; --gr-tint-ink: #1f6473; }

.gr-widget-avatar-badge {
    position: absolute;
    box-sizing: border-box;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 35, 53, .22);
}

.gr-widget-who {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.gr-widget-name {
    display: block;
    overflow: hidden;
    color: var(--gr-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-widget-date {
    color: var(--gr-muted);
    font-size: 12px;
    line-height: 1.2;
}

.gr-widget-card .gr-widget-stars {
    font-size: 13px;
}

.gr-widget-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #40596e;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Scroll buttons sit in the summary row, clear of the cards. */
.gr-widget-nav-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.gr-widget-nav {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--gr-line);
    border-radius: 50%;
    background: #fff;
    color: var(--gr-ink);
    font-size: 18px;
    line-height: 1;
    transition: opacity .2s ease, border-color .2s ease, background .2s ease;
}

    .gr-widget-nav:hover {
        border-color: #a9c3da;
        background: #f4f9fd;
    }

    .gr-widget-nav[disabled] {
        opacity: .35;
        pointer-events: none;
    }

/* Quiet deep link into the place's reviews on Google Maps. */
.gr-widget-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.gr-widget-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gr-muted);
    font-size: 13px;
    text-decoration: none;
}

    .gr-widget-maps:hover,
    .gr-widget-maps:focus-visible {
        color: var(--gr-ink);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.gr-widget-g {
    width: 14px;
    height: 14px;
    flex: none;
}

@media (max-width: 767px) {
    .gr-widget-nav-group {
        display: none;
    }

    .gr-widget-track-wrap::before,
    .gr-widget-track-wrap::after {
        width: 20px;
    }

    .gr-widget-score {
        font-size: 32px;
    }

    .gr-widget-card {
        flex-basis: min(258px, 78vw);
    }
}
