.search-popup-main {
  display: flex;
  z-index: 999;
  width: 100%;
  height: 100%;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.192);
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.search-popup-main.open {
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=1);
}

.search-popup-main.open .search-popup-inner {
  opacity: 1;
  filter: alpha(opacity=100);
  z-index: 99999;
}


.search-popup-inner {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  max-height: 6.5em;
}


.search-popup-wrap {
  display: flex;
  width: 100%;
  min-width: 100% !important;
  position: relative;
  background-color: #f7f7f7;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
  text-align: left;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: calc(var(--gap-padding) * .8) calc(var(--gap-padding) * 2);
  gap: 1rem;
  /* align-items: center; */
}

.search-popup-main.open .bg-overlay {
  background: rgba(255, 255, 255, 0);
  z-index: 99;
}

.bg-overlay {
  background: rgba(255, 255, 255, 0.473);
  height: 100vh;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-transition: background 0.3s linear;
  -o-transition: background 0.3s linear;
  transition: background 0.3s linear;
  backdrop-filter: blur(9px);
-webkit-backdrop-filter: blur(9px);
}

.search-popup-close-btn {
  position: relative;
  order: 2;
  cursor: pointer;
  z-index: 99;
  font-size: 36px;
  color: #fff;
  background-color: #B7BABC;
  padding: 10px;
  height: 48px;
  width: 50px;
  text-align: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* search bar styling */
.search-popup-wrap .search-nav {
  position: relative;
  width: 95%;
  display: flex;
  flex-direction: column;
}

.search-popup-wrap .search-nav input[type="text"] {
  padding: 10px 60px 10px 10px !important;
  font-size: 1.6rem !important;
  letter-spacing: 1px;
  border: 0 !important;
  outline: 0;
  float: left;
  width: 100%;
  background: transparent;
  font-family: "Noto Sans";
  font-weight: 600;
  color: #01385E;
  border-radius: unset !important;
}

.search-popup-wrap input[type="text"]::placeholder {
  color: #01385E;
  opacity: .5;
}

.search-popup-wrap .search-nav button {
  float: left;
  padding: 10px;
  color: #fff;
  font-size: 20px;
  border: 0;
  border-left: none;
  cursor: pointer;
  background-color: #01385E !important;
  position: absolute;
  right: 0;
  text-align: center;
  border-radius: 50%;
  top: 0;
  /* transform: translateY(-50%); */
  height: 48px;
  width: 50px;
}

/* search autocomplete styling */
.search-nav.active input {
  border-radius: 5px 5px 0 0;
}

.search-nav .resultBox {
  padding: 0;
  opacity: 0;
  pointer-events: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-nav.active .resultBox {
  padding: 10px 8px;
  opacity: 1;
  pointer-events: auto;
}

.resultBox li {
  list-style: none;
  padding: 12px 0;
  display: none;
  width: 100%;
  cursor: default;
  font-family: "Noto Sans, Light";
  color: #6F7070;
  font-size: 1.2rem;
}

.search-nav.active .resultBox li {
  display: block;
}

.resultBox li:hover {
  background: #efefef;
}



@media screen and (min-width:800px) {
  .search-popup-main:before {
    content: "";
    display: inline-block;
    height: auto;
    vertical-align: middle;
    margin-right: -0px;
    height: 100%;
  }
}




@media (max-width: 767px) {
  .search-popup-main {
    display: none !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .search-popup-wrap {
    min-width: 35em !important;
  }


}
