.button-in-input {
  display: flex;
  flex-direction: row;
  padding: 2em 1em;
  width: 100%;
  border: none;
  border-radius: 0px;
  background: #fff;
}

.inputval,
input.searchbar {
  border: none;
  border-radius: 0px;
  background: #fff;
  width: 100%;
  font-style: italic;
  border-bottom: 1px solid #ddd;
  transition: border 0.5s ease-in-out;
}

.inputval:focus,
input.searchbar:focus,
.inputval:hover,
input.searchbar:hover {
  border-bottom-color: #bbb;
}

.inputval {
  margin: auto;
}

input.searchbar:focus {
  outline: none;
}

.open-search-overlay:not(.simpleinput) {
  border: none;
  border-radius: 100%;
  width: 24px;
  height: 24px;
  background: #00afaa;
  color: white;
  background: url("https://schizophrenia.life/wp-content/uploads/2022/02/search-1.png");
  background-size: cover;
  margin-right: 1em;
  outline: 0 !important;
  opacity: 1;
  transition: opacity 50ms ease-in-out;
  cursor: pointer;
}

.open-search-overlay.simpleinput {
    background-color: #408A91;
    text-align: center;
}

.open-search-overlay:hover {
  opacity: 0.92;
}

input.searchbar:-webkit-autofill,
input.searchbar:-webkit-autofill:hover,
input.searchbar:-webkit-autofill:focus,
input.searchbar:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

button.close-search-overlay-lr,
button.close-search-overlay {
  border: none;
  border-radius: 100%;
  background: #00afaa;
  color: white;
  width: 50px;
  height: 50px;
  background: url("/wp-content/themes/reagila/images/icon_x.png");
  flex-shrink: 0;
}

.search-overlay-lr {
  position: fixed;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(33, 33, 33, 0.4);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  display: none;
  width: 100%;
  height: 100%;
}

.search-overlay-lr.show {
  display: flex;
  opacity: 1;
  justify-content: center;
  align-content: center;
  justify-items: center;
}

.search-overlay-lr .results-lr {
  background: #fff;
  display: flex;
  flex-direction: column;
  margin: auto;
  box-shadow: 0 0 1.5em rgba(0, 0, 0, 0.2);
  max-height: 85%;
  width: calc(100% - 2em);
}

@media screen and (min-width: 1024px) {
  .search-overlay-lr .results-lr {
    width: 50%;
  }
}

.search-overlay-lr .results-lr .result {
  padding: 1em;
  border-bottom: 1px solid #ccc;
  /*will-change: opacity;
  transition: opacity 0.2s ease-in-out;*/
}

@media screen and (max-width: 1024px) {
  .results {
    width: calc(100% - 2em);
  }
}

.noscroll {
  height: 100%;
  overflow: hidden;
}

/*.result {
  opacity: 0;
}

.result.fade-in {
  opacity: 1;
}

.result.fade-out {
  opacity: 0;
}*/

.results-text {
  margin: 1em;
}

#results {
  overflow: auto;
}

.is-dc-logged-in .results-hidden-text {
  display: none !important;
}
