/* Mask personal account values without altering live data or transaction inputs. */
.funds-privacy-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.funds-privacy-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.funds-privacy-toggle [hidden] {
  display: none;
}
[data-private-money] {
  position: relative;
}
body[data-funds-hidden='true'] [data-private-money] {
  visibility: hidden !important;
  user-select: none;
}
body[data-funds-hidden='true'] [data-private-money]::after {
  content: '****';
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
  font-size: 14px;
  line-height: inherit;
  letter-spacing: 3px;
}
.mx-identity .funds-privacy-toggle {
  margin-left: auto;
  padding: 4px;
  background: transparent;
  border: 0;
}

/* Native collapsed details must not paint a mask outside their hidden content. */
body[data-funds-hidden='true'] details:not([open]) > :not(summary) [data-private-money]::after,
body[data-funds-hidden='true'] [hidden] [data-private-money]::after {
  content: none;
}
