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

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

.toplist-ginxtv__offers {
    display: flex;
    flex-direction: column;
    counter-reset: toplist-ginxtv-counter 0;
    gap: 20px;
}

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

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

.toplist-ginxtv__filter-tag {
    font-family: Roboto, 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;
    height: 40px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
}

.toplist-ginxtv__filter-tag.filter-tag-active {
    color: #fff;
    border-width: 2px;
    background: #000;
}

.toplist-ginxtv__offer {
    position: relative;
    display: grid;
    align-items: center;
    counter-increment: toplist-ginxtv-counter 1;
    border: 1px solid #000;
    border-radius: 5px;
    grid-template-areas: 'logo main';
    grid-template-columns: 149px auto;
    grid-template-rows: 1fr;
}

.toplist-ginxtv__offer:before {
    font-family: Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    position: absolute;
    top: -3px;
    left: 7px;
    width: max-content;
    height: 38px;
    content: counter(toplist-ginxtv-counter);
    color: #fff;
}

.toplist-ginxtv__offer:after {
    position: absolute;
    z-index: 1;
    top: 19px;
    left: -7px;
    width: 53px;
    height: 1px;
    content: '';
    transform: rotate(135deg);
    background-color: #fff70f;
}

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

.toplist-ginxtv__offer-logo-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    border-radius: 4px 0 0 4px;
    grid-area: logo;
}

.toplist-ginxtv__offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 60px;
}

.toplist-ginxtv__offer-logo img {
    width: 125px;
    height: 60px;
    object-fit: contain;
}

.toplist-ginxtv__offer-brand-name {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 30px;
    text-align: center;
    color: #fff;
}

.toplist-ginxtv__offer-rating {
    display: flex;
    gap: 4px;
}

.toplist-ginxtv__offer-rating-count {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    color: #fff;
}

.toplist-ginxtv__offer-rating-count span {
    font-size: 12px;
    font-weight: 400;
}

.toplist-ginxtv__offer-rating-img {
    position: relative;
    top: 3px;
    height: 14px;
}

.toplist-ginxtv__offer-rating-img img {
    height: 14px;
}

.toplist-ginxtv__offer-main {
    display: grid;
    align-items: center;
    height: 100%;
    padding: 16px 24px 16px 16px;
    border-radius: inherit;
    background-image: url('../images/ginxtv/background.svg');
    background-position: center;
    background-size: 100%;
    gap: 0 32px;
    grid-area: main;
    grid-template-areas:
        'label actions'
        'title actions'
        'key-features actions';
    grid-template-columns: auto 150px;
    grid-template-rows: auto;
}

.toplist-ginxtv__offer-top-rated {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    font-style: normal;
    line-height: 22px;
    width: max-content;
    margin-bottom: 10px;
    padding: 0 10px;
    text-transform: uppercase;
    color: #000;
    background: #fff70f;
    grid-area: label;
}

.toplist-ginxtv__offer-title {
    font-family: D-DIN, sans-serif;
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    line-height: 32px;
    margin-bottom: 10px;
    color: #000;
    grid-area: title;
}

.toplist-ginxtv__offer-key-features {
    margin-bottom: 0 !important;
    list-style: none !important;
    grid-area: key-features;
}

.toplist-ginxtv__offer-key-features li {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 25px;
    position: relative;
    display: flex;
    padding-bottom: 0 !important;
    padding-left: 22px;
    color: #000;
}

.toplist-ginxtv__offer-key-features li:before {
    position: absolute;
    top: 4px;
    left: 0;
    display: inline-flex;
    width: 14px;
    height: 15px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='15' viewBox='0 0 14 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='14' height='14' transform='translate(0 0.75)' fill='%23231F20'/%3E%3Cpath d='M9.94025 3.75L5.86414 8.80678L4.14032 6.34675L3 7.77567L5.78491 11.75L11 5.28617L9.94025 3.75Z' fill='%23FFF70F'/%3E%3C/svg%3E%0A");
}

.toplist-ginxtv__offer-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    grid-area: actions;
}

.toplist-ginxtv__offer-coupon-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    cursor: pointer;
    border: 1px dashed #000;
    border-radius: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='32' viewBox='0 0 150 32' fill='none'%3E%3Cg opacity='0.1' clip-path='url(%23clip0_332_700)'%3E%3Crect y='0.25' width='150' height='31.0715' fill='%23A3A3A3'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_332_700'%3E%3Crect width='150' height='31.0715' fill='white' transform='translate(0 0.25)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.toplist-ginxtv__offer-coupon-code {
    font-family: D-DIN, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 27px;
    width: 115px;
    text-align: center;
    text-transform: uppercase;
    color: #2b2b2b;
    border-right: 1px dashed #000;
}

