It depends on the deck and the carton. Calculate both orientations, then the layers.
Yes. When product weight exceeds the maximum, the calculator keeps only the cartons that fit.
The last pallet when the quantity is not an exact multiple of boxes per pallet.