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

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

.toplist-bitcoinist__offers {
    counter-reset: bitcoinist-counter 0;
}

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

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

.toplist-bitcoinist__filter-tag {
    font-family: Roboto, sans-serif;
    font-size: 13.6px;
    font-weight: 400;
    font-style: normal;
    line-height: 125%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    color: #000;
    border-radius: 50px;
    background: #f5f5f5;
}

.toplist-bitcoinist__filter-tag.filter-tag-active {
    color: #fffffe;
    background: #121212;
}

.toplist-bitcoinist__offer {
    display: grid;
    padding: 20px 24px 20px 0;
    counter-increment: bitcoinist-counter 1;
    border-top: 1px solid #eee;
    gap: 24px;
    grid-template-areas: 'logo main cta-btn';
    grid-template-columns: 212px auto 148px;
    grid-template-rows: auto;
}

.toplist-bitcoinist__offer:last-child {
    border-bottom: 1px solid #eee;
}

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

.toplist-bitcoinist__offer-counter-wrapper {
    display: flex;
}

.toplist-bitcoinist__offer-counter {
    width: 18px;
    height: 23px;
    margin: auto 24px auto 0;
    text-align: center;
    border-radius: 4px;
    background: #eee;
}

.toplist-bitcoinist__offer-counter:before {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 135%;
    content: counter(bitcoinist-counter);
    color: #58667e;
}

.toplist-bitcoinist__offer-logo-wrapper {
    display: flex;
    flex-direction: column;
}

.toplist-bitcoinist__offer-logo img {
    width: 100%;
    height: 60px;
    margin-bottom: 8px;
}

.toplist-bitcoinist__offer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toplist-bitcoinist__offer-rating-btn {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
    margin-left: 8px;
    text-align: center;
    text-decoration: underline;
    color: #0099fd;
}

.toplist-bitcoinist__offer-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toplist-bitcoinist__offer-title p {
    font-family: Chivo, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 135%;
    margin-bottom: 8px;
    color: #002c5e;
}

.toplist-bitcoinist__offer-key-feature {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 135%;
    color: #58667e;
}

.toplist-bitcoinist__offer-actions {
    display: flex;
    flex-direction: column;
}

.toplist-bitcoinist__offer-cta-btn {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 135%;
    margin-bottom: 16px;
    padding: 12px 8px;
    text-align: center;
    letter-spacing: 0.18px;
    color: #fff;
    border-radius: 52px;
    background: #0099fd;
}

.toplist-bitcoinist__offer-coupon-code-wrapper {
    font-family: Chivo, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    padding: 4px 0;
    text-align: center;
    text-transform: uppercase;
    color: #464646;
    border: 1px dashed #00000023;
    border-radius: 4px;
    background: #faf8f8;
}

.toplist-bitcoinist__offer-coupon-code {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toplist-bitcoinist__offer-coupon-code:before {
    display: block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='scissors 1' clip-path='url(%23clip0_2643_652)'%3E%3Cg id='Group'%3E%3Cg id='Group_2'%3E%3Cpath id='Vector' d='M12 2.51427C11.4455 1.72239 10.3431 1.5137 9.55104 2.06819L5.47859 4.91971L3.99774 3.8827C4.54913 2.93071 4.28977 1.69881 3.37172 1.05606C2.40225 0.377452 1.06653 0.612953 0.387637 1.58223C-0.290949 2.55156 -0.0556364 3.88757 0.913856 4.56646C1.57911 5.03226 2.41707 5.06718 3.09657 4.7301L4.91035 6.00006L3.09673 7.26988C2.41723 6.93297 1.57932 6.96789 0.91402 7.43352C-0.0554254 8.11241 -0.290762 9.44828 0.387801 10.4176C1.06669 11.387 2.40256 11.6225 3.37186 10.9439C4.28979 10.3012 4.54911 9.06927 3.99788 8.11729L5.47873 7.08027L9.55102 9.93163C10.343 10.4863 11.4455 10.2775 12 9.48555L7.02162 6.00004L12 2.51427ZM2.14751 3.92671C1.53408 3.92671 1.03676 3.42939 1.03676 2.81596C1.03676 2.20253 1.53411 1.70521 2.14751 1.70521C2.76108 1.70521 3.25826 2.20253 3.25826 2.81596C3.25826 3.42939 2.76108 3.92671 2.14751 3.92671ZM2.14751 10.295C1.53408 10.295 1.03676 9.79769 1.03676 9.18426C1.03676 8.57083 1.53408 8.07351 2.14751 8.07351C2.76108 8.07351 3.25826 8.57083 3.25826 9.18426C3.25826 9.79766 2.76108 10.295 2.14751 10.295Z' fill='%23464646'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2643_652'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
}

.coupon-code-copied .toplist-bitcoinist__offer-coupon-code:before {
    display: none;
}

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

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

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

    .toplist-bitcoinist__filter-tag {
        height: 32px;
    }

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

    .toplist-bitcoinist__offer-counter {
        position: absolute;
    }

    .toplist-bitcoinist__offer-logo-wrapper {
        width: 170px;
        margin: auto;
    }

    .toplist-bitcoinist__offer-main {
        align-items: center;
    }

    .toplist-bitcoinist__offer-title p {
        margin-bottom: 12px;
        text-align: center;
    }

    .toplist-bitcoinist__offer-key-feature {
        text-align: center;
    }

    .toplist-bitcoinist__offer-cta-btn {
        order: 2;
        margin-top: 16px;
        margin-bottom: 0;
    }

    .toplist-bitcoinist__offer-coupon-code-wrapper {
        order: 1;
    }
}
