/* yanxin:im-compose-staging-hotpatch */
.yx-compose-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 4px;
}

.yx-compose-pending__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  padding: 6px 28px 6px 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.yx-compose-pending__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.yx-compose-pending__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(22, 93, 255, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.yx-compose-pending__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yx-compose-pending__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
}

.yx-compose-pending__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 12px 8px;
}

.yx-compose-pending__send {
  margin-left: auto;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--im-primary, #165dff);
  cursor: pointer;
}

.yx-compose-pending__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-input .yx-compose-pending {
  padding: 8px 12px 0;
}

.chat-input .yx-compose-pending__actions {
  padding: 0 12px 8px;
}

.im-message-input .yx-compose-pending {
  padding: 0;
}

.im-message-input.yx-compose-has-pending .im-message-input__pending {
  display: none !important;
}
