@charset "utf-8";

.search-layer {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 99999 !important;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  font-family: Pretendard, sans-serif;
}

.search-layer-inner {
  padding: 20px 20px 16px 20px;
}

.search-layer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.recent-search-title,
.popular-search-title {
  font-weight: 700;
  font-size: 15.5px;
  color: #206041;
}

.recent-search-clear {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.recent-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #555;
  border-radius: 20px;
  padding: 0 12px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  border: 1px solid #c2c2c2;
  position: relative;
  cursor: pointer;
}
.recent-swiper {
  padding-left: 10px;
  padding-right: 10px;
}
.search-tag-remove {
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  margin-left: 6px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-top: -1px;
}
.popular-search {
  margin-top: 10px;
}

.popular-search-time {
  font-size: 12.5px;
  color: #888;
  font-weight: 300;
}

.popular-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-search-list li {
  display: flex;
  align-items: center;
  font-size: 15px;
  padding: 7px 0;
  margin-bottom: 1px;
  color: #222;
}

.popular-search-list .rank {
  width: 40px;
  font-weight: 700;
  color: #206041;
  text-align: left;
  padding-left: 10px;
  margin-right: 8px;
  position: relative;
  font-size: 14px;
}
.popular-search-list .rank:after {
  position: absolute;
  right: 0;
  height: 50%;
  width: 1px;
  background: #ccc;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  content: "";
}
.popular-search-list .keyword {
  width: calc(100% - 70px);
  padding-left: 15px;
  cursor: pointer;
}

.rank-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 6px;
  background-repeat: no-repeat;
  background-position: center;
}
.rank-icon.up {
  background: url(/img/rank_up.svg) no-repeat center center;
  background-size: 12px auto;
}
.rank-icon.down {
  background: url(/img/rank_down.svg) no-repeat center center;
  background-size: 12px auto;
}

.rank-icon.nogap {
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  color: #bbb;
  font-size: 18px;
  line-height: 16px;
  vertical-align: middle;
  /* 아이콘 대신 - 표시 */
  content: "-";
  /* content는 ::after에서만 동작하므로 아래처럼 사용 */
  background: none;
  position: relative;
}
.rank-icon.nogap::after {
  content: "-";
  color: #bbb;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}
.search-divider {
  border: none;
  border-top: 1px solid #888;
  margin: 12px 0 18px 0;
}
.header-title-search {
  z-index: 999;
}
