#search_widget {
  margin-bottom: .625rem;
  overflow: auto;
  form {
    position: relative;
    i {
      position: absolute;
      padding: .5rem;
      &.clear {
        right: 15px;
        display: none !important;
      }
    }
    input {
      width: 100%;
      padding: 10px 20px 10px 40px;
      outline: none;
      background-color: #f1f1f1;
      border: none;
      border-radius: 5px;
    }
  }
}

.ui-autocomplete.searchbar-autocomplete {
  width: 100%;
  min-height: 100%;
  border: none;
  li a, 
  li a.ui-state-focus {
   padding: 8px 15px;
   overflow: auto;
   border: none;
   background: none;
   margin: auto;
   border-radius: 0;
  }
  li a{
    span{
        font-size: 1.2rem;
    }
    &:hover {
        background-color: #f1f1f1;
        cursor: pointer;
    }
    .autocomplete-thumbnail {
      float: left;
      width: 50px;
      height: auto;
      margin-right: 8px;
    }
  }
}

@media only screen and (max-width: 768px) {
  .ui-autocomplete.searchbar-autocomplete{
left: 50% !important;
        transform: translateX(-50%);
        width: calc(100% - 1.6rem) !important;
        max-width: 516px;
  }
}

@media only screen and (min-width: 768px) {
  #search_widget {
    float: right;
    margin-bottom: 0;
  }

  .ui-autocomplete.searchbar-autocomplete {
    width: 400px;
    min-height: auto;
    left: auto;
  }
}

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