.toplist-rivertimes__wrapper {
    margin: 26px 0;
}

.toplist-rivertimes__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-rivertimes-counter;
    gap: 16px;
}

.toplist-rivertimes__filter-tags-json {
    box-sizing: border-box;
}

.toplist-rivertimes__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    gap: 4px;
}

.toplist-rivertimes__filter-tag {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 28px;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
}

.toplist-rivertimes__filter-tag.filter-tag-active {
    color: #fff;
    background: #000;
}

.toplist-rivertimes__show-more-btn {
    font-family: var(--bm-alt-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 24px auto 0;
    padding: 13px 16px;
    color: #101214;
    border: 2px solid #101214;
    border-radius: 7px;
    gap: 8px;
}

.toplist-rivertimes__show-more-btn:hover {
    cursor: pointer;
    color: #fff;
    background: #101214;
}

.toplist-rivertimes__show-more-btn:hover svg path {
    stroke: #fff;
}

.toplist-rivertimes__offer {
    position: relative;
    display: grid;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #eaeaea;
    background: #fff;
    gap: 20px;
    grid-template-areas: 'logo main cta-btn';
    grid-template-columns: 125px auto 159px;
    grid-template-rows: auto;
}

.toplist-rivertimes__offer.hidden {
    display: none;
}

.toplist-rivertimes__offer-logo-wrapper {
    grid-area: logo;
}

.toplist-rivertimes__offer-logo img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.toplist-rivertimes__offer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    grid-area: main;
}

.toplist-rivertimes__offer-title,
.toplist-rivertimes__offer-title p {
    font-family: var(--bm-font-family);
    font-size: 21.3px;
    font-weight: 700;
    line-height: 28px;
    margin: 0;
    padding: 0;
    color: #000;
}

.toplist-rivertimes__offer-extra {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 78px;
    gap: 6px;
}

.toplist-rivertimes__offer-rating {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.toplist-rivertimes__offer-rating-score {
    font-family: var(--bm-font-family);
    font-size: 20.8px;
    font-weight: 700;
    line-height: 29px;
    height: 30px;
    text-align: center;
    color: #000;
}

.toplist-rivertimes__offer-rating img {
    width: 77px;
    height: 14px;
    object-fit: contain;
}

.toplist-rivertimes__offer-brand-name {
    font-family: var(--bm-font-family);
    font-size: 12.3px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    color: #6b7b84;
}

.toplist-rivertimes__offer-cta-btn {
    font-family: var(--bm-font-family);
    font-size: 18.4px;
    font-weight: 700;
    line-height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 8px;
    color: #fff;
    border-bottom: 2px solid #801c1c;
    border-radius: 4px;
    background: #d61f33;
    gap: 8px;
    grid-area: cta-btn;
}

.toplist-rivertimes__offer-cta-btn:before {
    position: relative;
    width: 18px;
    height: 18px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75001 3.21497L14.25 9.96497L3.75001 16.715V3.21497Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.toplist-rivertimes__offer-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    background: #801c1c;
}

.toplist-rivertimes__offer:before {
    font-family: var(--bm-font-family);
    font-size: 14.1px;
    font-weight: 700;
    line-height: 18px;
    position: absolute;
    z-index: 1;
    top: calc(50% - 11px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 22px;
    padding: 1px 8px;
    content: counter(bm-toplist-rivertimes-counter);
    counter-increment: bm-toplist-rivertimes-counter;
    color: #000;
    background: #eaeaea;
}

@media screen and (width <= 991px) {
    .toplist-rivertimes__wrapper {
        margin: 20px 0;
    }

    .toplist-rivertimes__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100vw;
        margin: 0 -16px 8px;
        padding: 0 16px;
    }

    .toplist-rivertimes__filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .toplist-rivertimes__offer {
        align-items: flex-start;
        padding: 16px;
        column-gap: 14px;
        grid-template-areas:
            'logo main'
            'cta-btn cta-btn';
        grid-template-columns: 125px auto;
        row-gap: 8px;
    }

    .toplist-rivertimes__offer-logo-wrapper {
        display: flex;
        align-self: start;
        flex-direction: column;
        gap: 4px;
    }

    .toplist-rivertimes__offer-brand-name {
        display: none;
    }

    .toplist-rivertimes__offer-logo-wrapper .toplist-rivertimes__offer-brand-name {
        font-size: 10.3px;
        display: block !important;
        text-align: left;
    }

    .toplist-rivertimes__offer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .toplist-rivertimes__offer-title,
    .toplist-rivertimes__offer-title p {
        font-size: 20.8px;
        line-height: 25px;
    }

    .toplist-rivertimes__offer-extra {
        width: auto;
    }

    .toplist-rivertimes__offer-rating {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        gap: 4px;
    }

    .toplist-rivertimes__offer-rating-score {
        font-size: 16px;
        line-height: 17px;
        height: auto;
    }

    .toplist-rivertimes__offer-rating img {
        width: 66px;
        height: 12px;
    }

    .toplist-rivertimes__offer-cta-btn {
        font-size: 20.8px;
        line-height: 29px;
    }

    .toplist-rivertimes__offer:before {
        font-size: 12px;
        top: 34px;
        width: 24px;
    }
}
