.crf-dropdown-plus-image {
    z-index: 0; /* to prevent its inner content to get over any fixed UI element */
    position: relative;
    padding: var(--global-vertical-padding) var(--global-lateral-padding);
    background-color: var(--crf--shiny-blue);
    
    color: var(--crf--white);
    fill: var(--crf--white);
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
}
.crf-dropdown-plus-image::before,.crf-dropdown-plus-image::after {
    content: "";
    position: absolute;
    inset: 0px;
    background-image: url('../../assets/images/svg/logo-carrefour--white.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
}
.crf-dropdown-plus-image::after {
    opacity: 0.05;
    transform: translateX(3%);
}

.crf-dropdown-plus-image__content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;  
    width: 100%;
}

.crf-dropdown-plus-image__text {
    font-size: 40px;
    line-height: 50px;
    width: 80%;
}

.crf-dropdown-plus-image__select {
    font-size: 16px;
    line-height: 26px;
    font-weight: 300;
    font-style: italic;
    color: var(--crf--white);
    background-color: var(--crf--shiny-blue);
    border: none;
    border-bottom: 1px solid var(--crf--white);
    padding: 0px 0.5em 0px 0px;
    margin: 30px 0 50px;
    outline: none;
    width: 90%;
    cursor: pointer;
}
@media screen and (min-width: 568px) {
    .crf-dropdown-plus-image__select {
        font-size: 20px;
        line-height: 32px;
    }
}
@media screen and (min-width: 768px) {
    .crf-dropdown-plus-image__select {
        font-size: 36px;
        line-height: 60px;
    }
}


.crf-dropdown-plus-image__option {
    background-color: var(--crf--white);
    color: var(--crf--dark-blue);
    font-weight: 300;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
}

.crf-dropdown-plus-image__select-container,
.crf-dropdown-plus-image__img-wrapper {
    width: 50%;
}

.crf-dropdown-plus-image__img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.crf-dropdown-plus-image__img-container {
    aspect-ratio: 386/500;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) ;
    transition: transform 600ms ease-in-out;
    z-index: 0;
}

.crf-dropdown-plus-image__img-container:nth-child(2n) {
    transform: translate(-50%, -50%) rotate(5deg);
}

.crf-dropdown-plus-image__img-container:nth-child(3n) {
    transform: translate(-50%, -50%) rotate(-5deg);
}

.crf-dropdown-plus-image__option__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crf-dropdown-plus-image__img-container.previous {
    z-index: 1;
}
.crf-dropdown-plus-image__img-container.active {
    z-index: 2;
}
.crf-dropdown-plus-image__img-container.active .crf-dropdown-plus-image__option__img {
    animation: appear 0.15s ease-in-out running both;
}


@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* state mgmt */
.crf-dropdown-plus-image__option__cta {
    display: none;
}

.crf-dropdown-plus-image__option__cta.active {
    display: flex;
    
}
.crf-dropdown-plus-image__option__img.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .crf-dropdown-plus-image__content-wrapper {
        flex-direction: column;
    }
    .crf-dropdown-plus-image__select-container,
    .crf-dropdown-plus-image__img-wrapper {
        width: 100%;
    }
    .crf-dropdown-plus-image__text {
        font-size: 32px;
        line-height: 36px;
        width: 100%;
    }
    
    .crf-dropdown-plus-image__img-wrapper {
        min-height: 100vw;
    }
    .crf-dropdown-plus-image__img-container {
        width: 80%;
    }
}