/* v0.76 — Selector editorial de productores participantes por evento. */

.participant-picker {
  background:
    radial-gradient(circle at top right, rgba(83,65,137,.08), transparent 36%),
    linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.participant-picker-head {
  display: grid;
  gap: .85rem;
  align-items: end;
  margin-bottom: .9rem;
}

.participant-picker-head strong {
  display: inline-flex;
  width: fit-content;
  margin-top: .45rem;
  padding: .32rem .62rem;
  border-radius: 999px;
  color: #483981;
  background: #f1edff;
  font-size: .78rem;
}

.participant-search-label {
  margin: 0;
}

.participant-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: .72rem;
  max-height: 520px;
  overflow: auto;
  padding: .25rem;
}

.participant-select-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .72rem;
  align-items: center;
  min-height: 92px;
  padding: .62rem;
  border: 1px solid #dce4f1;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(34,47,79,.04);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.participant-select-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34,47,79,.08);
}

.participant-select-card.is-selected,
.participant-select-card:has(input:checked) {
  border-color: rgba(83,65,137,.52);
  background: linear-gradient(135deg, #f7f4ff, #fff);
}

.participant-select-card input {
  width: 18px;
  height: 18px;
  accent-color: #534189;
}

.participant-select-card img {
  width: 68px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #eef2f8;
}

.participant-copy {
  min-width: 0;
}

.participant-copy strong,
.participant-copy small,
.participant-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-copy strong {
  color: var(--navy-deep);
  font-size: .92rem;
}

.participant-copy small {
  margin-top: .12rem;
  color: var(--muted);
  font-size: .74rem;
}

.participant-copy em {
  margin-top: .25rem;
  color: #534189;
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.participant-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #534189;
  font-size: .78rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
}

.participant-select-card.is-selected .participant-check,
.participant-select-card:has(input:checked) .participant-check {
  opacity: 1;
  transform: scale(1);
}

.participant-empty {
  margin-top: .8rem;
  padding: .75rem;
  border: 1px dashed #cbd5e5;
  border-radius: 14px;
  text-align: center;
  background: #f8faff;
}

@media (min-width: 980px) {
  .participant-picker-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  }
}

@media (max-width: 680px) {
  .participant-card-grid {
    grid-template-columns: 1fr;
  }

  .participant-select-card {
    grid-template-columns: auto 58px minmax(0, 1fr);
  }

  .participant-check {
    display: none;
  }
}
