Theresa May is to warn the EU not to demand the "unacceptable" in negotiations over Northern Ireland's borders.

The prime minister will set out her case to other European leaders at a summit in Salzburg later.

It comes after EU negotiator Michel Barnier suggested a shift in tone on his controversial "backstop" plan to avoid a hard border.

"We are ready to improve this proposal," he said.

Another key EU figure, European Council President Donald Tusk, said the UK's plans for the Irish border "will need to be reworked".

The UK and EU both want to avoid a hard border - meaning any physical infrastructure like cameras or guard posts - but can't agree on how.

Mrs May has previously rejected the EU's "backstop" plan - which involves keeping Northern Ireland aligned with its trading rules - saying it would divide up the UK.

Ahead of the Salzburg summit, Mr Barnier said most checks could take place away from border areas.

But this was rejected by Northern Ireland's Democratic Unionist Party which said it "still means a border down the Irish Sea although with different kinds of checks".

Why is the Irish border an issue?
After Brexit, the 310 mile border between Northern Ireland and the Republic of Ireland will become the UK's border with the EU.

At the moment, thousands of people cross it every day for both work and pleasure - as do goods, like food and medicines, being delivered across the two countries.

As part of the EU single market and customs union, these products do not need to be checked for customs and standards, but when the UK leaves these two arrangements, this all changes.

Nobody wants a hard border for the checks - in fact the 1998 Good Friday agreement, which helped bring peace to Northern Ireland, got rid of security checks as part of the deal, and police in Northern Ireland have warned reinstating them could make crossings targets for violence.

But there is no agreement between the UK and EU, or between Leavers and Remainers, about the answer.

Privately, EU officials say those checks could be carried out by British or EU officials, or by health inspectors rather than customs officials, to "de-dramatise" the border issue.

Mrs May has insisted there needs to be "friction-free movement of goods", with no customs or regulatory checks, between Northern Ireland and the Republic, in order to avoid a hard border there.

Six months to go
There are just over six months to go before the UK is due to leave the EU on 29 March 2019.

Negotiations are at a critical stage, with both sides hoping for an agreement on the terms of the UK's withdrawal and future trade relations by the start of November at the latest.

Speaking on Tuesday, Mr Barnier said the talks were in the "home straight" but there were still significant areas of disagreement - such as on the role of the European Court of Justice in enforcing the withdrawal agreement and intellectual property issues, including geographical protections for food and drink.

"October is the key point in time - it is the moment of truth," he added.

Has the EU shifted position on Ireland?
That remains to be seen although the tone certainly seems to have changed.

The BBC's Europe Editor, Katya Adler, said Mr Barnier's comments could be interpreted as a "concerted effort" by EU leaders to try and help Mrs May ahead of Wednesday's talks, but they will still not be "compromising their principles or red lines".

The EU is still insisting on its own "legally operationally backstop" - what it describes as an insurance policy to prevent the return of physical infrastructure on the border in the event no other solution can be found.

Brussels put forward a proposal in February that would see Northern Ireland stay aligned with the EU in key areas, effectively staying in the customs union and single market and not needing those border checks.

But the UK insisted this was unacceptable as it would split Northern Ireland off from the rest of the UK.

On Tuesday Mr Barnier said the backstop should focus on a "set of technical checks and controls" to make sure standards are met and customs are paid, and not be about a sea or land border.

"We are ready to improve this proposal," he said.

"Work on the EU side is ongoing. We are clarifying which goods arriving in Northern Ireland from the rest of the UK would need to be checked and where, when and by whom these checks could be performed.

"We can also clarify that most checks can take place away from the border at a company premises or at the markets."

BBC Northern Ireland business editor John Campbell said that the fact the EU was prepared to "improve" the language of the backstop was not news as it had been talked about before - so "we need to wait and see what any improvements might amount to".

Speaking in Salzburg, Mr Tusk confirmed a special EU summit dedicated to Brexit would take place in mid-November.

He welcomed some elements of the Chequers proposals - on security and policing - but said that on the Irish border and economic cooperation they will need to be "reworked and further negotiated".

The UK response
In Salzburg later, Mrs May is expected to appeal for "goodwill and determination" from the EU, while stressing that "no other country" could accept the EU's backstop plan if they were in the same situation.

The UK put forward rival backstop proposals in June, which would see the whole of the UK staying in a customs union with the EU after the end of the proposed Brexit transition period in December 2020.

It also says its Chequers blueprint for a future trading relationship - involving a "common rulebook" for goods and treating the UK and the EU as a "combined customs territory" - would provide the solution to the border question.

Former Brexit secretary David Davis said the EU was shifting its position by accepting checks could take place away from the border.

Mr Davis, who resigned in protest at the Chequers plan, told the Today programme he did not "expect much" from the Salzburg summit, predicting it would be November - and with the threat of no deal looming - before the EU shifted its position.

He said the EU's "standard approach" to negotiations was to "pocket everything" and give ground at the last minute, "after they've tested your mettle".

The DUP's Nigel Dodds said: "So Michel Barnier says he can do different kinds of checks between Northern Ireland and the rest of the UK as if that makes it more palatable.

"The fundamental point is that internal UK checks are only needed if it is intended to separate Northern Ireland from Great Britain."

Labour MP Owen Smith, from the pro-EU Best for Britain campaign, said: "The DUP look to have sunk Barnier's improved offer on Northern Ireland before he has even floated it."

New referendum 'would destroy trust'
In an interview with the Daily Express, Mrs May said that going back on the 2016 vote to leave the EU would "destroy trust in politicians".

MPs had decided to give people a vote on EU membership by a large margin, she said: "People weren't saying it's the choice of the public except if we disagree with the answer we'll ask them again."

The People's Vote campaign wants the final terms of Brexit to be put to a referendum with the option of staying in the EU if it is rejected.

"My answer to the People's Vote is that we've had the people's vote - it was the referendum - and now we should deliver on it," the prime minister said.

On Tuesday People's Vote set out ways they said a new referendum could be achieved through votes in Parliament.