Custom shader - x-ray + shadows + double sided

Hi,
I am struggling with custom shader, especialy tags and blend modes.
I have built a shader with x-ray feature so rendering can be cut off at the certain height in world space.

The example that I was using to create that used tags Transparent, which does not support shadows.
What tags and blend modes I need to use in order to get x-ray feature, where rendering can be cutout at certain height, double sided mesh rendering, shadows and lighting?

How many passes I should use to achieve that?

Currently everything works, except render queue. I used tags in SubShader{
Tags{ “Queue” = “AlphaTest+1” “RenderType” = “TransparentCutout” “IgnoreProjection” = “true”}

However, I cannot see the same shader trough front or back faces of meshes. Therefore, I added ZWrite Off in each pass which leads all meshes to draw on top of each other without good order.

What is the method to specify correct order to draw pixels?