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

.toplist-readwrite-poker__wrapper {
    margin: 16px 0;
}

.toplist-readwrite-poker__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-readwrite-poker-counter 0;
    gap: 16px;
}

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

.toplist-readwrite-poker__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    gap: 8px;
}

.toplist-readwrite-poker__filter-tag {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: #060606;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #f1f1f1;
}

.toplist-readwrite-poker__filter-tag.hidden {
    display: none;
}

.toplist-readwrite-poker__filter-tag.filter-tag-active {
    border-color: #fdeaeb;
    border-radius: 4px;
    background: #de122a19;
}

.toplist-readwrite-poker__filter-tag:first-child:before {
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    content: '';
    background-image: url('../images/fire.svg');
}

.toplist-readwrite-poker__filter-show-more-btn {
    border-color: #060606;
}

.toplist-readwrite-poker__offer {
    position: relative;
    display: grid;
    padding: 20px;
    counter-increment: bm-toplist-readwrite-poker-counter 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    gap: 14px 24px;
    grid-template-areas:
        'logo title cta-btn'
        'logo info payments';
    grid-template-columns: 170px auto 204px;
    grid-template-rows: auto 1fr;
}

.toplist-readwrite-poker__offer.hidden {
    display: none;
}

.toplist-readwrite-poker__offer:before {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    position: absolute;
    z-index: 1;
    top: 8px;
    left: -7px;
    display: flex;
    align-items: center;
    width: 29px;
    height: 25px;
    padding-left: 8px;
    content: counter(bm-toplist-readwrite-poker-counter);
    color: #161316;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='24' viewBox='0 0 29 24' fill='none'%3E%3Cpath d='M1.45117 23.1597V0.959717H18.7045L28.1937 23.1597H1.45117Z' fill='%23F1F1F1' stroke='%23E0E0E0'/%3E%3C/svg%3E");
    background-size: 29px 25px;
}

.toplist-readwrite-poker__offer:after {
    position: absolute;
    z-index: 1;
    top: 31px;
    left: -6px;
    width: 6px;
    height: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='9' viewBox='0 0 6 9' fill='none'%3E%3Cpath d='M6 8.5L0 0.5H6V8.5Z' fill='%23C4C4C4'/%3E%3C/svg%3E");
}

.toplist-readwrite-poker__offer-top-rated {
    font-family: 'Noto Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    position: absolute;
    top: 9px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 23px;
    padding: 9px 1px 9px 23px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #000;
    background-color: #6bd425;
}

.toplist-readwrite-poker__offer-top-rated:before {
    position: absolute;
    left: 99%;
    width: 23px;
    height: 23px;
    content: '';
    background-color: #6bd425;
    clip-path: polygon(0% 0, 50% 0, 100% 100%, 0% 100%);
}

.toplist-readwrite-poker__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 105px;
    border-radius: 4px;
    grid-area: logo;
}

.toplist-readwrite-poker__offer-logo img {
    width: 170px;
    height: 82px;
    object-fit: contain;
}

.toplist-readwrite-poker__offer-title {
    font-family: Merriweather, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 140%;
    margin: auto 0;
    color: #000;
    grid-area: title;
}

.toplist-readwrite-poker__offer-info {
    display: flex;
    gap: 40px;
    grid-area: info;
}

.toplist-readwrite-poker__offer-rating {
    display: flex;
    height: 33px;
}

.toplist-readwrite-poker__offer-rating-score {
    font-family: Merriweather, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 135%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    margin-right: 8px;
    padding: 0 6px;
    text-align: center;
    color: #050810;
    border-radius: 3px;
    background: #f1f1f1;
}

.toplist-readwrite-poker__offer-rating-info {
    display: flex;
    flex-direction: column;
}

.toplist-readwrite-poker__offer-rating-info img {
    width: max-content;
    height: 12px;
    margin: 2px 0 7px;
}

.toplist-readwrite-poker__offer-review-link {
    font-family: 'Noto Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    text-decoration: underline;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #000;
}

.toplist-readwrite-poker__offer-review-link:hover {
    text-decoration: unset;
    color: #000;
}

.toplist-readwrite-poker__offer-facts {
    display: flex;
    gap: 40px;
}

.toplist-readwrite-poker__offer-fact {
    flex-shrink: 0;
}

.toplist-readwrite-poker__offer-fact-head {
    font-family: 'Noto Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    text-align: left;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #000;
}

