body.cookies-checked #cookie-banner {
  display: none;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Contenedor del modal */
.cookie-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
  max-height: 90vh;
  font-size:0.8em;
}

/* Mensaje y botones */
.cookie-message p {
  margin-bottom: 1em;
  font-size:0.9em;
}

.cookie-buttons {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons button {
  flex: 1 1 auto;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.cookie-buttons button:nth-child(1) { background: #ffc107; }
.cookie-buttons button:nth-child(2) { background: #6c757d; color: #fff; }
.cookie-buttons button:nth-child(3) { background: #f8d24f; }

/* Enlaces */
.cookie-links {
  margin-top: 1em;
  font-size: 0.9em;
}

.cookie-links a {
  margin-right: 15px;
  color: #007bff;
  text-decoration: underline;
}

/* Personalización */
.cookie-customize {
  margin-top: 1em;
}

.cookie-category {
  margin-bottom: 0.5em;
}

/* Oculto por defecto */
.hiddenn {
  display: none;
}

.always-active {
  float: right;
  color: green;
}

.cookie-category {
  margin-bottom: 1em;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-toggle-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9em;
  padding: 0;
}

.cookie-toggle-content {
  font-size: 0.8em;
  margin-top: 0.3em;
  line-height: 1.4em;
}

.cookie-toggle-content.hiddenn {
  display: none;
}

#edit-cookies-btn {
  position: fixed;
  bottom: -5px;
  right: 20px;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#edit-cookies-btn:hover {
  background-color: #0056b3;
}

/* Responsive en móviles */
@media (max-width: 480px) {
  .cookie-buttons {
    flex-direction: column;
  }
}