@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Poppins:wght@600;700&display=swap');

.toplist-esportsnews-v2__wrapper {
    margin: 40px 0;
}

.toplist-esportsnews-v2__offers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.toplist-esportsnews-v2__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    gap: 10px;
}

.toplist-esportsnews-v2__filter-tag {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    border-radius: 4px;
    background: #22272b;
}

.toplist-esportsnews-v2__filter-tag.filter-tag-active {
    color: #0e1319;
    background: #f7f8f9;
}

.toplist-esportsnews-v2__offer {
    position: relative;
    display: grid;
    border-radius: 8px;
    background-color: #151a1e;
    background-image: linear-gradient(180deg, #113837 0%, #151a1e 100%);
    grid-template-areas:
        'logo title deal'
        'logo cta-btn deal';
    grid-template-columns: 200px auto 240px;
    grid-template-rows: 1fr 1fr;
}

.toplist-esportsnews-v2__offer:before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: '';
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #1ecaab00 0%, #1ecaabbf 50.48%, #1ecaab00 100%);
}

.toplist-esportsnews-v2__offer.hidden {
    display: none;
}

.toplist-esportsnews-v2__offer-logo-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 16px 0;
    gap: 8px;
    grid-area: logo;
}

.toplist-esportsnews-v2__offer-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 1000px;
}

.toplist-esportsnews-v2__offer-logo img {
    width: 120px;
    height: 120px;
    border-radius: inherit;
    object-fit: contain;
}

.toplist-esportsnews-v2__offer-rating {
    position: absolute;
    top: 0;
    right: -12px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 4.114px;
    border-radius: 102.857px;
    background: #20f48a;
}

.toplist-esportsnews-v2__offer-rating.good {
    background: #98f420;
}

.toplist-esportsnews-v2__offer-rating-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    font-style: normal;
    line-height: 27px;
    text-align: center;
    color: #0e1319;
}

.toplist-esportsnews-v2__offer-rating-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 15px;
    position: relative;
    bottom: 6px;
    color: #0e1319;
}

.toplist-esportsnews-v2__offer-review-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    text-align: center;
    text-decoration: underline;
    color: #d9dce0;
}

.toplist-esportsnews-v2__offer-review-link:hover {
    text-decoration: none;
    color: #d9dce0;
}

.toplist-esportsnews-v2__offer-title {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 33px;
    display: inline-block;
    margin-top: auto;
    padding: 16px 24px 12px;
    text-align: center;
    letter-spacing: -0.22px;
    text-transform: capitalize;
    color: #fff;
    grid-area: title;
}

.toplist-esportsnews-v2__offer-title span {
    margin: 0 4px;
    color: #20f4cb;
}

.toplist-esportsnews-v2__offer-actions {
    margin: 0 24px 16px;
    grid-area: cta-btn;
}

.toplist-esportsnews-v2__offer-actions .toplist-esportsnews-v2__offer-review-link {
    display: none;
}

.toplist-esportsnews-v2__offer-cta-btn {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 214px;
    height: 48px;
    margin: 0 auto;
    text-align: center;
    letter-spacing: -0.3px;
    text-transform: capitalize;
    color: #0e1319;
    background: #20f4cb;
    clip-path: polygon(3% 0%, 100% 0, 97% 100%, 0% 100%);
}

.toplist-esportsnews-v2__offer-cta-btn:hover {
    text-decoration: none;
    color: #0e1319;
    background: #15ae90;
}

.toplist-esportsnews-v2__offer-deal {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 16px 16px 16px 0;
    padding: 8px 16px;
    text-align: center;
    color: #fff;
    border: 0.5px solid #113837;
    border-radius: 8px;
    background: linear-gradient(180deg, #113837 0%, #151a1e 100%);
    grid-area: deal;
}

.toplist-esportsnews-v2__offer-deal:before {
    position: absolute;
    top: 0.5px;
    right: 0;
    left: 0;
    height: 1.5px;
    content: '';
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #1ecaab00 0%, #1ecaabbf 50.48%, #1ecaab00 100%);
}

.toplist-esportsnews-v2__offer-deal span {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 33px;
    letter-spacing: -0.22px;
    text-transform: capitalize;
}

.toplist-esportsnews-v2__show-more-btn {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 48px;
    margin: 16px auto 0;
    padding: 16px;
    cursor: pointer;
    color: #d9dce0;
    border: 0.5px solid #19c1a13f;
}

.toplist-esportsnews-v2__show-more-btn:before,
.toplist-esportsnews-v2__show-more-btn:after {
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 0.5px;
    content: '';
    background: linear-gradient(90deg, #1ecaab00 0%, #1ecaabbf 50.48%, #1ecaab00 100%);
}

.toplist-esportsnews-v2__show-more-btn:after {
    top: 100%;
}

.toplist-esportsnews-v2__show-more-btn:hover {
    color: #a0afbf;
    border: 0.5px solid #15ae90;
}

@media screen and (width <= 991px) {
    .toplist-esportsnews-v2__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100vw;
        margin: 0 -16px 16px;
        padding: 0 16px;
    }

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

    .toplist-esportsnews-v2__offer {
        padding: 16px;
        gap: 16px 0;
        grid-template-areas:
            'logo cta-btn'
            'title title'
            'deal deal';
        grid-template-columns: auto 154px;
        grid-template-rows: auto;
    }

    .toplist-esportsnews-v2__offer:before {
        height: 3px;
    }

    .toplist-esportsnews-v2__offer-logo-wrapper {
        align-items: start;
        margin: 0;
        gap: 0;
    }

    .toplist-esportsnews-v2__offer-review-link {
        font-size: 11px;
        line-height: 17px;
    }

    .toplist-esportsnews-v2__offer-logo-wrapper .toplist-esportsnews-v2__offer-review-link {
        display: none;
    }

    .toplist-esportsnews-v2__offer-logo {
        width: 86px;
        height: 86px;
        border-radius: 71.667px;
    }

    .toplist-esportsnews-v2__offer-logo img {
        width: 86px;
        height: 86px;
    }

    .toplist-esportsnews-v2__offer-rating {
        right: -26px;
    }

    .toplist-esportsnews-v2__offer-rating-value {
        font-size: 16px;
        line-height: 24px;
    }

    .toplist-esportsnews-v2__offer-rating-title {
        font-size: 9px;
        line-height: 13px;
    }

    .toplist-esportsnews-v2__offer-title {
        line-height: 32px;
        padding: 0;
        letter-spacing: -0.44px;
    }

    .toplist-esportsnews-v2__offer-title span {
        margin: 0 4px;
        color: #20f4cb;
    }

    .toplist-esportsnews-v2__offer-actions {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        gap: 12px;
    }

    .toplist-esportsnews-v2__offer-actions .toplist-esportsnews-v2__offer-review-link {
        display: block;
    }

    .toplist-esportsnews-v2__offer-cta-btn {
        line-height: 20px;
        width: 154px;
        clip-path: polygon(5% 0%, 100% 0, 95% 100%, 0% 100%);
    }

    .toplist-esportsnews-v2__offer-deal {
        font-size: 11px;
        line-height: 17px;
        margin: 0;
        padding: 12px 16px;
        border-radius: 4px;
    }

    .toplist-esportsnews-v2__offer-deal:before {
        border-radius: 4px 4px 0 0;
    }

    .toplist-esportsnews-v2__offer-deal span {
        font-size: 17px;
        line-height: 24px;
        letter-spacing: 0;
    }
}
