The properties of the absorbing and line-emitting material in IGR J16318-4848