/* 
  COOKIE CONSENT SYSTEM - FOREST GREEN PREMIUM
  GDPR / LOPD-GDD Compliant
*/

#cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

#cookie-banner.hidden {
  display: none !important;
}

.cookie-content {
  pointer-events: auto;
  max-width: 1100px;
  width: 100%;
  background: rgba(20, 26, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text h3 {
  color: #a8e6cf;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: #a8e6cf;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  font-size: 0.9rem;
}

.cookie-accept {
  background: linear-gradient(135deg, #1b5e20, #43a047);
  color: white;
}

.cookie-reject {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* CUSTOMIZE MODAL */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal.hidden {
  display: none !important;
}

.modal-content {
  background: #0d110d;
  width: 100%;
  max-width: 500px;
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  color: #a8e6cf;
  margin-bottom: 2rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option label {
  font-weight: 600;
}

.cookie-option p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* SWITCH TOGGLE */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
}

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

input:checked + .slider {
  background-color: #2e7d32;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}
