/* Container for the search box */
.amelia-search-box {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

/* Search input styling */
#amelia-service-input {
    width: 100%;
    padding-left: 35px;  /* Space for search icon */
    padding-right: 35px; /* Space for clear icon */
    padding-top: 8px;
    padding-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    height: 40px;
}

/* Search icon */
.amelia-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #555;
    pointer-events: none;
}

/* Clear icon */
.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
    cursor: pointer;
    display: none; /* Always hidden by default */
}

/* Show clear icon only when JS triggers it */
.amelia-search-box.show-clear .clear-search {
    display: block;
}

/* Mobile styles */
@media (max-width: 480px) {
    #amelia-service-input {
        font-size: 14px;
    }

    .amelia-search-box i {
        font-size: 16px;
        left: 10px;
    }

    .clear-search {
        font-size: 18px;
        right: 10px;
    }
}

/* Results container */
#amelia-service-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

/* Result item */
#amelia-service-results .service-result {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

#amelia-service-results .service-result:last-child {
    border-bottom: none;
}

/* No result message */
#amelia-service-results p {
    color: #888;
    font-style: italic;
}
