.search-header-page {
  & .search-form {
    & .search-input {
      .clear-btn {
        width: 24px;
        height: 24px;
        background: url(/icons/search-clear.svg) transparent no-repeat center / contain;
        position: absolute;
        right: 0;
        top: 6px;
        border: 0;
        cursor: pointer;
        padding: 0;
        background-size: 24px;
        display: none;

        @media (width >=1024px) {
          right: 48px;
        }

        &.show {
          display: block;

          & + .search-icon {
            display: none;
            @media (width >=1024px) {
              display: block;
            }
          }
        }

        &::after {
          content: '';
          width: 24px;
          height: 24px;
          position: absolute;
          top: 0;
          right: -24px;
          pointer-events: none;
          background: url(/icons/search-divider.svg) transparent no-repeat center / contain;
          display: none;

          @media (width >=1024px) {
            display: block;
          }
        }
      }
    }
  }
}

.car-filter-menu:has(input.header-search) {
  & .search-header-page {
    & .wrapper {
      & .search-form {
        & .search-input {
          .clear-btn {
            position: unset;
            background-image: url(/icons/close_white.svg);
          }
        }
      }
    }
  }
}
