/* psi-suggest.css */

.psi-suggest {
  position: relative;
  width: 100%;
  max-width: 360px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
}

.psi-suggest-input {
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  color: #111827;
}

.psi-suggest-input:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.psi-suggest-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1200;
}

.psi-suggest-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  user-select: none;
}

.psi-suggest-item:last-child { border-bottom: none; }
.psi-suggest-item:hover { background-color: #f3f4f6; }
.psi-suggest-item.is-active { background-color: #eef2ff; }

.psi-suggest-spinner {
  display: none;
  position: absolute;
  right: 10px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  border-top-color: #94a3b8;
  animation: psiSuggestSpin 0.7s linear infinite;
  pointer-events: none;
}

@keyframes psiSuggestSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 800px) {
  .psi-suggest { max-width: 100%; }
}

/* (opzionale) su mobile puoi trasformarlo in pannello fixed come psi-pick,
   ma per un suggest semplice spesso è meglio lasciarlo dropdown */