.aa-Form {
  display: flex;
}

#autocomplete {
  position: relative;
  z-index: 10002;
}

.aa-InputWrapperSuffix {
  display: none;
}

.aa-InputWrapper {
  order: -1;
  flex: 1;
}

.aa-SubmitButton {
  appearance: none !important;
  background: #F25b12;
  border: 2px solid #F25b12;
  border-radius: 0 50px 50px 0;
  padding: 8px 16px 8px 10px;
  color: white;
}

.aa-Label {
  margin: 0;
}

.aa-Input {
  width: 100%;
  border: 2px solid #F25b12;
  border-radius: 50px 0 0 50px;
  padding: 8px 12px;
  outline: 0;
}

#search-wrapper {
  display: none;
  background: white;
  padding: 8px;
  position: absolute;
  width: 800px;
  max-height: 85vh;
  z-index: 10002;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.1), -2px -2px 2px 0 rgba(0,0,0,.1);
}

#close-hits-wrapper {
  display: none;
}

.search-footer {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

#pagination {
  flex: 1;
}

.ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ais-Pagination-item {
  margin-right: 2px;
}

.ais-Pagination-link {
  padding: 10px 16px;
  line-height: 1;
  background-color: #f2f2f2;
  color: black;
  display: block;
  text-decoration: none !important;
}

.ais-Pagination-item--selected .ais-Pagination-link {
  background-color: #292929;
  color: white;
}

.ais-Pagination-item--disabled .ais-Pagination-link {
  opacity: .5;
}

.ais-Highlight-highlighted, .aa-ItemContentTitle mark { padding: 0; }

#view-hits {
  padding: 10px 16px;
  line-height: 1;
  background-color: #f2f2f2;
  color: black;
  display: inline-block;
  text-decoration: none !important;
}

.aa-product {
  border: 1px solid #ddd;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  border-radius: 4px;
  background: white;
}

.aa-product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.aa-product h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
}

.aa-product h3 a {
  color: black !important;
  text-decoration: none !important;
}

.aa-product-reviews {
  margin-bottom: 6px;
}

.aap-price-regular {
  font-size: 16px;
}

.aap-actions {
  margin-top: auto;
  padding-top: 24px;
}

.aap-actions .btn {
  background: #ffd817 !important;
  color: black;
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 50px;
  padding: 12px;
}

.desktop-search-container:has(input:focus) .overlay {
    display: block;
}

@media (max-width: 991px) {
  #autocomplete {
    padding-right: 64px;
  }

  #search-wrapper {
    width: auto;
    margin-right: 76px;
  }
}

@media (min-width: 768px) {
  .ais-Hits-list {
    grid-template-columns: repeat(3, 1fr);
  }
}