/* Flatsome live product search */

.searchform .gwsm-live-search-results {
    max-height: min(70vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e7e9f2);
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 20, 38, .1);
    overscroll-behavior: contain;
}

.searchform .gwsm-live-search-results .autocomplete-suggestion {
    display: grid;
    min-height: 72px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-color, #e7e9f2);
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.searchform .gwsm-live-search-results .autocomplete-suggestion:hover,
.searchform .gwsm-live-search-results .autocomplete-selected {
    background: var(--hover-btn-bg, #eef0ff);
}

.searchform .gwsm-live-search-results .search-image {
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 9px;
    object-fit: contain;
    background: #f6f7fb;
}

.searchform .gwsm-live-search-results .search-name {
    min-width: 0;
    color: var(--text-color, #101426);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.searchform .gwsm-live-search-results .search-price {
    color: var(--primary-color, #000b99);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.searchform .gwsm-live-search-results .gwsm-live-search-all-item {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: block;
    min-height: 52px;
    padding: 6px;
    border: 0;
    background: #fff;
}

.searchform .gwsm-live-search-all {
    display: flex;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--primary-color, #000b99);
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.8;
    transition: background-color .2s ease;
}

.searchform .gwsm-live-search-all-item:hover,
.searchform .gwsm-live-search-all-item.autocomplete-selected {
    background: #fff;
}

.searchform .gwsm-live-search-all-item:hover .gwsm-live-search-all,
.searchform .gwsm-live-search-all-item.autocomplete-selected .gwsm-live-search-all {
    background: var(--secondary-color, #000b99);
}

@media (prefers-reduced-motion: reduce) {
    .searchform .gwsm-live-search-all {
        transition: none;
    }
}
