/* Elinom Intelligent Search — field typeahead. Matches unified-search tokens. */

.is-wrap {
  position: relative;
  display: block;
  flex: 1 1 12rem;
  min-width: 10rem;
  width: 100%;
}

.is-wrap.is-busy::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border: 2px solid rgb(99, 102, 241, 0.25);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: is-spin 0.7s linear infinite;
  pointer-events: none;
}

@keyframes is-spin {
  to {
    transform: rotate(360deg);
  }
}

.is-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  padding: 0.35rem 0;
  border: 1px solid var(--us-border, rgb(255, 255, 255, 0.08));
  border-radius: var(--us-radius-sm, 8px);
  background: var(--us-bg, #1a1b2e);
  color: var(--us-text, #e2e8f0);
  box-shadow: var(--us-shadow, 0 16px 40px rgb(0, 0, 0, 0.35));
}

.is-wrap.is-flip .is-panel {
  top: auto;
  bottom: calc(100% + 4px);
}

.is-group-label {
  padding: 0.4rem 0.85rem 0.2rem;
  color: var(--us-text-muted, #94a3b8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.is-option {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.is-option.is-active,
.is-option:hover {
  background: var(--us-highlight-bg, rgb(99, 102, 241, 0.15));
}

.is-option-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.is-option-sub {
  color: var(--us-text-muted, #94a3b8);
  font-size: 0.78rem;
  line-height: 1.3;
}

.is-status {
  margin-left: 0.35rem;
  color: var(--us-text-muted, #94a3b8);
  font-size: 0.72rem;
  font-weight: 500;
}

.is-empty {
  padding: 0.85rem;
  color: var(--us-text-muted, #94a3b8);
  font-size: 0.88rem;
}

.is-highlight {
  padding: 0 0.05em;
  border-radius: 2px;
  background: rgb(99, 102, 241, 0.28);
  color: inherit;
}

.is-see-all .is-option-title {
  font-weight: 500;
}

@media (max-width: 720px) {
  .is-panel {
    max-height: min(40vh, 18rem);
  }

  .is-option {
    min-height: 48px;
    padding: 0.7rem 0.95rem;
  }
}
