I don’t speak from experience but from an armchair internet internship (salt grains). ABS can be welded. Have heat gun, have readily available ABS welding sticks, have at it. Same for polystyrene.
As for the hinges that are part of the lid, I’d just buy a new lid.
Same with the hinge pins and latches. Readily available from parts dealers and direct from Festool.