.autoComplete_wrapper {
  display: inline-block;
  position: relative;
  width: 100%;
}

/* Override default autoComplete styles for Bootstrap compatibility */
.input-group .autoComplete_wrapper > input {
  display: table-cell;
  position: relative;
  z-index: 2;
  float: left;
  width: 100%;
  margin-bottom: 0;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Keep original styles for non-Bootstrap usage */
.autoComplete_wrapper > input:not(.form-control) {
  width: 100%;
  height: 2.5rem;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: rgb(116, 116, 116);
  border-radius: 8px;
  border: 0.05rem solid rgb(232, 232, 232);
  outline: none;
}

.autoComplete_wrapper > input::placeholder {
  color: rgba(123, 123, 123, 0.5);
  transition: all 0.3s ease;
}

.autoComplete_wrapper > ul {
  position: absolute;
  max-height: 226px;
  overflow-y: auto;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0;
  margin: 0.5rem 0 0 0;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  border: 1px solid rgba(0,0,0,.15);
  z-index: 1000;
  outline: none;
  /* Match Bootstrap typeahead styles */
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
}

.autoComplete_wrapper > ul:empty {
  display: none;
}

.autoComplete_wrapper > ul > li {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  background-color: white;
}

.autoComplete_wrapper > ul > li div {
  display: flex;
  align-items: center;
}

.autoComplete_wrapper > ul > li::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li:hover,
.autoComplete_wrapper > ul > li.autoComplete_selected {
  cursor: pointer;
  text-decoration: none;
  outline: 0;
  background-color: #f5f5f5;
  color: #262626;
}

.autoComplete_wrapper > ul > li:hover a,
.autoComplete_wrapper > ul > li.autoComplete_selected a {
  color: #262626;
}

.autoComplete_wrapper > ul > li strong {
  font-weight: bold;
  color: #333;
}

/* Empty results message and footer */
.autoComplete_wrapper > ul > li.empty-message,
.autoComplete_wrapper > ul div.empty-message {
  color: #777;
  background-color: transparent;
  padding: 10px 15px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 5px;
}

/* Font Awesome icon styling */
.autoComplete_wrapper > ul > li i.fa {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: rgba(123, 123, 123, 0.8);
}

@media only screen and (max-width: 600px) {
  .autoComplete_wrapper > input {
    width: 18rem;
  }
}