/* Banner With Text And CTA - flex layout `banner_with_text_and_cta`
   Live .block-shoplink: 120px top margin (room for the overflowing image), 80px
   bottom padding, sky band with 10px radius, text block max 800px, image pinned
   bottom-right at 150% band height, hidden under 770px. */
.banner_with_text_and_cta {
    width: 100%;
    max-width: 100%;
    padding-bottom: 80px;
    background: var(--background);

    &.has_image {
        margin-top: 120px;

        @media (max-width: 770px) { margin-top: 0; }
    }

    & > .container {
        position: relative;
        width: 100%;
    }

    & .banner_with_text_and_cta_band {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-radius: 10px;
        background: var(--secondary);

        @media (max-width: 770px) {
            position: relative;
            z-index: 10;
            padding: 16px;
        }
    }

    & .banner_with_text_and_cta_text {
        max-width: 800px;
        padding: 32px;

        @media (max-width: 955px) {
            max-width: 500px;
        }

        @media (max-width: 770px) {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-width: 100%;
            text-align: center;
        }
    }

    & .banner_with_text_and_cta_eyebrow {
        display: block;
        margin-bottom: 4px;
        color: var(--white);
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
    }

    & .banner_with_text_and_cta_title {
        margin: 0;
        padding: 0;
        color: var(--white);
        font-size: 32px;
        font-weight: 500;
        text-transform: uppercase;

        @media (max-width: 490px) {
            font-size: 21px;
        }
    }

    & .banner_with_text_and_cta_content {
        & p {
            margin: 0;
            padding: 0;
            color: var(--white);
            font-family: var(--font-body);
            font-size: 19.2px;
            font-weight: 400;

            @media (max-width: 1346px) {
                width: 100%;
                max-width: 600px;
            }

            @media (max-width: 955px) {
                font-size: 16px;
            }
        }
    }

    & .banner_with_text_and_cta_button {
        margin-top: 16px;
    }

    & .banner_with_text_and_cta_image {
        position: absolute;
        right: 16px;
        bottom: 0;
        height: 150%;
        z-index: 1;

        @media (max-width: 770px) {
            display: none;
        }

        & img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center bottom;
            border-bottom-right-radius: 10px;
        }
    }
}
