/* Cookie Banner */
#cookie-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  color: #fff;
  padding: 20px 15px;
  text-align: center;
  z-index: 1000;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  display: none;
  margin: 0 auto;
  max-width: 1920px;
  transform: translateY(100%);
  animation: slideIn 1s ease-out forwards;
  flex-direction: column;
}



#cookie-banner p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  color: #000;
  line-height: 1.5;
}

#cookie-banner p a {
  font-size: 14px;
  color: inherit;
  line-height: 1.5;
  transition: 0.3s all ease-in-out;
}

#cookie-banner p a:hover {
  opacity: 0.5;
  color: #000;
}

.btn-cookies-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding-top: 20px;
  flex-direction: column;

  
}

/* @media screen and (min-width: 992px) {
  .btn-cookies-container {
 
    padding-top: 0;
    flex-direction: row;
  }
} */

.btn-cookies-container a.manage-cookies {
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s all ease-in-out;
  font-weight: bold;
  opacity: 0.7;
  color: #000;
  margin: 0 18px;
  white-space: nowrap;
}

.btn-cookies-container a.manage-cookies:hover {
  opacity: 0.5;
  color: #000;
}

.btn-cookies-container button {
  padding: 10px 35px;
  background-color: #406c8f;
  color: white;
  border: none;
  cursor: pointer;
  height: 50px;
  font-size: 14px;
  transition: 0.3s all ease-in-out;
  width: 100%;
}




.btn-cookies-container button:hover {
  opacity: 0.7;
}

button#reject-cookies {
  background-color: transparent;
  border: 2px solid #406c8f;
  color: #406c8f;
}

@keyframes slideIn {
  0% {
    bottom: -100px;
    transform: translateY(100%);
  }
  100% {
    bottom: 0;
    transform: translateY(0);
  }
}

/* Modal */
.cookie-preferences-modal {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 845px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-content h2 {
  text-align: center;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 20px;
  border-bottom: 1px solid #ededed;
}

.modal-scrollable-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  max-height: calc(80vh - 60px);
  margin-top: 20px;
}

.modal-content h3 {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 20px;
  font-size: 16px;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 0;
  background-color: #406c8f;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.modal-content button:hover {
  opacity: 0.8;
}

.modal-content .close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
}

.modal-content .close:hover,
.modal-content .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.cookie-preferences-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  flex-direction: column;
}

.cookie-preferences-btn button {
  padding: 10px 20px;
}

/* Accordion */
.cookie-accordion {
  margin-top: 20px;
  max-height: 400px;
}

.cookie-accordion-item {
  border-bottom: 1px solid #ebebeb;
}

.cookie-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  background-color: #fff;
}

.cookie-accordion-btn {
  font-size: 16px;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  color: #212121 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.chevron-icon {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.cookie-always-active {
  font-size: 12px;
  color: #008000;
  margin-left: 10px;
}

.cookie-accordion-des p {
  background-color: #fff;
  margin: 0;
  padding: 0 10px 15px;
}

.cookie-accordion-body {
  display: none;
  padding: 10px;
  background-color: #f4f4f4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  width: 95%;
  margin: 0px auto 20px;
}

.cookie-accordion-body p {
  display: flex;
}

.cookie-accordion-item.active {
  background-color: #fff;
}

.cookie-accordion-item.active .cookie-accordion-body {
  display: block;
  max-height: 200px;
}

.cookie-accordion-item.active .cookie-accordion-btn .chevron-icon {
  transform: rotate(180deg);
}

/* Settings Button */
.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #406c8f;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 25px;
  cursor: pointer;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  display: none;
}

.cookie-settings-btn:hover {
  opacity: 0.7;
}

.cookie-settings-btn .icon-container {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.cookie-settings-btn .icon-container img {
  width: 100%;
}

/* Toggle */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.cookie-toggle input {
  width: 40px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: #ccc;
  outline: none;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-toggle input:checked {
  background: #4CAF50;
}

.cookie-toggle input::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 1px;
  left: 1px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked::before {
  transform: translateX(20px);
}

/* Mobile */

@media (min-width: 992px) {
  #cookie-banner {
    flex-direction: row;
    padding: 20px 25px;
  }

  #cookie-banner p {
    padding-right: 30px;
  }

  .cookie-preferences-modal {
    padding: 20px;
  }

  .modal-content {
    width: 80%;
    max-height: 80vh;
  }

  .modal-content button {
    padding: 10px 20px;
  }

  .cookie-preferences-btn {
    flex-direction: row;
    gap: 20px;
  }

  .cookie-accordion {
    padding-right: 10px;
  }

  .cookie-accordion-item .cookie-accordion-header {
    padding: 10px;
  }

  .cookie-accordion-item .cookie-accordion-des p {
    padding: 0 30px 15px;
  }

  .btn-cookies-container {
    padding-top: 0;
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .btn-cookies-container button {
    width: auto;
  }
}