﻿@import url('css2-Onestwght600700_swap.css');

.toplist-poka__wrapper {
    margin: 32px 0;
}

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

.toplist-poka__offer {
    position: relative;
    display: grid;
    align-items: center;
    padding: 24px 24px 24px 88px;
    border: 1px solid #DCDFE4;
    border-radius: 12px;
    background: #FFFFFF;
    grid-template-columns: 200px auto 132px 298px;
    grid-template-rows: auto;
    gap: 0 24px;
    grid-auto-flow: row;
    grid-template-areas:
    "logo main extra cta-btn";
}

.toplist-poka__offer:before {
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    position: absolute;
    top: calc(50% - 20px);
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    content: counter(bm-toplist-poka-counter);
    counter-increment: bm-toplist-poka-counter;
    color: #242424;
    border-radius: 500px;
    background: #F3F0FF;
}

.toplist-poka__offer-logo {
    grid-area: logo;
}

.toplist-poka__offer-logo img {
    width: 100%;
    height: 112px;
    border-radius: 8px;
    object-fit: cover;
}

.toplist-poka__offer-main {
    grid-area: main;
}

.toplist-poka__offer-title,
.toplist-poka__offer-title p {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    margin: 0;
    color: #242424;
}

.toplist-poka__offer-extra {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 16px;
    grid-area: extra;
    gap: 8px;
}

.toplist-poka__offer-rating {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    display: flex;
    align-items: flex-end;
    align-self: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    color: #828282;
    border-radius: 500px;
    background: #F1F2F4;
}

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

.toplist-poka__offer-review {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    color: #828282;
    text-decoration-line: underline;
}

.toplist-poka__offer-cta-w-payments {
    display: flex;
    flex-direction: column;
    grid-area: cta-btn;
    gap: 8px;
}

.toplist-poka__offer-cta-btn {
    font-family: 'Onest', sans-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__offer-cta-btn:hover {
    text-decoration: none;
    color: var(--bm-cta-button-hover-color);
    background: var(--bm-cta-button-hover-background);
}

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

.toplist-poka__offer-payment {
    position: relative;
    height: 24px;
    cursor: pointer;
}

.toplist-poka__offer-payment-image {
    width: 36px;
    height: 24px;
    object-fit: contain;
}

.toplist-poka__offer-payment-tooltip {
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    position: absolute;
    z-index: 10;
    top: 37px;
    left: 50%;
    flex-direction: column;
    width: max-content;
    padding: 12px 16px;
    transform: translateX(-50%);
    color: #BFBFBF;
    border-radius: 4px;
    background: #404040;
    gap: 14px;
}

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

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

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

    .toplist-poka__offer:before {
        top: 36px;
        left: 36px;
    }

    .toplist-poka__offer-logo img {
        height: 156px;
        border-radius: 12px;
    }

    .toplist-poka__offer-title,
    .toplist-poka__offer-title p {
        font-size: 16px;
    }

    .toplist-poka__offer-extra {
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
    }

    .toplist-poka__offer-rating {
        font-size: 14px;
        width: fit-content;
        padding: 8px 25px;
    }

    .toplist-poka__offer-rating-score {
        font-size: 18px;
        line-height: 24px;
    }

    .toplist-poka__offer-review {
        font-size: 14px;
        margin-left: auto;
        text-decoration-line: none;
    }

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