@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

.toplist-poka-v2__wrapper {
    display: grid;
    margin: 32px 0;
    gap: 16px;
}

.toplist-poka-v2__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-poka-v2-counter;
    gap: 12px;
}

.toplist-poka-v2__offer {
    position: relative;
    display: grid;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #F1F2F4;
    border-radius: 8px;
    grid-template-columns: 200px auto 320px;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
    "logo main cta-btn";
    gap: 40px;
    isolation: isolate;
}

.toplist-poka-v2__offer.hidden {
    display: none;
}

.toplist-poka-v2__offer:before {
    font-family: 'Onest', serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    content: counter(bm-toplist-poka-v2-counter);
    counter-increment: bm-toplist-poka-v2-counter;
    color: #242424;
    border-radius: 500px;
    background: #FFF;
}

.toplist-poka-v2__offer-logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 12px;
    grid-area: logo;
}

.toplist-poka-v2__offer-logo {
    width: 100%;
}

.toplist-poka-v2__offer-logo img {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    object-fit: contain;
    gap: 10px;
}

.toplist-poka-v2__offer-main {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
    grid-area: main;
    gap: 16px;
}

.toplist-poka-v2__offer-name {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F2F4;
    gap: 8px;
}

.toplist-poka-v2__offer-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

.toplist-poka-v2__offer-title,
.toplist-poka-v2__offer-title p {
    font-family: 'Onest', serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 32px;
    margin: 0;
    color: #242424;
}

.toplist-poka-v2__offer-label-highlight {
    font-family: 'Onest', serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 16px;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 8px;
    text-align: center;
    color: #09326C;
    border-radius: 8px;
    background: #E9F2FF;
    gap: 8px;
}

.toplist-poka-v2__offer-extra {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    grid-area: extra;
    gap: 24px;
}

.toplist-poka-v2__offer-rating-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-shrink: 0;
    gap: 8px;
}

.toplist-poka-v2__offer-rating {
    font-family: 'Onest', serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    height: 42px;
    color: #828282;
}

.toplist-poka-v2__offer-rating-score {
    font-family: 'Onest', serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    align-self: center;
    color: #242424;
}

.toplist-poka-v2__offer-review {
    font-family: 'Onest', serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    color: #0C66E4;
    text-decoration-line: underline;
}

.toplist-poka-v2__offer-cta-block {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 24px 16px;
    border-radius: 8px;
    background: #E9F2FFBF;
    grid-area: cta-btn;
    gap: 16px;
}

.toplist-poka-v2__offer-cta-block_offer-title,
.toplist-poka-v2__offer-cta-block_offer-title p {
    font-family: 'Onest', serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    text-align: center;
    color: #242424;
}

.toplist-poka-v2__offer-cta-block_offer-title span {
    color: #0C66E4;
}

.toplist-poka-v2__offer-cta-block_offer-title p {
    margin-bottom: 0;
}

.toplist-poka-v2__offer-cta-block div {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.toplist-poka-v2__offer-cta-btn {
    font-family: 'Onest', serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    color: var(--bm-cta-button-color);
    border-radius: 8px;
    background: var(--bm-cta-button-background);
}

.toplist-poka-v2__offer-cta-btn:hover {
    text-decoration: none;
    color: var(--bm-cta-button-hover-color);
    background: var(--bm-cta-button-hover-background);
}

.toplist-poka-v2__offer-key-features ul {
    margin: 0 !important;
    list-style-type: none !important;
}

.toplist-poka-v2__offer-key-features ul li {
    font-family: 'Onest', serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    padding: 0 0 8px 20px !important;
    color: #242424;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3333 4L5.99996 11.3333L2.66663 8' stroke='%2322A06B' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: left 4px;
}

.toplist-poka-v2__offer-key-features {
    width: 60%;
}

.toplist-poka-v2__show-more-btn {
    font-family: 'Onest', serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    margin: 24px 0;
    padding: 12px;
    cursor: pointer;
    color: #242424;
    border: 2px solid #F1F2F4;
    border-radius: 8px;
    gap: 8px;
}

.toplist-poka-v2__offer-extra-block {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    gap: 12px;
}

.toplist-poka-v2__offer-extra-block-item {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    gap: 8px;
}

.toplist-poka-v2__offer-extra-block-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 200px;
    background: #DCFFF1;
}

