/* Update-proof Demo megamenu live search (loaded by mod_ajax_search) */
.sp-dropdown-inner > .jx-mega-search {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(37, 37, 80, 0.1);
  background: transparent !important;
  box-shadow: none !important;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  width: 100%;
  padding: 8px 12px !important;
  border: 1px solid rgba(61, 56, 255, 0.22) !important;
  border-radius: 12px !important;
  background: #f7f8ff !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-wrap:focus-within {
  border-color: #3d38ff !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(61, 56, 255, 0.12) !important;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-wrap svg {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  color: #3d38ff;
}

/* Beat Helix template rule: input[type=search]:not(.form-control) { width:100%; padding:...; background:#fff; border:... } */
.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input[type="search"],
.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #1f2430 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input::placeholder {
  color: #8b93a7 !important;
  opacity: 1 !important;
}

.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input:focus,
.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input:active,
.sp-dropdown-inner > .jx-mega-search input.jx-mega-search-input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: #8b93a7;
  white-space: nowrap;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-clear {
  flex: 0 0 auto;
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #667085 !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px !important;
  border-radius: 6px;
  box-shadow: none !important;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-clear:hover {
  background: rgba(61, 56, 255, 0.08) !important;
  color: #3d38ff !important;
}

.sp-dropdown-inner .sp-menu-item.jx-mega-hidden,
.sp-dropdown-inner .sp-mega-group.jx-mega-hidden,
.sp-dropdown-inner .col-sm-3.jx-mega-hidden,
.sp-dropdown-inner [class*="col-"].jx-mega-hidden {
  display: none !important;
}

.sp-dropdown-inner > .jx-mega-search .jx-mega-search-empty {
  display: none;
  margin: 8px 0 0;
  padding: 18px;
  text-align: center;
  color: #667085;
  font-size: 14px;
  border: 1px dashed rgba(37, 37, 80, 0.15);
  border-radius: 12px;
  background: transparent;
}

.sp-dropdown-inner.jx-mega-no-results > .jx-mega-search .jx-mega-search-empty {
  display: block;
}

@media (max-width: 991.98px) {
  .sp-dropdown-inner > .jx-mega-search { display: none !important; }
}