.toplist-readwrite-poker__offer-fact-body {
    font-family: Merriweather, sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 135%;
    color: #000;
}

.toplist-readwrite-poker__offer-cta-btn {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 12px 8px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    background: #de122a;
    grid-area: cta-btn;
}

.toplist-readwrite-poker__offer-cta-btn:hover {
    text-decoration: unset;
    color: #fff;
    background: #b20e22;
}

.toplist-readwrite-poker__offer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    height: max-content;
    margin-top: 10px;
    padding: 0 5px;
    gap: 10px;
    grid-area: payments;
}

.toplist-readwrite-poker__offer-payment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21%;
    max-width: 42px;
    height: 25px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f1f1f1;
}

.toplist-readwrite-poker__offer-payment.hidden {
    display: none;
}

.toplist-readwrite-poker__offer-payments-content-show-more {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    min-width: 34px;
    height: 27px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    letter-spacing: 0.36px;
    color: #000;
}

.toplist-readwrite-poker__offer-payment-image {
    width: 38px;
    height: 23px;
    object-fit: contain;
}

.toplist-readwrite-poker__offer-payment-tooltip {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    position: absolute;
    z-index: 10;
    top: 33px;
    left: 50%;
    flex-direction: column;
    width: max-content;
    padding: 4px 8px;
    transform: translateX(-50%);
    color: #050810;
    border-radius: 4px;
    background: #e0e0e0;
}

.toplist-readwrite-poker__offer-payment-tooltip:before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    content: '';
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #e0e0e0;
    border-top-width: 0;
}

.toplist-readwrite-poker__offer-payment:hover .toplist-readwrite-poker__offer-payment-tooltip {
    display: flex !important;
}

.toplist-readwrite-poker__show-more-btn {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 16px auto 0;
    padding: 12px 16px;
    color: #050810;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.toplist-readwrite-poker__show-more-btn:before {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.33337V12.6667' stroke='%23050810' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.33333 8H12.6667' stroke='%23050810' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.toplist-readwrite-poker__show-more-btn:hover {
    cursor: pointer;
    color: #fff;
    border: 1px solid #000;
    background: #000;
}

.toplist-readwrite-poker__show-more-btn:hover:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.33337V12.6667' stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.33333 8H12.6667' stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
    .toplist-readwrite-poker__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: calc(100% + 16px);
        margin: 0 -16px 8px;
        padding: 0 16px;
    }

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

    .toplist-readwrite-poker__filter-tag.hidden {
        display: flex;
    }

    .toplist-readwrite-poker__filter-show-more-btn {
        display: none;
    }

    .toplist-readwrite-poker__offer {
        padding: 16px 16px 12px;
        gap: 12px;
        grid-template-areas:
            'logo'
            'title'
            'info'
            'cta-btn'
            'payments';
        grid-template-columns: auto;
        grid-template-rows: 1fr;
    }

    .toplist-readwrite-poker__offer-logo {
        width: 207px;
        height: 75px;
        margin: auto;
    }

    .toplist-readwrite-poker__offer-logo img {
        width: 160px;
        height: 75px;
    }

    .toplist-readwrite-poker__offer-title {
        line-height: 135%;
        padding: 0 8px;
        text-align: center;
    }

    .toplist-readwrite-poker__offer-info {
        margin-top: unset;
        padding: 0 8px;
        gap: 24px;
    }

    .toplist-readwrite-poker__offer-rating {
        height: 30px;
    }

    .toplist-readwrite-poker__offer-rating-score {
        font-size: 12px;
        line-height: 125%;
        width: 22px;
    }

    .toplist-readwrite-poker__offer-rating-info img {
        margin-bottom: 4px;
    }

    .toplist-readwrite-poker__offer-facts {
        gap: 24px;
    }

    .toplist-readwrite-poker__offer-fact-body {
        font-size: 16px;
    }

    .toplist-readwrite-poker__offer-payments {
        margin-top: 0;
        padding: 0 8px;
        gap: 8px;
    }

    .toplist-readwrite-poker__offer-payments-hidden-counter {
        font-weight: 700;
        min-width: 27px;
    }
}

@media (max-width: 375px) {
    .toplist-readwrite-poker__offer-info,
    .toplist-readwrite-poker__offer-facts {
        gap: 12px;
    }

    .toplist-readwrite-poker__offer-fact-body {
        text-align: center;
    }
}
