Popup Cookie WordPress select language and section (Elementor)

First of all you need to create a modal pop up with these parameters.
after that you can use cookie js.

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/src/js.cookie.min.js"></script>

Remember that you need to include jquery before loading this js.
For further details you can refer to https://github.com/js-cookie/js-cookie

After including above js and Jquery in your code. You can directly use Cookies.set('foo', 'bar') to set a cookie with name foo and can access it by Cookies.get('foo')

Now it depends on you how you use it in your program.