body.app-theme .live-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  z-index: 150;
  border: none;
  padding-top: 8px;
  background: transparent;
}

body.app-theme #live-search-results-mobile.live-search-results {
  top: calc(100% + 0.45rem);
}

body.app-theme .live-search-panel--neo {
  position: relative;
  border: 1px solid #d4e1fb;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow:
    0 28px 70px rgba(17, 31, 68, 0.18),
    0 10px 24px rgba(47, 110, 252, 0.08);
  overflow: hidden;
  max-height: min(72vh, 680px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

body.app-theme .live-search-panel--neo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 110, 252, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
  pointer-events: none;
}

body.app-theme .live-search-head--v3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(212, 225, 251, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.98) 100%);
  z-index: 1;
}

body.app-theme .live-search-head__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.app-theme .live-search-head__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3660ae;
}

body.app-theme .live-search-head__query {
  font-size: 1rem;
  font-weight: 700;
  color: #16294b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-theme .live-search-head__count {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d0def9;
  color: #335490;
  font-size: 0.74rem;
  font-weight: 800;
}

body.app-theme .live-search-block {
  position: relative;
  padding: 12px 16px 4px;
  z-index: 1;
}

body.app-theme .live-search-block__title {
  margin-bottom: 0.42rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #62779f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.app-theme .live-search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-theme .live-search-country-chip {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d5e2fb;
  background: linear-gradient(180deg, #ffffff, #eff5ff);
  color: #284e95;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(47, 110, 252, 0.05);
}

body.app-theme .live-search-country-chip:hover,
body.app-theme .live-search-country-chip:focus-visible {
  background: #eaf2ff;
  border-color: #bcd3ff;
}

body.app-theme .live-search-list--neo {
  margin: 0;
  padding: 8px 12px 12px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  position: relative;
  z-index: 1;
}

body.app-theme .live-search-row {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.app-theme .live-search-item--v3 {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #e0e9fc;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 37, 75, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

body.app-theme .live-search-item--v3:hover {
  border-color: #bfd4ff;
  background: #f2f7ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 37, 75, 0.1);
}

body.app-theme .live-search-thumb--sm {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d9e5fb;
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
}

body.app-theme .live-search-thumb--sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.app-theme .live-search-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.app-theme .live-search-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.app-theme .live-search-store,
body.app-theme .live-search-category {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

body.app-theme .live-search-store {
  color: #1f4ca7;
  background: #eaf3ff;
  border: 1px solid #cde1ff;
}

body.app-theme .live-search-category {
  color: #5e7091;
  background: #f6f9ff;
  border: 1px solid #e3ebfb;
}

body.app-theme .live-search-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #12203c;
  line-height: 1.28;
}

body.app-theme .live-search-subtitle {
  font-size: 0.75rem;
  color: #6b7f9f;
  line-height: 1.3;
}

body.app-theme .live-search-aside {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: max-content;
  align-self: stretch;
  padding-left: 8px;
}

body.app-theme .live-search-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #12306e;
}

body.app-theme .live-search-open {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #20c6ff 0%, #1569ff 60%, #7a2cf6 100%);
}

body.app-theme .live-search-empty {
  position: relative;
  margin: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #d8e5fb;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  font-size: 0.82rem;
  color: #506685;
  box-shadow: 0 12px 28px rgba(19, 37, 75, 0.05);
  z-index: 1;
}

body.app-theme .live-search-footer {
  position: relative;
  padding: 8px 12px 12px;
  border-top: 1px solid #e9f0ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.98));
  z-index: 1;
}

body.app-theme .live-search-all--v3 {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1d4a9a;
  background: linear-gradient(180deg, #edf4ff 0%, #e3eeff 100%);
  border: 1px solid #cfe0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

@media (max-width: 767.98px) {
  body.app-theme #live-search-results-mobile.live-search-results {
    left: -0.2rem;
    right: -0.2rem;
  }

  body.app-theme .live-search-panel--neo {
    max-height: min(68vh, 560px);
    border-radius: 24px;
  }

  body.app-theme .live-search-head--v3 {
    padding: 12px;
  }

  body.app-theme .live-search-item--v3 {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  body.app-theme .live-search-thumb--sm {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
  }

  body.app-theme .live-search-open {
    display: none;
  }

  body.app-theme .live-search-title {
    font-size: 0.84rem;
  }

  body.app-theme .live-search-price {
    font-size: 0.82rem;
  }
}
