/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */

.searchbar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#search_widget {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#search_widget form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

#search_widget form i {
  position: absolute;
  padding: .5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

#search_widget form i.clear {
  right: 15px;
  display: none;
  pointer-events: all;
}

#search_widget form input {
  flex: 1;
  padding: 12px 20px 12px 40px;
  outline: none;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  font-size: 15px;
}

#search_widget form button {
  padding: 12px 20px;
  background-color: #5cb85c;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

#search_widget form button:hover {
  background-color: #4cae4c;
}

#search_widget form button i {
  position: static;
  padding: 0;
  transform: none;
  color: white;
  font-size: 20px;
}

.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;
}

@media only screen and (min-width: 768px) {
  #search_widget {
    width: 70%;
  }
}

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