/* Wrapper positions results relative to input */
#isvgpx-tagsearch-wrapper,
#isvgpx-tagsearch-wrapper-desktop,
#isvgpx-tagsearch-wrapper-mobile {
    position: relative;
    width: 100%;
}

/* Input styling */
#isvgpx-tagsearch-input,
#isvgpx-tagsearch-input-desktop,
#isvgpx-tagsearch-input-mobile {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #54595F;
    outline: none;
}

/* Results dropdown styling */
#isvgpx-tagsearch-results,
.isvgpx-tagsearch-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
    padding: 0;
    margin: 0;
}

/* Result link styling — override Elementor global link color */
.isvgpx-tagsearch-result {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #54595F !important; /* force override of global link color */
    border-bottom: 1px solid #eee;
}

.isvgpx-tagsearch-result:last-child {
    border-bottom: none;
}

.isvgpx-tagsearch-result:hover,
.aisvgpx-tagsearch-result.selected {
    background: #E4E4FF;
    color: #000000 !important; /* override global link hover color */
}

/* No results message */
.no-results {
    padding: 10px;
    color: #000000;
    text-align: left;
    font-size: 14px;
}