.toplist-poka-v2__offer-extra-block-item-icon img {
    position: relative;
    top: calc(50% - 24px / 2);
    left: calc(50% - 24px / 2);
    width: 24px;
    height: 24px;
}

.toplist-poka-v2__offer-extra-block-item-body {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.toplist-poka-v2__offer-extra-block-item-body_title {
    font-family: 'Onest', serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    color: #242424;
}

.toplist-poka-v2__offer-extra-block-item-body_value {
    font-family: 'Onest', serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    color: #242424;
}

@media screen and (min-width: 992px) {
    .tiny .toplist-poka-v2__offer {
        grid-template-columns: 200px auto;
        grid-template-areas:
        "logo main"
        "cta-btn cta-btn";
    }

    .tiny .toplist-poka-v2__offer-main {
        margin-right: 16px;
    }
}

@media screen and (min-width: 577px) {
    .bm-tiny .toplist-poka-v2__offer {
        align-items: start;
        box-sizing: border-box;
        padding: 0;
        border: 1px solid #F1F2F4;
        border-radius: 8px;
        grid-template-columns: 200px auto;
        row-gap: 12px;
        grid-template-areas:
    "logo main"
    "cta-btn cta-btn";
        gap: 12px;
        isolation: isolate;
    }

    .bm-tiny .toplist-poka-v2__offer-rating {
        width: fit-content;
    }

    .bm-tiny .toplist-poka-v2__offer-rating-score {
        line-height: 24px;
    }

    .bm-tiny .toplist-poka-v2__offer-cta-btn {
        font-size: 16px;
    }

    .bm-tiny .toplist-poka-v2__offer-extra-block-item-body {
        align-items: flex-start;
        flex-direction: column;
        flex-shrink: 0;
    }

    .bm-tiny .toplist-poka-v2__offer-main {
        margin-right: 16px;
    }

    .bm-tiny .toplist-poka-v2__offer-key-features {
        width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .toplist-poka-v2__offer {
        align-items: start;
        box-sizing: border-box;
        padding: 0;
        border: 1px solid #F1F2F4;
        border-radius: 8px;
        grid-template-columns: 200px auto;
        row-gap: 12px;
        grid-template-areas:
        "logo main"
        "cta-btn cta-btn";
        gap: 12px;
        isolation: isolate;
    }

    .toplist-poka-v2__offer-rating {
        width: fit-content;
    }

    .toplist-poka-v2__offer-rating-score {
        line-height: 24px;
    }

    .toplist-poka-v2__offer-cta-btn {
        font-size: 16px;
    }

    .toplist-poka-v2__offer-extra-block {
        width: fit-content;
    }

    .toplist-poka-v2__offer-extra-block-item-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .toplist-poka-v2__offer-main {
        margin-right: 16px;
    }

    .toplist-poka-v2__offer-key-features {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .toplist-poka-v2__offer {
        align-items: start;
        grid-template-columns: auto;
        row-gap: 16px;
        grid-template-areas:
        "logo"
        "main"
        "cta-btn";
    }

    .toplist-poka-v2__offer-name {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 8px;
    }

    .toplist-poka-v2__offer-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .toplist-poka-v2__offer-extra {
        align-items: flex-start;
        flex-direction: column;
    }

    .toplist-poka-v2__offer-extra-block {
        width: 100%;
    }

    .toplist-poka-v2__offer-extra-block-item-body {
        flex-direction: row;
        justify-content: space-between;
    }

    .toplist-poka-v2__offer-key-features {
        width: 100%;
    }

    .toplist-poka-v2__offer-main {
        margin-right: 0;
        padding: 0;
    }

    .toplist-poka-v2__offer-title,
    .toplist-poka-v2__offer-title p {
        font-family: 'Onest', serif;
        font-size: 24px;
        font-weight: 700;
        font-style: normal;
        line-height: 32px;
        text-align: center;
        color: #242424;
    }
}
