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

.toplist-esportsbets__wrapper {
    margin: 24px 0;
}

.toplist-esportsbets__offers {
    display: flex;
    flex-direction: column;
    counter-reset: toplist-esportsbets-counter 0;
    gap: 8px;
}

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

.toplist-esportsbets__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    border-bottom: 1px solid #c3c9bb;
}

.toplist-esportsbets__filter-tag {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 21px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 48px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: #8198a7;
}

.toplist-esportsbets__filter-tag.filter-tag-active {
    color: #fb5a10;
    border-radius: 4px 4px 0 0;
    background: #ffefe7;
}

.toplist-esportsbets__offer {
    position: relative;
    display: grid;
    align-items: center;
    padding: 16px 24px;
    counter-increment: toplist-esportsbets-counter 1;
    border: 1px solid #ffefe7;
    border-radius: 8px;
    background: #fff;
    box-shadow:
        0 1px 2px 0 #0000000a,
        0 4px 16px 0 #0000000f;
    gap: 24px;
    grid-template-areas: 'logo info main cta-btn';
    grid-template-columns: 146px 300px auto 190px;
    grid-template-rows: 1fr;
}

.toplist-esportsbets__offer:before {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 11px;
    width: 37px;
    height: 40px;
    content: counter(toplist-esportsbets-counter);
    color: #fff;
}

.toplist-esportsbets__offer:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 37px;
    height: 40px;
    content: '';
    border-radius: 8px 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='41' viewBox='0 0 38 41' fill='none'%3E%3Cpath d='M0.5 40.5V29.0106V0.5H37.5L30.3523 22.2021L0.5 40.5Z' fill='%23FB5A10'/%3E%3C/svg%3E");
    background-size: 37px 40px;
}

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

.toplist-esportsbets__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 146px;
    height: 100%;
    border-radius: 4px;
    grid-area: logo;
}

.toplist-esportsbets__offer-logo img {
    width: 146px;
    height: 70px;
    border-radius: inherit;
    object-fit: contain;
}

.toplist-esportsbets__offer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-area: info;
}

.toplist-esportsbets__offer-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toplist-esportsbets__offer-brand-name {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 15px;
    text-transform: capitalize;
    color: #767474;
}

.toplist-esportsbets__offer-rating-img {
    position: relative;
    top: -2px;
    min-width: 89px;
}

.toplist-esportsbets__offer-rating-img img {
    height: 16px;
}

.toplist-esportsbets__offer-rating-count {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    text-transform: capitalize;
    color: #172131;
}

.toplist-esportsbets__offer-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.toplist-esportsbets__offer-fact {
    display: flex;
    align-items: center;
}

.toplist-esportsbets__offer-fact:before {
    width: 12px;
    height: 12px;
    margin-right: 9px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='14' viewBox='0 0 13 14' fill='none'%3E%3Cpath d='M1.79006 6.46821C1.54578 6.46891 1.30669 6.53978 1.10045 6.67264C0.894206 6.8055 0.729236 6.9949 0.624627 7.21895C0.520019 7.443 0.480045 7.69252 0.509332 7.93867C0.538619 8.18481 0.635969 8.41751 0.79012 8.60984L4.07626 12.6956C4.19342 12.8432 4.34361 12.9604 4.51435 13.0373C4.68508 13.1142 4.87144 13.1487 5.05793 13.1378C5.4568 13.1161 5.8169 12.8995 6.04649 12.5434L12.8726 1.38553C12.8738 1.38368 12.8749 1.38182 12.8761 1.38C12.9402 1.28019 12.9194 1.08239 12.7872 0.958124C12.7509 0.924001 12.7081 0.897784 12.6614 0.881089C12.6147 0.864394 12.5652 0.857575 12.5158 0.861051C12.4664 0.864526 12.4183 0.878224 12.3743 0.901299C12.3303 0.924375 12.2915 0.95634 12.2602 0.995226C12.2577 0.998283 12.2552 1.00129 12.2526 1.00426L5.36836 8.89878C5.34217 8.92882 5.31035 8.95328 5.27477 8.97073C5.23918 8.98819 5.20053 8.99829 5.16106 9.00046C5.12159 9.00263 5.08209 8.99681 5.04486 8.98336C5.00762 8.9699 4.97339 8.94906 4.94416 8.92206L2.6594 6.81183C2.42211 6.59105 2.11197 6.46846 1.79006 6.46821Z' fill='%23FB5A10'/%3E%3C/svg%3E");
    background-size: 12px;
}

.toplist-esportsbets__offer-fact-title {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 15px;
    text-transform: capitalize;
    color: #fb5a10;
}

