/* Banner y modal sin estilos inline */

#cookie-banner[hidden],
#cookies-modal[hidden] {
  display: none !important;
}

/* Versión móvil */
@media screen and (max-width: 700px) {
  #cookie-banner {
    width: 100% !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
  #cookies-modal .cookies-modal__dialog {
    width: 90% !important;
  }
}

/* Banner principal */
#cookie-banner {
  justify-content: center;
  position: fixed;
  bottom: 0;
  right: 25%;
  width: 50%;
  background-color: #fff;
  padding: 20px;
  border-top: 3px solid #E49C4E;
  z-index: 9999;
  box-shadow: -80px -80px 80px 80px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  color: #000;
  text-align: center;
  border-radius: 20px;
}

#cookie-banner p {
  margin: 0 0 10px 0;
  font-size: 16px;
}

#cookie-banner .cookie-banner__title {
  font-size: 1.5em;
  text-align: center;
}

#cookie-banner .cookie-banner__text {
  text-align: justify;
}

#cookie-banner .cookie-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#cookie-banner button {
  background-color: rgb(13 27 187);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

#cookie-banner button:hover {
  background-color: rgb(13 27 187);
}

#cookie-banner .btn-secondary {
  background-color: #ccc !important;
  color: #000 !important;
}

#cookie-banner a {
  color: rgb(13 27 187);
  font-size: 14px;
}

#cookie-banner .cookie-banner__links {
  margin-top: 10px;
}

/* Modal */
#cookies-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

#cookies-modal .cookies-modal__dialog {
  background: #fff;
  padding: 25px;
  border: 2px solid #E49C4E;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  margin-top: 10vh;
}

#cookies-modal h4 {
  margin-top: 0;
  color: #E49C4E;
}

#cookies-modal label {
  display: block;
  margin: 8px 0;
  font-size: 15px;
}

#cookies-modal .cookies-modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookies-modal button {
  background-color: rgb(13 27 187);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

#cookies-modal button:hover {
  background-color: #e2c15c;
}