@bcb_layout_shit: 1020px;
@bcb_light_bg_color: #e5f4f6;

.bmiCalculatorBlock {
    --bcbInfoMaxWidth: 560px;
    --bcbColumnGap: 80px;
    --bcbMarginOffset: calc((100vw - 1282px) / 2);

    position: relative;
    border-radius: 30px 30px 0 0;
    background-color: #cbeaec;
    padding: 80px 0;
    overflow: hidden;

    @media all and (max-width: 1400px) {
        --bcbMarginOffset: auto;
    }

    @media all and (max-width: @bcb_layout_shit) {
        padding: 0;
    }

    &:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        z-index: 0;
        background-color: @bcb_light_bg_color;
        width: 50%;

        @media all and (max-width: @bcb_layout_shit) {
            display: none;
        }
    }

    .wrapper {
        max-width: unset;
    }

    &__inner {
        display: flex;
        align-items: center;
        position: relative;
        gap: var(--bcbColumnGap);
        z-index: 2;

        @media all and (max-width: 1400px) {
            --bcbColumnGap: 40px;
        }

        @media all and (max-width: @bcb_layout_shit) {
            flex-wrap: wrap;
            flex-direction: column;
            align-items: unset;
        }

        &--lightBg {
            height: 100%;

            @media all and (max-width: @bcb_layout_shit) {
                background-color: @bcb_light_bg_color;
                position: relative;

                &:before,
                &:after {
                    content: '';
                    background-color: @bcb_light_bg_color;
                    width: 100%;
                    height: calc(100% + var(--bcbColumnGap));
                    position: absolute;
                    left: -50%;
                    top: calc((var(--bcbColumnGap) / 2) * -1);
                    z-index: -1;
                }

                &:after {
                    left: auto;
                    right: -50%;
                }
            }
        }

        &--column {
            flex: 1 0;
            flex-basis: ~'calc(50% - calc(var(--bcbColumnGap) / 2))';

            @media all and (max-width: @bcb_layout_shit) {
                padding: 40px 0;
                flex: 0 0 100%;
                max-width: 100%;
            }
        }
    }

    &__info {
        max-width: var(--bcbInfoMaxWidth, unset);
        margin-left: var(--bcbMarginOffset, unset);

        @media all and (max-width: 1400px) {
            margin-right: auto;
        }
    }

    &__actions {
        max-width: var(--bcbInfoMaxWidth, unset);
        margin-left: var(--bcbMarginOffset, unset);
        text-align: center;
        padding: 40px 0 0;

        @media all and (max-width: 1400px) {
            margin-right: auto;
        }

        @media @mobile {
            padding: 24px 0 0;
        }

        .button {
            margin: 0;
        }
    }

    &__bmiCard {
        margin-top: 42px;
        border-radius: @border_radius_large;
        background: #f2fafa;
        padding: 30px;
        max-width: var(--bcbInfoMaxWidth, unset);
        margin-left: var(--bcbMarginOffset, unset);

        @media all and (max-width: 1400px) {
            margin-right: auto;
        }

        .note {
            .rems(12);
            font-style: italic;
            font-weight: 300;
            line-height: 1.3em;
            padding-top: 0;

            strong {
                font-weight: 500;
            }
        }
    }

    &__imageWrapper {
        display: block;
        max-width: 635px;
        margin-left: auto;
        margin-right: var(--bcbMarginOffset, unset);
        position: relative;
        z-index: 2;
        width: 100%;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }

    .weightLossGraph {
        height: 100%;
    }

    .weightLossGraph__slot {
        padding-left: 43px;

        @media all and (max-width: 1400px) {
            padding-left: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
        }
    }
}
