/* 
Style commun de la pop-up 
Block fixe affiché au centre de l'écran
Empêchant le scroll 
Avec un overlay de fond
*/

/*  body  */
html.no-scroll,
body.no-scroll {
    overflow-y: hidden !important;
}

/* Styles for overlay */
#probance_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: smooth-show-overlay 0.5s ease-out forwards;
}

@keyframes smooth-show-overlay {
    from {
        opacity: 0; /* Optionnel : pour une transition d'opacité */
    }
    to {
        opacity: 1; /* Optionnel : pour une transition d'opacité */
    }
}

/* Styles for popup */
.probance_popup {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    cursor: default;
}

#probance_popup_overlay[data-image-position="right"] .probance_popup {
    flex-direction: row-reverse;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

.popup_image {
    overflow: hidden;
}
