Show me a Magisterial text that says a non-bishop (and therefore a woman?) cannot be elected Pope

?
That may cause speed wobbles for your logic…at least as stated.
The office of Pope is the office of Bishop of Rome. The two are the same.
To become a bishop requires ordination.
Anyone who knowingly attempts the ordination of a woman is excommunicated,
latae sententiae.
Therefore, anyone who
tried to do this would be automatically excommunicated.
The would-be female Bishop of Rome and those who tried to install her would be excommunicated by their attempt.
Therefore, it cannot happen. It could be
pretended, but it could not actually
happen. C’est impossible.
What would the pretenders call this woman? Oh, who knows. They’re in la-la land, so they might come up with anything. They might occupy the Vatican, they might charm the Associated Press, but they (whoever “they” would be, since it might only be the woman herself and those who knew her identity) cannot do it. Not may not, but cannot. If the attempt were made secretly, when it was found out it would simply be that the Church had been without a Pope for the duration of the charade and whatever the woman had done while pretending that office would be null.
Oh, yeah, the document: Ordinatio Sacerdotalis “On Reserving Priestly Ordination to Men Alone.”
https://w2.vatican.va/content/john-...p-ii_apl_19940522_ordinatio-sacerdotalis.html