/**
 * ElasticSearch Flatsome CSS v1.0.9
 * 
 * Styles for the ElasticSearch integration with Flatsome
 */

/* Flatsome search integration styles */
.searchform.es-enhanced .live-search-results {
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
    top: 100%;
    position: absolute !important;
    left: 0;
    right: 0;
    border-radius: 3px;
    border: 1px solid #ddd;
    z-index: 999999 !important;
    width: 100% !important;
    max-width: none !important;
    display: none;
}

.searchform.es-enhanced .es-loading {
    padding: 10px;
    text-align: center;
    color: #777;
}

.searchform.es-enhanced .autocomplete-suggestions {
    display: block !important;
    padding: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.searchform.es-enhanced .autocomplete-suggestion {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

.searchform.es-enhanced .autocomplete-suggestion:last-child {
    border-bottom: none;
}

.searchform.es-enhanced .autocomplete-suggestion.selected {
    background: #f9f9f9;
}

.searchform.es-enhanced .search-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.searchform.es-enhanced .search-name {
    flex: 1;
}

.searchform.es-enhanced .search-price {
    color: #77a464;
    font-weight: bold;
    margin-left: 10px;
}

.searchform.es-enhanced .view-all-results {
    background: #f9f9f9;
    text-align: center;
    padding: 8px;
}

.searchform.es-enhanced .view-all-results a {
    color: #2271b1;
    text-decoration: none;
    font-weight: bold;
}

/* Did you mean suggestion styles */
.searchform.es-enhanced .did-you-mean {
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    font-size: 13px;
}

.searchform.es-enhanced .es-suggestion-link {
    text-decoration: none;
    cursor: pointer;
}

.searchform.es-enhanced .es-suggestion-link strong {
    color: #004777;
    font-weight: bold;
}

.searchform.es-enhanced .es-suggestion-link:hover strong {
    text-decoration: underline;
}

/* Romanian language specific styles */
[lang="ro-RO"] .searchform.es-enhanced .search-name em,
[lang="ro"] .searchform.es-enhanced .search-name em {
    font-weight: bold;
    background: #ffffd5;
    font-style: normal;
}

/* Loading indicator for filters */
.widget_layered_nav li a.es-loading {
    opacity: 0.5;
}

/* Error message */
.searchform.es-enhanced .es-error {
    padding: 10px;
    color: #d63638;
    background-color: #fcf0f1;
    border-radius: 3px;
    margin: 5px;
    text-align: center;
}