.cb-yandexmapreviews {
    --ymr-text: inherit;
    --ymr-muted: #777;
    --ymr-accent: currentColor;
    --ymr-primary: #ff0000;
    --ymr-secondary: #008000;
    --ymr-star: #f5a400;
    --ymr-border: #e7e7e7;
    --ymr-card-bg: #fff;
    --ymr-radius: 16px;
    width: 100%;
    max-width: 100%;
    margin: 32px 0;
    color: var(--ymr-text);
    font-family: inherit;
    box-sizing: border-box;
}

.cb-yandexmapreviews-product-wide-holder {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    clear: both;
}

.cb-yandexmapreviews--product-wide {
    width: 100%;
}

.cb-yandexmapreviews *,
.cb-yandexmapreviews *::before,
.cb-yandexmapreviews *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.cb-yandexmapreviews__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__head {
    align-items: flex-start;
}

.cb-yandexmapreviews__head-main {
    min-width: 0;
}

.cb-yandexmapreviews__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: inherit;
}

.cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__title {
    font-size: 30px;
}

.cb-yandexmapreviews__source-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.cb-yandexmapreviews__source-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 4px 12px;
    border: 1px solid var(--ymr-border);
    border-radius: 999px;
    background: #f3f5f8;
    color: var(--ymr-muted);
    font-size: 14px;
    line-height: 1;
}

.cb-yandexmapreviews__source-pill--all {
    background: var(--ymr-card-bg);
    color: var(--ymr-text);
}

.cb-yandexmapreviews__source-pill--total {
    color: var(--ymr-text);
}

.cb-yandexmapreviews__source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ymr-primary);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.cb-yandexmapreviews__source-pill--google .cb-yandexmapreviews__source-icon {
    background: #4285f4;
}

.cb-yandexmapreviews__source-pill--2gis .cb-yandexmapreviews__source-icon {
    background: #19a34a;
}

.cb-yandexmapreviews__source-pill--flowwow .cb-yandexmapreviews__source-icon {
    background: #7a3cff;
}

.cb-yandexmapreviews__source-label {
    color: var(--ymr-muted);
}

.cb-yandexmapreviews__source-rating {
    color: var(--ymr-text);
}

.cb-yandexmapreviews__summary {
    margin-top: 14px;
    color: var(--ymr-muted);
    font-size: 14px;
    line-height: 1.3;
}

.cb-yandexmapreviews__rating,
.cb-yandexmapreviews__stars,
.cb-yandexmapreviews__summary-stars,
.cb-yandexmapreviews__showcase-stars {
    color: var(--ymr-star);
    letter-spacing: 1px;
}

.cb-yandexmapreviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.cb-yandexmapreviews__widget {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.cb-yandexmapreviews__widget-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    padding: 20px;
    border: 1px solid var(--ymr-border);
    border-radius: var(--ymr-radius);
    background: var(--ymr-card-bg);
}

.cb-yandexmapreviews__widget-rating {
    color: var(--ymr-text);
    font-size: 40px;
    line-height: 1;
    font-weight: inherit;
}

.cb-yandexmapreviews__widget-count {
    margin-top: 8px;
    color: var(--ymr-muted);
    font-size: 14px;
    line-height: 1.35;
}

.cb-yandexmapreviews__widget-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cb-yandexmapreviews--widget .cb-yandexmapreviews__card {
    padding: 14px;
}

.cb-yandexmapreviews--widget .cb-yandexmapreviews__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.cb-yandexmapreviews__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ymr-border);
    border-radius: var(--ymr-radius);
    padding: 16px;
    background: var(--ymr-card-bg);
    overflow-wrap: break-word;
}

.cb-yandexmapreviews--style-compact .cb-yandexmapreviews__card {
    padding: 14px;
}

.cb-yandexmapreviews--style-compact .cb-yandexmapreviews__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.cb-yandexmapreviews__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cb-yandexmapreviews__avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f2f2;
}

.cb-yandexmapreviews__author {
    font-weight: inherit;
    line-height: 1.3;
}

.cb-yandexmapreviews__date {
    color: var(--ymr-muted);
    font-size: 12px;
}

.cb-yandexmapreviews__text {
    margin: 10px 0 0;
    line-height: 1.45;
}

.cb-yandexmapreviews__photos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow: hidden;
}

.cb-yandexmapreviews__photo {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: calc(var(--ymr-radius) / 2);
    background: #f2f2f2;
}

.cb-yandexmapreviews__photo--cover {
    display: block;
    width: 100%;
    height: 160px;
    margin-bottom: 12px;
    border-radius: calc(var(--ymr-radius) / 2);
}

.cb-yandexmapreviews__slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 54px;
}

.cb-yandexmapreviews__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__track {
    grid-auto-columns: calc((100% - 96px) / 5);
    gap: 24px;
    align-items: start;
    padding: 0;
    scroll-padding-left: 0;
}

.cb-yandexmapreviews__track::-webkit-scrollbar {
    display: none;
}

.cb-yandexmapreviews__slide {
    display: flex;
    min-width: 0;
    scroll-snap-align: start;
}

.cb-yandexmapreviews__slide > .cb-yandexmapreviews__card,
.cb-yandexmapreviews__slide > .cb-yandexmapreviews__showcase-card {
    height: 100%;
}

.b-yandexmapreviews-home .cb-yandexmapreviews__slider {
    padding: 0;
}

.b-yandexmapreviews-home .cb-yandexmapreviews__track {
    grid-auto-columns: calc((100% - 48px) / 4);
    grid-template-columns: none;
    gap: 16px;
}

.b-yandexmapreviews-home .cb-yandexmapreviews__nav {
    left: -54px;
    right: -54px;
}

