/* User Reviews Widget - Equal height cards & Carousel */

/* Equal height review cards (grid and carousel) */
.user-ratings-wrapper.elementor-grid {
    align-items: stretch;
}

.user-ratings-wrapper .user-rating {
    height: 100%;
    min-height: 0;
}

.user-ratings-wrapper .user-rating .review-user-rating {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.user-ratings-wrapper .user-rating .review-content {
    flex: 1;
    min-height: 0;
}

/* Carousel: equal height slides */
.user-ratings-wrapper.user-ratings-carousel .swiper-wrapper {
    align-items: stretch;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-slide {
    height: auto;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-slide .user-rating {
    height: 100%;
}

.user-ratings-wrapper.user-ratings-carousel {
    overflow: hidden;
    position: relative;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-button-prev,
.user-ratings-wrapper.user-ratings-carousel .swiper-button-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 11;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-top: 0;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-button-prev::after,
.user-ratings-wrapper.user-ratings-carousel .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-button-prev:hover,
.user-ratings-wrapper.user-ratings-carousel .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.user-ratings-wrapper.user-ratings-carousel .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    text-align: center;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-ratings-wrapper.user-ratings-carousel .swiper-pagination-bullet-active {
    background-color: #333;
}
