/* Force the parent container to be the reference point for positioning */
.elementor-field-group {
    position: relative !important;
}

/* Container for the suggestions */
.dawa-autocomplete-suggestions {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: 100%; /* Position right below the input */
    left: 0;   /* Align with the left edge of the container */
    right: 0;  /* Align with the right edge */
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    width: 100%; /* Match the width of the parent container */
    box-sizing: border-box;
}

/* Individual suggestion items */
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: left; /* Ensure text aligns left */
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:last-child {
    border-bottom: none;
}

/* Hover and Active/Selected states */
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:hover,
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion.dawa-selected {
    background-color: #f0f0f0;
    color: #000;
}

/* Highlighted match text (DAWA wraps matched parts in <strong>) */
.dawa-autocomplete-suggestions strong {
    font-weight: bold;
    color: #000;
}
