.xpt-testimonials {
    position: relative;
    width: 100%;
    --xpt-arrow-offset: -18px;
}

.xpt-testimonials .xpt-swiper {
    overflow: hidden;
    width: 100%;
}

.xpt-testimonials .swiper-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
    transition-property: transform;
}

.xpt-testimonials .swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    transition-property: transform;
}

.xpt-testimonials.xpt-equal-height .swiper-slide {
    display: flex;
}

.xpt-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(18, 32, 52, 0.08);
}

.xpt-equal-height .xpt-card {
    height: 100%;
}

.xpt-stars {
    color: #f4b400;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 18px;
    white-space: nowrap;
}

.xpt-star {
    display: inline-block;
    margin-right: 2px;
}

.xpt-star:last-child {
    margin-right: 0;
}

.xpt-star-empty {
    opacity: 0.22;
}

.xpt-review {
    color: #252a34;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.xpt-quote {
    font-weight: 700;
}

.xpt-card-footer {
    margin-top: auto;
}

.xpt-reviewer {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.xpt-google {
    display: flex;
    align-items: center;
    gap: 7px;
}

.xpt-google-logo {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.xpt-google-label {
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
}

.xpt-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 6px 20px rgba(18, 32, 52, 0.14);
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .2s ease, opacity .2s ease;
}

.xpt-arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.xpt-arrow.swiper-button-disabled {
    cursor: not-allowed;
    opacity: .35;
}

.xpt-prev { left: var(--xpt-arrow-offset); }
.xpt-next { right: var(--xpt-arrow-offset); }

.xpt-pagination {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.xpt-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 5px;
    background: #a7adb8;
    opacity: .45;
}

.xpt-pagination .swiper-pagination-bullet-active {
    background: #4285f4;
    opacity: 1;
}

@media (max-width: 767px) {
    .xpt-testimonials {
        --xpt-arrow-offset: 4px;
    }

    .xpt-arrow {
        top: 46%;
    }
}


/* Grid layout */
.xpt-testimonials.xpt-display-grid .xpt-swiper { overflow: visible; }
.xpt-testimonials.xpt-display-grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    transform: none !important;
}
.xpt-testimonials.xpt-display-grid .swiper-slide { width: auto !important; height: auto; }
.xpt-testimonials.xpt-display-grid .xpt-card { height: 100%; }
.xpt-reviewer-photo-wrap { margin-bottom: 18px; }
.xpt-reviewer-photo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}
@media (max-width: 1024px) {
    .xpt-testimonials.xpt-display-grid .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .xpt-testimonials.xpt-display-grid .swiper-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
