/* =========================================================
   WorldlyFeed override module: search.css
   Changelog:
   - 2026-02-18: extracted search suggestion styles from custom-overrides.css
   ========================================================= */

/* Search suggestion dropdown */
.widget_search .wf-search-suggest {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  top: calc(100% + 8px) !important;
  background: #fff !important;
  border: 1px solid #cbdaf5 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(10, 28, 68, 0.16) !important;
  z-index: 9999 !important;
  display: none;
  overflow: hidden !important;
  max-height: 260px !important;
  overflow-y: auto !important;
}

.widget_search,
.wp-block-search,
.mg-widget.widget_search,
.mg-widget.widget_block.widget_search {
  overflow: visible !important;
}

.widget_search .wf-search-item {
  display: block !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #edf2fb !important;
  color: #1b2a45 !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.widget_search .wf-search-suggest > a,
.widget_search .wf-search-suggest a {
  display: block !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #edf2fb !important;
  color: #1b2a45 !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.widget_search .wf-search-item:last-child {
  border-bottom: 0 !important;
}

.widget_search .wf-search-suggest > a:last-child,
.widget_search .wf-search-suggest a:last-child {
  border-bottom: 0 !important;
}

.widget_search .wf-search-item:hover,
.widget_search .wf-search-item:focus {
  background: #f3f7ff !important;
  color: #1151d3 !important;
}

.widget_search .wf-search-suggest > a:hover,
.widget_search .wf-search-suggest a:hover,
.widget_search .wf-search-suggest > a:focus,
.widget_search .wf-search-suggest a:focus {
  background: #f3f7ff !important;
  color: #1151d3 !important;
}

.widget_search .wf-search-item-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.widget_search .wf-search-empty {
  padding: 10px 12px !important;
  color: #667 !important;
  font-size: 14px !important;
}
