If I’m not mistaken, your code isn’t matching your output – I could be wrong!
In the first post, you had two SVG’s referenced but they’re not showing, only 1 is in the screenshot. Although the second SVG reference is missing in your latest code
In the last code snippet you supplied, you have a rogue closing span before the opening div
But I can’t see this in the output?