/* finder-parts-search-keyword */
.finder-parts-search-wrap {
  display: flex;
  gap: 24px 28px;
}

@media screen and (max-width: 841px) {
  .finder-parts-search-wrap {
    flex-direction: column;
    margin-top: 24px;
  }
}

.finder-parts-search-keyword {
  display: flex;
  max-width: 560px;
  width: 100%;
  border: 3px solid var(--primary);
  border-radius: 10px;
}

@media screen and (max-width: 841px) {
  .finder-parts-search-keyword {
    max-width: none;
  }
}

.finder-parts-search-keyword-button-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  padding: 0px 15px;
  background-color: var(--primary);
}

.finder-parts-search-keyword-button {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

@media screen and (max-width: 841px) {
  .finder-parts-search-keyword-button {
    /* padding: 13px 10px 14px; */
    font-size: 15px;
    font-weight: 600;
  }
  .finder-parts-search-keyword-button > span {
    display: none;
  }
}

.finder-parts-search-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background-color: transparent;
  background-image: url(../../common/img/icon_search_info.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  cursor: pointer;
}

.finder-parts-search-info:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.finder-parts-search-info-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  background: rgba(255, 254, 223, 1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.finder-parts-search-info.is-active + .finder-parts-search-info-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media screen and (min-width: 842px) {
  .finder-parts-search-keyword-button-wrap:hover .finder-parts-search-info-tooltip,
  .finder-parts-search-info:focus-visible + .finder-parts-search-info-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.finder-parts-search-keyword-input {
  display: inline-block;
  flex: 1;
  padding: 14px 20px;
  font-size: 18px;
}

@media screen and (max-width: 841px) {
  .finder-parts-search-keyword-input {
    padding: 11px 11px 12px;
  }
}

@media screen and (max-width: 841px) {
  .finder-parts-search-keyword-button-wrap {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    width: 48px;
    height: 50px;
  }

  .finder-parts-search-info {
    margin-left: 0;
    margin-top: 0;
    width: 32px;
    height: 32px;
    background-size: 18px 18px;
    cursor: pointer;
  }

  .finder-parts-search-info.is-active {
    cursor: default;
  }

  .finder-parts-search-info-tooltip {
    left: 0;
    transform: none;
    width: 90vw;
    margin-top: 32px;
    box-shadow: none;
  }
}

.finder-parts-search-keyword-input::placeholder {
  font-size: 18px;
}

.finder-parts-search-current-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 244px;
  width: 100%;
  height: 54px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 30px;
  box-shadow: 0px 4px 0px 0px var(--primary-shadow);
}

@media screen and (max-width: 841px) {
  .finder-parts-search-current-button {
    max-width: none;
  }
}

.finder-parts-search-current-button::before {
  content:"";
  width: 30px;
  height: 30px;
  background-image: url(../../common/img/icon_search_current.svg);
  background-size: contain;
  background-repeat: no-repeat;
}
