.search-box-wrapper {
  width: 100%;
}

.search-box .out-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: var(--spacing-l, 24px);
}

.search-box .input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--stroke-gray, #bbb);
  border-radius: var(--border-radius-xxl, 80px);
  padding: 0 var(--spacing-1-xl, 32px);
  height: var(--size-64, 64px);
  background: var(--background-primary, #fff);
}

.search-box .input-wrapper:focus-within {
  @media (width>=640px) {
    border: 2px solid var(--action-primary-color-hovered, #009f9c);
  }
}

.search-box .popup-input-wrapper:focus-within {
  border: 2px solid var(--action-primary-color-hovered, #009f9c);
}

.search-box .icon-search {
  margin-inline-end: var(--spacing-m, 16px);
}

.search-box .icon-search img {
  width: var(--size-24, 24px);
  filter: brightness(0) saturate(100%) invert(50%);
}

.search-box .search-box-input {
  padding-top: var(--size-5, 5px);
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--body-l-font-size, 20px);
  color: var(--text-black-title, #000);
  font-weight: var(--fontweight-book, 400);
  min-width: 0;
  height: var(--size-24, 24px);
  line-height: var(--body-l-line-height, 24px);
  text-overflow: ellipsis;

  @media (width<640px) {
    font-size: var(--body-m-font-size, 16px);
    line-height: var(--body-m-line-height, 21px);
  }
}

.search-box .search-box-input::placeholder {
  color: var(--text-disable, #bbb);
  font-weight: var(--fontweight-book, 400);
}

.search-box .search-box-clear {
  max-width: var(--size-24, 24px);
  height: var(--size-24, 24px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.search-box .search-box-clear.visible {
  display: flex;
}

.search-box .quick-link-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-s, 12px);
}

.search-box .suggestion-label {
  color: var(--color-gray-500, #555);
  text-align: center;
  font-size: var(--caption-regular-font-size, 12px);
  font-style: normal;
  font-weight: var(--fontweight-book, 400);
  line-height: var(--caption-regular-line-height, 18px);
  text-transform: capitalize;

  @media (width<640px) {
    width: 100%;
  }
}

.search-box .quick-link {
  background-color: var(--background-light-gray, #ebebeb);
  border-radius: var(--size-100, 100px);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--body-m-font-size, 16px);
  font-weight: var(--fontweight-book, 400);
  line-height: var(--body-m-line-height, 24px);
  color: var(--text-black-title, #000);
  padding: var(--spacing-xs, 8px) var(--spacing-l, 24px);

  @media (width<640px) {
    font-size: var(--fontsize-body2, 14px);
    padding: var(--spacing-xs, 8px) var(--spacing-m, 16px);
  }
}

.search-box .popup-wrapper {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
  z-index: 9999;
  display: none;
}

.search-box .popup-wrapper.visible {
  display: block;
}

.search-box .popup-search-wrapper {
  padding: var(--spacing-xl, 48px) var(--spacing-s, 18px);
  background-color: var(--color-primary-grey-10, #fff);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-s, 18px);
}
