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

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

.toplist-tech__offer {
    box-sizing: border-box;
}

.toplist-tech__offer-inner {
    display: grid;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    grid-template-columns: 134px 1fr 116px 163px;
    grid-template-rows: auto 1fr;
    gap: 8px 20px;
    grid-auto-flow: row;
    grid-template-areas:
    "logo title deal cta-btn"
    "logo pricing deal cta-btn";
}

.toplist-tech__offer-logo {
    position: relative;
    grid-area: logo;
}

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

.toplist-tech__offer-logo::before {
    font-family: var(--bm-font-family);
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    position: absolute;
    z-index: 1;
    top: -4px;
    left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    content: counter(bm-toplist-tech-counter);
    counter-increment: bm-toplist-tech-counter;
    color: #1C2642;
    border: 2px solid #FFFFFF;
    border-radius: 100%;
    background: #F1F5FF;
}

.toplist-tech__offer-title {
    grid-area: title;
}

.toplist-tech__offer-title,
.toplist-tech__offer-title p {
    font-family: var(--bm-font-family);
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 135%;
    margin-bottom: 0;
    color: #1C2642;
}

.toplist-tech__offer-pricing {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    font-style: normal;
    line-height: 150%;
    color: #2E364E;
    grid-area: pricing;
}

.toplist-tech__offer-deal {
    grid-area: deal;
}

.toplist-tech__offer-deal-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    font-style: normal;
    line-height: 150%;
    margin-bottom: 4px;
    color: #1C2642;
}

.toplist-tech__offer-deal-details {
    font-family: var(--bm-font-family);
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 135%;
    color: #0077CC;
}

.toplist-tech__offer-cta-btn {
    font-family: var(--bm-font-family);
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 135%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    color: #0077CC;
    border: 1px solid #0077CC;
    border-radius: 6px;
    grid-area: cta-btn;
    gap: 8px;
}

.toplist-tech__offer-cta-btn:hover {
    text-decoration: none;
    color: #FFFFFF;
    background: #0077CC;
}

.toplist-tech__offer-cta-btn-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='13' viewBox='0 0 8 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 11.8945L6.5 6.89453L1.5 1.89453' stroke='%230077CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.toplist-tech__offer-cta-btn:hover .toplist-tech__offer-cta-btn-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 11L6.5 6L1.5 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.toplist-tech__offer-details-btn-wrapper {
    margin-top: 52px;
    grid-area: cta-btn;
}

.toplist-tech__offer-details-btn {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    font-style: normal;
    line-height: 150%;
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: #2E364E;
    text-decoration-line: underline;
}

.toplist-tech__offer-details-btn:hover {
    color: #0077CC;
}

.toplist-tech__offer-deal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 1px 1px;
    border-radius: 4px;
    background: #FFD449;
}

.toplist-tech__offer-deal-wrapper .toplist-tech__offer-inner {
    border: 0;
}

.bm-black-friday-deal__wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 23px;
    padding: 4px 16px;
    border-radius: 4px;
    background: #FFD449 url('../images/toplist-tech-deal-sales.svg') no-repeat 320px top;
    background-size: auto;
}

.bm-black-friday-deal__inner {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    line-height: 125%;
    user-select: none;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #000000;
}

@media screen and (min-width: 992px) {
    .toplist-tech__offer-deal {
        padding-left: 24px;
        border-left: 1px dashed #E0E0E0;
    }
}

@media screen and (max-width: 991px) {
    .toplist-tech__offer-inner {
        padding: 16px;
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto;
        gap: 4px 16px;
        grid-template-areas:
        "logo title"
        "details-btn pricing"
        "border border"
        "deal cta-btn";
    }

    .toplist-tech__offer-logo img {
        width: 120px;
        height: 58px;
    }

    .toplist-tech__offer-logo::before {
        top: -6px;
    }

    .toplist-tech__offer-title {
        font-size: 16px;
    }

    .toplist-tech__offer-pricing {
        font-size: 12px;
    }

    .toplist-tech__offer-details-btn-wrapper {
        margin-top: 0;
        grid-area: details-btn;
    }

    .toplist-tech__offer-deal-title {
        font-size: 12.5px;
        line-height: 100%;
    }

    .toplist-tech__offer-deal-details {
        font-size: 14px;
        line-height: 140%;
    }

    .toplist-tech__offer-cta-btn {
        font-size: 14px;
        line-height: 140%;
        height: 44px;
    }

    .toplist-tech__offer-details-btn {
        font-size: 12px;
        margin: 0;
    }

    .toplist-tech__offer-mobile-border {
        margin-top: 12px;
        margin-bottom: 8px;
        border-top: 1px dashed #E0E0E0;
        grid-area: border;
    }

    .bm-black-friday-deal__wrapper {
        background-position: 159px top;
    }
}
