/*
 * Search Engine — suppress the WPLMS/Relevanssi search layer.
 *
 * This stylesheet is enqueued on all front-end pages when the plugin is active,
 * so the old search overlay and related UI never appear.
 */

/* ── WPLMS sliding search bar ──────────────────────────────────────────── */
#searchdiv,
.search_bar,
.wplms-search-bar,
.wplms-header-search,
.header-search-wrap,
.course_search_wrap,
.bp-search-bar {
    display: none !important;
}

/* ── Body class that WPLMS adds when its search is "active" ─────────────── */
body.search_active #searchdiv,
body.search_active .search_bar,
body.search_active .wplms-search-bar {
    display: none !important;
}

/* ── Prevent WPLMS search icon (if rendered separately) ────────────────── */
.wplms-search-icon,
.search-icon-wrap,
a.search_trigger,
button.search_trigger,
a#new_searchicon,
li:has(> a#new_searchicon) {
    display: none !important;
}

/* ── Relevanssi search form (only if it is outside our modal) ─────────────
     We hide .wp-block-search and the default WordPress search widget
     everywhere EXCEPT inside our own modal (which doesn't contain them
     anyway, so the selector is safe). */
.widget_search .search-form,
.wp-block-search:not(.lse-modal *) {
    display: none !important;
}
