.psc-home-search {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.psc-home-search__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.psc-home-search__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  width: calc(100% - 32px); /* 기존 fullscreen 제거 */
  height: 42px;
  margin: 10px 16px;
  padding: 0 20px;
  border: 1px solid #224471;
  border-radius: 50px;
  box-sizing: border-box;
  background: #fff;
}

.psc-home-search__search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.psc-home-search__inner p {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: #8b8d92;
  line-height: 1;
}

.psc-home-search_banner {
  display: block;
  width: 100%;
  box-sizing: border-box;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  padding: 0 8px; /* 숨김일 때 세로 padding 최소화 */
  text-align: center;
  background: rgba(39, 64, 176, 0.14);
  font-weight: 600;
  font-family: Pretendard, sans-serif;
  line-height: 1.4;
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    padding 0.25s ease;
}

.psc-home-search_banner span {
  display: block;
  padding: 0;
}

.psc-home-search.is-stuck .psc-home-search_banner {
  max-height: 60px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  padding: 8px;
}

.psc-home-search.is-stuck .psc-home-search_banner span {
  padding: 0;
}

/* 모바일 보정 */
@media (max-width: 768px) {
  .psc-home-search {
    top: 0;
  }

  .psc-home-search__inner {
    height: 42px;
    margin: 10px 16px 8px;
  }

  .psc-home-search__inner p {
    font-size: 15px;
  }

  .psc-home-search_banner {
    display: block !important;
    font-size: 13px;
  }

  .psc-home-search.is-stuck .psc-home-search_banner {
    max-height: 52px;
    padding: 8px 12px;
  }
}
