/* Hydracon customer search - standalone so no all.min.css rebuild is required. */

#navbar .search-bar {
    visibility: visible;
    width: min(38%, 480px);
    margin: 12px 0 0 24px;
    padding: 10px 18px 10px 42px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 4px;
    background: #fff url('/img/icons/search.svg') no-repeat 14px center;
    background-size: 17px 17px;
    color: #333;
    font-size: 14px;
    line-height: 20px;
    outline: none;
}

#navbar .search-bar:focus {
    border-color: rgba(232, 126, 4, .9);
    box-shadow: 0 0 0 2px rgba(232, 126, 4, .16);
}

/* Do not depend on an icon asset being present. */
#navbar .search-bar {
    background-image: none;
    padding-left: 18px;
}

.ui-autocomplete.hydracon-search-results,
.ui-autocomplete {
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    z-index: 20000 !important;
}

.hydracon-search-results .ui-menu-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.hydracon-search-results .ui-menu-item:last-child {
    border-bottom: 0;
}

.hydracon-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    cursor: pointer;
}

.hydracon-search-results .ui-state-active .hydracon-search-result,
.hydracon-search-result:hover {
    margin: 0;
    border: 0;
    background: #f5f8fa;
}

.hydracon-search-result__label {
    min-width: 0;
    color: #252525;
    font-size: 13px;
    line-height: 1.35;
}

.hydracon-search-result__meta {
    flex: 0 0 auto;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.hydracon-search-empty .hydracon-search-result {
    cursor: default;
}

.hydracon-search-empty .hydracon-search-result__label {
    color: #888;
}

#mobile-menu .mobile-search-bar {
    visibility: visible;
    display: block;
    width: calc(100% - 30px);
    margin: 12px 15px 6px;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 16px;
}

@media (max-width: 991px) {
    #navbar .search-bar {
        display: none;
    }
}
