/**
* 2007-2022 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2022 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background-color: #484848;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid #484848;
  text-align: center;
  z-index: 9999;
}

.cookie-banner button {
  background-color: #054b87;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid #054b87;
  border-radius: 4px;
  padding: 6px 20px;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #ffffff;
  color: #054b87;
  border: 2px solid #ffffff;
}
document.getElementById("accept-cookies").addEventListener("click", function() {
  setCookie("cookies-accepted", "true", 365);
  document.getElementById("cookie-banner").style.display = "none";
});

document.getElementById("refuse-cookies").addEventListener("click", function() {
  setCookie("cookies-accepted", "false", 365);
  document.getElementById("cookie-banner").style.display = "none";
});
