/**
 * UserFooter 底部用户信息组件样式
 */
.user-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;

  &--store {
    justify-content: space-between;
    gap: 16px;
  }

  /* 店铺选择页的登录账号信息 */
  &__account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
  }

  &__account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f6f8;
    color: #667085;
    font-size: 22px;
  }

  &__account-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
    min-width: 0;
  }

  &__account-label {
    font-size: 13px;
    line-height: 18px;
    color: #667085;
  }

  &__account-email {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__change-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d9dce1;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease,
      background 0.2s ease;

    &:hover {
      border-color: #f04a28;
      color: #f04a28;
    }

    &:active {
      background: #fff4f1;
    }

    &:focus-visible {
      outline: 2px solid rgba(240, 74, 40, 0.25);
      outline-offset: 2px;
    }
  }

  /* 用户/店铺信息块 */
  &__user,
  &__store {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    max-width: 50%;
  }

  /* 头像 */
  &__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  /* 信息区域 */
  &__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  /* 名称 */
  &__name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 操作链接 */
  &__action {
    font-size: 13px;
    font-weight: 400;
    color: #F04A28;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;

    &:hover {
      color: #d63d1f;
      text-decoration: underline;
    }
  }
}
