.yandex-review-card {
    display: flex;
    flex-direction: column;
    align-items: normal;
    width: 100%;
    min-width: 280px;
    border-radius: 8px;
    /*height: 320px;  Increased height to accommodate 6 lines of text */
    background: white;
    position: relative;
    overflow: hidden; /* Contain the pseudo-element */
}

.yandex-review-header {
    display: flex;
    flex-direction: column;
    align-items: normal;
    column-gap: 16px;
    margin-bottom: 12px;
}

.yandex-reviewer-info {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    column-gap: 20px;
}

.yandex-reviewer-avatar {
    width: 48px;
    height: 48px;
    min-height: 48px;
    min-width: 48px;
}

.yandex-reviewer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.yandex-reviewer-details {
    display: flex;
    flex-direction: column;
    align-items: normal;
    row-gap: 4px;
    min-width: 120px;
}

.yandex-reviewer-name {
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.yandex-review-date {
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0px;
    text-align: left;
    color: rgb(80, 77, 116);
    overflow-wrap: unset;
    word-break: unset;
}

.yandex-review-rating {
    margin-top: 12px;
}

.yandex-review-stars {
    display: flex;
    gap: 4px;
}

.yandex-review-stars .yandex-filled-star {
    fill: #fac816;
}

.yandex-review-stars .yandex-empty-star {
    fill: #e0e0e0;
}

.yandex-review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px;
    transition: height 0.2s;
    margin-top: 0px;
    font-size: 16px;
    color: rgb(80, 77, 116);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0px;
    margin-bottom: 12px;
    width: 100%;
    -webkit-line-clamp: 7;
    position: relative;
}

/* Fade effect at the bottom of the review text */
.yandex-review-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em; /* Height of 3 lines to match the fade */
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* Yandex badge styles */
.mini-badge__rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-badge__stars-count {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    color: #000;
}

.mini-badge__stars {
    margin-bottom: 8px;
}

.stars-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stars-list__star {
    width: 20px;
    height: 20px;
    margin-right: 2px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23fac816"><path d="M9.52447 2.71365C9.67415 2.25299 10.3259 2.25299 10.4755 2.71365L12.0656 7.60737H17.2112C17.6955 7.60737 17.8969 8.22718 17.5051 8.51188L13.3422 11.5364L14.9323 16.4301C15.0819 16.8907 14.5547 17.2738 14.1628 16.9891L10 13.9646L5.83715 16.9891C5.4453 17.2738 4.91806 16.8907 5.06773 16.4301L6.6578 11.5364L2.49495 8.51188C2.10309 8.22718 2.30448 7.60737 2.78884 7.60737H7.93441L9.52447 2.71365Z"/></svg>')
        no-repeat;
    background-size: contain;
}

.stars-list__star:last-child {
    margin-right: 0;
}

.mini-badge__rating {
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

/* Position the rating info under the title */
.mini-badge__rating-info {
    margin: 10px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge__more-reviews-link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* Container for the badge links at the bottom */
.yandex-badge-links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0;
}

.yandex-reviews-slider {
    position: relative;
    margin-top: 1.875em;
}
.yandex-reviews-slider .swiper-slide {
    width: 25%;
    padding-right: 4em;
    visibility: hidden;
}
.yandex-reviews-slider .swiper-slide.swiper-slide-visible {
    visibility: visible;
}
.yandex-reviews-slider .swiper-button-prev {
    left: -1.25em;
}
.yandex-reviews-slider .swiper-pagination {
    bottom: -60px;
}
@media screen and (max-width: 992px) {
    .yandex-reviews-slider .swiper-slide {
        width: 18.44em;
        padding-right: 0.94em;
    }
    .yandex-reviews-slider .swiper-nav {
        margin-top: 1.56em;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .yandex-reviews-slider .swiper-button {
        position: static;
        margin: 0 0.47em;
        -webkit-transform: unset;
        -ms-transform: unset;
        transform: unset;
    }
    .yandex-reviews-slider .swiper-pagination {
        display: none;
    }
    .yandex-badge-links-container {
        flex-direction: column;
        gap: 10px;
    }
}
