#header, #header .header-top {
  background-color: white;
}

#search_widget {
  margin-bottom: .625rem;
  max-width: 100%;
}
#search_widget form {
  position: relative;
  max-width: 100%; /* Sets max width */
  margin: 0 auto;
}
#search_widget form i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; /* Increase icon size */
  color: orange;
}

#search_widget form input {
  width: 100%;
  padding: 10px 50px 10px 20px; /* Increase padding on the right to make room for the icon */
  outline: none;
  background-color: white;
  border: 2px solid orange;
  border-radius: 25px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Remove corner border on hover */
#search_widget form input:hover,
#search_widget form input:focus {
  border-color: #ff6600;
  border-radius: 25px; /* Ensure border-radius remains the same */
  
}

/* Placeholder color */
#search_widget form input::placeholder {
  color: #4F4B42;
}

.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 (max-width: 767px) {
  /* Mobile optimization */
  #search_widget form {
    max-width: 90%;
  }
  #search_widget form input {
    padding: 8px 40px 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }
  #search_widget form i {
    font-size: 1.2rem; /* Smaller icon on mobile */
    right: 10px;
  }
}

@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;
  }
}

