.block-nymedia-autocomplete-search-block form {
  align-self: center;
  align-items: center;
  display: flex;
  position: relative;
  z-index: 2;
}
.block-nymedia-autocomplete-search-block form .form-item-search,
.block-nymedia-autocomplete-search-block form .form-actions {
  margin-bottom: 0;
  display: inline-block;
}

.block-nymedia-autocomplete-search-block form .form-actions {
  margin-left: 5px;
  margin-bottom: 0 !important;
}

.block-nymedia-autocomplete-search-block form .form-actions .button {
  z-index: 1;
}

.elasticsearch-ac-results {
  width: 98vw;
  position: absolute;
  top: 65px;
  left: calc(-1 * (98vw - 100%) / 2);
  padding: 0 !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  background-color: #ffffff;
  z-index: 5;
}
.elasticsearch-ac-results .ac-wrapper {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  align-content: stretch;
  text-align: left;
}
.elasticsearch-ac-results .main-whitespace,
.elasticsearch-ac-results .product-wrapper,
.elasticsearch-ac-results .aside-whitespace,
.elasticsearch-ac-results .rest-wrapper {
  flex: 1 1 auto;
  display: block;
}
.elasticsearch-ac-results .main-whitespace {
  background: #ffffff;
}
.elasticsearch-ac-results .product-wrapper,
.elasticsearch-ac-results .rest-wrapper {
  box-sizing: content-box;
  padding: 15px 30px 30px;
  z-index: 5;
  flex-basis: 50%;
  position: relative;
  max-width: 540px;
  min-height: 30px;
}
.elasticsearch-ac-results .product-wrapper {
  background: #ffffff;
}
.elasticsearch-ac-results .rest-wrapper {
  background: #eee;
}
.elasticsearch-ac-results .aside-whitespace {
  background: #eee;
}

.elasticsearch-ac-results .rest-wrapper .ac-category {
  display: inline-block;
  width: calc((100% / 2) - 15px);
  padding-bottom: 15px;
  vertical-align: top;
}
.ac-category-title {
  font-size: 18px;
  display: inline-block;
  width: 100%;
  font-weight: 400;
}
.product-wrapper .ac-hit {
  padding: 5px;
}
.product-wrapper .ac-hit:hover,
.product-wrapper .ac-hit:focus,
.product-wrapper .ac-hit.elastic-ac-active-hit {
  background-color: #eee;
}
.rest-wrapper .ac-hit {
  padding: 0 5px;
  line-height: 1em;
}
.rest-wrapper .ac-hit:hover,
.rest-wrapper .ac-hit:focus,
.rest-wrapper .ac-hit.elastic-ac-active-hit {
  background-color: #ddd;
}
.ac-hit a {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  width: 100%;
  color: #666666;
  cursor: pointer;
  display: block;
}
.ac-hit .ac-image {
  float: left;
}
.ac-hit .ac-image a {
  padding: 0 10px 0 0;

}
.ac-hit .ac-image img {
  height: 45px;
  width: auto;
}
.ac-hidden {
  display: none;
}
.ac-background-wrapper {
  z-index: 1;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: fixed;
}
.block-nymedia-autocomplete-search-block form .form-item{
  z-index: 2;
}
.elastic-autocomplete-processed {
  z-index: 2;
}
@media (max-width: 992px) {
  .elasticsearch-ac-results .ac-wrapper {
    display: block;
    flex-grow: unset;
    flex-direction: unset;
  }
  .elasticsearch-ac-results .main-whitespace,
  .elasticsearch-ac-results .product-wrapper,
  .elasticsearch-ac-results .aside-whitespace,
  .elasticsearch-ac-results .rest-wrapper  {
    display: block;
    flex: none;
    flex-basis: unset;
    max-width: 100%;
  }
  .elasticsearch-ac-results .rest-wrapper .ac-category {
    display: block;
    width: 100%;
  }
}

