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

.toplist-readwrite__wrapper {
    margin: 16px 0;
}

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

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

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

.toplist-readwrite__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__filter-tag.hidden {
    display: none;
}

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

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

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

.toplist-readwrite__offer {
    position: relative;
    display: grid;
    padding: 20px;
    counter-increment: bm-toplist-readwrite-counter 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    gap: 14px 24px;
    grid-template-areas:
        'logo title actions'
        'logo key-features actions'
        'terms terms terms';
    grid-template-columns: 170px auto 204px;
    grid-template-rows: 1fr auto;
}

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

.toplist-readwrite__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-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__offer:after {
    position: absolute;
    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__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__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__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 105px;
    border-radius: 4px;
    grid-area: logo;
}

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

.toplist-readwrite__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;
}

body .toplist-readwrite__offer-key-features {
    margin-bottom: 0 !important;
    padding-left: 0;
    list-style-type: none !important;
    grid-area: key-features;
}

.toplist-readwrite__offer-key-features-item {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 150%;
    position: relative;
    display: flex;
    padding-bottom: 0 !important;
    padding-left: 24px;
    list-style-type: none;
    color: #1e1e1e;
}

.toplist-readwrite__offer-key-features-item:before {
    position: absolute;
    top: 6px;
    left: 0;
    display: inline-block;
    width: 12px;
    height: 12px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12' fill='none'%3E%3Cpath d='M4.59163 10.9993L4.66234 11.07L4.73305 10.9993L13.0707 2.66162L13.1414 2.59091L13.0707 2.5202L11.9798 1.42929L11.9091 1.35858L11.8384 1.42929L4.66234 8.60533L2.16162 6.10461L2.09091 6.0339L2.0202 6.10461L0.929289 7.19552L0.858579 7.26623L0.929289 7.33694L4.59163 10.9993Z' fill='%23DE122A' stroke='%23DE122A' stroke-width='0.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px;
}

.toplist-readwrite__offer-key-features-item:not(:last-child) {
    margin-bottom: 5px;
}

.toplist-readwrite__offer-actions {
    display: grid;
    gap: 15px;
    grid-area: actions;
    grid-template-areas:
        'rating'
        'cta-btn'
        'coupon-code';
    grid-template-columns: auto;
    grid-template-rows: auto;
}

.toplist-readwrite__offer-rating {
    display: flex;
    padding: 4px 0;
    grid-area: rating;
}

.toplist-readwrite__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;
    height: 33px;
    margin-right: 8px;
    padding: 0 6px;
    text-align: center;
    color: #050810;
    border-radius: 3px;
    background: #f1f1f1;
}

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

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

.toplist-readwrite__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__offer-review-link:hover {
    text-decoration: unset;
    color: #000;
}

.toplist-readwrite__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;
    color: #fff;
    border-radius: 4px;
    background: #de122a;
    grid-area: cta-btn;
}

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

.toplist-readwrite__offer-coupon-code-wrapper {
    height: 28px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px dashed #e0e0e0;
    border-radius: 2px;
    grid-area: coupon-code;
}

