/*------------------------------------*\
    
    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block. 
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.image-text {
    position: relative;
    z-index: 1;
}

.image-text__pattern {
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 318px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.image-text .flex-row {
    align-items: center
}

.flex-opposite {
    flex-direction: row-reverse;
}

.image-text--left .image-text__text {
    margin-top: 50px;
}

.image-text--right .image-text__text {
    margin-bottom: 50px;
}

.image-text__img {
    position: relative;
}

.image-text__img img {
    border-radius: 30px;
}


.image-text__img--tag {
    margin-bottom: 75px;
}

.image-text--left .image-text__info {
    left: 0px;
}

.image-text__info {
    position: absolute;
    background: #fff;
    right: 0;
    bottom: -75px;
    border-radius: 20px;
    width: 281px;
    overflow: hidden;
}

.image-text__info h3 {
    margin: 0;
    padding: 22px 28px 15px;
    color: #0C1631 !important;
    font-size: 25px;
    line-height: 1.28em;
    letter-spacing: 0;
}

.image-text__info__cta {
    background: #BDCBEF;
    color: #0C1631;
    position: relative;
    display: block;
    padding: 15px 46px 15px 28px;
    font-size: 16px;
    line-height: 1.25em;
    font-weight: 400;
}

.image-text__info__cta::after {
    content: '\e903';
    font-family: 'wwc-icons';
    position: absolute;
    right: 20px;
    font-weight: 400;
    font-size: 20px;
    line-height: 1em;
    top: 50%;
    transform: translate(0, -50%);
}

@media (min-width: 768px) {
    .image-text__pattern {
        bottom: 70px;
        height: 334px;
    }

    .image-text__img {
        height: 498px;
    }

    .image-text__img--tag {
        margin-bottom: 51px;
        margin-right: 77px;
    }

    .image-text--left .image-text__info {
        left: unset;
    }

    .image-text__info {
        right: -77px;
        bottom: -51px;
        width: 371px;
    }

    .image-text__info h3 {
        padding: 29px 28px 25px;
    }

    .image-text__info__cta {
        padding: 18px 28px;
        font-size: 18px;
    }

    .image-text__info__cta::after {
        position: relative;
        right: 0;
        top: 2px;
        transform: translate(0, 0);
        margin-left: 10px;
    }
    
}

@media (min-width: 1200px) {
    .image-text--left .image-text__text {
        margin-top: 0;
        padding-left: 23px;
    }
    
    .image-text--right .image-text__text {
        margin-bottom: 0;
        padding-right: 23px;
    }

    .image-text__pattern {
        bottom: 0;
        height: 404px;
    }

    .image-text__img--tag {
        margin-right: 0;
    }

    .image-text--left .image-text__info {
        left: -66px;
    }

    .image-text__info {
        right: -66px;
        width: 318px;
    }

    .image-text__info__cta:hover {
        font-weight: 400;
    }

}

.image-text__list {
    display: inline-block;
    background: rgba(189, 203, 239, 0.2);
    padding: 14px 22px;
    border-radius: 30px;
    color: #0C1631;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.38em; 
}

.image-text__link {
    /* display: inline-block; */
    background: #fff;
    border-radius: 30px;
    box-shadow: 0px 4px 15px 0px rgba(12, 22, 49, 0.10);
    padding: 14px 22px;
    margin-bottom: 20px;
    transition: all ease-in-out 0.3s;
    cursor: pointer;
    display: block;
    width: fit-content;
}

.image-text__link a {
    color: #0C1631;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.38em; 
    display: block;
    position: relative;
    padding-right: 32px;
}

.image-text__link a::after {
    content: '\e90a';
    font-family: 'wwc-icons';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 22px;
    color: #213C88;
}

.image-text__link.active {
    background: var(--yellow);
}

.image-text__link:not(.active) a:hover {
    color: #0C1631;
}

.image-text__link.active a,
.image-text__link.active a::after {
    color: var(--dark-blue);
}

.image-text__link.active:hover {
    background: #213C88;
    box-shadow: none;
}

.image-text__link.active:hover a,
.image-text__link.active:hover a::after {
    color: #fff;
}

.image-text__img--product {
    margin-bottom: 175px;
    margin-right: 15px;
}

.image-text__product-info {
    position: absolute;
    right: -15px;
    bottom: -175px;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(12, 22, 49, 0.12);
    width: 276px;
}

.image-text__product-info h4 {
    color: #0C1631;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.375em;
    text-transform: uppercase;
    padding: 8px 18px 8px 20px;
    border-bottom: 1px solid #E3E3E3;
}

.image-text__product-details {
    padding: 0px 12px 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.image-text__product-size {
    color: #213C88;
    font-size: 30px;
    font-weight: 700;
    line-height: 1em;
}

.image-text__product-size span {
    display: block;
    color:#474747;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
}

.image-text__text-cta {
    margin-top: 53px;
    border-radius: 20px;
    padding: 32px 27px;
}

.image-text__text-cta .sub-heading {
    color: #BDCBEF !important;
    font-size: 16px;
    margin-bottom: 3px;
}

.image-text__text-cta .btn {
    padding-left: 25px;
    padding-right: 25px;
}

@media (min-width: 768px) {
    .image-text__text-cta {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .image-text__text-cta h3 {
        margin-bottom: 0;
    }

    .image-text__list,
    .image-text__link {
        padding-left: 30px;
        padding-right: 30px;
    }

    .image-text__list,
    .image-text__link a {
        font-size: 20px;
    }

    .image-text__img--product {
        margin-bottom: 75px;
        margin-right: 0;
    }
    
    .image-text__product-info {
        right: auto;
        left: 50%;
        bottom: -75px;
        transform: translate(-50%, 0);
        width: 507px;
    }
    
    .image-text__product-info h4 {
        padding-top: 11px;
        padding-bottom: 13px;
    }
    
    .image-text__product-details {
        padding: 0px 12px 10px 20px;
        gap: 35px;
    }
}

@media (min-width: 1200px) {

    .image-text__text-cta {
        padding: 30px;
        margin-top: 45px;
    }

    .image-text__img--product {
        margin-bottom: 83px;
        margin-right: 0;
    }
    
    .image-text__product-info {
        right: -63px;
        left: auto;
        bottom: -82px;
        transform: translate(0, 0);
    }

    .image-text__link:hover {
        background: #BDCBEF;
        box-shadow: none;
    }
}

@media (min-width: 1600px) {
    
    .image-text__product-info {
        right: 0;
        position: relative;
        bottom: 0;
        margin-top: 30px;
    }

    .image-text__img {
        height: auto;
    }
}