.toplist-pokerse__wrapper {
    margin-bottom: 16px;
    container-name: toplist-pokerse;
    container-type: inline-size;
}

.toplist-pokerse__disclaimer {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 18px;
    text-align: right;
    color: #888;
}

.toplist-pokerse__offers {
    display: flex;
    flex-direction: column;
    counter-reset: toplist-pokerse-counter;
}

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

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

.toplist-pokerse__filter-tag {
    font-family: GlyphaLTStd-Bold, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 33px;
    padding: 7px 14px;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.toplist-pokerse__filter-tag.filter-tag-active {
    color: #fff;
    border-color: #007a00;
    background: linear-gradient(180deg, #007a00 0%, #060 100%);
}

.toplist-pokerse__offer {
    display: grid;
    align-items: center;
    padding: 8px 16px 8px 8px;
    counter-increment: toplist-pokerse-counter 1;
    border-bottom: 1px solid #ddd;
    background: #fffcf0;
    gap: 0 20px;
    grid-template-areas:
        'logo info rating cta-btn'
        'terms terms terms terms';
    grid-template-columns: 161px auto 74px 169px;
    grid-template-rows: auto 1fr;
}

.toplist-pokerse__offer:first-child {
    border-top: 1px solid #ddd;
}

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

.toplist-pokerse__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 111px;
    text-decoration: unset;
    grid-area: logo;
}

.toplist-pokerse__offer-logo:hover {
    text-decoration: unset;
}

.toplist-pokerse__offer-logo:before {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    width: 21px;
    content: counter(toplist-pokerse-counter);
    text-align: center;
    color: #000c;
}

.toplist-pokerse__offer-logo img {
    width: 140px;
    height: 67px;
    object-fit: contain;
}

.toplist-pokerse__offer-info {
    display: flex;
    flex-direction: column;
    padding: 13px 0;
    gap: 5px;
    grid-area: info;
}

.toplist-pokerse__offer-description {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 28.8px;
    text-decoration: unset;
    color: #900;
}

.toplist-pokerse__offer-description:hover {
    text-decoration: unset;
    color: #f28900;
}

.toplist-pokerse__offer-description span {
    font-size: 21px;
    font-weight: 400;
    line-height: 25.2px;
}

.toplist-pokerse__offer-brand {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 21.6px;
    color: #000;
}

.toplist-pokerse__offer-rating {
    display: flex;
    align-items: end;
    flex-direction: column;
    grid-area: rating;
}

.toplist-pokerse__offer-rating-value {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 36px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #7c4c12;
}

.toplist-pokerse__offer-rating-value:before {
    width: 24px;
    height: 25px;
    margin-right: 3px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'%3E%3Cpath d='M12 1.76562L14.8594 9.82812H22.5703L16.2891 14.5625L18.5156 22.8828L12 17.8906L5.48438 22.8828L7.71094 14.5625L1.42969 9.82812H9.14062L12 1.76562Z' fill='%23FEC71A'/%3E%3C/svg%3E");
}

.toplist-pokerse__offer-review-link {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 21px;
    text-align: center;
    text-decoration: none;
    color: #888;
}

.toplist-pokerse__offer-review-link:hover {
    text-decoration: underline;
    color: #888;
}

.toplist-pokerse__offer-cta-btn {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #f28900;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffbc66 0%, #ff9000 100%);
    text-shadow: 0 1px 0 #cc7300;
    grid-area: cta-btn;
}

.toplist-pokerse__offer-cta-btn:before {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-right: 6px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cg filter='url(%23filter0_d_1_2292)'%3E%3Cpath d='M15.354 5.08014V1.43964H11.4793L15.354 5.08014Z' fill='white'/%3E%3Cpath d='M5.53941 5.84871H14.4606L10 1.65765L5.53941 5.84871Z' fill='white'/%3E%3Cpath d='M15.0443 7.02063H4.9557L10 18.5604L15.0443 7.02063Z' fill='white'/%3E%3Cpath d='M4.64602 5.08014L8.52066 1.43964H4.64602V5.08014Z' fill='white'/%3E%3Cpath d='M3.47414 5.84877V2.3222L0.126953 5.84877H3.47414Z' fill='white'/%3E%3Cpath d='M16.5259 5.84877H19.873L16.5259 2.3222V5.84877Z' fill='white'/%3E%3Cpath d='M16.3232 7.02063L12.2091 16.4325L20 7.02063H16.3232Z' fill='white'/%3E%3Cpath d='M3.67676 7.02063H0L7.7909 16.4325L3.67676 7.02063Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_1_2292' x='0' y='1.43964' width='20' height='18.1208' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.8 0 0 0 0 0.45098 0 0 0 0 0 0 0 0 1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_1_2292'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_1_2292' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
}

.toplist-pokerse__offer-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    background: #ff9000;
}

.toplist-pokerse__offer-terms {
    margin-left: 16px;
}

