/* PopShop™ — ps-token-field.css
   PSTokenField — Unified token / chip entry authority styles.
   FA-001 | PASS 13 Production Baseline
*/

/* ── Root container ─────────────────────────────────────── */
.ps-tf {
  position: relative;
  width: 100%;
}

/* ── Inner chip + input row ─────────────────────────────── */
.ps-tf__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 42px;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ps-tf--focused .ps-tf__inner {
  border-color: var(--ps-primary,#00e676);
  box-shadow: 0 0 0 2px rgba(var(--ps-primary-rgb, 0, 230, 118), 0.18);
}

/* ── Chip ───────────────────────────────────────────────── */
.ps-tf__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: rgba(var(--ps-primary-rgb, 0, 230, 118), 0.14);
  border: 1px solid rgba(var(--ps-primary-rgb, 0, 230, 118), 0.3);
  color: var(--ps-primary,#00e676);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ps-font, sans-serif);
  line-height: 1.2;
  white-space: nowrap;
  max-width: 200px;
}

.ps-tf__chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-tf__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.12s;
  font-family: var(--ps-font, sans-serif);
}

.ps-tf__chip-remove:hover {
  background: rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
}

/* ── Input ──────────────────────────────────────────────── */
.ps-tf__input {
  flex: 1;
  min-width: 80px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-family: var(--ps-font, sans-serif);
  outline: none;
  padding: 2px 4px;
  line-height: 1.4;
}

.ps-tf__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Suggestions dropdown ───────────────────────────────── */
.ps-tf__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 600;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 200px;
  overflow-y: auto;
}

.ps-tf__suggestion {
  padding: 9px 14px;
  font-size: 13px;
  font-family: var(--ps-font, sans-serif);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.1s;
}

.ps-tf__suggestion:hover {
  background: rgba(var(--ps-primary-rgb, 0, 230, 118), 0.1);
  color: var(--ps-primary,#00e676);
}
