﻿

#div_resultats_overlay {
    display: none;
    z-index: 9000;
    position: fixed;
    top: -1000px !important;
    left: -1000px !important;
    width: calc(100vw + 2000px) !important;
    height: calc(100vh + 2000px) !important;
}

.ui-widget {
    position: relative;
    font-family: unset;
    font-size: unset;
}


.ui-widget-content {
    z-index: 9000;
}

.ui-state-focus, .ui-widget-content .ui-state-focus {
    color: white;
    background: #F8F8F8;
    font-weight: bold;
    border: none;
}

.ui-menu .ui-menu-item {
    padding: 0px 0px 5px 0px;
}

.ui-menu .ui-menu-item a {
    padding: 5px;
    overflow-wrap: break-word;
}

.ui-menu-item a:hover {
    color: black;
}

.ui-menu-item li:hover {
    color: black;
}

/* === RESULTATS === */

.quicksearch--suggestion {
    display: none;
    background: #fcfdfd;
    z-index: 9100;
    min-width: 960px;
    max-height: 600px;
    position: absolute;
    overflow: hidden;
    right: 0;
    padding-top: 40px;
    padding-bottom: 60px;
    border: solid 1px #ccc;
}

.suggestion--articles, .suggestion--familles {
    max-height: 600px;
}


/* - Nombre de résultats - */
.suggestion--resultat {
    position: absolute;
    top: 0;
    width: 100%;
    height: 35px;
    border-bottom: 1px solid #ccc;
}

.suggestion--resultat--label {
    display: inline-block;
    margin-top: 10px;
    margin-left: 45px;
    font-weight: bold;
    font-size: 18px;
}

/* - Bouton Fermer - */
.suggestion--close {
    z-index: 9999;
    position: absolute;
    right: 5px;
    top: 5px;
}

.suggestion--close--button {
    display: block;
    height: 24px;
    width: 24px;
    background: transparent url(../img/popup-fermer.png) no-repeat center center;
    background-size: 15px 15px;
}

/* - Voir tous les résultats - */
.suggestion--actions {
    z-index: 9100;
    display: none;
    position: absolute;
    bottom: 0px;
    width: 100%;
    background: #fcfdfd;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ccc;
}

.suggestion--actions .actionBouton {
    margin-top: 0px;
}



/* === ARTICLES === */

.suggestion--articles {
    display: block;
    float: left;
    width: calc(100% - 220px);
    max-height: 600px;
    overflow-y: auto;
}

.suggestion--articles--items {
    /*z-index: 9000;*/
    border: none;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    word-break: break-all;
    overflow: hidden;
}

.articles--recherche--vide {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin: 30px;
}


/* === VIGNETTE === */

.suggestion--articles .carousel_vignette {
    width: 170px;
    min-width: auto;
    max-width: none;
    height: 230px;
    margin: 10px 10px;
    padding: 10px 15px;
    border-bottom: solid 0.5px #cccccc;
    font-size: 10px;
}

.suggestion--articles .carousel_vignette--vignette {
    top: 10px;
    transform: none;
}

.suggestion--articles .carousel_vignette--vignette img {
    max-height: 140px;
    max-width: 140px;
}

.suggestion--articles .carousel_vignette--informations {
    bottom: 42px;
    width: calc(-20px + 100%);
}

.suggestion--articles .carousel_vignette--informations li {
    margin: 0px;
}

.suggestion--articles .carousel_vignette--informations .carousel_vignette--informations--marque {
    display: none;
}

.suggestion--articles .carousel_vignette--informations .carousel_vignette--informations--code {
    overflow-wrap: break-word;
    line-height: 20px;
    font-size: 11px;
}

.suggestion--articles .carousel_vignette--informations .carousel_vignette--informations--libelle {
    max-height: 38px;
    white-space: nowrap;
    line-height: 16px;
    font-size: 10px;
}

.suggestion--articles .carousel_vignette--stock {
    bottom: 35px;
    right: 10px;
}

.suggestion--articles .stock--statut_libelle {
    display: none;
}

.suggestion--articles .carousel_vignette--prix {
    left: 10px;
    bottom: 4px;
    font-size: 14px;
}

.suggestion--articles .carousel_vignette--prix ul li {
    line-height: 18px;
}

.suggestion--articles .carousel_vignette--prix--remise {
    top: -220px;
    left: 155px;
}

.suggestion--articles .carousel_vignette--palier {
    top: -10px;
    /*left: calc(50% - 105px);*/
    left: 115px;
}

.suggestion--articles .carousel_vignette--action {
    right: 5px;
    bottom: 6px;
}

.suggestion--articles .actionBouton.actionBouton--modifier-quantite {
    height: 20px;
    width: 20px;
    min-width: auto;
    min-height: auto;
    line-height: 21px;
    font-size: 12px;
}

.suggestion--articles .span_saisie_quantite input[type=text],
.suggestion--articles .span_saisie_quantite_readonly input[type=text] {
    min-height: 20px;
}




/* === FAMILLES === */

.suggestion--familles {
    display: none;
    float: left;
    width: 220px;
    max-height: 600px;
    overflow-y: auto;
    background: #fcfdfd;
}

.suggestion--familles li {
    text-align: center;
    padding: 20px;
    text-decoration-line: underline;
}

.suggestion--familles li:hover {
    background: #f8f8f8;
}






/* ==================================== */
/* =============== MEDIA ============== */


@media(max-height: 960px) {

    .quicksearch--suggestion {
        max-height: calc(100vh - 350px);
    }

    .suggestion--articles, .suggestion--familles {
        max-height: calc(100vh - 350px);
    }
}

@media (max-width : 1200px) {

    .quicksearch--suggestion {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

}

@media (max-width : 1024px) {

    .quicksearch--suggestion {
        min-width: auto;
        width: 80vw;
    }

    .suggestion--articles {
        width: calc(80vw - 200px);
    }

    .suggestion--familles {
        width: 200px;
        font-size: 12px;
    }

}

@media (max-width : 640px) {

    /* - Pour ne pas zoomer sur l'input (mobile Safari + Chrome) - */
    .control_search--input {
        font-size: 16px !important;
    }

    .quicksearch--suggestion {
        width: calc(100vw - 10px);
    }

    .suggestion--articles {
        width: calc(100vw - 215px);
    }

}

@media (max-width : 480px) {

    .suggestion--familles {
        display: none !important;
    }

    .suggestion--articles {
        width: 100%;
    }

}








