.lgw-testimonials {
    --lgw-black: #0d0f0c;
    --lgw-muted: #5f675b;
    --lgw-lime: #b9ff4a;
    --lgw-lime-2: #d8ff9b;
    --lgw-card: rgba(255, 255, 255, 0.96);
    --lgw-line: rgba(13, 15, 12, 0.10);
    --lgw-shadow: 0 16px 38px rgba(25, 37, 14, 0.12);
    --lgw-gap: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--lgw-black);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.lgw-testimonials--brand {
    background:
        radial-gradient(circle at 12% 12%, rgba(185,255,74,.40), transparent 25%),
        radial-gradient(circle at 86% 82%, rgba(185,255,74,.34), transparent 28%),
        linear-gradient(135deg, #f3ffe3 0%, #e8ffd1 54%, #f7ffe9 100%);
}

.lgw-testimonials--brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .55;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(27,35,19,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,35,19,.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 78%);
}

.lgw-testimonials--transparent {
    background: transparent;
}

.lgw-testimonials__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 86px 0 74px;
}

.lgw-testimonials__header {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.lgw-testimonials__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    border: 1px solid rgba(13,15,12,.08);
    border-radius: 999px;
    background: rgba(185,255,74,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: .02em;
}

.lgw-testimonials__heading {
    margin: 13px 0 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
}

.lgw-testimonials__subheading {
    max-width: 640px;
    margin: 14px auto 0;
    color: var(--lgw-muted);
    font-size: 15px;
    line-height: 1.65;
}

.lgw-testimonials__carousel-wrap {
    position: relative;
}

.lgw-testimonials__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    border-radius: 22px;
    outline: none;
}

.lgw-testimonials__viewport::-webkit-scrollbar {
    display: none;
}

.lgw-testimonials__viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(13,15,12,.18);
}

.lgw-testimonials__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--lgw-gap) * 2)) / 3);
    gap: var(--lgw-gap);
    align-items: stretch;
    padding: 10px 18px 46px;
}

.lgw-testimonial-card {
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 365px;
    padding: 24px;
    overflow: hidden;
    background: var(--lgw-card);
    border: 1px solid var(--lgw-line);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(28, 37, 19, 0.07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.lgw-testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13,15,12,.16);
    box-shadow: var(--lgw-shadow);
}

.lgw-testimonial-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.lgw-testimonial-card__stars {
    display: inline-flex;
    gap: 2px;
    font-size: 15px;
    line-height: 1;
    color: #dfe4da;
}

.lgw-testimonial-card__stars .is-filled {
    color: #00b67a;
}

.lgw-testimonial-card__source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    max-width: 52%;
    padding: 5px 9px 5px 6px;
    border: 1px solid rgba(13,15,12,.075);
    border-radius: 999px;
    background: rgba(248,250,247,.88);
    color: #3f473c;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.lgw-testimonial-card__source-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
}

.lgw-testimonial-card__source-logo--trustpilot {
    background: #00b67a;
    color: #fff;
    font-size: 11px;
}

.lgw-testimonial-card__source-logo--google {
    background: #fff;
    border: 1px solid rgba(13,15,12,.08);
}

.lgw-testimonial-card__source-logo--google svg {
    width: 12px;
    height: 12px;
    display: block;
}

.lgw-testimonial-card__source-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgw-testimonial-card--google .lgw-testimonial-card__stars .is-filled {
    color: #fbbc04;
}

.lgw-testimonial-card--trustpilot .lgw-testimonial-card__stars .is-filled {
    color: #00b67a;
}

.lgw-testimonial-card__quote-mark {
    position: absolute;
    top: 54px;
    right: 22px;
    color: rgba(24, 32, 17, .05);
    font-family: Georgia, serif;
    font-size: 92px;
    line-height: 1;
    pointer-events: none;
}

.lgw-testimonial-card__title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #11150f;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -.015em;
    font-weight: 780;
}

.lgw-testimonial-card__body {
    position: relative;
    z-index: 1;
    color: #52594f;
    font-size: 14px;
    line-height: 1.68;
}

.lgw-testimonial-card__body p {
    margin: 0;
}

.lgw-testimonial-card__body.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
}

.lgw-testimonial-card__read-more {
    align-self: flex-start;
    margin: 10px 0 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #11150f !important;
    box-shadow: none !important;
    transform: none !important;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lgw-testimonial-card__read-more:hover,
.lgw-testimonial-card__read-more:focus,
.lgw-testimonial-card__read-more:focus-visible,
.lgw-testimonial-card__read-more:active {
    background: transparent !important;
    background-color: transparent !important;
    color: #11150f !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline !important;
}

.lgw-testimonial-card__read-more:focus-visible {
    outline: 2px solid rgba(17, 21, 15, .35);
    outline-offset: 4px;
}

.lgw-testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 24px;
}

