.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  max-width: 90%;
  z-index: 10000;
  font-family: "Roboto", sans-serif;
}

.cookie-popup-content {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
}

.cookie-section {
  margin: 15px 0;
  padding: 10px;
  border-radius: 6px;
  background: #f8f9fa;
}

.cookie-section h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.cookie-section p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666666;
}

/* Switch customizado */
.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;
  transition: .4s;
  border-radius: 24px;
  background-color: #dddddd;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ✅ COR QUANDO ATIVADO - Verde de sucesso */
input:checked + .slider {
  background-color: #28a745; /* Verde quando ativo */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Efeito hover no switch */
.switch:hover .slider {
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Estado focado para acessibilidade */
input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(31, 80, 154, 0.25);
}

/* Botões */
.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  flex: 1;
}

#accept-all {
  background: #1F509A;
  color: #ffffff;
}

#save-preferences {
  background: #0A3981;
  color: #ffffff;
}

.cookie-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#accept-all:hover {
  background: #0A3981;
}

#save-preferences:hover {
  background: #545b62;
}

/* Checkbox customizado para cookies necessários */
input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsivo */
@media (max-width: 768px) {
  .cookie-popup {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}