UPDATE: 2023-11-21 20:14 I have just enhanced this model to have a better hinging mechanism. It is stronger, and easier to assemble.
Here is the flat lid attachment for my office trash can (model Decorative Office Trash Can).
Note that there is also a swing lid available at https://makerworld.com/en/models/45467#profileId-47202
This print has a lot of overhanging areas, and I really suggest printing it with the Bambu Support for PLA to allow for clean and easy removal. All of the support is on the bottom half of the print that cannot be seen, and therefore the quality does not have much impact.
NOTE: Be sure to remove the support material from both the inside and outside of the underside. A small knife will help to separate it and clean up the surfaces. I have set the print profile to use ‘snug’ supports that will come away in large chunks.