/* =====================================================
   AISPHAA Autocomplete Dropdown - Clean unified version
===================================================== */

body .aisp_autocomplete-suggestions {
    position: absolute !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 250px !important;
    overflow: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: block !important;
    opacity: 0; /* Start hidden for animation */
    transform: scale(0.95);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show dropdown with animation */
body .aisp_autocomplete-suggestions.show {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Each suggestion item */
body .aisp_autocomplete-suggestions li {
    padding: 10px 16px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Hover effect */
body .aisp_autocomplete-suggestions li:hover {
    background-color: #e6f2ff !important;
    color: #000000 !important;
    transform: translateX(2px);
}

/* Active/selected suggestion */
body .aisp_autocomplete-suggestions li.active {
    background-color: #007acc !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Remove bottom border for last item */
body .aisp_autocomplete-suggestions li:last-child {
    border-bottom: none !important;
}

/* Hide if empty */
body .aisp_autocomplete-suggestions:empty {
    display: none !important;
}

/* Solid background for tricky themes */
body .aisp_autocomplete-suggestions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff !important;
    z-index: -1;
}

/* Error messages */
body .aisp_autocomplete-error {
    background-color: #fff8e5 !important;
    border-left: 4px solid #ffb900 !important;
    color: #856404 !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    margin-top: 5px !important;
    border-radius: 4px !important;
    max-width: 100% !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}


