/**
 * mesh — Search bar + dropdown styling.
 * Migrated from WPCode snippet 47953 "Kill JetSearch native results" (verbatim).
 * Pairs with assets/js/mesh-search-dropdown.js (snippet 47928).
 */

/* ── Kill JetSearch native results ── */
.jet-ajax-search__results-holder,
.jet-ajax-search__results,
.jet-ajax-search__result,
.jet-ajax-search__results-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Kill JetSearch loader bar ── */
.jet-ajax-search__field-loader,
.jet-ajax-search__spinner,
.jet-ajax-search--loading .jet-ajax-search__field-loader,
.jet-ajax-search__submit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ── Hide magnifying glass on desktop search bar only ── */
.elementor-element-6c575224 .jet-ajax-search__field-icon {
  display: none !important;
}

/* ── Search input: mesh DS ── */
.jet-ajax-search__field {
  border-radius: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0a0a0a !important;
  background: #ffffff !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.jet-ajax-search__field::placeholder {
  color: rgba(10,10,10,.35) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.jet-ajax-search__form,
.jet-ajax-search {
  border-radius: 0 !important;
}

/* ── Mobile nav height fix ── */
@media (max-width: 1024px) {
  .jet-ajax-search__form {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .jet-ajax-search__field-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .jet-ajax-search__field {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: auto !important;
  }
}

/* ── mesh search dropdown ── */
#mesh-search-dd {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 2px solid #0a0a0a;
  border-top: none;
  box-shadow: 6px 6px 0 #0a0a0a;
  z-index: 9999;
  font-family: 'Space Grotesk', sans-serif;
}
#mesh-search-dd.msd-open { display: block; }

.msd-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(10,10,10,.1);
}

.msd-close-query {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(10,10,10,.4);
  font-style: italic;
}

.msd-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .4;
  transition: opacity .15s;
}
.msd-close-btn:hover { opacity: 1; }

.msd-scroll {
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.msd-group { border-top: 1px solid rgba(10,10,10,.1); }
.msd-group:first-child { border-top: none; }

.msd-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 5px;
}

.msd-group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.msd-group-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(10,10,10,.4);
}

.msd-group-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c3aff;
  text-decoration: none;
  margin-left: auto;
}

.msd-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-decoration: none;
  color: #0a0a0a;
  cursor: pointer;
  transition: background .1s;
  position: relative;
}

.msd-result:hover,
.msd-result.msd-focused {
  background: rgba(124,58,255,.07);
}

.msd-result.msd-focused::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #7c3aff;
}

.msd-thumb {
  width: 44px;
  height: 36px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e8;
  border: 1px solid rgba(10,10,10,.1);
}

.msd-body { flex: 1; min-width: 0; }

.msd-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0a0a0a;
}

.msd-title mark {
  background: #ffe135;
  color: #0a0a0a;
  font-style: normal;
}

.msd-meta {
  font-size: 11px;
  font-weight: 500;
  color: rgba(10,10,10,.42);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msd-arrow {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .1s;
}
.msd-result:hover .msd-arrow,
.msd-result.msd-focused .msd-arrow { opacity: 1; }

.msd-footer {
  border-top: 2px solid #0a0a0a;
  background: #0a0a0a;
  padding: 11px 16px;
}

.msd-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffe135;
  text-decoration: none;
}
.msd-footer-link:hover { color: #fff; }

.msd-loading,
.msd-empty { padding: 20px 16px; }

.msd-loading {
  font-size: 13px;
  font-weight: 500;
  color: rgba(10,10,10,.4);
}

.msd-empty-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 4px;
}
.msd-empty-title em { color: #7c3aff; font-style: italic; }

.msd-empty-sub {
  font-size: 12px;
  color: rgba(10,10,10,.4);
}
