/*
 * 2.0.0-beta25: the signup box of the site's /acceso/ page (Front\AccesoWp::casilla) and the legal line of its
 * Login form. The page's own font; the red of a missing box carries its own colours (light and dark) so the theme
 * never leaves it unreadable. No library.
 * 2.0.0-beta26: one palette for every system theme. The red sets its own background and text, so it reads on a light
 * page and on a dark one; the dark variant followed the system, not the page, and drew a dark block on the site's
 * white card.
 */
.nx-acceso-casilla,
.nx-acceso-aviso-pagina {
  --nx-falta-fondo: #fdecea;
  --nx-falta-destello: #f8c9c4;
  --nx-falta-borde: #c62828;
  --nx-falta-texto: #8e1111;
}
/* Back from a refused signup without JS: the notice at the top of the page (acceso.js removes it). */
.nx-acceso-aviso-pagina {
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 2px solid var(--nx-falta-borde);
  border-radius: 8px;
  background-color: var(--nx-falta-fondo);
  color: var(--nx-falta-texto);
  font-size: .9375em;
  font-weight: 600;
  line-height: 1.45;
}
.nx-acceso-casilla {
  box-sizing: border-box;
  margin: 12px 0;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  text-align: left;
  line-height: 1.45;
}
/* 2.0.0-beta26: no gap between the box and its label: the label's own padding is the space, so a tap there ticks it. */
.nx-acceso-casilla .nx-acceso-fila {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 44px;
}
.nx-acceso-casilla input[type="checkbox"] {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  cursor: pointer;
}
.nx-acceso-casilla label {
  flex: 1 1 auto;
  align-self: stretch;
  display: block;
  margin: 0;
  padding: 0 0 0 10px;
  font-size: .9375em;
  cursor: pointer;
}
/* EA's `.eael-lr-form-wrapper input[type="checkbox"] + label` (0,2,2) puts a 4px margin back: a dead strip. */
.nx-acceso-casilla .nx-acceso-fila input[type="checkbox"] + label {
  margin: 0;
}
.nx-acceso-casilla label a {
  text-decoration: underline;
}
.nx-acceso-casilla .nx-acceso-msg {
  margin: 4px 0 0 34px;
  font-size: .875em;
  font-weight: 600;
}
.nx-acceso-casilla .nx-acceso-msg:empty {
  margin: 0;
}
.nx-acceso-casilla .nx-acceso-aviso {
  margin: 0 0 8px;
  font-size: .875em;
  font-weight: 600;
}
.nx-acceso-casilla.nx-falta {
  background-color: var(--nx-falta-fondo);
  border-color: var(--nx-falta-borde);
  color: var(--nx-falta-texto);
}
.nx-acceso-casilla.nx-falta label,
.nx-acceso-casilla.nx-falta label a,
.nx-acceso-casilla.nx-falta .nx-acceso-msg,
.nx-acceso-casilla.nx-falta .nx-acceso-aviso {
  color: var(--nx-falta-texto);
}
.nx-acceso-casilla.nx-falta input[type="checkbox"] {
  outline: 2px solid var(--nx-falta-borde);
  outline-offset: 2px;
  accent-color: var(--nx-falta-borde);
}
@keyframes nx-parpadeo {
  0%, 100% { background-color: var(--nx-falta-fondo); }
  50% { background-color: var(--nx-falta-destello); }
}
.nx-acceso-casilla.nx-falta.nx-parpadeo {
  animation: nx-parpadeo .45s ease-in-out 3;
}
@media (prefers-reduced-motion: reduce) {
  .nx-acceso-casilla.nx-falta.nx-parpadeo {
    animation: none;
  }
}
/* The cover over the Google button while the box is unticked (acceso.js): a tap blinks the box instead. */
.nx-velo-padre {
  position: relative;
}
.nx-velo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
/* The theme's own button:hover/:focus (Astra: a solid fill, border and shadow) never paints the cover. */
button.nx-velo.nx-velo,
button.nx-velo.nx-velo:hover,
button.nx-velo.nx-velo:focus,
button.nx-velo.nx-velo:active,
button.nx-velo.nx-velo:focus-visible {
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  color: inherit;
}
.nx-velo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* Padding, not margin: the page's own `#nx p { margin: 0 }` beats a class here, and the line sat glued to the one above. */
.nx-acceso-legal {
  margin: 0;
  padding: 10px 0 0;
  font-size: .875em;
  text-align: center;
  opacity: .85;
}
/* !important: the page's own `#nx a` (an ID) takes the underline away, and these two must read as links. */
.nx-acceso-legal a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
