/* ========================================
   WR Plus - Testimonial Carousel
   ======================================== */

.wr-testimonial-section {
    position: relative;
    overflow: hidden;
}

.wr-testimonial-badge {
    display: inline-block;
    border: 1.5px solid;
    font-weight: 500;
    line-height: 1.4;
}

.wr-testimonial-heading {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

.wr-testimonial-description {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Rating */
.wr-testimonial-rating {
    display: flex;
    align-items: center;
}

.wr-stars {
    display: flex;
    flex-shrink: 0;
}

.wr-star {
    line-height: 1;
}

.wr-rating-text {
    line-height: 1.4;
    display: flex;
    align-items: center;
}

/* WYSIWYG wraps content in a <p> which is block-level by default —
   override to inline so it sits on the same line as the stars */
.wr-rating-text p {
    display: inline;
    margin: 0;
}

/* Carousel */
.wr-carousel-wrapper {
    overflow: hidden;
    margin: 0;
}

.wr-testimonial-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Review Card */
.wr-review-card {
    flex: 0 0 calc((100% - (var(--slides-to-show, 3) - 1) * 20px) / var(--slides-to-show, 3));
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border-style: solid;
}

.wr-review-card.active {
    position: relative;
}

.wr-reviewer-info {
    flex-shrink: 0;
}

.wr-reviewer-name {
    font-weight: 600;
    line-height: 1.3;
}

.wr-reviewer-year {
    line-height: 1.4;
}

.wr-review-title {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    word-wrap: break-word;
}

.wr-review-text {
    flex-grow: 1;
    line-height: 1.65;
    word-wrap: break-word;
}

/* Navigation */
.wr-carousel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wr-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: transparent;
}

.wr-nav-btn:hover {
    opacity: 0.85;
}

.wr-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wr-dot {
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wr-dot:hover {
    opacity: 0.7;
}

/* Responsive breakpoints for slides */
@media (max-width: 1024px) {
    .wr-review-card {
        flex: 0 0 calc((100% - (var(--slides-tablet, 2) - 1) * 20px) / var(--slides-tablet, 2));
    }
}

@media (max-width: 767px) {
    .wr-review-card {
        flex: 0 0 calc((100% - (var(--slides-mobile, 1) - 1) * 20px) / var(--slides-mobile, 1));
    }
}