/* ==========================
   SEARCH AUTOCOMPLETE
========================== */

.search{
    position:static;
    overflow:visible !important;
}
.search-dropdown{

    position:absolute;
    top:52px;
    left:0;
    width:100%;

    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:8px;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

    display:none;

    z-index:999999;

    overflow:hidden;

    max-height:550px;

}
.search-section{
    padding:15px 20px;
}

.open-search{

    position:relative;

}

.search-section-title{
    font-size:15px;
    font-weight:700;
    color:#005512;
    margin-bottom:12px;
}

.search-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid #f2f2f2;
}

.search-item:last-child{
    border-bottom:none;
}

.search-left{
    display:flex;
    align-items:center;
    flex:1;
}

.search-image{
    width:55px;
    height:55px;
    border-radius:6px;
    object-fit:cover;
    border:1px solid #eee;
    margin-right:15px;
}

.search-name{
    font-size:15px;
    color:#333;
    font-weight:500;
}

.search-view{
    color:#005512;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
}

.search-view:hover{
    color:#2e7d32;
}

.search-divider{
    height:8px;
    background:#fafafa;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.search-footer{

    flex-shrink:0;

    background:#005512;

    border-top:1px solid #e5e5e5;

}

.search-footer a{

    display:block;

    padding:16px;

    text-align:center;

    color:#fff;

    text-decoration:none;

    font-weight:600;

    font-size:17px;

}

.search-footer a:hover{
    background:#006d17;
}

.search-empty{
    padding:35px;
    text-align:center;
    color:#888;
    font-size:15px;
}

.search-highlight{
    background:#fff4a3;
    padding:0;
    font-weight:700;
}

header{
    overflow:visible !important;
}

.container1{
    overflow:visible !important;
}

.open-search{
    overflow:visible !important;
}
.search-content{

    max-height:470px;

    overflow-y:auto;

}

@media (max-width:991px){

    .search-dropdown{

        top:48px;

        width:100%;

        max-height:70vh;

    }

    .search-content{

        max-height:calc(70vh - 60px);

    }

}

@media (max-width:767px){

    .open-search{
        position:relative;
    }

    .search-dropdown{

        position:absolute;

        top:calc(100% + 2px);

        left:0;

        width:100%;

        margin-top:6px;

        max-height:65vh;

        border-radius:8px;

    }

    .search-content{

        max-height:calc(65vh - 58px);

    }
    .search-name {
        line-height: 1.4;
        text-align: left !important;
        font-size: 12px !important;
    }

}

@media (max-width:479px){

    .search-dropdown{

        left:5px;

        right:5px;

        top:40px;

        max-height:80vh;

    }

    .search-image{

        width:40px;

        height:40px;

    }

    .search-footer a{

        padding:14px;

        font-size:15px;

    }

}
.search-name{

    line-height:1.4;

}

