/* 可编辑头像：圆框 + 角标相机（选图入口；裁剪见 modal-content-avatar-crop） */
.wa-avatar-trigger {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: visible;
  cursor: pointer;
  outline: none;
}

.wa-avatar-trigger__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.wa-avatar-trigger__shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  /* 与 Arco 默认 a-avatar 同色 */
  background: var(--color-fill-4);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.wa-avatar-trigger__shell.has-image {
  background: transparent;
}

.wa-avatar-trigger__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wa-avatar-trigger__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white, #fff);
  font-size: 18px;
  line-height: 1;
}

.wa-avatar-trigger__placeholder .pro-fa-icon,
.wa-avatar-trigger__placeholder i {
  display: block;
  line-height: 1;
  font-size: inherit;
}

.wa-avatar-trigger__camera {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  color: rgb(var(--primary-6));
  background-color: var(--color-bg-2);
  border: 2px solid var(--color-bg-2);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  pointer-events: none;
}

/* FA 默认 14px，须显式压到 12px，否则会撑满角标、看不见白底 */
.wa-avatar-trigger__camera .pro-fa-icon,
.wa-avatar-trigger__camera i {
  display: block;
  width: 12px;
  height: 12px;
  font-size: 12px !important;
  line-height: 1;
}

.wa-avatar-trigger:hover .wa-avatar-trigger__camera,
.wa-avatar-trigger:focus-visible .wa-avatar-trigger__camera {
  color: #fff;
  background-color: rgb(var(--primary-6));
  border-color: rgb(var(--primary-6));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
