.cw-google-reviews {
    --cw-blue: #1a73e8;
    --cw-text: #202124;
    --cw-muted: #667085;
    --cw-border: #e8eaed;
    padding: 72px 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(26, 115, 232, .07), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: var(--cw-text);
    font-family: Arial, Helvetica, sans-serif;
}

.cw-reviews-wrap {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.cw-reviews-heading {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.cw-google-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #3c4043;
    font-size: 15px;
    font-weight: 700;
}

.cw-google-wordmark {
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.cw-google-wordmark span:nth-child(1),
.cw-google-wordmark span:nth-child(4) { color: #4285f4; }
.cw-google-wordmark span:nth-child(2),
.cw-google-wordmark span:nth-child(6) { color: #ea4335; }
.cw-google-wordmark span:nth-child(3) { color: #fbbc05; }
.cw-google-wordmark span:nth-child(5) { color: #34a853; }

.cw-reviews-heading h2 {
    margin: 0 0 15px;
    color: var(--cw-text);
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.cw-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--cw-muted);
    font-size: 15px;
}

.cw-rating-summary strong {
    color: var(--cw-text);
    font-size: 25px;
}

.cw-rating-summary a {
    color: #475467;
    font-weight: 600;
    text-underline-offset: 3px;
}

.cw-stars {
    color: #f9ab00;
    font-size: 19px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cw-carousel-shell {
    position: relative;
}

.cw-review-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    padding: 8px 2px 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.cw-review-carousel::-webkit-scrollbar {
    display: none;
}

.cw-review-card {
    display: flex;
    min-width: 0;
    min-height: 312px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 40px rgba(32, 33, 36, .09);
    scroll-snap-align: start;
}

.cw-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cw-review-author img,
.cw-review-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cw-review-avatar {
    display: grid;
    place-items: center;
    background: #e8f0fe;
    color: #1967d2;
    font-size: 19px;
    font-weight: 700;
}

.cw-review-author-copy {
    min-width: 0;
    flex: 1;
}

.cw-author-name {
    display: block;
    overflow: hidden;
    color: var(--cw-text);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.cw-author-name:hover {
    text-decoration: underline;
}

.cw-review-time {
    display: block;
    margin-top: 4px;
    color: #70757a;
    font-size: 13px;
}

.cw-google-badge {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 9px rgba(60, 64, 67, .18);
    color: #4285f4;
    font-size: 17px;
    font-weight: 800;
}

.cw-review-text {
    margin: 14px 0 20px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.72;
}

.cw-view-google {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: #1967d2;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cw-view-google:hover {
    text-decoration: underline;
}

.cw-carousel-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #dfe3e8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 33, 36, .15);
    color: #344054;
    cursor: pointer;
    transform: translateY(-50%);
}

.cw-carousel-button:hover {
    color: var(--cw-blue);
}

.cw-carousel-prev { left: -21px; }
.cw-carousel-next { right: -21px; }

.cw-review-order-note {
    margin: 4px 0 0;
    color: #7a8088;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.cw-review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 27px;
}

.cw-review-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cw-review-button:hover {
    transform: translateY(-1px);
}

.cw-review-button-primary {
    background: var(--cw-blue);
    color: #fff;
    box-shadow: 0 7px 17px rgba(26, 115, 232, .23);
}

.cw-review-button-outline {
    border-color: var(--cw-blue);
    background: #fff;
    color: var(--cw-blue);
}

.cw-review-fallback {
    padding: 32px;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(32, 33, 36, .07);
}

.cw-review-fallback p {
    margin: 0 0 18px;
    color: var(--cw-muted);
}

@media (max-width: 1000px) {
    .cw-review-carousel {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 720px) {
    .cw-google-reviews {
        padding: 54px 14px;
    }

    .cw-review-carousel {
        grid-auto-columns: 88%;
        gap: 14px;
        padding-inline: 2px;
    }

    .cw-review-card {
        min-height: 300px;
        padding: 22px;
    }

    .cw-carousel-button {
        display: none;
    }
}

@media (max-width: 520px) {
    .cw-review-carousel {
        grid-auto-columns: 94%;
    }

    .cw-review-actions {
        flex-direction: column;
    }

    .cw-review-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-review-carousel {
        scroll-behavior: auto;
    }

    .cw-review-button {
        transition: none;
    }
}
