#cookie-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
  display: none;
  max-height: 70%;
  overflow: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #333;
}

#cookie-modal p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.5;
}

#cookie-modal .buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#cookie-modal .buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#cookie-modal .accept-all {
  background: #007bff;
  color: white;
}

#cookie-modal .accept-all:hover {
  background: #0056b3;
}

#cookie-modal .only-essential {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

#cookie-modal .only-essential:hover {
  background: #e2e6ea;
}

#cookie-modal .customize {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

#cookie-modal .customize:hover {
  background: #e2e6ea;
}

#cookie-modal .categories {
  display: none;
}

#cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

#cookie-modal .category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#cookie-modal .category label {
  font-size: 1rem;
  color: #333;
  flex: 1;
  cursor: pointer;
}

#cookie-modal .category .toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

#cookie-modal .category .toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 2;
}

#cookie-modal .category .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
  z-index: 1;
}

#cookie-modal .category .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

#cookie-modal .category input:checked + .slider {
  background-color: #007bff;
}

#cookie-modal .category input:checked + .slider:before {
  transform: translateX(20px);
}

#cookie-modal .category .essential .toggle {
  pointer-events: none;
  opacity: 0.7;
}

#cookie-modal .category .essential .toggle input {
  cursor: default;
}

#cookie-modal .save {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
}

#cookie-modal .save:hover {
  background: #218838;
}

@media (max-width: 600px) {
  #cookie-modal {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }

  #cookie-modal .buttons {
    flex-direction: column;
    gap: 8px;
  }

  #cookie-modal .buttons button {
    width: 100%;
  }
  
  #cookie-modal .buttons {
	  flex-direction: column-reverse;
  }
}