.vuiAccountButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: $sizeM;
  border-radius: $sizeXs;
  border: 1px solid transparent;
  padding: $sizeXs $sizeM;
  width: 100%;
  max-width: 280px;

  &:hover,
  &.vuiAccountButton-isActive {
    border-color: var(--vui-color-medium-shade);
  }
}

.vuiAccountButton__primaryLabel,
.vuiAccountButton__secondaryLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vuiAccountButton__primaryLabel {
  font-size: $fontSizeStandard;
  color: var(--vui-color-full-shade);
  font-weight: $fontWeightBold;
}

.vuiAccountButton__secondaryLabel {
  margin-top: $sizeXxs;
  font-size: $fontSizeSmall;
  color: var(--vui-color-dark-shade);
}

.vuiAccountButton__labels {
  text-align: left;
  flex-shrink: 1;
  min-width: 0; /* Important for text truncation in flex containers */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vuiAccountButton__icon {
  flex-shrink: 0;
}
