Representatives at COP27 in Egypt have been locked in negotiations for far longer than expected.