.toplist-ginxtv__offer-coupon-code-img {
    width: 35px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='15' viewBox='0 0 13 15' fill='none'%3E%3Cpath d='M8.5 0.583252H1.83333C0.820811 0.583252 0 1.40406 0 2.41659V10.4166C0 11.4291 0.820811 12.2499 1.83333 12.2499H8.5C9.51252 12.2499 10.3333 11.4291 10.3333 10.4166V2.41659C10.3333 1.40406 9.51252 0.583252 8.5 0.583252Z' fill='black'/%3E%3Cpath d='M11.1665 14.9167H4.49984C4.01372 14.9163 3.5476 14.723 3.20386 14.3793C2.86012 14.0356 2.66686 13.5695 2.6665 13.0833V5.08333C2.66686 4.59721 2.86012 4.1311 3.20386 3.78736C3.5476 3.44362 4.01372 3.25035 4.49984 3.25H11.1665C11.6526 3.25035 12.1187 3.44362 12.4625 3.78736C12.8062 4.1311 12.9995 4.59721 12.9998 5.08333V13.0833C12.9995 13.5695 12.8062 14.0356 12.4625 14.3793C12.1187 14.723 11.6526 14.9163 11.1665 14.9167ZM4.49984 4.25C4.27893 4.25035 4.06718 4.33826 3.91097 4.49447C3.75477 4.65067 3.66686 4.86243 3.6665 5.08333V13.0833C3.66686 13.3042 3.75477 13.516 3.91097 13.6722C4.06718 13.8284 4.27893 13.9163 4.49984 13.9167H11.1665C11.3874 13.9163 11.5992 13.8284 11.7554 13.6722C11.9116 13.516 11.9995 13.3042 11.9998 13.0833V5.08333C11.9995 4.86243 11.9116 4.65067 11.7554 4.49447C11.5992 4.33826 11.3874 4.25035 11.1665 4.25H4.49984Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.toplist-ginxtv__offer-cta-btn {
    font-family: D-DIN, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    text-align: center;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff70f;
}

.toplist-ginxtv__offer-cta-btn:hover {
    text-decoration: unset;
    color: #000;
}

.toplist-ginxtv__show-more-btn {
    font-family: D-DIN, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 40px;
    margin: 20px auto 0;
    padding: 5px 18px;
    text-align: center;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
}

.toplist-ginxtv__show-more-btn:hover {
    cursor: pointer;
    color: #fff;
    background-color: #000;
}

@media (max-width: 991px) {
    .toplist-ginxtv__filter-wrapper {
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100vw;
        margin: 0 -16px 21px;
        padding: 0 16px;
    }

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

    .toplist-ginxtv__offer {
        grid-template-areas:
            'logo'
            'main';
        grid-template-columns: auto;
    }

    .toplist-ginxtv__offer-logo-wrapper {
        padding-top: 24px;
        border-radius: 4px 4px 0 0;
        gap: 10px;
    }

    .toplist-ginxtv__offer-brand-name {
        line-height: 15px;
    }

    .toplist-ginxtv__offer-rating-img {
        top: 2px;
    }

    .toplist-ginxtv__offer-main {
        padding: 16px 32px;
        background-image: url('../images/ginxtv/background-mobile.svg');
        gap: 0;
        grid-template-areas:
            'label'
            'title'
            'key-features'
            'actions';
        grid-template-columns: auto;
    }

    .toplist-ginxtv__offer-key-features {
        margin-bottom: 16px !important;
    }

    .toplist-ginxtv__offer-key-features li {
        line-height: 18px;
    }

    .toplist-ginxtv__offer-key-features li:not(:last-child) {
        margin-bottom: 4px;
    }

    .toplist-ginxtv__offer-key-features li:before {
        top: 2px;
    }

    .toplist-ginxtv__offer-coupon-code-wrapper {
        min-width: 135px;
        margin: 0 auto;
    }

    .toplist-ginxtv__offer-coupon-code {
        width: 100%;
        padding: 0 8px;
    }

    .toplist-ginxtv__offer-coupon-code-img {
        min-width: 35px;
    }

    .toplist-ginxtv__show-more-btn {
        font-size: 14px;
        margin-top: 21px;
    }
}
