#header, #header .header-top {
  background-color: white;
}

#search_widget {
  margin-bottom: .625rem;
  overflow: auto;
}
#search_widget .form {
  position: relative;
}

#search_widget .form input {
    width: 100%;
    padding: 13px 13px;
    outline: none;
    font-size: 13px;
    border: none;
    background: white;
    border: 1px solid #ededed;
    color: black;
}

#search_widget .magniefier {
    background: black;
    border: none;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
    color: white;
    cursor: pointer;
}

@media all and (min-width: 991px) {
    #search_widget .magniefier:hover {
        background: #e1375c;
    }
}

#search_widget .magniefier i {
    font-size: 31px;
}

#search_widget form input::placeholder {
    color: black;
}

.ui-autocomplete.searchbar-autocomplete {
  width: 100%;
  min-height: 100%;
  border: none;
}

.ui-autocomplete.searchbar-autocomplete li a, .ui-autocomplete.searchbar-autocomplete li a.ui-state-focus {
  padding: 8px 15px;
  overflow: auto;
  border: none;
  background: none;
  margin: auto;
  border-radius: 0;
}

.ui-autocomplete.searchbar-autocomplete li a:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail {
  float: left;
  width: 50px;
  height: auto;
  margin-right: 8px;
}

#search_widget .clear {
    display: none;
}

@media only screen and (min-width: 992px) {
    #search_widget {
        float: none;
        margin-bottom: 0;
        display: inline-block;
        margin-right: 13%;
        margin-top: 2px;
    }
}

@media only screen and (min-width: 992px) {
    #search_widget {
        min-width: 26.4rem;
    }
}


@media all and (max-width: 991px) {
    #search_widget .clear {
        position: absolute;
        left: 14px;
        z-index: 10;
        top: 26px;
    }
    
    #search_widget .form {
        position: static;
    }
    
    #search_widget {
        overflow: visible;
        margin-bottom: auto;
    }
    
    #search_widget .form input {
        width: 0px;
        position: absolute;
        height: 30px;
        left: 0;
        top: 12px;
        padding: 23px 30px 23px 45px;
        border: 1px solid #ededed;
        z-index: 9;
        transition: width 0.3s;
        visibility: hidden;
    }
    
    #search_widget .magniefier {
        background: transparent;
        border: none;
        padding: 1px;
        z-index: 9;
        color: black;
        margin-top: 20px;
        position: static;
        margin-left: 11px;
        z-index: 10;
        line-height: 26px;
    }
    
    #search_widget .magniefier i {
        font-size: 26px;
    }
    
    #search_widget.active .form input {
        width: 100%;
        visibility: visible;
    }
    
    #search_widget.active .clear {
        display: block;
    }
    
    #search_widget.active .magniefier {
        position: absolute;
        right: 9px;
        top: 0px;
    }
}