/**
 * @file
 * Human verification widget in protected forms.
 *
 * Takes no space until the slider panel, the retry text or the error is
 * shown.
 */

.notabot-widget__panel {
  margin-block: 1em;
}

.notabot-widget__panel .slider {
  margin: 0.75em 0 0;
}

.notabot-widget__heading,
.notabot-widget__description {
  margin-block: 0 0.25em;
}

.notabot-widget__retry,
.notabot-widget__error {
  margin-block: 0.5em;
  /* #b00020 on white: contrast 7.4:1 (WCAG AA). */
  color: #b00020;
}

.notabot-widget__retry[hidden],
.notabot-widget__error[hidden],
.notabot-widget__panel[hidden] {
  display: none;
}

/*
 * Submit buttons stay disabled until the check has passed. "form" lifts the
 * specificity above theme rules such as ".button--primary:disabled".
 */
form [data-notabot-submit]:disabled {
  cursor: not-allowed;
}
