/* Testimonial Slider */

.yayrev-testimonials {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0;
    visibility: hidden;
}

.yayrev-testimonials.is-ready {
    visibility: visible;
}

.yayrev-testimonials:focus {
    outline: none;
}

/* Viewport clips overflow */
.yayrev-testimonials__viewport {
    overflow: hidden;
}

/* Track: no gap — spacing handled by card margin */
.yayrev-testimonials__track {
    display: flex;
    transition: transform 0.4s ease;
}

/* ── Card ── */
/* Width set by JS. Margin-right creates gap between cards. */
.yayrev-testimonial-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Rating */
.yayrev-testimonial-card__rating {
    display: flex;
    margin-bottom: 16px;
}

.yayrev-testimonial-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.yayrev-testimonial-rating .yayrev-rating-icon {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
}

.yayrev-testimonial-rating .yayrev-rating-icon--empty {
    opacity: 0.25;
    filter: grayscale(100%);
}

.yayrev-testimonial-rating .yayrev-rating-label {
    margin-left: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Stars-specific color */
.yayrev-testimonial-rating--stars .yayrev-rating-icon--filled {
    color: #f59e0b;
}

/* Quote */
.yayrev-testimonial-card__quote {
    flex: 1;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    position: relative;
}

.yayrev-testimonial-card__quote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: -4px;
    font-size: 48px;
    line-height: 1;
    color: #e5e7eb;
    font-family: Georgia, serif;
    pointer-events: none;
}

.yayrev-testimonial-card__quote p {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.yayrev-testimonial-card__readmore {
    display: inline-block;
    margin-top: 6px;
    padding-left: 20px;
    font-size: 13px;
    color: var(--wp--preset--color--brandy-primary,#111111);
    text-decoration: none;
}

.yayrev-testimonial-card__readmore:hover {
    text-decoration: underline;
}

/* Footer: author + product */
.yayrev-testimonial-card__footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: auto;
}

.yayrev-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
}

.yayrev-testimonial-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.yayrev-testimonial-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #059669;
}

.yayrev-testimonial-card__product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.yayrev-testimonial-card__product span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yayrev-testimonial-card__product-img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.yayrev-testimonial-card__product:hover {
    color: var(--wp--preset--color--brandy-primary,#111111);
}

/* ── Navigation Arrows ── */
.yayrev-testimonials__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.yayrev-testimonials__nav:hover {
    background: #f9fafb;
    border-color: var(--wp--preset--color--brandy-primary,#111111);
    color: var(--wp--preset--color--brandy-primary,#111111);
}

.yayrev-testimonials__prev {
    left: -48px;
}

.yayrev-testimonials__next {
    right: -48px;
}

/* ── Pagination Dots ── */
.yayrev-testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.yayrev-testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yayrev-testimonials__dot:hover {
    background: #9ca3af;
}

.yayrev-testimonials__dot.is-active {
    background: var(--wp--preset--color--brandy-primary,#111111);
    transform: scale(1.2);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
    .yayrev-testimonials__prev {
        left: -40px;
    }

    .yayrev-testimonials__next {
        right: -40px;
    }
}

/* Mobile: arrows overlay card edges */
@media (max-width: 768px) {
    .yayrev-testimonials__prev {
        left: 4px;
    }

    .yayrev-testimonials__next {
        right: 4px;
    }

    .yayrev-testimonials__nav {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.9);
    }
}
