.vpgr {
    --vpgr-green: #0c5b4c;
    --vpgr-green-soft: #e8f3ef;
    --vpgr-text: #173e36;
    --vpgr-muted: #657b75;
    --vpgr-border: rgba(12, 91, 76, .18);
    --vpgr-star: #fbbc04;
    color: var(--vpgr-text);
    display: grid;
    font-family: inherit;
    gap: 18px;
    margin-inline: auto;
    max-width: 1240px;
    position: relative;
    width: 100%;
}

.vpgr *, .vpgr *::before, .vpgr *::after { box-sizing: border-box; }

.vpgr__summary {
    align-items: center;
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: 180px;
    padding: 4px 16px;
    text-align: center;
    width: 100%;
}

.vpgr__rating-word { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.vpgr__summary-stars, .vpgr__review-stars { display: flex; gap: 3px; }
.vpgr__star { color: #d8dfdd; font-size: 20px; line-height: 1; }
.vpgr__star.is-filled { color: var(--vpgr-star); }
.vpgr__count { color: #fff; font-size: 14px; line-height: 1.35; }
.vpgr__count strong { color: inherit; }
.vpgr__google { align-items: center; display: flex; justify-content: center; margin-top: 2px; min-height: 30px; }
.vpgr__google img { display: block; height: 30px; width: 92px; }

.vpgr__slider { align-items: center; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
.vpgr__track {
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    display: flex;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    user-select: none;
}
.vpgr__track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.vpgr__track.is-dragging * { pointer-events: none; }
.vpgr__track::-webkit-scrollbar { display: none; }

.vpgr__review {
    background: #fff;
    border: 1px solid var(--vpgr-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(10, 61, 51, .08);
    display: flex;
    flex: 0 0 calc((100% - 32px) / 3);
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    padding: 20px;
    scroll-snap-align: start;
}

.vpgr__review-head { align-items: center; display: flex; gap: 11px; min-width: 0; }
.vpgr__avatar { border-radius: 50%; flex: 0 0 44px; height: 44px; object-fit: cover; width: 44px; }
.vpgr__avatar--initials { align-items: center; background: var(--vpgr-green-soft); color: var(--vpgr-green); display: flex; font-size: 14px; font-weight: 800; justify-content: center; }
.vpgr__author-wrap { min-width: 0; }
.vpgr__author { color: var(--vpgr-text); font-size: 15px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpgr__date { color: var(--vpgr-muted); display: block; font-size: 12px; margin-top: 2px; }
.vpgr__google-icon { align-items: center; background: #fff; border: 1px solid var(--vpgr-border); border-radius: 50%; color: #4285f4; display: flex; flex: 0 0 26px; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; height: 26px; justify-content: center; margin-left: auto; }
.vpgr__review-stars .vpgr__star { font-size: 18px; }
.vpgr__text {
    color: var(--vpgr-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.vpgr__text--rating { color: var(--vpgr-muted); font-style: italic; }

.vpgr__control { display: none; }
.vpgr__control span { font-size: 34px; line-height: .8; transform: translateY(-1px); }
.vpgr__control:hover { transform: scale(1.05); }
.vpgr__control:disabled { cursor: default; opacity: .25; transform: none; }
.vpgr__dots { display: flex; gap: 7px; justify-content: center; }
.vpgr__dot { background: rgba(12, 91, 76, .25); border: 0; border-radius: 99px; height: 7px; padding: 0; transition: width .2s ease, background .2s ease; width: 7px; }
.vpgr__dot.is-active { background: var(--vpgr-green); width: 22px; }
.vpgr__all,
.vpgr__all:visited,
.vpgr__all:hover,
.vpgr__all:focus-visible {
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    justify-self: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 701px) {
    .vpgr {
        border: 1px solid rgba(255, 255, 255, .42);
        border-radius: 24px;
        grid-template-columns: minmax(0, 1fr);
        padding: clamp(24px, 3vw, 38px);
    }
    .vpgr__summary {
        padding-bottom: 4px;
    }
    .vpgr__track {
        padding-inline: 4px;
    }
}

@media (max-width: 859px) {
    .vpgr__review { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 700px) {
    .vpgr__slider {
        grid-template-columns: minmax(0, 1fr);
        margin-left: calc(50% - 50vw);
        overflow: hidden;
        width: 100vw;
    }
    .vpgr__track {
        padding: 6px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
        scroll-padding-inline: max(18px, env(safe-area-inset-left));
    }
    .vpgr__review {
        flex-basis: min(82vw, 430px);
    }
    .vpgr__control {
        display: none;
    }
}

@media (max-width: 620px) {
    .vpgr { gap: 12px; }
    .vpgr__review { min-height: 210px; padding: 18px; }
    .vpgr__rating-word { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .vpgr__track { scroll-behavior: auto; }
    .vpgr__control, .vpgr__dot { transition: none; }
}
