﻿/*---------------------------------------------------Body - Cargando --*/
#buscadorWidget {
    position:relative;
}


#buscadorWidget .wrpResultado {
    position:absolute;
    width:100%;
    min-width:400px;
    background-color:white;
    z-index:200;
    padding:5px;
    border-radius:10px;
    margin-top:5px;
    box-shadow: 0px 9px 15px 0px rgba(0,0,0,0.24);
}

#buscadorWidget.buscando .wrpResultado {
    background-image:url(../../img/layout/cargando.svg);
    background-repeat:no-repeat;
    background-position: center top;
    background-size:40px;
    padding-top:40px;
    
}


#buscadorWidget .wrpResultado .wrpVerMas {
    padding:10px;
padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;

}


#buscadorWidget .wrpResultado .listadoArticuloVacio {
    padding:20px;
    text-align:center;
    font-weight:bold;
}
#buscadorWidget .wrpResultado .listadoArticulo {
    width:100%;
    padding:0;
    max-height:80vh;
    overflow-y:auto;
    padding-right:10px;
}


#buscadorWidget .wrpResultado .listadoArticulo .productBox {
    width:100%;
    border-bottom:1px solid #aaa;
    margin-bottom:0px;
    padding:5px 0;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox:hover {
    background-color:#faffd7;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpProductBox {
    width:100%;
    max-width:unset;
    min-width:unset;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox a {
    display:flex;
    flex-direction:row;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .cuadroImagen {
    width:150px;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpImagen {
    height:100px;
    width:150px;
    padding:5px;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpImagen img {
    max-height:100%;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpInfo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width:100%;
}

#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpEtiquetas {
    min-height:24px;
}    
#buscadorWidget .wrpResultado .listadoArticulo .productBox .wrpEtiquetas span {
    font-size:10px;
}



@media (max-width: 800px) {
    #cabecera .buscador {
        width:32px;
        min-width:32px;
        height:32px;
        background: url(../../img/layout/lupa.png) no-repeat;
        background-size: 32px;
        background-position: center center;
    }


    #buscadorWidget {
        z-index:200;
        position:fixed;
        left:0px;
        top:0;
        width:100%;
        height:100%;
        background-color:rgba(0,0,0,0.5);
        padding:10px;
        display:none;
    }

    #buscadorWidget.visible {
        display:block;
    }


    #buscadorWidget .wrpBuscadorInput {
        background-image:url(../../img/layout/buscadorCerrar.png);
        padding-right:40px;
        background-position:right center;
        background-repeat:no-repeat;
        cursor:pointer;
    }

    #cabecera .buscador input {
        background-color:white!important;
        padding:15px 15px 15px 40px!important;
        font-size:18px!important;
    }

    #buscadorWidget .wrpResultado {
        min-width:unset;
        position:relative;
    }
}