/**
 * ApproSearch - Hide native PrestaShop search
 * Solo se carga con "Reemplazar busqueda nativa" DESACTIVADO: el boton de
 * ApproSearch es la entrada de busqueda y la caja del tema se oculta para no
 * duplicar buscadores. (Con el modo activo la caja del tema es el disparador
 * y debe quedarse visible.)
 * Covers Classic theme and most popular themes.
 *
 * Todas las reglas van bajo html:not(.approsearch-unavailable): si la cuenta
 * de ApproSearch no tiene la busqueda activa (impago, plan cancelado), el
 * widget pone esa clase en <html> y la caja del tema vuelve a verse.
 */

/* Classic theme */
html:not(.approsearch-unavailable) #search_widget,
html:not(.approsearch-unavailable) .search-widget-container,
html:not(.approsearch-unavailable) .search-widgets,
html:not(.approsearch-unavailable) .search_widget {
    display: none !important;
}

/* Starter theme / some forks */
html:not(.approsearch-unavailable) .header-top .search-widget,
html:not(.approsearch-unavailable) #header .search-widget {
    display: none !important;
}

/* Hummingbird theme (PS 8) */
html:not(.approsearch-unavailable) .header__search,
html:not(.approsearch-unavailable) .search-widget-hummingbird {
    display: none !important;
}

/* Warehouse / Flavor / Leo themes */
html:not(.approsearch-unavailable) .leo-search-widget,
html:not(.approsearch-unavailable) .wh-search-widget,
html:not(.approsearch-unavailable) .flavor-search,
html:not(.approsearch-unavailable) .elementor-search-form--ps {
    display: none !important;
}

/* PS native search results page override */
body#search .page-content > section.products,
body#search #search_filters {
    /* Don't hide results page, only the search input */
}
