.zpl-avatar {
  /* Default */
  @apply overflow-hidden inline-flex items-center;

  &-icon {
    /* Default */
    @apply inline-flex items-center text-black-40 bg-surface-soft rounded-circle border border-border-divider;
    @apply dark:bg-surface-dark-soft dark:border-border-dark-divider dark:text-white-40;

    &.small {
      @apply p-xs;
      svg {
        @apply h-sm w-sm;
      }
    }

    &.medium {
      @apply p-[10px];
      svg {
        @apply h-lg w-lg;
      }
    }

    &.large {
      @apply p-lg;
      svg {
        @apply h-xl w-xl;
      }
    }
    &.xlarge {
      @apply p-[28px];
      svg {
        @apply h-xl w-xl;
      }
    }
  }

  &-img {
    /* Default */
    @apply bg-no-repeat bg-center bg-cover overflow-hidden rounded-circle;

    &.small {
      @apply w-2xl h-2xl;
    }

    &.medium {
      @apply w-[40px] h-[40px];
    }

    &.large {
      @apply w-4xl h-4xl;
    }

    &.xlarge {
      @apply w-[80px] h-[80px];
    }
  }
  .zpl-avatar-border {
    @apply border-2 border-surface dark:border-surface-dark;
  }
}
