/* /public_html/assets/css/chat/chat-participants.css */

.chat-participants-extras{
  width:100%;
  padding-top:6px;
  box-sizing:border-box;
}

.chat-participants-tools{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  flex-wrap:nowrap;
}

.chat-participants-search-field{
  flex:1 1 auto;
  min-width:0;
  width:100%;
}

.chat-participants-tools-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.chat-participants-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.chat-participants-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.chat-participants-meta__title{
  font-size:14px;
  opacity:.78;
}

.chat-participants-meta__context{
  font-size:13px;
  opacity:.72;
  line-height:1.4;
}

.chat-participants-status{
  min-height:20px;
  font-size:13px;
  opacity:.82;
}

.chat-participants-invite{
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
  border-radius:16px;
  padding:14px;
}

.chat-participants-invite__title{
  font-size:14px;
  font-weight:800;
  line-height:1.2;
}

.chat-participants-invite__hint{
  font-size:12px;
  line-height:1.45;
  opacity:.78;
}

.chat-participants-invite__results{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.chat-participants-invite__empty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:14px;
  padding:14px;
  opacity:.8;
  background:rgba(255,255,255,.02);
  font-size:13px;
  line-height:1.45;
}

.chat-participants-invite__result{
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
  color:inherit;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.chat-participants-invite__result:hover{
  border-color:rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  transform:translateY(-1px);
}

.chat-participants-invite__result-name{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

.chat-participants-invite__result-meta{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  opacity:.76;
}

.chat-participants-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (min-width: 768px){
  .chat-participants-stats{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

.chat-participants-stat{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.14);
  border-radius:14px;
  padding:14px;
}

.chat-participants-stat__value{
  font-size:22px;
  font-weight:800;
  line-height:1;
  margin-bottom:6px;
}

.chat-participants-stat__label{
  font-size:13px;
  opacity:.78;
}

.chat-participants-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

@media (min-width: 1024px){
  .chat-participants-grid{
    grid-template-columns:1fr 1fr;
  }
}

.chat-participant-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.14);
  border-radius:16px;
  padding:14px;
  box-sizing:border-box;
}

.chat-participant-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.chat-participant-card__identity{
  min-width:0;
  flex:1 1 auto;
}

.chat-participant-card__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.chat-participant-card__remove{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:inherit;
  border-radius:999px;
  min-height:34px;
  padding:8px 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.chat-participant-card__remove:hover{
  border-color:rgba(255,255,255,.20);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  transform:translateY(-1px);
}

.chat-participant-card__name{
  font-size:16px;
  font-weight:800;
  line-height:1.25;
  margin:0;
}

.chat-participant-card__role{
  margin-top:4px;
  font-size:12px;
  opacity:.74;
}

.chat-participant-card__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.chat-participants-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  font-size:12px;
  line-height:1.15;
  white-space:nowrap;
}

.chat-participants-chip--muted{
  opacity:.82;
}

.chat-participant-card__details{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}

.chat-participant-card__line{
  font-size:13px;
  line-height:1.4;
  opacity:.84;
  word-break:break-word;
}

.chat-participants-empty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:16px;
  padding:18px 16px;
  opacity:.84;
  background:rgba(255,255,255,.02);
}

:where(body.theme-light, html[data-theme="light"]) .chat-participant-card__remove{
  border-color:#e0d7dd;
  background:#fff6f8;
  color:#8c3b57;
}

@media (max-width: 767px){
  .chat-participants-tools{
    flex-wrap:wrap;
  }

  .chat-participants-tools-actions{
    width:100%;
    justify-content:flex-end;
  }
}