.toplist-readwrite__offer-coupon-code {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.toplist-readwrite__offer-coupon-code:after {
    width: 11px;
    height: 11px;
    margin-left: 6px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.87147 3.35485H9.28173C9.82573 3.35485 10.3476 3.57105 10.7324 3.95546C11.1168 4.34028 11.333 4.86213 11.333 5.40613V9.5087C11.333 10.0527 11.1168 10.5745 10.7324 10.9594C10.3476 11.3438 9.82573 11.56 9.28173 11.56H5.17916C4.63516 11.56 4.11332 11.3438 3.7285 10.9594C3.34408 10.5745 3.12788 10.0527 3.12788 9.5087V9.09844H2.71762C2.17362 9.09844 1.65178 8.88223 1.26696 8.49782C0.882546 8.113 0.666341 7.59116 0.666341 7.04716C0.666341 5.82582 0.666341 4.16593 0.666341 2.94459C0.666341 2.40059 0.882546 1.87875 1.26696 1.49393C1.65178 1.10952 2.17362 0.893311 2.71762 0.893311C3.93896 0.893311 5.59885 0.893311 6.82019 0.893311C7.36419 0.893311 7.88603 1.10952 8.27085 1.49393C8.65526 1.87875 8.87147 2.40059 8.87147 2.94459V3.35485ZM3.94839 5.40613V9.5087C3.94839 9.83526 4.07803 10.1483 4.30901 10.3788C4.53957 10.6098 4.8526 10.7395 5.17916 10.7395C6.4005 10.7395 8.06039 10.7395 9.28173 10.7395C9.60829 10.7395 9.92132 10.6098 10.1519 10.3788C10.3829 10.1483 10.5125 9.83526 10.5125 9.5087C10.5125 8.28736 10.5125 6.62746 10.5125 5.40613C10.5125 5.07957 10.3829 4.76654 10.1519 4.53598C9.92132 4.305 9.60829 4.17536 9.28173 4.17536H5.17916C4.8526 4.17536 4.53957 4.305 4.30901 4.53598C4.07803 4.76654 3.94839 5.07957 3.94839 5.40613ZM3.12788 8.27793H2.71762C2.39106 8.27793 2.07803 8.14828 1.84747 7.91731C1.6165 7.68675 1.48685 7.37372 1.48685 7.04716C1.48685 5.82582 1.48685 4.16593 1.48685 2.94459C1.48685 2.61803 1.6165 2.305 1.84747 2.07444C2.07803 1.84346 2.39106 1.71382 2.71762 1.71382C3.93896 1.71382 5.59885 1.71382 6.82019 1.71382C7.14675 1.71382 7.45978 1.84346 7.69034 2.07444C7.92132 2.305 8.05096 2.61803 8.05096 2.94459V3.35485H5.17916C4.63516 3.35485 4.11332 3.57105 3.7285 3.95546C3.34408 4.34028 3.12788 4.86213 3.12788 5.40613V8.27793Z' fill='%23DE122A' stroke='%23DE122A' stroke-width='0.333333'/%3E%3C/svg%3E");
    background-size: 11px;
}

.toplist-readwrite__offer-coupon-code-wrapper.coupon-code-copied .toplist-readwrite__offer-coupon-code:after {
    display: none;
}

.toplist-readwrite__offer-terms,
.toplist-readwrite__offer-terms p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    margin-top: 6px;
    margin-bottom: 0;
    color: #6d6d6d;
    grid-area: terms;
}

.toplist-readwrite__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__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__show-more-btn:hover {
    cursor: pointer;
    color: #fff;
    border: 1px solid #000;
    background: #000;
}

.toplist-readwrite__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__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: calc(100% + 16px);
        margin: 0 -16px 16px;
        padding: 0 16px;
    }

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

    .toplist-readwrite__filter-tag.hidden {
        display: flex;
    }

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

    .toplist-readwrite__offer {
        padding: 16px 0 12px;
        gap: 12px;
        grid-template-areas:
            'logo'
            'title'
            'actions'
            'key-features'
            'terms';
        grid-template-columns: auto;
        grid-template-rows: auto;
    }

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

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

    .toplist-readwrite__offer-title {
        line-height: 135%;
        padding: 0 24px;
        text-align: center;
    }

    body .toplist-readwrite__offer-key-features {
        padding: 0 15px !important;
    }

    .toplist-readwrite__offer-key-features-item {
        padding-left: 22px;
    }

    .toplist-readwrite__offer-actions {
        display: grid;
        padding: 0 24px;
        gap: 12px 0;
        grid-template-areas:
            'cta-btn cta-btn'
            'rating coupon-code';
        grid-template-columns: 110px auto;
    }

    .toplist-readwrite__offer-rating {
        padding: 0;
    }

    .toplist-readwrite__offer-rating-score {
        font-size: 12px;
        line-height: 125%;
        width: 31px;
    }

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

    .toplist-readwrite__offer-coupon-code-wrapper {
        margin-left: auto;
    }

    .toplist-readwrite__offer-terms,
    .toplist-readwrite__offer-terms p {
        margin-top: 0;
        padding: 0 15px;
    }
}
