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

.toplist-ocf__wrapper {
    display: flex;
    flex-direction: column;
    margin: 44px 0 80px;
}

.toplist-ocf__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-ocf-counter;
    gap: 8px;
}

.toplist-ocf__offer {
    display: grid;
    align-items: center;
    padding: 24px 32px;
    border: 1px solid #3e1273;
    border-radius: 16px;
    background: #170050;
    gap: 40px;
    grid-template-areas: 'logo main extra cta-btn';
    grid-template-columns: 110px 260px auto 202px;
    grid-template-rows: auto;
}

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

.toplist-ocf__offer-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    grid-area: logo;
}

.toplist-ocf__offer-logo-wrapper:before {
    font-family: 'Fira Sans', serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    position: absolute;
    z-index: 1;
    top: 5px;
    left: -3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    content: counter(bm-toplist-ocf-counter);
    counter-increment: bm-toplist-ocf-counter;
    color: #fff;
    border-radius: 28px;
    background: #3e1273;
}

.toplist-ocf__offer-logo {
    overflow: hidden;
    border: 1px solid #3e1273;
    border-radius: 100px;
}

.toplist-ocf__offer-logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.toplist-ocf__offer-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-area: main;
}

.toplist-ocf__offer-brand-name {
    font-family: 'Lilita One', serif;
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    display: flex;
    align-items: center;
    color: #f1eff7;
    gap: 6px;
}

.toplist-ocf__offer-key-feature {
    font-family: 'Fira Sans', serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 22px;
    color: #dfd4fa;
}

.toplist-ocf__offer-rating img {
    width: 98px;
    height: 18px;
}

.toplist-ocf__offer-ribbon {
    font-family: 'Fira Sans', serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 16px;
    position: absolute;
    top: -18px;
    left: 50%;
    display: flex;
    align-items: center;
    width: max-content;
    height: 23px;
    padding: 0 10px;
    transform: translateX(-50%);
    letter-spacing: 0.01em;
    color: #3e1273;
    background: #ffcb3f;
}

.toplist-ocf__offer-ribbon:before {
    position: absolute;
    top: 0;
    left: -12.5px;
    width: 13.5px;
    height: 23px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='23' viewBox='0 0 14 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H13.5V23H0L10.4167 11L0 0Z' fill='%23FFCB3F'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.toplist-ocf__offer-ribbon:after {
    position: absolute;
    top: 0;
    right: -12.5px;
    width: 13.5px;
    height: 23px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='23' viewBox='0 0 14 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 0H0.5V23H14L3.58333 11L14 0Z' fill='%23FFCB3F'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.toplist-ocf__offer-extra {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: calc(100% - 8px);
    padding: 12px 16px;
    border-radius: 4px;
    background: #3e1273;
    gap: 2px;
    grid-area: extra;
}

.toplist-ocf__offer-bonus {
    font-family: 'Lilita One', serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 34px;
    text-align: center;
    text-transform: capitalize;
    color: #fff;
}

.toplist-ocf__offer-free-spins {
    font-family: 'Fira Sans', serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    text-align: center;
    text-transform: capitalize;
    color: #c3bdcc;
}

.toplist-ocf__offer-wagering {
    font-family: 'Fira Sans', serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    letter-spacing: 0.01em;
    color: #c3bdcc;
}

.toplist-ocf__offer-cta-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-area: cta-btn;
}

.toplist-ocf__offer-cta-btn {
    font-family: 'Fira Sans', serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 52px;
    padding: 8px;
    text-align: center;
    text-transform: uppercase;
    color: #170050;
    border-radius: 16px;
    background: #3affcb;
    gap: 4px;
}

.toplist-ocf__offer-cta-btn:hover {
    text-decoration: none;
    color: #170050;
    background: #a7f1be;
}

.toplist-ocf__offer-payments {
    font-family: 'Fira Sans', serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    letter-spacing: 0.01em;
    color: #dfd4fa;
}

.toplist-ocf__offer-payments:before {
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 4.25L5.625 11.125L2.5 8' stroke='%23DFD4FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: left 3px;
}

.toplist-ocf__offer-payments-btn {
    display: inline;
    margin-left: 4px;
    cursor: pointer;
}

.toplist-ocf__show-more-btn {
    font-family: 'Fira Sans', serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 40px;
    padding: 12px 0;
    text-transform: capitalize;
    color: #f1eff7;
    border: 1px solid #3e1273;
    border-radius: 16px;
    background: #170050;
    gap: 8px;
}

.toplist-ocf__show-more-btn:hover {
    cursor: pointer;
    color: #f1eff7;
    border: 1px solid #3e1273;
    background: #3e1273;
}

@media screen and (width <= 991px) {
    .toplist-ocf__wrapper {
        margin: 40px 0 64px;
    }

    .toplist-ocf__offer {
        padding: 16px 24px;
        gap: 16px 18px;
        grid-template-areas:
            'logo main'
            'extra extra'
            'cta-btn cta-btn';
        grid-template-columns: 90px auto;
        grid-template-rows: auto;
    }

    .toplist-ocf__offer-logo-wrapper:before {
        font-size: 12px;
        line-height: 20px;
        top: 0;
        right: 0;
    }

    .toplist-ocf__offer-logo img {
        width: 90px;
        height: 90px;
    }

    .toplist-ocf__offer-main {
        gap: 8px;
    }

    .toplist-ocf__offer-brand-name {
        font-size: 16px;
        line-height: 14px;
    }

    .toplist-ocf__offer-brand-name:after {
        width: 16.8px;
        height: 12px;
        background-size: contain;
    }

    .toplist-ocf__offer-key-feature {
        font-size: 12px;
    }

    .toplist-ocf__offer-rating img {
        width: 71px;
        height: 13.04px;
        object-fit: contain;
    }

    .toplist-ocf__offer-title,
    .toplist-ocf__offer-title p {
        line-height: 32px;
    }

    .toplist-ocf__offer-free-spins {
        font-size: 14px;
        line-height: 20px;
    }

    .toplist-ocf__offer-wagering {
        font-size: 10px;
        line-height: 14px;
    }

    .toplist-ocf__offer-cta-btn {
        font-size: 16px;
        line-height: 20px;
        justify-content: center;
        padding: 8px;
        gap: 16px;
    }

    .toplist-ocf__offer-payments {
        font-size: 10px;
        line-height: 14px;
    }
}
