@media screen and (max-width: 500px) {
.flexed-form-wr :nth-child(1) { order: 1; }
.flexed-form-wr :nth-child(2) { order: 3; }
.flexed-form-wr :nth-child(3) { order: 2; }
.flexed-form-wr :nth-child(4) { order: 4; }
}
.flexed-from-wr is a with 4 children and is supposed to change the order of them on mobile. This is working properly but one of the children also has childrens and the same code is applied to them as well. Why is this happening and how can I prevent it?