/* Search Autocomplete Dropdown Styles */
/* Dropdown is appended to document.body with position:fixed via JS */
.search-autocomplete-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
}

.autocomplete-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.autocomplete-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.autocomplete-link:hover,
.autocomplete-active .autocomplete-link {
    background: #f5f9f7;
}

.autocomplete-type {
    display: inline-block;
    background: #0e8040;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 55px;
    text-align: center;
}

.autocomplete-label {
    font-size: 0.9rem;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-all .autocomplete-link {
    justify-content: center;
    color: #0e8040;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 14px;
}

.autocomplete-all .autocomplete-link i {
    color: #0e8040;
}

.autocomplete-all .autocomplete-link:hover {
    background: #e8f5e9;
}

/* Ensure dropdown appears above other content */
.search-widget__form,
.search-form,
.search-input-container,
.error-search-form,
.search-form-inline,
.theme-search-form {
    position: relative;
}
