/* Component: in-app profile editor. */
.wpar-dialog--profile-edit {
  width: min(560px, calc(100vw - 24px));
}

.wpar-profile-edit__hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wpar-dialog--profile-edit .wpar-form__body {
  gap: 16px;
}

.wpar-dialog--profile-edit .wpar-form__foot {
  gap: 8px;
}

@media (max-width: 560px) {
  .wpar-dialog--profile-edit {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
  }
}

/* Profile picture / banner image editing. */
.wpar-profile-hero__cover {
  position: relative;
  background-size: cover;
  background-position: center;
}
.wpar-profile-image-edit {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(3,7,91,.78);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: transform .15s ease, background .15s ease;
}
.wpar-profile-image-edit:hover { transform: scale(1.05); background: rgba(3,7,91,.92); }
.wpar-profile-image-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wpar-profile-image-edit span { font-size: 17px; line-height: 1; }
.wpar-profile-image-edit--banner { right: 14px; bottom: 14px; }
.wpar-profile-hero__avatar { position: relative; }
.wpar-profile-image-edit--avatar { right: 2px; bottom: 2px; width: 32px; height: 32px; }
.wpar-profile-image-edit--avatar span { font-size: 16px; }
.wpar-profile-hero__avatar .wpar-avatar { display: block; }
@media (max-width: 600px) {
  .wpar-profile-image-edit--banner { right: 10px; bottom: 10px; }
}
