/**
 * 2007-2023 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    ITnes
 * @copyright 2007-2023 ITnes
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* Overlay - wyszarzenie tła strony */
.itnes-cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20000000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.itnes-cookie-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Styl dla modalu cookie */
.itnes-cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  z-index: 20000000001;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.itnes-cookie-description {
  font-size: 12px;
  margin: 10px 0 15px;
  color: #555;
  text-align: justify;
  line-height: 1.5;
}

.itnes-cookie-description p {
  margin-bottom: 10px;
}

.itnes-cookie-description p:last-child {
  margin-bottom: 0;
}

.itnes-cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.itnes-cookie-banner h3 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 600;
  color: #006bb7;
}

.itnes-cookie-banner p {
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  text-align: justify;
}

.itnes-cookie-banner-buttons,
.itnes-cookie-banner-buttons-preferences {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 10px;
}

.itnes-cookie-banner-buttons-preferences {
  display: none;
}

.itnes-cookie-banner-button {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;

  color: #fff;
  background-color: #2936cc;
  padding: 9px 20px;
  font-weight: 500;
  width: auto;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -khtml-border-radius: 5px;
  -moz-border-radius: 5px;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}


/* 
  float: left;
  font-size: 14px;
margin-top: 0px;
margin-top: 15px;
*/

.itnes-cookie-accept-all,
.itnes-cookie-save,
.itnes-cookie-accept-all-preferences {
  background-color: #006bb7;
  color: #fff;
}

.itnes-cookie-accept-all:hover,
.itnes-cookie-save:hover,
.itnes-cookie-back:hover,
.itnes-cookie-accept-all-preferences:hover {
  background-color: #005694;
}

.itnes-cookie-preferences, .itnes-cookie-back {
  background-color: #f5f5f5;
  color: #232323;
  border: 1px solid #ddd;
}

.itnes-cookie-preferences:hover,
.itnes-cookie-back:hover {
  background-color: #e8e8e8;
}

/* Kategorie cookie */
.itnes-cookie-categories {
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.itnes-cookie-category {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #006bb7;
}

.itnes-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.itnes-cookie-category-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #006bb7;
}

.itnes-cookie-category-description {
  font-size: 11px;
  margin-top: 8px;
  color: #555;
  text-align: justify;
}

.itnes-cookie-category-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.itnes-cookie-category-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.itnes-cookie-category-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 22px;
}

.itnes-cookie-category-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.itnes-cookie-category-slider {
  background-color: #006bb7;
}

input:checked+.itnes-cookie-category-slider:before {
  transform: translateX(22px);
}

/* Ikona cookie w lewym dolnym rogu */
.itnes-cookie-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #006bb7;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9997;
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.itnes-cookie-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.itnes-cookie-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Responsywność */
@media (max-width: 768px) {
  .itnes-cookie-banner {
    width: 95%;
    padding: 20px;
  }

  .itnes-cookie-banner-buttons {
    flex-direction: column;
  }

  .itnes-cookie-banner-button {
    width: 100%;
    margin-bottom: 10px;
  }
}