#search_widget {
  margin-bottom: .625rem;
  overflow: auto;
}
#search_widget form {
  position: relative;
}
#search_widget form i {
  position: absolute;
  padding: .5rem;
}
#search_widget form i.clear {
  right: 15px;
  display: none;
}
#search_widget form 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;
}

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

/* ChipEmulator dark header integration. Keep these rules after the module defaults. */
#header .header-menu-row .header-top-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

#header .header-menu-row #_desktop_top_menu {
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
}

#header .header-menu-row #search_widget {
  flex: 0 0 330px;
  float: none;
  width: 330px;
  min-width: 0;
  margin: 15px 0 0;
  overflow: visible;
}

#header .header-menu-row #search_widget form {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  margin: 0;
  overflow: hidden;
  background: #080d11;
  border: 1px solid #00bcff;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  transition: border-color .2s ease, box-shadow .2s ease;
}

#header .header-menu-row #search_widget form:focus-within {
  border-color: #39ceff;
  box-shadow: 0 0 0 3px rgba(0, 188, 255, .18), 0 8px 28px rgba(0, 0, 0, .52);
}

#header .header-menu-row #search_widget form i {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  flex: 0 0 auto;
  padding: 0;
}

#header .header-menu-row #search_widget form i.search {
  margin: 0 10px 0 15px;
  color: #00bcff;
  font-size: 1.4rem;
  line-height: 1;
}

#header .header-menu-row #search_widget form input,
#header .header-menu-row #search_widget form input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 52px;
  padding: 0 14px 0 0;
  color: #fff;
  font-size: .95rem;
  line-height: 52px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#header .header-menu-row #search_widget form input::placeholder {
  color: #89969f;
  opacity: 1;
}

#header .header-menu-row #search_widget form i.clear {
  display: none;
  margin-right: 12px;
  color: #89969f;
}

@media only screen and (max-width: 1199px) and (min-width: 768px) {
  #header .header-menu-row .header-top-right {
    flex-wrap: wrap;
    gap: 0;
  }

  #header .header-menu-row #_desktop_top_menu {
    flex-basis: 100%;
  }

  #header .header-menu-row #search_widget {
    margin: 14px auto 0;
  }
}

@media only screen and (max-width: 767px) {
  #header .header-menu-row .header-top-right {
    display: block;
  }

  #header .header-menu-row #search_widget {
    width: 100%;
    margin: 12px 0 0;
  }
}