.cb-yandexmapreviews__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
    transform: translateY(-50%);
}

.cb-yandexmapreviews__nav button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ymr-border);
    border-radius: 50%;
    background: var(--ymr-card-bg);
    color: var(--ymr-accent);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.cb-yandexmapreviews__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.cb-yandexmapreviews__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--ymr-border);
    border-radius: 50%;
    background: var(--ymr-card-bg);
}

.cb-yandexmapreviews__dots button.is-active {
    border-color: var(--ymr-primary);
}

.cb-yandexmapreviews__actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.cb-yandexmapreviews__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: calc(var(--ymr-radius) / 2);
    background: var(--ymr-primary);
    color: #fff;
    font-weight: inherit;
    text-decoration: none;
}

.cb-yandexmapreviews__button--accent {
    background: var(--ymr-secondary);
}

.cb-yandexmapreviews__showcase-card {
    width: 100%;
    min-width: 0;
    text-align: center;
    overflow-wrap: break-word;
}

.cb-yandexmapreviews__showcase-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--ymr-radius);
    background: #f5f5f5;
}

.cb-yandexmapreviews__showcase-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-yandexmapreviews__showcase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--ymr-star);
    font-size: 22px;
}

.cb-yandexmapreviews__showcase-body {
    padding-top: 14px;
}

.cb-yandexmapreviews__showcase-date {
    margin-bottom: 8px;
    color: var(--ymr-muted);
    font-size: 14px;
}

.cb-yandexmapreviews__showcase-author {
    margin-bottom: 8px;
    color: var(--ymr-accent);
    font-size: 18px;
    line-height: 1.25;
    font-weight: inherit;
}

.cb-yandexmapreviews__showcase-text {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    margin: 8px auto 0;
    color: var(--ymr-muted);
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.cb-yandexmapreviews__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cb-yandexmapreviews__filters a {
    padding: 7px 11px;
    border: 1px solid var(--ymr-border);
    border-radius: calc(var(--ymr-radius) / 2);
    color: var(--ymr-text);
    text-decoration: none;
}

.cb-yandexmapreviews__filters a.is-active {
    background: var(--ymr-primary);
    color: #fff;
    border-color: var(--ymr-primary);
}

@media (max-width: 900px) {
    .cb-yandexmapreviews__grid,
    .cb-yandexmapreviews__track {
        grid-auto-columns: calc((100% - 16px) / 2);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__title {
        font-size: 28px;
    }

    .cb-yandexmapreviews__widget {
        grid-template-columns: 1fr;
    }

    .cb-yandexmapreviews__widget-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .b-yandexmapreviews-home .cb-yandexmapreviews__track {
        grid-auto-columns: calc((100% - 32px) / 3);
        grid-template-columns: none;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__track {
        grid-auto-columns: calc((100% - 48px) / 3);
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .cb-yandexmapreviews {
        margin: 24px 0;
        overflow: hidden;
    }

    .cb-yandexmapreviews__head {
        display: block;
    }

    .cb-yandexmapreviews__title {
        font-size: 22px;
        line-height: 1.25;
    }

    .cb-yandexmapreviews__source-line,
    .cb-yandexmapreviews__summary {
        margin-top: 10px;
    }

    .cb-yandexmapreviews__source-line {
        gap: 6px;
    }

    .cb-yandexmapreviews__source-pill {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 13px;
    }

    .cb-yandexmapreviews__grid {
        grid-template-columns: 1fr;
    }

    .cb-yandexmapreviews__widget-list {
        grid-template-columns: 1fr;
    }

    .cb-yandexmapreviews__track {
        grid-auto-columns: 86%;
    }

    .b-yandexmapreviews-home .cb-yandexmapreviews__track {
        grid-auto-columns: 100%;
        grid-template-columns: none;
    }

    .b-yandexmapreviews-home .cb-yandexmapreviews__nav {
        left: auto;
        right: auto;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__track {
        display: flex !important;
        grid-auto-columns: auto;
        grid-template-columns: none;
        gap: 0;
        align-items: stretch;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .cb-yandexmapreviews__slider {
        padding: 0;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__slider {
        padding: 0 !important;
        overflow: hidden;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__slide {
        display: block !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        overflow: hidden;
    }

    .cb-yandexmapreviews__nav {
        position: static;
        margin-top: 12px;
        justify-content: flex-start;
        transform: none;
    }

    .cb-yandexmapreviews--style-photo_showcase .cb-yandexmapreviews__title {
        font-size: 24px;
    }

    .cb-yandexmapreviews__showcase-card,
    .cb-yandexmapreviews__showcase-media,
    .cb-yandexmapreviews__showcase-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        clear: none !important;
        position: relative;
    }

    .cb-yandexmapreviews__showcase-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
        text-align: center !important;
    }

    .cb-yandexmapreviews__showcase-card > * {
        flex: 0 0 auto !important;
    }

    .cb-yandexmapreviews__showcase-media,
    .cb-yandexmapreviews__showcase-body {
        display: block !important;
    }

    .cb-yandexmapreviews__showcase-media {
        order: 1;
        aspect-ratio: 4 / 3;
    }

    .cb-yandexmapreviews__showcase-body {
        order: 2;
    }

    .cb-yandexmapreviews__showcase-date,
    .cb-yandexmapreviews__showcase-author,
    .cb-yandexmapreviews__showcase-stars {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        text-align: center !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .cb-yandexmapreviews__showcase-date {
        white-space: nowrap;
    }

    .cb-yandexmapreviews__showcase-text {
        display: -webkit-box !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        font-size: 15px;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .cb-yandexmapreviews__button {
        width: 100%;
        min-width: 0;
    }
}