.toplist-esportsbets__offer-fact-text {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 15px;
    margin-left: 5px;
    text-transform: capitalize;
    color: #767474;
}

.toplist-esportsbets__offer-main {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    background: #ffefe7;
    gap: 4px;
    grid-area: main;
}

.toplist-esportsbets__offer-top-rated {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    text-transform: uppercase;
    color: #fb5a10;
}

.toplist-esportsbets__offer-top-rated:before {
    position: relative;
    top: 2px;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' viewBox='0 0 16 17' fill='none'%3E%3Cpath d='M13.3333 8.5V15.1667H2.66667V8.5' stroke='%23FB5A10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.6667 5.16669H1.33333V8.50002H14.6667V5.16669Z' stroke='%23FB5A10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 15.1667V5.16669' stroke='%23FB5A10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 5.16665H4.99999C4.55797 5.16665 4.13404 4.99105 3.82148 4.67849C3.50892 4.36593 3.33333 3.94201 3.33333 3.49998C3.33333 3.05795 3.50892 2.63403 3.82148 2.32147C4.13404 2.00891 4.55797 1.83331 4.99999 1.83331C7.33333 1.83331 8 5.16665 8 5.16665Z' stroke='%23FB5A10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 5.16665H11C11.442 5.16665 11.866 4.99105 12.1785 4.67849C12.4911 4.36593 12.6667 3.94201 12.6667 3.49998C12.6667 3.05795 12.4911 2.63403 12.1785 2.32147C11.866 2.00891 11.442 1.83331 11 1.83331C8.66667 1.83331 8 5.16665 8 5.16665Z' stroke='%23FB5A10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.toplist-esportsbets__offer-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    text-align: center;
    color: #172131;
}

.toplist-esportsbets__offer-cta-btn {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 21.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.36px;
    color: #fff;
    border-radius: 4px;
    background: #fb5a10;
    grid-area: cta-btn;
}

.toplist-esportsbets__offer-cta-btn:after {
    position: relative;
    left: 15px;
    width: 14px;
    height: 12px;
    margin-left: 5px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='15' viewBox='0 0 13 15' fill='none'%3E%3Cpath d='M12.5 7.49998L0.499999 14.4282L0.5 0.571777L12.5 7.49998Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px 13px;
}

.toplist-esportsbets__offer-cta-btn:hover {
    text-decoration: unset;
    color: #fff;
    background: #eb4900;
}

.toplist-esportsbets__show-more-btn {
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 700;
    font-style: normal;
    line-height: 27.506px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 200px;
    height: 48px;
    margin: 16px auto 0;
    padding: 16px;
    text-align: center;
    color: #00001c;
    border: 2px solid #000;
    border-radius: 100px;
    background: #fff;
}

.toplist-esportsbets__show-more-btn:hover {
    cursor: pointer;
    color: #c3c9bb;
    background: #000;
}

@media screen and (width > 992px) {
    .bm-tiny .toplist-esportsbets__offer {
        gap: 12px 24px;
        grid-template-areas: 'logo main cta-btn' 'logo info cta-btn';
        grid-template-columns: 146px auto 170px;
        grid-template-rows: 1fr auto;
    }

    .bm-tiny .toplist-esportsbets__offer-main {
        align-items: flex-start;
    }

    .bm-tiny .toplist-esportsbets__offer-title {
        text-align: left;
    }
}

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

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

    .toplist-esportsbets__offer {
        padding: 16px;
        gap: 0;
        grid-template-areas:
            'logo'
            'main'
            'info'
            'cta-btn';
        grid-template-columns: auto;
    }

    .toplist-esportsbets__offer-logo {
        width: 100%;
        height: 80px;
        border-radius: 4px 4px 0 0;
    }

    .toplist-esportsbets__offer-logo img {
        width: 167px;
        height: 80px;
    }

    .toplist-esportsbets__offer-info {
        align-items: center;
        margin: 12px 0;
        gap: 12px;
    }

    .toplist-esportsbets__offer-brand-name {
        font-size: 13px;
    }

    .toplist-esportsbets__offer-rating-count {
        font-size: 16px;
    }

    .toplist-esportsbets__offer-facts {
        justify-content: center;
    }

    .toplist-esportsbets__offer-fact-title,
    .toplist-esportsbets__offer-fact-text {
        font-size: 13px;
    }

    .toplist-esportsbets__offer-main {
        border-radius: 0 0 4px 4px;
    }

    .toplist-esportsbets__offer-top-rated {
        font-size: 12px;
    }

    .toplist-esportsbets__show-more-btn {
        min-width: 158px;
    }
}
