.testimonials.reviews-carousel {
    padding: 16px 0 20px !important;
}

#testimonials .reviews-panel {
    box-sizing: border-box;
    max-width: 620px;
    margin-inline: auto;
    padding: clamp(10px, 2.6vw, 16px);
    border: 1px solid #454545;
    border-radius: 22px;
    background: #242424;
    color: #f4f4f4;
    text-align: left;
    font-family: var(--remake-system-font, inherit);
}

#testimonials .reviews-panel .section-title {
    margin: 0 0 8px !important;
    text-align: left;
}

#testimonials .featured-review-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 17px;
    background: #ebebeb;
    touch-action: pan-y pinch-zoom;
}

#testimonials .featured-review {
    grid-area: 1 / 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 4px;
    min-height: 128px;
    padding: 11px 12px 0;
    color: #222;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease-out, visibility 0s linear 120ms;
}

#testimonials .featured-review.is-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease-in 80ms;
}

@media (prefers-reduced-motion: reduce) {
    #testimonials .featured-review,
    #testimonials .featured-review.is-current {
        transition: none;
    }
}

#testimonials .featured-review-text {
    margin: 0;
    font-family: var(--remake-system-font, inherit);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: inherit;
    overflow-wrap: anywhere;
}

#testimonials .review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#testimonials .review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: #d6d6d6;
    color: #292929;
    font-size: 13px;
    font-weight: 650;
}

#testimonials .featured-review-author {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

#testimonials .review-provider {
    display: block;
    margin-top: 4px;
    color: #4b4b4b;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#testimonials .review-original,
#testimonials .reviews-sources a {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    min-height: 44px;
    color: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

#testimonials a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#testimonials .reviews-panel [hidden] {
    display: none;
}

#testimonials .reviews-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

#testimonials :is(.featured-review-slot, a):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    box-shadow: none;
}

#testimonials .featured-review-slot:focus-visible {
    outline-color: #f4f4f4;
}

#testimonials .review-fallback {
    margin: 0;
    color: #b9b9b9;
}
