#search_widget {
  width: 100%;
  max-width: 480px;
}

#search_widget form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  background: transparent;
}

#search_widget form input[type="search"] {
  order: 1;
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 14px;
  color: #222;
  padding: 4px 0;
  -webkit-appearance: none;
  appearance: none;
}

#search_widget form input[type="search"]:focus,
#search_widget form input[type="search"]:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

#search_widget form input[type="search"]::placeholder {
  color: #aaa;
  font-size: 14px;
}

#search_widget form button {
  order: 2;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  outline: none !important;
  box-shadow: none !important;
  width: 20px;
  height: 20px;
}

#search_widget form button:focus,
#search_widget form button:active {
  outline: none !important;
  box-shadow: none !important;
}

#search_widget form button svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Autocomplete dropdown */
.search-widgets__dropdown {
  position: absolute;
  z-index: 999;
  background: #fff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-widgets__results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result__link {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  color: #222;
}

.search-result__link:hover {
  background-color: #f1f1f1;
}

.search-result__image {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.search-result__name {
  margin: 0;
  font-size: 14px;
}

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