/* Estilo general del modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #000000;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.cookie-modal h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
}

.cookie-description {
  font-size: 0.95em;
  line-height: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.cookie-links {
  font-size: 0.85em;
  margin-bottom: 20px;
}

.cookie-links a {
  color: #000000;
  text-decoration: none;
  margin: 0 4px;
}

.cookie-links a:hover {
  text-decoration: underline;
}

.cookie-categories {
  margin-bottom: 20px;
}

.category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.always-active {
  font-size: 0.85em;
  color: #888;
}

.category label,
.category span {
  color: #000000;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  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: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

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

input:checked + .slider {
  background-color: #4CAF50;
}

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

/* Botones */
.cookie-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cookie-actions button {
  flex: 1;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-actions .deny {
  background-color: #000000;
  color: white;
}

.cookie-actions .accept {
  background-color: #000000;
  color: white;
}
.cookie-extra-message {
  font-size: 0.85em;
  margin-top: 5px;
  color: #444;
  line-height: 1.4em;
}
.cookie-extra-message strong {
  display: block;
  margin-bottom: 4px;
}
.reject-button {
  margin-top: 8px;
  background-color: #000000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.85em;
  cursor: pointer;
  display: block;
}
.reject-button:hover {
  background-color: #222222;
}
.category-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}



@media (max-width: 480px) {
  .cookie-modal {
    padding: 20px;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
