.kc-smart-search-ready {
  position: relative;
  z-index: 50;
}

.kc-smart-search__field {
  position: relative;
}

.kc-search-panel {
  position: absolute;
  inset: calc(100% + 12px) 0 auto;
  z-index: 80;
  max-height: min(460px, 70vh);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(104, 86, 86, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(86, 64, 65, 0.18);
  backdrop-filter: blur(18px);
}

.kc-search-panel[hidden] {
  display: none;
}

.kc-search-panel__label,
.kc-search-panel__message {
  margin: 0;
  padding: 13px 15px;
  color: #7c6d6b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kc-search-panel__message {
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.kc-search-panel__message--error {
  color: #a34e45;
}

.kc-search-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 17px;
  color: #4d4141;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.kc-search-result:hover,
.kc-search-result:focus-visible,
.kc-search-result[aria-selected="true"] {
  background: linear-gradient(135deg, #fff1e9, #f3efff);
  outline: none;
  transform: translateX(2px);
}

.kc-search-result__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #fff8f3;
  box-shadow: inset 0 0 0 1px rgba(104, 86, 86, 0.08);
  font-size: 1.25rem;
}

.kc-search-result__body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.kc-search-result__title {
  overflow: hidden;
  color: #473b3c;
  font-size: 0.98rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kc-search-result__meta {
  overflow: hidden;
  color: #80726f;
  font-size: 0.79rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kc-search-result__badge {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 850;
  white-space: nowrap;
}

.kc-search-result__badge--reviewed {
  background: #e4f5ea;
  color: #39734e;
}

.kc-search-result__badge--warning {
  background: #fff0d7;
  color: #965a1e;
}

@media (max-width: 680px) {
  .kc-search-panel {
    inset-inline: -2px;
    border-radius: 20px;
  }

  .kc-search-result {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .kc-search-result__badge {
    display: none;
  }
}
