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

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

.toplist-lernennet__wrapper .toplist__disclaimer-above,
.toplist-lernennet__wrapper .toplist__disclaimer-below {
    font-family: Ubuntu, sans-serif;
}

.toplist-lernennet__offers {
    display: flex;
    flex-direction: column;
    counter-reset: toplist-lernennet-counter 0;
    gap: 7px;
}

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

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

.toplist-lernennet__filter-tag {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 25.6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    height: 40px;
    padding: 6px 16px;
    cursor: pointer;
    user-select: none;
    border: 1px solid #666;
    border-radius: 40px;
    background: #fff;
}

.toplist-lernennet__filter-tag.filter-tag-active {
    color: #fff;
    background: #666;
}

.toplist-lernennet__offer {
    position: relative;
    display: grid;
    padding: 20px 16px 20px 36px;
    counter-increment: toplist-lernennet-counter 1;
    transition: box-shadow 0.4s ease;
    border: 1px solid #33333340;
    border-radius: 10px;
    box-shadow: 0 4px 40px #0157ff00;
    grid-template-areas: 'logo title actions';
    grid-template-columns: 166px auto 306px;
    grid-template-rows: 1fr;
}

.toplist-lernennet__offer:hover {
    border-color: #77bd2c;
}

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

.toplist-lernennet__offer:before {
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 20.8px;
    position: absolute;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    content: counter(toplist-lernennet-counter);
    text-align: center;
    color: #fff;
    border-radius: 0 4px 4px 0;
    background: #77bd2c;
}

.toplist-lernennet__offer-logo-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 8px 16px 0 0;
    grid-area: logo;
}

.toplist-lernennet__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
    border-radius: 10px;
}

.toplist-lernennet__offer-logo img {
    width: 150px;
    height: 100px;
    border-radius: inherit;
    object-fit: contain;
}

.toplist-lernennet__offer-launched {
    font-family: Ubuntu, sans-serif;
    font-size: 12.64px;
    font-weight: 400;
    line-height: 20.224px;
    text-align: center;
    color: #999f;
}

.toplist-lernennet__offer-review-link {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
    margin: 20px 22px 0;
    color: #77bd2c;
}

.toplist-lernennet__offer-review-link:hover {
    color: #77bd2c;
}

.toplist-lernennet__offer-title {
    font-family: Ubuntu, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    margin: auto;
    padding: 20px 30px;
    text-align: center;
    color: #000;
    grid-area: title;
}

.toplist-lernennet__offer-title span {
    font-style: italic;
    margin: 0 4px;
    color: #f00f;
}

.toplist-lernennet__offer-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 22px;
    gap: 12px;
    grid-area: actions;
}

.toplist-lernennet__offer-cta-btn {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 50px;
    width: 100%;
    height: 50px;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    border-radius: 4px;
    background: #77bd2c;
}

.toplist-lernennet__offer-cta-btn:hover {
    text-decoration: unset;
    color: #fff;
    background: #76ae13;
}

.toplist-lernennet__offer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.toplist-lernennet__offer-payment {
    position: relative;
    display: flex;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.toplist-lernennet__offer-payment-tooltip {
    font-family: Ubuntu, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    position: absolute;
    z-index: 10;
    top: 30px;
    left: 50%;
    flex-direction: column;
    width: max-content;
    padding: 12px 16px;
    transform: translateX(-50%);
    color: #fff;
    border-radius: 4px;
    background: #77bd2c;
    filter: drop-shadow(0 1px 4px #0000000a) drop-shadow(0 8px 32px #00000019);
}

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

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

.toplist-lernennet__offer-payout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.toplist-lernennet__offer-payout-wrapper:before {
    display: flex;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    content: '';
    background-image: url('../images/lernennet/payout.svg');
    background-size: 32px;
}

.toplist-lernennet__offer-payout-title {
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
    color: #000;
}

.toplist-lernennet__offer-payout-value {
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 22.4px;
    margin-left: 4px;
    color: #000;
}

.toplist-lernennet__show-more-btn {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 52px;
    margin: 26px auto 0;
    padding: 0 32px;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    background: #fff;
}

.toplist-lernennet__show-more-btn:hover {
    cursor: pointer;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    transition-duration: 0.3s;
    transition-property:
        color,
        background-color,
        border-color,
        text-decoration-color,
        fill,
        stroke,
        opacity,
        box-shadow,
        transform,
        filter,
        backdrop-filter,
        -webkit-backdrop-filter;
    color: #fff;
    background-color: #000;
}

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

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

    .toplist-lernennet__offer {
        padding: 10px 16px 20px;
        grid-template-areas:
            'logo'
            'title'
            'actions';
        grid-template-columns: auto;
    }

    .toplist-lernennet__offer:before {
        top: 14px;
    }

    .toplist-lernennet__offer-logo-wrapper {
        margin: 0 auto;
    }

    .toplist-lernennet__offer-title {
        margin: 0 auto;
        padding: 10px;
    }

    .toplist-lernennet__offer-actions {
        margin-top: 0;
        padding: 10px;
    }
}
