.autocomplete {
    position: relative;
}

.autocomplete-input {
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    height: 32px;
    border: 1px solid #E7E7E7;
    font-family: 'Roboto', sans-serif;
    color: black;
    font-size: 12px;
    z-index: 20 !important;
    position: relative;
    padding-right: 50px;
    padding-left: 10px;
}

.autocomplete-input:focus {
    outline: none;
    box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.3);
}

.autocomplete:has(.autocomplete-list-showed) .autocomplete-input {
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
    z-index: 30;
    align-items: center;
}

.input-icons img {
    height: 8px;
    cursor: pointer;
}

.dropdown-icon {
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
}

.clear-icon {
    color: #999;
    font-size: 16px;
    padding: 2px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-icon.hidden {
    display: none;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    border-color: #E7E7E7;
    box-shadow: -5px 5px 15px -5px rgba(0, 0, 0, 0.3);
}

.autocomplete-list.autocomplete-list-showed {
    display: block;
}

.autocomplete-item {
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: black;
    text-align: center;
}

.autocomplete-item:hover {
    /* background-color: #f8f9fa; */
    background-color: #F6BF41;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item.highlighted {
    background-color: #F6BF41;
}

/* Стили для скроллбара */
.autocomplete-list::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.autocomplete-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}