/* ===== KwK Live-Search Autocomplete ===== */

.kwk-header-search-wrap,
.kwk-mobile-search,
.kwk-footer-contact-ki {
  position: relative; /* suggest box is absolutely positioned */
}

/* Override theme's overflow:hidden so suggest dropdown is visible */
.kwk-header-search-wrap.active,
.kwk-mobile-bot-wrap.search-open .kwk-mobile-search,
.kwk-footer-contact-ki {
  overflow: visible !important;
}

.kwk-search-input {
  cursor: text !important;
}
.kwk-search-input[disabled],
.kwk-search-input[readonly] {
  cursor: text !important;
}

/* Suggest dropdown */
.kwk-search-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(17,17,17,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  min-width: 260px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  z-index: 99999;
}
.kwk-search-suggest.is-open {
  display: block;
}

.kwk-search-suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.kwk-search-suggest-item:hover,
.kwk-search-suggest-item:focus-visible {
  background: rgba(107,66,44,0.18);
  color: #fff;
  outline: none;
}
.kwk-search-suggest-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kwk-search-suggest-kind {
  flex: 0 0 auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(196,145,106,0.8);
  padding: 3px 8px;
  background: rgba(107,66,44,0.14);
  border-radius: 20px;
}
.kwk-search-suggest-empty {
  padding: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-align: center;
}
.kwk-search-suggest-all {
  display: block;
  padding: 10px 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(196,145,106,0.95);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
  border-radius: 0 0 8px 8px;
  transition: color 0.15s, background 0.15s;
}
.kwk-search-suggest-all:hover {
  color: #fff;
  background: rgba(107,66,44,0.18);
}

/* Footer variant — opens upward because footer is at bottom */
.kwk-search-suggest--footer {
  top: auto;
  bottom: calc(100% + 6px);
  max-width: 360px;
}

/* Mobile variant */
.kwk-search-suggest--mobile {
  min-width: 240px;
  max-height: 60vh;
}

@media (max-width: 640px) {
  .kwk-search-suggest {
    left: -4px;
    right: -4px;
  }
}
