.w2d-mention-picker[hidden],
.w2d-mention-selected[hidden] {
  display: none !important;
}

.w2d-mention-picker {
  margin-top: 8px;
  max-height: min(260px, 36vh);
  overflow-y: auto;
  border: 1px solid rgba(110, 59, 188, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(30, 19, 49, .1);
}

.w2d-mention-picker__option {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(53, 36, 70, .08);
  background: transparent;
  color: #211b30;
  text-align: left;
  cursor: pointer;
}

.w2d-mention-picker__option:last-child { border-bottom: 0; }
.w2d-mention-picker__option:hover,
.w2d-mention-picker__option.is-active,
.w2d-mention-picker__option:focus-visible { background: #f3eafc; }

.w2d-mention-picker__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #ece0fa;
  color: #6532a0;
  font-weight: 700;
}

.w2d-mention-picker__avatar img { width: 100%; height: 100%; object-fit: cover; }
.w2d-mention-picker__copy { display: grid; min-width: 0; gap: 2px; }
.w2d-mention-picker__copy strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.w2d-mention-picker__copy small { color: #61576d; font-size: 12px; line-height: 1.3; }
.w2d-mention-selected { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.w2d-mention-selected span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f3eafc;
  color: #6532a0;
  font-size: 12px;
  font-weight: 600;
}

html[data-ed-theme="dark"] .w2d-mention-picker {
  border-color: rgba(216, 187, 255, .3);
  background: #24202d;
}
html[data-ed-theme="dark"] .w2d-mention-picker__option { color: #f5f0fb; border-bottom-color: rgba(255, 255, 255, .1); }
html[data-ed-theme="dark"] .w2d-mention-picker__option:hover,
html[data-ed-theme="dark"] .w2d-mention-picker__option.is-active,
html[data-ed-theme="dark"] .w2d-mention-picker__option:focus-visible { background: #3b2b4c; }
html[data-ed-theme="dark"] .w2d-mention-picker__copy small { color: #cfc1dd; }
