.ocf-testimonials {
    background: var(--ocf-bg);
}

.ocf-testimonials-header,
.ocf-testimonials__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ocf-testimonials-heading {
    max-width: 720px;
}

.ocf-testimonial-nav {
    display: flex;
    gap: 0.625rem;
    margin-left: auto;
}

.ocf-testimonial-nav button {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ocf-border);
    background: var(--ocf-bg);
    color: var(--ocf-heading);
    line-height: 1;
}

.ocf-testimonial-nav button:hover {
    border-color: var(--ocf-heading);
}

.ocf-testimonial-nav button:disabled {
    cursor: default;
    opacity: 0.35;
}

.ocf-testimonial-nav svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.ocf-testimonial-viewport {
    overflow: hidden;
}

.ocf-testimonial-track {
    --testimonial-gap: var(--grid-gap);
    display: flex;
    flex-wrap: nowrap;
    gap: var(--testimonial-gap);
    transition: transform 260ms ease;
    will-change: transform;
}

.ocf-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.ocf-testimonial-card,
.ocf-testimonial {
    position: relative;
    display: grid;
    gap: 1rem;
    border: var(--card-border-width) solid var(--card-border-color);
    background: var(--ocf-bg);
    padding: 1rem;
}

.ocf-testimonial-track .ocf-testimonial-card {
    flex: 0 0 calc((100% - (var(--testimonial-gap) * 2)) / 3);
}

.ocf-testimonial-card--spotlight {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ocf-testimonial-card--spotlight blockquote {
    color: var(--ocf-heading);
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.35;
}

.ocf-testimonial-card--spotlight .testimonial-quote-mark {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.ocf-testimonial-card--compact {
    gap: 0.75rem;
}

.ocf-testimonial-card--compact .testimonial-quote-mark {
    font-size: var(--text-xl);
}

.ocf-testimonial-card--compact blockquote {
    font-size: var(--text-sm);
}

.testimonial-quote-mark {
    color: var(--ocf-label);
    font-size: var(--text-2xl);
    line-height: 1;
}

.ocf-testimonial-card blockquote,
.ocf-testimonial blockquote,
.ocf-testimonial__text {
    margin: 0;
    color: var(--ocf-body);
}

.ocf-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ocf-testimonial-stars {
    display: inline-flex;
    gap: 0.125rem;
    color: var(--ocf-accent);
    line-height: 1;
}

.ocf-testimonial-stars svg {
    display: block;
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 1.25;
}

.ocf-testimonial-stars .is-filled {
    fill: currentColor;
}

.ocf-testimonial-stars .is-empty {
    fill: none;
    color: var(--ocf-border);
}

.ocf-testimonial-footer strong,
.ocf-testimonial-footer span {
    display: block;
}

.ocf-testimonial__author {
    color: var(--ocf-heading);
    font-weight: 700;
}

.ocf-testimonial__meta {
    color: var(--ocf-label);
    font-size: var(--text-sm);
}

.testimonial-more-wrap {
    position: relative;
    display: inline-block;
}

.testimonial-more-trigger {
    border: 0;
    background: transparent;
    color: var(--ocf-accent);
    padding: 0;
    font-weight: 700;
}

.testimonial-review-popover {
    display: none;
}

.ocf-testimonials-spotlight {
    max-width: 980px;
}

.ocf-testimonials-compact-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

@media (max-width: 900px) {
    .ocf-testimonial-track .ocf-testimonial-card {
        flex-basis: calc((100% - var(--testimonial-gap)) / 2);
    }

    .ocf-testimonials__grid,
    .ocf-testimonials-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ocf-testimonials-header { display: grid; }
    .ocf-testimonial-nav { margin-left: 0; }
    .ocf-testimonial-track .ocf-testimonial-card {
        flex-basis: 100%;
    }

    .ocf-testimonials__grid,
    .ocf-testimonials-compact-row { grid-template-columns: 1fr; }
}
