The deal follows a flurry of behind-the-scenes talks in the 24 hours since a court dismissed Srettha Thavisin as premier, as his Pheu Thai Party rushed to secure backing from its 11-party alliance in a bid to form the next government.