.icon-new-search::before {
  transition: 400ms all linear;
}

body.search-open {
  overflow: hidden;
}

.search-pup-up {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  background: rgba(38, 70, 83, 0.45);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  @media (width>=768px) {
    padding: 24px;
    padding-top: 8vh;
  }
}

.search-pup-up.popup-search-active {
  opacity: 1;
  pointer-events: auto;
}

.search-pup-up__panel {
  width: min(640px, 100%);
  /* margin: auto; */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(38, 70, 83, 0.12);
  padding: 0 16px 16px;
  @media (width>=768px) {
    padding: 0 20px 20px;
  }
}

.search-pup-up__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border_light);
  margin-bottom: 16px;
}

.search-pup-up__title {
  margin: 0;
  font-size: 16px;
  color: var(--color4);
  font-family: var(--bold_font);
  font-variation-settings: var(--w-600);
}

.search-pup-up__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border_light);
  border-radius: 50%;
  background: #fff;
  color: var(--color4);
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.3s all ease;
}

.search-pup-up__close:hover {
  border-color: var(--color3);
}

.search-pup-up__close i {
  font-size: 14px;
  line-height: 1;
}

.search-results-box {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0px 0px 12px 0px rgba(174, 174, 174, 0.25);
  @media (width>=576px) {
    width: 200%;
    margin: 0;
  }
}

.search-results-content {
  padding: 0 24px 24px;
}

.search-detail h3 {
  text-align: right;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.search-detail {
  display: flex;
  background-color: var(--bg_light);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  gap: 12px;
  align-items: center;
}

.search-image {
  width: 60px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.search-image img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border_light);
  padding: 4px;
}

.search__icons i {
  position: absolute;
  cursor: pointer;
  left: 0;
}

.search-loading {
  display: none;
  border: 3px solid var(--border_light);
  border-radius: 50%;
  border-top: 3px solid var(--color1);
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

.search-remove:hover {
  color: var(--danger);
}

.search-remove {
  display: none;
  transition: color 400ms;
}

.search__icons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

span.noresults {
  color: var(--danger);
  font-size: 13px;
}

.search-title {
  font-size: 18px;
  padding: 20px 0 5px 0;
  display: block;
}

.search-detail h3 a {
  display: block;
  font-size: 13px;
}

.search-results-box .button {
  width: 100%;
  height: 40px;
  font-size: 13px;
}
