.site-search {
  position: fixed;
  z-index: 3500;
  display: none;
  box-sizing: border-box;
  width: 220px;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(2, 10, 19, 0.08);
}

.site-search.is-open {
  display: block;
}

.site-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-family: "Pretendard", Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.site-search__close span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
}

.site-search__close span::before,
.site-search__close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.site-search__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-search__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-search__input {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  font-family: "Pretendard", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.site-search__input::placeholder {
  color: #b0b0b0;
}

.site-search__input:focus {
  border-color: #111111;
}

.site-search__input::-webkit-search-decoration,
.site-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.site-search__list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
}

.site-search__item {
  margin: 0;
  padding: 0;
}

.site-search__link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 8px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.site-search__link:hover,
.site-search__link:focus-visible {
  background: #f9f9f9;
}

.site-search__link:hover .site-search__title,
.site-search__link:focus-visible .site-search__title {
  color: var(--neon, #00d2d2);
}

.site-search__title {
  color: var(--black-1, #020a13);
  font-family: "Pretendard", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.site-search__group {
  color: var(--gray-2, #666666);
  font-family: "Pretendard", Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.site-search__empty {
  margin: 0;
  padding: 10px 8px 4px;
  color: var(--gray-2, #666666);
  font-family: "Pretendard", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.site-search__empty[hidden],
.site-search__list:empty {
  display: none;
}

@media (max-width: 767px) {
  .site-search {
    width: 100%;
    padding: 14px 16px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-search__input {
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .site-search__close {
    width: 40px;
    height: 48px;
    line-height: 1;
  }

  .site-search__close span {
    width: 18px;
    height: 18px;
  }

  .site-search__close span::before,
  .site-search__close span::after {
    width: 18px;
  }

  .site-search__list {
    max-height: 50vh;
    margin-top: 10px;
  }

  .site-search__link {
    padding: 14px 8px;
  }

  .site-search__title {
    font-size: 16px;
    line-height: 24px;
  }

  .site-search__group {
    font-size: 13px;
    line-height: 18px;
  }

  .site-search__empty {
    padding: 14px 8px 6px;
    font-size: 14px;
    line-height: 20px;
  }
}

@media (min-width: 768px) {
  .site-search {
    width: calc(320 * 100vw / 1920);
    padding: calc(10 * 100vw / 1920);
    border-radius: calc(8 * 100vw / 1920);
  }

  .site-search__input {
    height: calc(40 * 100vw / 1920);
    padding: 0 calc(12 * 100vw / 1920);
    border-radius: calc(8 * 100vw / 1920);
    font-size: calc(15 * 100vw / 1920);
    line-height: calc(20 * 100vw / 1920);
  }

  .site-search__close {
    width: calc(28 * 100vw / 1920);
    height: calc(40 * 100vw / 1920);
    font-size: calc(22 * 100vw / 1920);
    line-height: 1;
  }

  .site-search__list {
    max-height: calc(280 * 100vw / 1920);
    margin-top: calc(6 * 100vw / 1920);
  }

  .site-search__link {
    gap: calc(2 * 100vw / 1920);
    padding: calc(8 * 100vw / 1920);
    border-radius: calc(6 * 100vw / 1920);
  }

  .site-search__title {
    font-size: calc(15 * 100vw / 1920);
    line-height: calc(22 * 100vw / 1920);
  }

  .site-search__group {
    font-size: calc(12 * 100vw / 1920);
    line-height: calc(16 * 100vw / 1920);
  }

  .site-search__empty {
    padding: calc(10 * 100vw / 1920) calc(8 * 100vw / 1920) calc(4 * 100vw / 1920);
    font-size: calc(13 * 100vw / 1920);
    line-height: calc(18 * 100vw / 1920);
  }
}
