.bgs-flash-sale {
    overflow-x: clip;
    background: var(--bgs-flash-section-bg, #fff);
    padding-block: var(--bgs-flash-section-padding, 40px);
}

.bgs-flash-sale__banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    width: min(calc(100% - 48px), var(--bgs-flash-max, 1000px));
    min-height: var(--bgs-flash-height, 350px);
    margin-inline: auto;
    padding: 40px 60px;
    border-radius: var(--bgs-flash-radius, 12px);
    background: var(--bgs-flash-banner-bg, #f4f4f2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
}

.bgs-flash-sale__content {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.bgs-flash-sale__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--bgs-flash-badge-bg, #1f2532);
    color: var(--bgs-flash-badge-text, #fff);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
}

.bgs-flash-sale__badge svg {
    width: 14px;
    height: 14px;
}

.bgs-flash-sale__title {
    margin: 0 0 30px;
    color: var(--bgs-flash-title, #1f2532);
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
}

.bgs-flash-sale__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 6px;
    background: var(--bgs-flash-button-bg, #1f2532);
    color: var(--bgs-flash-button-text, #fff);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.bgs-flash-sale__button:hover {
    color: var(--bgs-flash-button-text, #fff);
    opacity: .92;
    transform: translateY(-1px);
}

.bgs-flash-sale__media {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
}

.bgs-flash-sale__media img {
    display: block;
    width: auto;
    max-width: calc(100% + var(--bgs-flash-breakout, 130px));
    max-height: var(--bgs-flash-image-height, 290px);
    margin-right: calc(var(--bgs-flash-breakout, 130px) * -1);
    object-fit: contain;
    transition: transform .3s ease;
}

.bgs-flash-sale__media img:hover {
    transform: scale(1.03);
}

@media (max-width: 760px) {
    .bgs-flash-sale__banner {
        grid-template-columns: 1fr;
        width: min(calc(100% - 32px), var(--bgs-flash-max, 1000px));
        min-height: 0;
        padding: 32px 22px 0;
        text-align: center;
    }

    .bgs-flash-sale__content {
        max-width: none;
    }

    .bgs-flash-sale__title {
        margin-bottom: 24px;
        font-size: clamp(1.85rem, 9vw, 2.25rem);
    }

    .bgs-flash-sale__media {
        justify-content: center;
        height: auto;
        min-height: 180px;
        margin-top: -6px;
    }

    .bgs-flash-sale__media img {
        max-width: 100%;
        max-height: min(var(--bgs-flash-image-height, 290px), 210px);
        margin-right: 0;
    }
}
