/* Heavy weights for the sticker texts (Onest Black, as in the design) */
@font-face {
    font-family: Onest-Black;
    src: url(/assets/fonts/Onest-Black.woff2) format("woff2");
    font-display: swap;
}

.bf_banner {
    --bf-bg: #18181a;
    --bf-text: #fff;
    --bf-text-muted: #a1a1a6;
    --bf-yellow: #ffd400;
    --bf-black: #000;
    --bf-green: #00b67a;
    --bf-rating: rgb(69 213 137);
    --bf-divider: rgb(255 255 255 / 0.2);
    --bf-pill-bg: rgb(255 255 255 / 0.1);
    --bf-stickers-w: 362px;

    position: relative;
    display: flex;
    align-items: center;
    max-inline-size: 1370px;
    inline-size: 100%;
    block-size: 430px;
    margin-inline: auto;
    margin-block-start: 24px;
    border-radius: 40px;
    overflow: hidden;
    color: var(--bf-text);
    background-color: var(--bf-bg);

    .bf_banner_media {
        position: absolute;
        z-index: 0;
        inset-block: 0;
        inset-inline-start: 50%;
        aspect-ratio: 1144 / 720;
        transform: translateX(-50%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
        pointer-events: none;
    }

    .bf_banner_poster,
    .bf_banner_video {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        object-fit: cover;
    }

    .bf_banner_video {
        opacity: 0;
        transition: opacity 0.4s ease;

        &.is_playing {
            opacity: 1;
        }
    }

    .bf_banner_inner {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        inline-size: 100%;
        padding-inline: 92px 86px;
    }

    .bf_banner_left {
        display: flex;
        flex-direction: column;
        row-gap: 42px;
        max-inline-size: 380px;
    }

    .bf_banner_title {
        font-family: Onest-Bold, sans-serif;
        font-size: 48px;
        max-inline-size: 400px;
        text-wrap: balance;
        line-height: 1;
        text-transform: lowercase;

        &::first-letter {
            text-transform: uppercase;
        }
    }

    .bf_banner_text {
        margin: 0;
        max-inline-size: 290px;
        font-family: Onest, sans-serif;
        font-size: 16px;
        line-height: 1.35;
        color: var(--bf-text);
    }

    .bf_banner_right {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 50px;
    }

    .bf_banner_deal {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--bf-text);
        text-decoration: none;
        transition: transform 0.3s ease;

        &:hover {
            transform: scale(1.03);
        }
    }

    .bf_banner_stickers {
        container-type: inline-size;
        position: relative;
        display: block;
        inline-size: var(--bf-stickers-w);
        aspect-ratio: 724 / 263;
        background: url('/assets/img/homepage/black-friday/bf-stickers.webp') center / 100% 100% no-repeat;
        font-family: Onest-Black, Onest-Bold, sans-serif;
        letter-spacing: -0.01em;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;

        & > span {
            position: absolute;
            inset-inline: 0;
            transform: translateY(-50%);
        }
    }

    .bf_banner_dates {
        inset-block-start: 13.5%;
        font-size: calc(15 / 362 * 100cqw);
        color: var(--bf-black);
    }

    .bf_banner_deals {
        inset-block-start: 44.5%;
        font-size: calc(26 / 362 * 100cqw);
        color: var(--bf-black);
    }

    .bf_banner_off {
        inset-block-start: 80%;
        font-size: calc(16.8 / 362 * 100cqw);
        color: var(--bf-text);
    }

    .bf_banner_reviews {
        display: flex;
        align-items: center;
        column-gap: 12px;

        a {
            color: inherit;
        }
    }

    .bf_banner_reviews_main {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 4px;
        padding-inline-end: 12px;
        border-inline-end: 1px solid var(--bf-divider);
    }

    .bf_banner_reviews_count {
        font-family: Onest-SemiBold, sans-serif;
        font-size: 17px;
        color: var(--bf-text);
        text-decoration: none;
    }

    .bf_banner_reviews_line {
        display: flex;
        align-items: center;
        column-gap: 5px;
        font-family: Onest, sans-serif;
        font-size: 15px;
        color: var(--bf-text-muted);

        a {
            display: inline-flex;
            align-items: center;
            column-gap: 3px;
            color: var(--bf-text);
            /* account_reset_css.css removes link underlines with !important */
            text-decoration: underline !important;
            text-underline-offset: 2px;
        }
    }

    .bf_banner_tp_star {
        margin-inline-end: 2px;
        color: var(--bf-green);
    }

    .bf_banner_rating {
        display: inline-block;
        padding: 1px 5px;
        border-radius: 4px;
        background-color: var(--bf-rating);
        font-family: Onest-Bold, sans-serif;
        font-size: 12px;
        line-height: 1.4;
        color: var(--bf-text);
    }

    .bf_banner_orders {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 4px;
        font-family: Onest, sans-serif;
        font-size: 15px;
        color: var(--bf-text-muted);
    }

    .bf_banner_sj_icon {
        inline-size: auto;
        block-size: 14px;
    }

    .bf_banner_orders_value {
        font-family: Onest-SemiBold, sans-serif;
        font-size: 17px;
        color: var(--bf-text);
    }

    .bf_banner_reviews_short {
        display: none;
        flex-direction: column;
        align-items: center;
        row-gap: 8px;

        .bf_banner_reviews_count {
            display: flex;
            align-items: center;
            column-gap: 6px;
            font-family: Onest-SemiBold, sans-serif;
            font-size: 14px;

            & > span:first-child {
                color: var(--bf-green);
            }
        }
    }

    .bf_banner_reviews_pills {
        display: flex;
        column-gap: 8px;

        a {
            display: flex;
            align-items: center;
            padding: 3px 7px;
            border-radius: 4px;
            background-color: var(--bf-pill-bg);
        }

        img {
            block-size: 12px;
            inline-size: auto;
        }
    }
}

