.site-search-form {
  position: relative;
  z-index: 80;
}

.site-search-form.uk-search:before {
  display: none;
}

.site-search-form .uk-search-field {
  padding-left: 30px;
  color: #fff;
  caret-color: #249af2;
}

.site-search-submit {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 30px;
  transform: translateY(-50%);
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
  color: var(--primary-color);
  outline: 0;
}

.site-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: min(380px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: #101827;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .32);
}

.site-search-suggestions.is-visible {
  display: block;
}

.site-search-suggestion,
.site-search-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: #e5edf6;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.site-search-suggestion:hover,
.site-search-suggestion:focus-visible {
  background: rgba(36, 154, 242, .16);
  color: #fff;
  outline: 0;
  text-decoration: none;
}

.site-search-suggestion__image {
  flex: 0 0 42px;
  width: 42px;
  height: 32px;
  overflow: hidden;
  border-radius: 4px;
  background: #1e293b;
}

.site-search-suggestion__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-search-suggestion__copy {
  min-width: 0;
}

.site-search-suggestion__title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-search-suggestion__meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-search-empty {
  color: #94a3b8;
  font-size: 12px;
}

html.theme-light .site-search-form .uk-search-field {
  color: #0f172a !important;
  caret-color: #0b63ce;
  -webkit-text-fill-color: #0f172a;
}

html.theme-light .site-search-form .uk-search-field::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b;
}

html.theme-light .site-search-submit {
  color: #64748b;
}

html.theme-light .site-search-submit:hover,
html.theme-light .site-search-submit:focus-visible {
  color: #0b63ce;
}

html.theme-light .site-search-suggestions {
  border-color: rgba(15, 23, 42, .14);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

html.theme-light .site-search-suggestion,
html.theme-light .site-search-empty {
  color: #1f2937;
}

html.theme-light .site-search-suggestion:hover,
html.theme-light .site-search-suggestion:focus-visible {
  background: #eaf3ff;
  color: #075fba;
}

html.theme-light .site-search-suggestion__meta {
  color: #64748b;
}

@media (max-width: 767px) {
  .site-search-form,
  .site-search-form .uk-search-field {
    width: 100%;
  }

  .site-search-suggestions {
    width: 100%;
  }
}
