@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Source+Serif+4:wght@600&display=swap');

.toplist-richmondreview__wrapper {
    margin: 16px 0;
}

.toplist-richmondreview__offers {
    display: flex;
    flex-direction: column;
}

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

.toplist-richmondreview__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    gap: 8px;
}

.toplist-richmondreview__filter-tag {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 135%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 42px;
    padding: 14px 24px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: #404040;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    background: #f8f8f8;
}

.toplist-richmondreview__filter-tag.filter-tag-active {
    color: #fff;
    background: #ed1c24;
}

.toplist-richmondreview__filter-tag:first-child:before {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7.7584 4.73085L8.5284 6.27085C8.6334 6.48085 8.9134 6.69085 9.14673 6.72585L10.5409 6.95919C11.4334 7.11086 11.6434 7.75252 11.0017 8.39419L9.91673 9.48502C9.7359 9.66585 9.6309 10.0217 9.68923 10.2784L9.9984 11.6259C10.2434 12.6875 9.67757 13.1017 8.7384 12.5475L7.43173 11.7717C7.19257 11.6317 6.80757 11.6317 6.5684 11.7717L5.2559 12.5417C4.31673 13.0959 3.7509 12.6817 3.9959 11.62L4.30507 10.2725C4.3634 10.0217 4.2584 9.66585 4.07757 9.47919L2.9984 8.40002C2.35673 7.75835 2.56673 7.11085 3.45923 6.96502L4.8534 6.73169C5.08673 6.69085 5.36673 6.48669 5.47173 6.27669L6.24173 4.73669C6.6559 3.89669 7.34423 3.89669 7.7584 4.73085Z' fill='%23FDF10C'/%3E%3Cpath d='M3.5 5.68752C3.26083 5.68752 3.0625 5.48919 3.0625 5.25002V1.16669C3.0625 0.92752 3.26083 0.729187 3.5 0.729187C3.73917 0.729187 3.9375 0.92752 3.9375 1.16669V5.25002C3.9375 5.48919 3.73917 5.68752 3.5 5.68752Z' fill='%23FDF10C'/%3E%3Cpath d='M10.5 5.68752C10.2608 5.68752 10.0625 5.48919 10.0625 5.25002V1.16669C10.0625 0.92752 10.2608 0.729187 10.5 0.729187C10.7392 0.729187 10.9375 0.92752 10.9375 1.16669V5.25002C10.9375 5.48919 10.7392 5.68752 10.5 5.68752Z' fill='%23FDF10C'/%3E%3Cpath d='M7 2.77085C6.76083 2.77085 6.5625 2.57252 6.5625 2.33335V1.16669C6.5625 0.92752 6.76083 0.729187 7 0.729187C7.23917 0.729187 7.4375 0.92752 7.4375 1.16669V2.33335C7.4375 2.57252 7.23917 2.77085 7 2.77085Z' fill='%23FDF10C'/%3E%3C/svg%3E");
}

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

.toplist-richmondreview__offer {
    display: grid;
    align-items: center;
    padding-right: 24px;
    counter-increment: offer-counter;
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
    grid-template-areas: 'logo info rating cta-btn';
    grid-template-columns: 136px 1fr auto 204px;
    grid-template-rows: 1fr;
}

.toplist-richmondreview__offer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    grid-area: logo;
}

.toplist-richmondreview__offer-logo {
    position: relative;
    border: 3px solid #483d8b;
    border-radius: 100%;
}

.toplist-richmondreview__offer-logo:before {
    font-family: Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    position: absolute;
    top: 0;
    left: 70%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 8px 9px;
    content: counter(offer-counter);
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 28px;
    background: #483d8b;
    gap: 10px;
}

.toplist-richmondreview__offer-logo img {
    width: 88px;
    height: 88px;
    border: 4px solid #fff;
    border-radius: 100%;
    object-fit: contain;
}

.toplist-richmondreview__offer-main {
    display: flex;
    align-items: center;
    gap: 34px;
    grid-area: main;
}

.toplist-richmondreview__offer-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 40px 20px 24px;
    background: #fff;
    gap: 8px;
    grid-area: info;
}

.toplist-richmondreview__offer-rating-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.toplist-richmondreview__brand-name {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 140%;
    color: #000;
}

.toplist-richmondreview__offer-description {
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 26px;
    color: #004990;
}

.toplist-richmondreview__brand-description {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 140%;
    margin-top: 4px;
    color: #000;
}

.toplist-richmondreview__offer-rating {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px 0 24px;
    grid-area: rating;
}

.toplist-richmondreview__offer-rating-stars img {
    width: 98px;
    height: 18px;
}

.toplist-richmondreview__offer-rating-text {
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 26px;
    text-align: center;
    color: #004990;
}

.toplist-richmondreview__offer-cta-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    background: #f8f8f8;
    grid-area: cta-btn;
}

.toplist-richmondreview__offer-cta-btn {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 48px;
    padding: 0 24px;
    color: #fff;
    border-bottom: 1px solid #d8bf33;
    border-radius: 5px;
    background: #ed1c24;
    gap: 8px;
}

.toplist-richmondreview__offer-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    background: #ce1018;
}

.toplist-richmondreview__show-more-btn {
    font-family: 'Source Serif 4', sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 44px;
    margin: 8px auto auto;
    padding: 12px 8px;
    text-align: center;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
}

.toplist-richmondreview__show-more-btn:hover {
    cursor: pointer;
    border: 1px solid #949494;
}

@media (max-width: 991px) {
    .toplist-richmondreview__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100vw;
        margin: 0 -16px 8px;
        padding: 0 16px;
    }

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

    .toplist-richmondreview__offer {
        padding-right: unset;
        grid-template-areas:
            'logo rating'
            'info info'
            'cta-btn cta-btn';
        grid-template-columns: 114px auto;
    }

    .toplist-richmondreview__offer-logo-wrapper {
        justify-content: flex-start;
        padding: 12px 0 12px 20px;
    }

    .toplist-richmondreview__offer-info {
        padding: 20px;
    }

    .toplist-richmondreview__offer-description {
        font-size: 18px;
    }

    .toplist-richmondreview__brand-description {
        font-size: 14px;
        margin-top: 0;
    }

    .toplist-richmondreview__brand-name {
        display: none;
    }

    .toplist-richmondreview__offer-rating {
        align-items: flex-end;
        padding: 0 20px 0 10px;
        gap: 10px;
    }

    .toplist-richmondreview__offer-rating-brand-name-mobile {
        font-family: Roboto, sans-serif;
        font-size: 12px;
        font-weight: 400;
        font-style: normal;
        line-height: 140%;
        display: flex !important;
        text-align: right;
        color: #000;
    }

    .toplist-richmondreview__offer-rating-info {
        display: flex;
        flex-direction: row;
    }

    .toplist-richmondreview__offer-rating-text {
        font-size: 16px;
    }

    .toplist-richmondreview__offer-cta-button {
        padding: 20px;
    }

    .toplist-richmondreview__offer-cta-btn {
        width: 100%;
    }
}
