#searchbar {
    width: auto;
    position: relative;
    background-color:#fff;
    border-radius: 5px;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#searchbar .gsearchi {
    width: 100%;
    background-color:#fff;
}

.homeheader #searchbar {
    width: 100%;
}

#searchbar::after {
    content: "";
    border-radius: 5px;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#searchbar .input-wrapper, #searchbar .historybox {
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background-color: white;
}

#searchbar .historybox {
    border-top: 1px solid lightgray;
    position: absolute;
    z-index: 100;
    left: 0;
    right: 0;
    background-color:#fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#searchbar .historybox a {
    text-decoration: none;
}

#searchbar .historybox div {
    flex-grow: 1;
    padding-top: 5px;
    padding-bottom: 5px;
    height: 30px;
}

#searchbar .historybox div.sx {
    width: 80%;
}

#searchbar .historybox div.dx {
    width: 20%;
}

#searchbar .input-wrapper div {
    flex-grow: 1;
}

#searchbar .input-wrapper div.cn {

}

#searchbar .input-wrapper div.sx {
    margin-right: 20px;
    width: 10px;
    color: grey;
}

#searchbar .input-wrapper div.dx {
    margin-left: 20px;
    width: 10px;
    color: grey;
}

#searchbar .searchpane {
    background-color:#fff;
    padding: 10px;
    position: absolute;
    z-index: 100;
    left: 0;
    right: 0;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.2);
}

#searchbar .searchpane label {
    min-width: 70px;
    font-weight: normal;
}

#searchbar input {
    border: 0;
    width: 100%;
    background-color: #fff;
}

#searchbar input:focus { 
    outline: none;
}

#searchbar .searchpane .form-group {
    margin-bottom: 10px;
}

#searchbar .searchpane .form-group input {
    border-bottom: 1px solid #ededed;
    padding: 4px 10px 4px 0px;
}

#searchbar .searchpane .form-group input:focus {
    border-bottom: 1px solid grey;
}