@media (max-width: 1450px) {
    .bf_banner {
        max-inline-size: calc(100% - 60px);
    }
}

@media (max-width: 1300px) {
    .bf_banner {
        .bf_banner_inner {
            padding-inline: 60px;
        }
    }
}

@media (max-width: 1200px) {
    .bf_banner {
        --bf-stickers-w: clamp(218px, 28.4vw, 362px);

        block-size: clamp(200px, 26vw, 430px);
        border-radius: clamp(20px, 2.6vw, 40px);

        .bf_banner_inner {
            padding-inline: clamp(40px, 5.2vw, 60px);
        }

        .bf_banner_left {
            row-gap: clamp(16px, 2.1vw, 42px);
            max-inline-size: clamp(200px, 26vw, 380px);
        }

        .bf_banner_title {
            font-size: clamp(25px, 3.26vw, 48px);
        }

        .bf_banner_text {
            max-inline-size: clamp(178px, 23vw, 290px);
            font-size: clamp(10px, 1.3vw, 16px);
        }

        .bf_banner_right {
            row-gap: clamp(10px, 1.8vw, 50px);
        }
    }
}

@media (max-width: 1040px) {
    .bf_banner {
        .bf_banner_reviews {
            display: none;
        }

        .bf_banner_reviews_short {
            display: flex;
        }
    }
}

@media (max-width: 1040px) {
    .bf_banner {
        max-inline-size: calc(100% - 20px);
    }
}

@media (max-width: 650px) {
    .bf_banner {
        --bf-stickers-w: 222px;

        block-size: auto;
        padding: 22px 20px 26px;

        .bf_banner_media {
            display: none;
        }

        .bf_banner_inner {
            flex-direction: column;
            align-items: stretch;
            row-gap: 16px;
            padding: 0;
        }

        .bf_banner_right {
            display: contents;
        }

        .bf_banner_deal {
            order: 1;
        }

        .bf_banner_left {
            order: 2;
            row-gap: 12px;
            max-inline-size: none;
        }

        .bf_banner_title {
            font-size: 20px;
            max-inline-size: none;
        }

        .bf_banner_text {
            max-inline-size: 300px;
            font-size: 10.5px;
        }

        .bf_banner_reviews_short {
            order: 3;
            flex-direction: row;
            flex-wrap: wrap;
            column-gap: 8px;
        }
    }
}
