.autocomplete { position: relative; z-index: 1000; overflow: visible; .autocomplete-option { cursor: pointer; } &:focus-within { .autocomplete-results{ display: flex; } } } .autocomplete-selected-value { font-size: 13px; margin-top: 10px; border-radius: 12px; background: var(--background); filter: brightness(97%); padding: 3px 10px; display: inline-flex; justify-content: center; gap: 4px; line-height: 22px; } .autocomplete-selected-value:hover { opacity: .8; background-color: #eee; } .autocomplete-results { display: none; flex-direction: column; padding: 10px; overflow: visible; position: absolute; border-radius: 12px; z-index: 20; background: var(--background); filter: brightness(97%); transition: 600ms; flex-grow: 1; top: 45px; min-width: max-content; }