/*
 * utpowcaptcha. The widget markup and base styles come from the captcha server (captcha.css,
 * loaded after this file); the rules below are more specific, so they win without !important.
 * captcha.js keeps .sqr-captcha hidden until the visitor starts filling in the form, then shows
 * it with an inline display:inline-block. Here it becomes a compact toast in the bottom-right
 * corner (the cookie banner lives bottom-left); front.js fades it out 5 s after the work is done.
 */
.utpow-captcha {
  margin: 0 0 1rem;
}
.utpow-captcha__status {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: #7a7a7a;
}
.utpow-captcha__status:empty {
  display: none;
}

/* Toast */
.utpow-captcha__widget .sqr-captcha {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1060;
  box-sizing: border-box;
  width: 17.5rem;
  max-width: calc(100vw - 2rem);
  min-width: 0;
  margin: 0;
  padding: .6rem .75rem .65rem;
  font-size: 12px;
  line-height: 1.35;
  color: #414141;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
  transition: opacity .4s ease, transform .4s ease;
  /* Purely informational, and it can sit over a form's submit button (registration): let
     clicks through. */
  pointer-events: none;
}
/* No logo/heading link and no hash readout. */
.utpow-captcha__widget .sqr-captcha-link,
.utpow-captcha__widget .sqr-captcha-best-hash {
  display: none;
}
/* Small status icon (gears, then a checkmark) on the left of the text. */
.utpow-captcha__widget .sqr-captcha-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.utpow-captcha__widget .sqr-captcha-icon-container {
  order: -1;
  flex: none;
  margin: 0;
}
.utpow-captcha__widget .sqr-captcha-icon {
  height: 26px;
}
/* Two lines: the status sentence only, not the server's "This an accessible & privacy-respecting…" line. */
.utpow-captcha__widget .sqr-captcha-description {
  margin: 0;
  font-size: 12px;
  max-height: 2.7em;   /* 2 × line-height 1.35 */
  overflow: hidden;
}
.utpow-captcha__widget .sqr-captcha-description a {
  color: inherit;
  text-decoration: underline;
}
/* Thin progress bar. */
.utpow-captcha__widget .sqr-captcha-progress-bar-container {
  height: 3px;
  margin-top: .5rem;
  background: #ececec;
  border: 0;
  border-radius: 3px;
}
.utpow-captcha__widget .sqr-captcha-progress-bar {
  height: 3px;
  background: #24b9d7;
  border-radius: 3px;
}
/* Done: front.js adds this a moment after the checkmark appears. */
.utpow-captcha--dismissed .utpow-captcha__widget .sqr-captcha {
  opacity: 0;
  transform: translateY(.75rem);
  pointer-events: none;
}

/* Phones: keep clear of the cookie button in the bottom-left corner. */
@media (max-width: 480px) {
  .utpow-captcha__widget .sqr-captcha {
    width: auto;
    left: 4.5rem;
    right: .75rem;
    bottom: .75rem;
  }
}
