/* ==========================================================================
   SMTBOX Search Autocomplete Component Styles
   Extracted from search-autocomplete.js (DEF-07)
   ========================================================================== */

.sre-autocomplete-dropdown {
    position: absolute;
    z-index: 9999999 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}

.sre-suggestion-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #1a202c !important;
    text-decoration: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.sre-suggestion-item:last-child {
    border-bottom: none !important;
}

.sre-suggestion-item:hover,
.sre-suggestion-item.active {
    background-color: #f0f4ff !important;
    color: #002780 !important;
    text-decoration: none !important;
}

.sre-suggestion-item .sre-highlight {
    font-weight: bold !important;
    color: #CF0921 !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.sre-suggestion-img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    margin-right: 12px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
}

.sre-suggestion-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sre-suggestion-title {
    font-weight: 500 !important;
    color: #1a202c !important;
    margin-bottom: 2px !important;
}

.sre-suggestion-price {
    font-size: 12px !important;
    color: #718096 !important;
}

/* Completely suppress built-in Flatsome AJAX search box */
.live-search-results,
.autocomplete-suggestions,
.searchform-wrapper .live-search-results {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Autocomplete State Classes */
.sre-autocomplete-dropdown.is-hidden {
    display: none !important;
}

.sre-autocomplete-dropdown.is-open,
.sre-autocomplete-dropdown.is-active {
    display: block !important;
}

/* Newsletter Feedback State Classes */
.sre-newsletter-msg.has-error {
    color: #CF0921 !important;
    display: block !important;
}

.sre-newsletter-msg.has-success {
    color: #008000 !important;
    display: block !important;
}

.sre-newsletter-msg.has-info {
    color: #002780 !important;
    display: block !important;
}

