/* WebARTing WP Plugins v2.7.10 — discrete avatar editor and native modal */
.wa-account-photo-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}
.wa-account-photo-wrap .wa-account-photo { width: 100%; height: 100%; }
body.wa-store-v270 .wa-avatar-edit-trigger {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--wa-theme-accent, #126fb8);
  border: 1px solid #d4e2ef;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(10,35,70,.12);
  cursor: pointer;
  z-index: 2;
}
.wa-avatar-edit-trigger:hover { color: #fff !important; background: var(--wa-theme-accent, #126fb8) !important; }
.wa-avatar-edit-trigger:focus-visible,
.wa-avatar-dialog-close:focus-visible,
.wa-avatar-file-choice:focus-visible,
.wa-avatar-remove-link:focus-visible { outline: 2px solid var(--wa-theme-accent, #126fb8); outline-offset: 3px; }
.wa-account-profile-grid { display: block; }
body.wa-store-v270 .wa-account-profile-grid .admin-form { width: 100%; }
body.wa-store-v270 dialog.wa-avatar-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px 24px 19px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fff;
  color: #263c55;
  box-shadow: 0 16px 55px rgba(4,27,52,.22);
}
body.wa-store-v270 dialog.wa-avatar-dialog:not([open]) { display: none; }
body.wa-store-v270 dialog.wa-avatar-dialog::backdrop { background: rgba(7,19,34,.58); backdrop-filter: blur(2px); }
.wa-avatar-dialog-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
body.wa-store-v270 .wa-avatar-dialog-header h2 { color: var(--wa-theme-ink, #173c60); font-size: 20px; margin: 0 0 4px; }
.wa-avatar-dialog-header p { margin: 0; font-size: 13px; color: #697f95; line-height: 1.5; }
body.wa-store-v270 .wa-avatar-dialog-close {
  background: transparent; border: none; color: #63778a;
  width: 30px; height: 30px; font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0; flex: 0 0 auto;
}
.wa-avatar-dialog-preview {
  width: 124px; height: 124px; margin: 22px auto 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 50%;
  border: 1px solid #dbe7f1;
  background: #edf5fb;
  color: var(--wa-theme-accent, #176bbb);
}
.wa-avatar-dialog-preview img { width: 100%; height: 100%; object-fit: cover; }
.wa-avatar-dialog-preview [hidden] { display: none !important; }
.wa-avatar-dialog-form { display: grid; justify-items: center; gap: 10px; }
.wa-avatar-dialog-form input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body.wa-store-v270 .wa-avatar-file-choice {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #c9d9e9; border-radius: 7px;
  background: #f7fbff; color: #1b527d;
  font-weight: 750; font-size: 13px;
  min-height: 37px; padding: 7px 14px; cursor: pointer;
}
.wa-avatar-file-choice:hover { border-color: var(--wa-theme-accent, #176bbb); }
.wa-avatar-file-status {
  color: #718296; font-size: 12px; margin: 0 0 3px; text-align: center; overflow-wrap: anywhere;
}
.wa-avatar-file-status.is-error { color: #ad243c; }
.wa-avatar-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; width: 100%; margin-top: 10px; }
body.wa-store-v270 .wa-avatar-dialog-actions .button { min-width: 102px; }
body.wa-store-v270 .wa-avatar-dialog-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.wa-avatar-dialog-remove { display: flex; justify-content: center; border-top: 1px solid #e8eef4; margin: 17px 0 0; padding: 11px 0 0; }
body.wa-store-v270 .wa-avatar-remove-link {
  border: 0; background: transparent; color: #a72d41;
  padding: 8px 6px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.wa-avatar-remove-link:hover { text-decoration: underline; }
@media(max-width:520px) {
  .wa-account-photo-wrap { width: 59px; height: 59px; flex-basis: 59px; }
  .wa-avatar-edit-trigger { right: -7px; bottom: -6px; }
  body.wa-store-v270 dialog.wa-avatar-dialog { padding: 20px 17px 16px; }
}

.wa-avatar-dialog-error { margin: 13px 0 0; padding: 9px 11px; border-radius: 6px; background: #fff3f3; color: #a32539; font-size: 12px; line-height: 1.45; }

/* Respect the existing global frame-curvature choice; the avatar/edit icon stays round. */
body.wa-store-v270.wa-shape-compact dialog.wa-avatar-dialog,
body.wa-store-v270.wa-shape-compact .wa-avatar-file-choice,
body.wa-store-v270.wa-shape-compact .wa-avatar-dialog-error { border-radius: 3px !important; }
