/* WIRTZ MARKETING · FOTO DE PERFIL */

.wm-avatar-target {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  width: 29px !important;
  height: 29px !important;
  border-radius: 7px !important;
}

.wm-avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  background: var(--wm-surface-2);
}

.wm-avatar-editor {
  grid-column: 1 / -1 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 18px 20px !important;
  margin: 0;
  border: 1px solid var(--wm-border-strong);
  border-radius: 9px;
  background: var(--wm-surface);
  color: var(--wm-text);
}

.wm-avatar-preview {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid var(--wm-border-strong);
  border-radius: 12px;
  background: var(--wm-surface-2);
  font-size: 25px;
  font-weight: 800;
}

.wm-avatar-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wm-avatar-preview [hidden] {
  display: none !important;
}

.wm-avatar-description {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 180px;
}

.wm-avatar-eyebrow {
  color: var(--wm-muted);
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 800;
}

.wm-avatar-description h2 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800;
}

.wm-avatar-description p,
.wm-avatar-description small {
  margin: 0;
  color: var(--wm-muted);
  font-size: 11px;
  line-height: 1.5;
}

.wm-avatar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-avatar-actions button {
  min-height: 35px;
  padding: 8px 12px;
  color: var(--wm-text);
  background: var(--wm-surface-2);
  border: 1px solid var(--wm-border-strong);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.wm-avatar-actions button:hover:not(:disabled) {
  background: var(--wm-surface-3);
  border-color: var(--wm-text);
}

.wm-avatar-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#wm-avatar-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--wm-muted);
  font-size: 11px;
}

#wm-avatar-status:empty {
  display: none;
}

@media (max-width: 650px) {
  .wm-avatar-editor {
    gap: 13px;
    padding: 15px !important;
  }

  .wm-avatar-preview {
    width: 64px;
    height: 64px;
  }

  .wm-avatar-actions {
    width: 100%;
  }

  .wm-avatar-actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-avatar-editor *,
  .wm-avatar-target * {
    transition: none !important;
  }
}
