I applaud your new found boundaries. Have you considered getting some therapy for yourself to cope with your own grief?
The most challenging aspect of this for me was learning to give up my own illusion that I was responsible for my daughter's lousy choices and that I had the power to cure her.
Codependency for me is the disease of my own ego.
Learning to let go with love saved my own life.