/* must mount .search-position to the object with relative positioning for the search popup */
.search-position {
  position: relative;
}
.header-search-btn {
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
}
.search-box {
  display: none;
  position: fixed;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
}
.search-box > div {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100vw;
  padding: 16px;
  column-gap: 16px;
  background-color: #fff;
}
.search-box form {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 485px;
}
.search-box input {
  width: 100%;
  padding: 0 48px 0 12px;
  line-height: 44px;
  background-color: #F5F5F5;
  border-radius: 4px;
  overflow: hidden;
}
.search-box input:focus {
  outline: 1px solid #000 !important;
}
.search-box .submit_btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 36px;
  color: #bfbfbf;
  background-color: transparent;
}
.search-box .close-btn {
  padding: 5px 0;
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

.inline-search-box {
  width: 100%;
}
.inline-search-box form {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 400px;
  min-width: 240px;
  width: 100%;
}
.inline-search-box form input {
  width: 100%;
  padding: 0 40px 0 12px;
  line-height: 36px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #F5F5F5;
}
.inline-search-box form .submit_btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 12px;
  line-height: 28px;
  color: #bfbfbf;
  background-color: transparent;
}

@media (max-width: 767px) {
  .search-box > div {
    padding: 12px 20px;
  }
  .search-box input {
    line-height: 40px;
  }
}