/*
 * Banner de cookies (inc/consentimiento.php). Con el aspecto de la web: blanco, borde
 * negro de 1 px, sin redondeo y botones negros; «Aceptar» y «Rechazar» iguales (AEPD).
 * Tipografía y colores de texto, los del tema.
 */
.eco-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.eco-cookies[hidden] { display: none; }
.eco-cookies__caja {
  pointer-events: auto;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 28px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.eco-cookies__titulo { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; }
.eco-cookies__texto { margin: 0 0 16px; }
.eco-cookies__texto a { color: inherit; text-decoration: underline; }

.eco-cookies__opciones { display: grid; gap: 12px; margin: 0 0 18px; }
.eco-cookies__opciones[hidden] { display: none; }
.eco-cookies__opcion { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.eco-cookies__opcion input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #000; }
.eco-cookies__opcion input:disabled { cursor: default; }

.eco-cookies__botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.eco-cookies__boton {
  padding: 12px 22px;
  font: inherit;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.eco-cookies__boton--claro { background: #fff; color: #000; }
.eco-cookies__boton[hidden], .eco-cookies__enlace[hidden] { display: none; }
.eco-cookies__enlace {
  padding: 12px 4px;
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.eco-cookies__boton:focus-visible,
.eco-cookies__enlace:focus-visible,
.eco-cookies__reabrir:focus-visible,
.eco-cookies__opcion input:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.eco-cookies__reabrir {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.eco-cookies__reabrir[hidden] { display: none; }

@media (max-width: 600px) {
  .eco-cookies { left: 8px; right: 8px; bottom: 8px; }
  .eco-cookies__caja { padding: 18px; font-size: 14px; }
  .eco-cookies__botones { display: grid; grid-template-columns: 1fr 1fr; }
  .eco-cookies__enlace { grid-column: 1 / -1; justify-self: center; }
  .eco-cookies__boton--claro { grid-column: 1 / -1; }
}
