.aisb-search-root {
  position: relative;
  max-width: 640px;
  width: 100%;
  font-family: inherit;
}

.aisb-input-wrap {
  position: relative;
}

.aisb-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-sizing: border-box;
}

.aisb-input:focus {
  outline: none;
  border-color: #3858e9;
  box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.15);
}

.aisb-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #3858e9;
  border-radius: 50%;
  display: none;
}

.aisb-spinner-active {
  display: block;
  animation: aisb-spin 0.7s linear infinite;
}

@keyframes aisb-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.aisb-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
  padding: 8px;
}

.aisb-answer {
  padding: 12px;
  margin-bottom: 8px;
  background: #f5f7ff;
  border-radius: 6px;
  border: 1px solid #dde3fb;
}

.aisb-answer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3858e9;
  font-weight: 600;
  margin-bottom: 4px;
}

.aisb-answer-text {
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.aisb-item {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}

.aisb-item:hover {
  background: #f5f5f7;
}

.aisb-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #111;
  margin-bottom: 2px;
}

.aisb-item-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.aisb-empty,
.aisb-error {
  padding: 12px;
  font-size: 14px;
  color: #777;
}