.toplist-pokerse__offer-terms,
.toplist-pokerse__offer-terms p {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 9.6px;
    font-weight: 400;
    line-height: 10.56px;
    margin-bottom: 0;
    color: #808080;
    grid-area: terms;
}

.toplist-pokerse__show-more-btn {
    font-family: 'Liberation Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 19.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 16px auto 0;
    padding: 10px 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: unset;
    color: #fff;
    border: 1px solid #007a00;
    border-radius: 4px;
    background: linear-gradient(180deg, #007a00 0%, #060 100%);
}

.toplist-pokerse__show-more-btn:after {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4V20M4 12H20' stroke='%23FFF' stroke-width='4' stroke-linecap='square' stroke-linejoin='square'/%3E%3C/svg%3E");
    background-size: 10px;
}

.toplist-pokerse__show-more-btn:hover {
    color: #fff;
    border-color: #ff9000;
    background: #ff9000;
}

@media (min-width: 992px) {
    @container toplist-pokerse (max-width: 470px) {
        .toplist-pokerse__wrapper {
            margin-bottom: 32px;
        }

        .toplist-pokerse__filter-wrapper {
            display: none;
        }

        .toplist-pokerse__offer {
            display: grid;
            align-items: center;
            padding: 8px;
            gap: 0 16px;
            grid-template-areas:
                'logo info cta-btn'
                'rating info cta-btn'
                'terms terms terms';
            grid-template-columns: 121px auto 121px;
        }

        .toplist-pokerse__offer.hidden {
            display: grid;
        }

        .toplist-pokerse__offer-logo {
            height: 67px;
        }

        .toplist-pokerse__offer-logo:before {
            font-size: 16px;
            line-height: 19.2px;
            letter-spacing: 0.4px;
        }

        .toplist-pokerse__offer-logo img {
            padding: 0 6px;
        }

        .toplist-pokerse__offer-info {
            padding: 0;
            gap: 0;
        }

        .toplist-pokerse__offer-description {
            font-size: 18px;
            line-height: 21.6px;
        }

        .toplist-pokerse__offer-description span {
            font-size: 14px;
            line-height: 16.8px;
        }

        .toplist-pokerse__offer-brand {
            font-size: 14px;
            line-height: 21px;
        }

        .toplist-pokerse__offer-rating {
            align-items: center;
            flex-direction: row;
            justify-content: center;
            margin-bottom: auto;
            gap: 6px;
        }

        .toplist-pokerse__offer-rating-value {
            font-size: 16px;
            line-height: 21px;
        }

        .toplist-pokerse__offer-rating-value:before {
            width: 17px;
            height: 18px;
            margin-right: 2px;
            background-size: 17px;
        }

        .toplist-pokerse__offer-cta-btn {
            font-size: 16px;
            width: 100%;
            height: max-content;
            min-height: 40px;
            margin: auto 0;
            padding: 10px 6px;
        }

        .toplist-pokerse__offer-terms {
            margin-top: 8px;
            margin-left: 8px;
        }

        .toplist-pokerse__show-more-btn {
            display: none;
        }
    }
}

@media (max-width: 991px) {
    .toplist-pokerse__wrapper {
        margin-bottom: 24px;
    }

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

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

    .toplist-pokerse__offer {
        align-items: unset;
        padding: 8px 16px;
        gap: 8px 16px;
        grid-template-areas:
            'logo info'
            'rating info'
            'cta-btn cta-btn'
            'terms terms';
        grid-template-columns: 155px auto;
    }

    .toplist-pokerse__offer-logo {
        position: relative;
        height: 74px;
    }

    .toplist-pokerse__offer-logo:before {
        font-size: 14px;
        line-height: 16.8px;
        position: absolute;
        top: 1px;
        left: 0;
    }

    .toplist-pokerse__offer-logo img {
        width: 155px;
        height: 74px;
        padding: 0 6px;
    }

    .toplist-pokerse__offer-info {
        padding: 8px 0;
        gap: 2px;
    }

    .toplist-pokerse__offer-description {
        font-size: 18px;
        line-height: 21.6px;
    }

    .toplist-pokerse__offer-description span {
        font-size: 14px;
        line-height: 16.8px;
    }

    .toplist-pokerse__offer-brand {
        font-size: 14px;
        line-height: 21px;
    }

    .toplist-pokerse__offer-rating {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 6px;
    }

    .toplist-pokerse__offer-rating-value {
        font-size: 16px;
        line-height: 21px;
    }

    .toplist-pokerse__offer-rating-value:before {
        width: 17px;
        height: 18px;
        margin-right: 2px;
        background-size: 17px;
    }

    .toplist-pokerse__offer-cta-btn {
        font-size: 16px;
        height: 40px;
        margin-top: 8px;
    }

    .toplist-pokerse__offer-terms {
        margin-left: 0;
    }
}
