@import url('https://fonts.googleapis.com/css2?family=Lato:wght@600;700;800&display=swap');

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

.toplist-coinnews__offers {
    display: flex;
    flex-direction: column;
    counter-reset: toplist-coinnews-counter 0;
    gap: 24px;
}

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

.toplist-coinnews__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0;
    gap: 12px;
}

.toplist-coinnews__filter-tag {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 160%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: #222;
    border: 1px solid #222;
    border-radius: 100px;
    background: #fff;
}

.toplist-coinnews__filter-tag.filter-tag-active {
    color: #fff;
    background: #222;
}

.toplist-coinnews__offer {
    position: relative;
    display: grid;
    align-items: center;
    padding-right: 24px;
    counter-increment: toplist-coinnews-counter 1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 44px 0 #00000021;
    gap: 24px;
    grid-template-areas: 'logo main actions';
    grid-template-columns: 182px auto 120px;
    grid-template-rows: 1fr;
}

.toplist-coinnews__offer:before {
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 800;
    font-style: normal;
    line-height: 140%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    content: counter(toplist-coinnews-counter);
    color: #000;
    border-radius: 7px 0 0;
    background: #fff;
}

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

.toplist-coinnews__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 8px 0 0 8px;
    grid-area: logo;
}

.toplist-coinnews__offer-logo img {
    width: 151px;
    height: 49px;
    object-fit: contain;
}

.toplist-coinnews__offer-main {
    display: flex;
    align-self: self-start;
    flex-direction: column;
    padding: 16px 0;
    gap: 8px;
    grid-area: main;
}

.toplist-coinnews__offer-brand-name {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 160%;
    color: #515151;
}

.toplist-coinnews__offer-title {
    font-family: Lato, sans-serif;
    font-size: 20px;
    font-weight: 800;
    font-style: normal;
    line-height: 140%;
    color: #222;
}

body .toplist-coinnews__offer-key-features {
    display: flex;
    flex-direction: column;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 8px;
}

body .toplist-coinnews__offer-key-features li {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 160%;
    position: relative;
    display: flex;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    color: #626262;
}

body .toplist-coinnews__offer-key-features li:before {
    position: absolute;
    top: 4px;
    left: 0;
    display: inline-flex;
    width: 14px;
    height: 14px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.4095 1.46875L3.99284 7.88542L1.07617 4.96875' stroke='%2335A618' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.toplist-coinnews__offer-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
    gap: 32px;
    grid-area: actions;
}

.toplist-coinnews__offer-cta-btn {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 160%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 40px;
    color: #fff;
    border-radius: 100px;
    background-color: #222;
    box-shadow: 0 0 8px 0 #00000026;
}

.toplist-coinnews__offer-cta-btn:after {
    width: 20px;
    height: 21px;
    margin-left: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.74219 15.4687L15.7422 5.46875M15.7422 5.46875H9.07552M15.7422 5.46875V12.1354' stroke='%23FFC733' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.toplist-coinnews__offer-cta-btn:hover {
    text-decoration: unset;
    color: #fff;
    background-color: #3b3b3b;
}

.toplist-coinnews__offer-cta-btn:hover:after {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='29' viewBox='0 0 28 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='0.6875' width='28' height='28' rx='14' fill='%23FFBB2C'/%3E%3Cpath d='M9 19.6875L19 9.6875M19 9.6875H12.3333M19 9.6875V16.3542' stroke='%233B3B3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-size: 20px;
}

.toplist-coinnews__offer-rating {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.toplist-coinnews__offer-rating-count {
    font-family: Lato, sans-serif;
    font-size: 32px;
    font-weight: 800;
    font-style: normal;
    line-height: 23px;
    color: #222;
}

.toplist-coinnews__offer-rating-img img {
    height: 24px;
}

.toplist-coinnews__show-more-btn {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 160%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 40px;
    margin: 24px auto 0;
    padding: 5px 18px;
    text-align: center;
    color: #fff;
    border-radius: 100px;
    background-color: #222;
    box-shadow: 0 0 8px 0 #00000026;
}

.toplist-coinnews__show-more-btn:after {
    width: 20px;
    height: 19px;
    margin-left: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='4' width='2' height='12' fill='%23FFC733'/%3E%3Crect x='4' y='9' width='12' height='2' fill='%23FFC733'/%3E%3C/svg%3E");
}

.toplist-coinnews__show-more-btn:hover {
    cursor: pointer;
    color: #fff;
    background-color: #3b3b3b;
}

.toplist-coinnews__show-more-btn:hover:after {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23FFC733'/%3E%3Crect x='9' y='5' width='2' height='10' fill='%23000'/%3E%3Crect x='5' y='9' width='10' height='2' fill='%23000'/%3E%3C/svg%3E");
    background-size: 20px;
}

@media (max-width: 991px) {
    .toplist-coinnews__offers {
        gap: 16px;
    }

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

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

    .toplist-coinnews__offer {
        align-items: unset;
        padding-right: 0;
        padding-bottom: 16px;
        border-radius: 16px;
        gap: 16px;
        grid-template-areas:
            'logo'
            'main'
            'actions';
        grid-template-columns: auto;
    }

    .toplist-coinnews__offer-logo {
        height: 119px;
        border-radius: 16px 16px 0 0;
    }

    .toplist-coinnews__offer-logo img {
        width: 175px;
        height: 56px;
    }

    .toplist-coinnews__offer-main {
        padding: 0 16px;
        gap: 20px;
    }

    .toplist-coinnews__offer-brand-name {
        line-height: 140%;
    }

    .toplist-coinnews__offer-key-features {
        margin-top: 4px !important;
        gap: 16px;
    }

    .toplist-coinnews__offer-actions {
        align-items: unset;
        padding: 0 16px;
        gap: 20px;
    }

    .toplist-coinnews__offer-cta-btn {
        font-size: 16px;
        order: 2;
        width: 100%;
        height: 46px;
    }

    .toplist-coinnews__offer-rating {
        flex-direction: row;
        justify-content: unset;
        order: 1;
        margin-top: 12px;
    }

    .toplist-coinnews__offer-rating-count {
        font-size: 20px;
    }

    .toplist-coinnews__offer-rating-img img {
        height: 20px;
    }

    .toplist-coinnews__show-more-btn {
        font-size: 16px;
        height: 46px;
        margin-top: 16px;
    }
}
