.wgwgr-wrap,
.wgwgr-wrap * {
    box-sizing: border-box;
}

.wgwgr-wrap {
    width: var(--wgwgr-width, 100%);
    height: var(--wgwgr-height, auto);
    margin: 0 auto;
    padding: var(--wgwgr-padding, 56px 24px);
    background: var(--wgwgr-bg, #f8f6f2);
    color: var(--wgwgr-text, #171717);
    overflow: auto;
    font-family: inherit;
}

.wgwgr-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.wgwgr-header {
    text-align: center;
    margin-bottom: 34px;
}

.wgwgr-header h2 {
    margin: 0 0 10px;
    color: var(--wgwgr-text, #171717);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.wgwgr-header p {
    margin: 0;
    color: var(--wgwgr-muted, #787878);
    font-size: clamp(17px, 2vw, 25px);
    line-height: 1.35;
}

.wgwgr-summary {
    width: min(100%, 880px);
    margin: 0 auto 46px;
    padding: 30px 22px;
    background: var(--wgwgr-card, #fff);
    border-radius: 12px;
    box-shadow: var(--wgwgr-shadow, 0 16px 42px rgba(15, 23, 42, 0.06));
    text-align: center;
}

.wgwgr-summary-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.2;
}

.wgwgr-summary-rating {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(24px, 3vw, 35px);
    line-height: 1;
}

.wgwgr-summary-count {
    margin-top: 10px;
    color: var(--wgwgr-muted, #787878);
    font-size: 15px;
}

.wgwgr-grid {
    display: grid;
    grid-template-columns: repeat(var(--wgwgr-cols, 3), minmax(0, 1fr));
    gap: var(--wgwgr-gap, 28px);
    align-items: stretch;
}

.wgwgr-carousel {
    display: flex;
    gap: var(--wgwgr-gap, 28px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    cursor: grab;
    scrollbar-width: thin;
}

.wgwgr-carousel:focus {
    outline: 2px solid color-mix(in srgb, var(--wgwgr-accent, #2563eb) 60%, transparent);
    outline-offset: 8px;
}

.wgwgr-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.wgwgr-carousel .wgwgr-card {
    flex: 0 0 calc((100% - (var(--wgwgr-gap, 28px) * (var(--wgwgr-cols, 3) - 1))) / var(--wgwgr-cols, 3));
    scroll-snap-align: start;
}

.wgwgr-card {
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 26px);
    background: var(--wgwgr-card, #fff);
    border-radius: var(--wgwgr-radius, 30px);
    box-shadow: var(--wgwgr-shadow, 0 16px 42px rgba(15, 23, 42, 0.06));
    color: var(--wgwgr-text, #171717);
    overflow: hidden;
}

.wgwgr-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.wgwgr-avatar {
    flex: 0 0 clamp(42px, 4vw, 52px);
    width: clamp(42px, 4vw, 52px);
    height: clamp(42px, 4vw, 52px);
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.wgwgr-avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--wgwgr-accent, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.wgwgr-author-wrap {
    min-width: 0;
}

.wgwgr-author-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.wgwgr-author,
.wgwgr-author:visited {
    color: var(--wgwgr-text, #171717);
    font-size: var(--wgwgr-author-font-size, clamp(15px, 1.4vw, 18px));
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wgwgr-author:hover {
    text-decoration: underline;
}

.wgwgr-verified {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.wgwgr-time {
    margin-top: 5px;
    color: var(--wgwgr-muted, #787878);
    font-size: 14px;
    line-height: 1.2;
}

.wgwgr-stars-row {
    margin-bottom: 10px;
}

.wgwgr-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--wgwgr-star, #fbbc04);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1;
    letter-spacing: 0;
}

.wgwgr-review-text {
    color: var(--wgwgr-text, #171717);
    font-size: var(--wgwgr-review-font-size, clamp(14px, 1.25vw, 17px));
    line-height: 1.45;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.wgwgr-review-text p {
    margin: 0 0 10px;
}

.wgwgr-review-text p:last-child {
    margin-bottom: 0;
}

.wgwgr-review-text-muted {
    color: var(--wgwgr-text, #171717);
}

.wgwgr-google-link,
.wgwgr-google-link:visited {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    text-decoration: none;
}

.wgwgr-google-word {
    display: inline-flex;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
}

.wgwgr-summary-line .wgwgr-google-word {
    font-size: inherit;
}

.wgwgr-google-word .g-blue { color: #4285f4; }
.wgwgr-google-word .g-red { color: #ea4335; }
.wgwgr-google-word .g-yellow { color: #fbbc05; }
.wgwgr-google-word .g-green { color: #34a853; }

.wgwgr-empty {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--wgwgr-text, #171717);
    text-align: center;
}

.wgwgr-debug {
    margin-top: 24px;
    padding: 16px;
    overflow: auto;
    background: #111827;
    color: #e5e7eb;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .wgwgr-grid {
        grid-template-columns: repeat(var(--wgwgr-cols-tablet, 2), minmax(0, 1fr));
    }

    .wgwgr-carousel .wgwgr-card {
        flex-basis: calc((100% - (var(--wgwgr-gap, 28px) * (var(--wgwgr-cols-tablet, 2) - 1))) / var(--wgwgr-cols-tablet, 2));
    }

    .wgwgr-card {
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .wgwgr-wrap {
        padding: 40px 16px;
    }

    .wgwgr-grid {
        grid-template-columns: repeat(var(--wgwgr-cols-mobile, 1), minmax(0, 1fr));
        gap: 18px;
    }

    .wgwgr-carousel {
        gap: 18px;
        scroll-padding-inline: 0;
    }

    .wgwgr-carousel .wgwgr-card {
        flex-basis: calc((100% - (18px * (var(--wgwgr-cols-mobile, 1) - 1))) / var(--wgwgr-cols-mobile, 1));
    }

    .wgwgr-summary {
        margin-bottom: 28px;
        padding: 24px 16px;
    }

    .wgwgr-card {
        min-height: auto;
        border-radius: 24px;
        padding: 20px;
    }

    .wgwgr-avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .wgwgr-author {
        font-size: var(--wgwgr-author-font-size, 18px);
    }

    .wgwgr-time {
        font-size: 15px;
    }
}
