What is my job in the first two minutes?
Close the supply valve at the base of the toilet, or lift the float in the tank if the valve is stuck. Then keep people and pets out of the room and lift towels, bath mats and anything on the floor out of the water.
That valve is the whole of it, and it is worth knowing where it is before you ever need it. It is usually a small oval or round handle on a pipe coming out of the wall near the floor, behind or beside the bowl, and it closes clockwise. If it is stiff, do not force it to the point of snapping it; take the tank lid off instead and hold the float up, which stops the fill as effectively.
The rest of your part is restraint. Do not reach into contaminated water to retrieve things, do not mop it with household towels you intend to keep, and do not flush again to see if it clears. One more flush onto a blocked line is how a bathroom floor becomes a ceiling repair downstairs.
Was the water clean? Why does that change everything?
Because it decides whether material is dried or removed. Clear water from the tank side lets most of the floor be saved. Water that came up out of the bowl carrying waste means porous material in the affected area comes out.
A porous material that has taken contaminated water cannot be restored by drying it, because drying addresses only the moisture. The contamination stays in the material, and in a bathroom the materials in question are the ones that get walked on barefoot. That is why the removal decision is made on what the water carried rather than on how wet something is.
It is also why the question gets asked so early on the phone. The two versions need different equipment, a different scope and a different conversation about what is being thrown away, and starting a contaminated job as if it were a clean one wastes the first hour. If you genuinely do not know which it was, say so and it will be treated as the worse case.
What decides what this costs?
Whether the water was contaminated, how far it traveled out of the bathroom, whether anything below is involved, and how much material has to be removed rather than dried. No figure appears here, and the scope is explained and approved before work starts.
A small clean overflow contained to a tiled bathroom floor is the short end of this work. It grows when water leaves the room, because a hallway carpet, a doorway threshold and the bottom of a wall are each more material to handle, and it grows again when the bathroom is over a finished space, since the ceiling below becomes its own assessment with its own drying.
Material removal is the other half. Taking out wet underlayment, a strip of drywall behind the baseboard or a run of flooring is work in itself, and it carries the replacement afterward. That is a real cost and it is usually the right decision anyway, because the alternative on a contaminated job is a bathroom that was dried and never actually cleaned.
Can the bathroom floor be saved?
Tile and sealed hard surfaces usually survive a clean overflow and often a contaminated one, since they can be cleaned. What sits underneath them is the question, and sheet goods, underlayment and particleboard-cored products usually do not survive.
The covering and what is under it behave differently. A glazed tile or a sealed sheet surface can be cleaned down and is non-porous in itself. The underlayment beneath, often a wood-based sheet, absorbs water and swells, and with contaminated water it cannot be cleaned where it matters. A floor that looks perfect can be sitting on a layer that has already failed.
The clue is often the sound and the feel rather than the look. A spot that gives slightly underfoot, a tile that sounds hollow when tapped or a sheet edge that has lifted means the layer below has moved. Readings taken through a small access point tell you whether the subfloor itself is wet, which is what decides whether this is a covering job or a floor job.
Who clears the blockage, and when?
A plumber, and before any new material goes back in. Clearing the line is not part of the cleanup and the cleanup cannot substitute for it. Rebuilding over an uncleared blockage simply schedules the next overflow.
It is worth being blunt about the sequence, because the pressure is always to get the bathroom finished. Drying can run while the plumbing is being sorted out, and the two do not conflict. What should not happen is new flooring and new drywall going in on the promise that someone will look at the line afterward.
The useful thing a cleanup provides here is a description: where the water appeared, how much there was, whether any other fixture gurgled or backed up at the same time, and whether this has happened before. More than one fixture involved points at the line rather than the toilet, and that is exactly what a plumber wants to hear first.