A peace officer may take or authorize a minor to be taken into custody and immediately delivered to an appropriate crisis stabilization unit, 23-hour crisis relief center, evaluation and treatment facility, secure withdrawal management and stabilization facility, approved substance use disorder treatment program, or the emergency department of a local hospital when he or she has reasonable cause to believe that such minor is suffering from a behavioral health disorder and presents an imminent likelihood of serious harm or is gravely disabled. Until July 1, 2026, a peace officer's delivery of a minor to a secure withdrawal management and stabilization facility or approved substance use disorder treatment program is subject to the availability of a secure withdrawal management and stabilization facility or approved substance use disorder treatment program with adequate space for the minor.