Hello,
Yes, they are hard-coded in the web part code file. Please try to
clone your CSS List Menu web part and change the CMSListMenu control ID in the
~\CMSWebParts\Navigation\cmslistmenu.ascx file of the cloned web part. This will enforce changing the ID also in the final HTML layout.
Best regards
Ondrej Vasil