.lgw-testimonial-card__avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8f0e0, #d8e6ce);
    border: 1px solid rgba(13,15,12,.08);
    color: #1f281a;
    font-size: 12px;
    font-weight: 800;
}

.lgw-testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lgw-testimonial-card__person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lgw-testimonial-card__person strong {
    overflow: hidden;
    color: #12160f;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lgw-testimonial-card__person span {
    color: #7a8176;
    font-size: 11px;
    line-height: 1.3;
}

.lgw-testimonials__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(13,15,12,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #11150f;
    box-shadow: 0 10px 28px rgba(17, 24, 10, .10);
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.lgw-testimonials__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.045);
}

.lgw-testimonials__nav:disabled {
    opacity: .34;
    cursor: default;
    transform: translateY(-50%);
}

.lgw-testimonials__nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lgw-testimonials__nav--prev { left: -22px; }
.lgw-testimonials__nav--next { right: -22px; }

.lgw-testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: -12px;
}

.lgw-testimonials__dots {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
}

.lgw-testimonials__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(13,15,12,.20);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.lgw-testimonials__dot.is-active {
    width: 26px;
    background: #11150f;
}

.lgw-testimonials__review-badges {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
}

.lgw-testimonials__review-badges > * {
    max-width: 100%;
}

.lgw-testimonials__dependency-note {
    width: min(560px, 100%);
    margin: 20px auto 0;
    padding: 10px 14px;
    border: 1px dashed rgba(13,15,12,.22);
    border-radius: 10px;
    background: rgba(255,255,255,.62);
    color: #5f675b;
    font-size: 12px;
    text-align: center;
}


.lgw-testimonials-empty {
    padding: 14px 16px;
    border: 1px dashed #bbb;
    border-radius: 10px;
    background: #fff;
    color: #555;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .lgw-testimonials__inner {
        width: min(920px, calc(100% - 48px));
    }

    .lgw-testimonials__track {
        grid-auto-columns: calc((100% - var(--lgw-gap)) / 2);
    }

    .lgw-testimonials__nav--prev { left: -18px; }
    .lgw-testimonials__nav--next { right: -18px; }
}

@media (max-width: 720px) {
    .lgw-testimonials__inner {
        width: min(100% - 28px, 620px);
        padding: 64px 0 56px;
    }

    .lgw-testimonials__header {
        margin-bottom: 28px;
    }

    .lgw-testimonials__heading {
        font-size: clamp(31px, 10vw, 42px);
    }

    .lgw-testimonials__subheading {
        font-size: 14px;
    }

    .lgw-testimonials__track {
        grid-auto-columns: 100%;
        gap: 14px;
        padding: 10px 14px 38px;
    }

    .lgw-testimonial-card {
        min-height: 350px;
        padding: 22px;
        border-radius: 18px;
    }

    .lgw-testimonials__nav {
        display: none;
    }

    .lgw-testimonials__controls {
        flex-direction: column;
        justify-content: center;
        margin-top: -8px;
    }

    .lgw-testimonials__dots {
        justify-content: center;
    }

    .lgw-testimonials__review-badges {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lgw-testimonials__viewport {
        scroll-behavior: auto;
    }

    .lgw-testimonial-card,
    .lgw-testimonials__nav,
    .lgw-testimonials__dot {
        transition: none !important;
    }
}

/* v1.3 review-source additions */
.lgw-testimonial-card__source-logo--lgw,
.lgw-testimonial-card__source-logo--other {
    overflow: hidden;
}

.lgw-testimonial-card__source-logo--lgw {
    border: 1px solid rgba(13,15,12,.08);
    background: #fff;
}

.lgw-testimonial-card__source-logo--lgw img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lgw-testimonial-card__source-logo--lgw-fallback {
    background: #b9ff4a;
    color: #11150f;
    font-size: 10px;
}

.lgw-testimonial-card__source-logo--other {
    background: #2f3740;
    color: #fff;
    font-size: 10px;
}

.lgw-testimonial-card--lgw .lgw-testimonial-card__stars .is-filled {
    color: #79b92d;
}

.lgw-testimonial-card--other .lgw-testimonial-card__stars .is-filled {
    color: #252c22;
}
