.teamly-search-results {
    min-height: 0;
    max-height: 500px;
    overflow-y: auto;
    max-width: 100%;
    transition: all 0.2s ease;
    width: -webkit-fill-available;
    opacity: 0;
    right: 0;
    z-index: 10;
    &.is-visible {
        opacity: 1;
    }
}

/* Wrapper to position the button inside the input */
.search-wrapper {
    display: inline-block;
  }
  
  #teamly-filter-items {
    /* Remove the native cancel button */
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem; /* space for the custom button */
    height: 36px;
    font-size: 16px;
    &::-webkit-search-cancel-button {
        display: none;
        /* or: -webkit-appearance: none; */
    }
  }

  .clear-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #34353E80;
    cursor: pointer;
    display: none;  /* hidden by default */
    padding: 4px;
    line-height: 1;
  }
  
  /* Show the button when the input has a value */
  #teamly-filter-items:not(:placeholder-shown) + .clear-btn {
    display: block;
  }
  
  /* Optional: style on hover/focus */
  .clear-btn:hover {
    color: #333;
  }