/*
 * MCMC cancer screening quiz: styles for the Hileman Bluebook embed (#app) and the
 * whole quiz dialog on the campaign page (demo.html): the modal/drawer itself,
 * backdrop, scroll lock, header, body, footer and spinner. Needs only the app's
 * color, spacing and font tokens.
 *
 * The engine appends its own stylesheet inside #app after this file and scopes
 * it as `.bb-app-root â€¦`, so rules here are scoped `.quiz .bb-app-root â€¦` to win
 * on specificity instead of !important.
 */

/* ---- Settings ------------------------------------------------------------
   Every adjustable value lives here. .quiz is on the dialog itself on the
   campaign page, so everything below inherits these. */
.quiz {
  /* Dialog layout */
  --quiz-dialog-max-width: 880px;
  --quiz-dialog-max-height: 800px;
  --quiz-dialog-viewport-gap: 64px;
  --quiz-dialog-radius: 8px;
  --quiz-dialog-bg: var(--color-primary-c1);
  --quiz-dialog-color: #1d2328;
  --quiz-dialog-backdrop: rgb(0 0 0 / 0.65);
  --quiz-drawer-duration: 0.35s;
  --quiz-dialog-padding: clamp(var(--spacing-6), 4vw, 3rem);
  --quiz-close-size: 48px;
  --quiz-header-padding-top: var(--spacing-3);
  --quiz-header-padding-bottom: var(--spacing-3);
  --quiz-header-padding-left: var(--quiz-dialog-padding);
  --quiz-header-padding-right: var(--spacing-3);
  --quiz-header-height: calc(
    var(--quiz-close-size) + var(--quiz-header-padding-top) + var(--quiz-header-padding-bottom)
  );
  --quiz-header-bg: rgb(255 255 255 / 0.35);
  --quiz-header-blur: 5px;
  --quiz-disclaimer-size: 0.8rem;
  --quiz-disclaimer-gap: var(--spacing-3);

  /* Colors */
  --quiz-text: var(--color-secondary-a2);
  --quiz-ink: var(--color-secondary-a1);
  --quiz-surface: var(--color-primary-c1);
  --quiz-accent: var(--color-primary-b1);
  --quiz-accent-soft: var(--color-secondary-b1);
  --quiz-selected-border: var(--color-primary-a3);
  --quiz-selected-bg: var(--color-system-a2);
  --quiz-error: var(--color-system-b2);
  --quiz-input-border: var(--color-secondary-a4);
  --quiz-radio-border: var(--color-secondary-a4);

  /* Typography */
  --quiz-font: var(--font-sharp-sans-semibold), Helvetica, Arial, sans-serif;
  --quiz-heading-size: 1.75rem;
  --quiz-counter-size: clamp(1.375rem, 3.5vw, 1.625rem);
  --quiz-prompt-size: clamp(1.125rem, 3.125vw, 1.25rem);
  --quiz-small-size: 0.875rem;

  /* Controls */
  --quiz-gap: 1.25rem;
  --quiz-form-gap: var(--spacing-5);
  --quiz-step-gap: var(--spacing-6);
  --quiz-radius: 0.25rem;
  --quiz-input-height: 3.125rem;
  --quiz-radio-size: 3rem;
  --quiz-button-radius: 0.3125rem;
  --quiz-button-padding: var(--spacing-3) var(--spacing-size-medium);
  --quiz-button-min-width: 9.875rem;
  --quiz-button-justify: flex-start;
  --quiz-fade-duration: 0.2s;

  /* Header progress bar (height grows at the desktop breakpoint below) */
  --quiz-progress-height: 12px;
  --quiz-progress-gap: var(--spacing-3);
  --quiz-progress-radius: 0;
  --quiz-progress-track: var(--color-primary-c1);
  /* Stops: the yellow of the bswhealth.com hero path (.path-fill, primary-b1) plus
     the "BSW Red/Blue/Purple" banner background droplist colors. */
  --quiz-progress-stop-1: var(--color-bsw-red);
  --quiz-progress-stop-2: var(--color-bsw-purple);
  --quiz-progress-stop-3: var(--color-bsw-blue);
  --quiz-progress-stop-4: var(--color-bsw-green);

  --quiz-progress-duration: 0.4s;

  /* No-content spinner: copy of the engine's ng-http-loader "sk-wave"
     (quiz loading, or thank-you page loading) */
  --quiz-spinner-backdrop: #f1f1f1;
  --quiz-spinner-opacity: 0.7;
  --quiz-spinner-color: #333;
  --quiz-spinner-width: 50px;
  --quiz-spinner-height: 40px;
  --quiz-spinner-bar-width: 6px;
  --quiz-spinner-bar-gap: 1px;
  --quiz-spinner-duration: 1.2s;
  --quiz-spinner-duration-reduced: 2.4s;

  /* Layering: header above the field error tooltips, below the engine's loader (9999) */
  --quiz-tooltip-z: 500;
  --quiz-header-z: calc(var(--quiz-tooltip-z) + 1);
  /* No-content spinner overlay: over the quiz, under the header so close still works */
  --quiz-spinner-z: var(--quiz-tooltip-z);

  /* Progress counter values (overwritten inline by the progress script) */
  --bb-current-step-num: calc(var(--bb-current-q-step) + 1);
  --bb-total-steps-num: var(--bb-total-q-steps);
  counter-reset: quiz-total var(--bb-total-steps-num);
}

@media (max-width: 639.98px) {
  .quiz {
    --quiz-button-justify: center;
  }
}

@media (min-width: 768px) {
  .quiz {
    --quiz-step-gap: var(--spacing-6);
  }
}

/* ==========================================================================
   QUIZ DIALOG SHELL
   --------------------------------------------------------------------------
   <dialog class="quiz-dialog quiz" id="quiz-dialog"> on the campaign page.
   Standalone: it shares nothing with the page's .campaign-dialog (video).
   Desktop: a large centered modal. Below 768px: a bottom drawer under the
   campaign header (--campaign-header-bottom, set by the dialog script) that
   slides up on open. Page scroll is locked while it's open.

   The dialog clips (overflow: hidden) so its rounded corners stay intact;
   .quiz-dialog__inner fills it and is the only scroller, so the scrollbar
   sits inside the rounded box. The frosted header sticks over the content as
   it scrolls underneath. Padding lives on the body and footer so the header
   spans the full width. The body must not be a scroll container: with no
   height limit it can't scroll and would swallow the wheel.
   ========================================================================== */
html:has(.quiz-dialog[open]),
html:has(.quiz-dialog[open]) body {
  overflow: hidden;
  overscroll-behavior: none;
}

.quiz-dialog {
  position: fixed;
  margin: auto;
  inset: 0;
  border: 0;
  border-radius: var(--quiz-dialog-radius);
  background: var(--quiz-dialog-bg);
  padding: 0;
  width: min(var(--quiz-dialog-max-width), 100% - var(--quiz-dialog-viewport-gap));
  max-width: none;
  /* Capped so short steps don't sit in a near-full-screen box on large displays. */
  height: min(var(--quiz-dialog-max-height), 100dvh - var(--quiz-dialog-viewport-gap));
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--quiz-dialog-color);
}

.quiz-dialog::backdrop {
  background: var(--quiz-dialog-backdrop);
}

@media (max-width: 767px) {
  .quiz-dialog {
    top: var(--campaign-header-bottom);
    margin: 0;
    border-radius: var(--quiz-dialog-radius) var(--quiz-dialog-radius) 0 0;
    width: 100%;
    height: calc(100dvh - var(--campaign-header-bottom));
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .quiz-dialog[open] {
    animation: quiz-drawer-in var(--quiz-drawer-duration) ease-out;
  }
}

@keyframes quiz-drawer-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.quiz-dialog__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scroll-padding-top: var(--quiz-header-height);
}

.quiz-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  padding: 0;
  width: var(--quiz-close-size);
  height: var(--quiz-close-size);
  color: var(--quiz-ink);
}

.quiz-dialog__close:hover {
  border: 1px solid var(--quiz-accent);
  background: var(--quiz-accent-soft);
}

/* Site focus ring (--shadow-focus) for every quiz control. The transparent outline
   stays visible in Windows forced-colors mode, where box-shadow is not drawn. */
.quiz-dialog__close:focus-visible,
.quiz .bb-app-root input:focus-visible,
.quiz .bb-app-root button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-focus);
}

/* Frosted header: sticks to the top of .quiz-dialog__inner with content visible
   underneath; see the Settings block for its stacking order. Progress bar and
   close button sit side by side in flow; left padding matches the body, right
   is tighter so the close button sits near the corner.
   -webkit- prefix: this file ships unprocessed and Safari < 18 needs it. */
.quiz-dialog__header {
  display: flex;
  position: sticky;
  top: 0;
  align-items: center;
  gap: var(--quiz-progress-gap);
  z-index: var(--quiz-header-z);
  -webkit-backdrop-filter: blur(var(--quiz-header-blur));
  backdrop-filter: blur(var(--quiz-header-blur));
  background: var(--quiz-header-bg);
  padding: var(--quiz-header-padding-top) var(--quiz-header-padding-right)
    var(--quiz-header-padding-bottom) var(--quiz-header-padding-left);
}

/* ==========================================================================
   HEADER PROGRESS BAR
   --------------------------------------------------------------------------
   <div class="quiz-dialog__progress" aria-hidden="true"> in .quiz-dialog__header.
   Decorative: the "N/M" counter above each step is the accessible progress.
   Fill = --bb-current-step-num / --bb-total-steps-num, written by the
   progress script (path-aware) or derived from the engine's body vars. The
   gradient spans the whole track and the fill clips it, so colors reveal as
   the user advances rather than squashing into a short bar. The fill's clip
   is square; corner rounding comes only from the track's border-radius and
   overflow: hidden, so --quiz-progress-radius: 0 gives a square bar. Before the
   engine sets its vars the fallbacks keep the bar empty; the summary page
   shows it full. Sizes and colors live in the Settings block.
   ========================================================================== */
.quiz {
  --quiz-progress: clamp(
    0%,
    var(--bb-current-step-num, 0) / var(--bb-total-steps-num, 1) * 100%,
    100%
  );
}

.quiz:has(#app .bb-summary-page) {
  --quiz-progress: 100%;
}

.quiz-dialog__progress {
  position: relative;
  flex: 1 1 auto;
  border-radius: var(--quiz-progress-radius);
  background: var(--quiz-progress-track);
  height: var(--quiz-progress-height);
  overflow: hidden;
}

.quiz-dialog__progress::before {
  position: absolute;
  clip-path: inset(0 calc(100% - var(--quiz-progress)) 0 0);
  transition: clip-path var(--quiz-progress-duration) ease;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--quiz-progress-stop-1),
    var(--quiz-progress-stop-2),
    var(--quiz-progress-stop-3),
    var(--quiz-progress-stop-4)
  );
  content: '';
}

@media (prefers-reduced-motion: reduce) {
  .quiz-dialog__progress::before {
    transition: none;
  }
}

/* ---- End header progress bar ---- */

/* Not `.container`: Tailwind's .container caps max-width per breakpoint (320px
   below 480px), which left the drawer content narrower than the drawer. */
.quiz-dialog__body {
  margin: 0;
  padding: 0 var(--quiz-dialog-padding)
    calc(var(--quiz-dialog-padding) + env(safe-area-inset-bottom));
  height: fit-content;
}

/* Disclaimer under the quiz. Hidden while the quiz has nothing to show; see
   the "NO CONTENT STATE" section below for when that is. */
.quiz-dialog__footer {
  flex: 1;
  padding: 0 var(--quiz-dialog-padding)
    calc(var(--quiz-dialog-padding) + env(safe-area-inset-bottom));
}

.quiz:is(
    :not(:has(#app .bb-section)),
    :has(#app .bb-summary-page-body-html:empty, #app .bb-summary-page-body-html > script:only-child)
  )
  .quiz-dialog__footer {
  display: none;
}

/* ==========================================================================
   NO CONTENT STATE (quiz loading, or submitted and thank-you page loading)
   --------------------------------------------------------------------------
   The quiz has nothing visible to show when:
     - the questionnaire hasn't rendered yet (no .bb-section in #app), or
     - after the last answer the engine renders .bb-summary-page with an
       empty .bb-summary-page-body-html, or one holding only its processing
       <script>, until the thank-you content arrives.
   That same condition (the .quiz:is(â€¦) selector, repeated in each rule
   because CSS can't name it) hides the footer above, hides the progress bar
   and quiz content, and shows .quiz-dialog__spinner:
     <div class="quiz-dialog__spinner" aria-hidden="true">
       <div class="quiz-dialog__spinner-wave"><span></span> Ã—5</div>
     </div>
   It's a direct child of the dialog (positioned, non-scrolling), so it
   covers the dialog while .quiz-dialog__inner scrolls, and sits under the
   header so the close button stays usable.

   It copies the engine's ng-http-loader "sk-wave" spinner (backdrop, opacity,
   bar size, color, timing, and its bars left-aligned in a centered 50px box)
   so the hand-off between the two doesn't jump. The
   engine's spinner (#spinner, only in the DOM during a request) takes over
   whenever it's up, so the two never stack. Visibility, not display, keeps
   the header height and close button in place. Values live in the Settings block.
   ========================================================================== */
.quiz:is(
    :not(:has(#app .bb-section)),
    :has(#app .bb-summary-page-body-html:empty, #app .bb-summary-page-body-html > script:only-child)
  )
  :is(.quiz-dialog__progress, .bb-section) {
  visibility: hidden;
}

.quiz-dialog__spinner {
  display: none;
  position: absolute;
  justify-content: center;
  align-items: center;
  opacity: var(--quiz-spinner-opacity);
  z-index: var(--quiz-spinner-z);
  inset: 0;
  background: var(--quiz-spinner-backdrop);
}

.quiz:is(
    :not(:has(#app .bb-section)),
    :has(#app .bb-summary-page-body-html:empty, #app .bb-summary-page-body-html > script:only-child)
  ):not(:has(#app #spinner))
  > .quiz-dialog__spinner {
  display: flex;
}

.quiz-dialog__spinner-wave {
  display: flex;
  gap: var(--quiz-spinner-bar-gap);
  width: var(--quiz-spinner-width);
  height: var(--quiz-spinner-height);
}

/* Bar n starts n/12 of a cycle later (0.1s at 1.2s), the engine's stagger. */
.quiz-dialog__spinner-wave > span {
  --quiz-spinner-bar: 0;
  flex: none;
  animation: quiz-wave var(--quiz-spinner-duration) ease-in-out infinite;
  animation-delay: calc(var(--quiz-spinner-duration) * (var(--quiz-spinner-bar) / 12 - 1));
  background: var(--quiz-spinner-color);
  width: var(--quiz-spinner-bar-width);
  height: 100%;
}

.quiz-dialog__spinner-wave > span:nth-child(2) {
  --quiz-spinner-bar: 1;
}

.quiz-dialog__spinner-wave > span:nth-child(3) {
  --quiz-spinner-bar: 2;
}

.quiz-dialog__spinner-wave > span:nth-child(4) {
  --quiz-spinner-bar: 3;
}

.quiz-dialog__spinner-wave > span:nth-child(5) {
  --quiz-spinner-bar: 4;
}

@keyframes quiz-wave {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
  }

  20% {
    transform: scaleY(1);
  }
}

/* Slowed, not stopped: the spinner is the only sign the quiz is still working. */
@media (prefers-reduced-motion: reduce) {
  .quiz {
    --quiz-spinner-duration: var(--quiz-spinner-duration-reduced);
  }
}

/* ---- End no content state ---- */

/* The class keeps these out of r26's `.r26 p:not([class])` rule, which forces
   body size, line height and gap with !important. */
.quiz-dialog__disclaimer {
  margin: 0;
  font-size: var(--quiz-disclaimer-size);
  text-wrap: pretty;
}

.quiz-dialog__disclaimer + .quiz-dialog__disclaimer {
  margin-block-start: var(--quiz-disclaimer-gap);
}

@media (min-width: 768px) {
  .quiz-dialog__disclaimer {
    text-align: center;
  }
}

.quiz .bb-app-root {
  display: block;
  margin: 0;
  width: inherit;
  color: var(--quiz-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.375rem;
  font-family: var(--quiz-font);
}

/* Layout: the engine ships Bootstrap rows/cols with gutters; the quiz runs flush. */
.quiz .bb-app-root .row {
  margin-inline: 0;
  width: 100%;
}

.quiz .bb-app-root .row > * {
  padding-inline: 0;
}

.quiz .bb-app-root app-question-step form {
  display: flex;
  flex-direction: column;
  gap: var(--quiz-form-gap);
}

.quiz .bb-app-root .bb-form-page-form form {
  display: flex;
  flex-flow: row wrap;
  gap: var(--quiz-form-gap);
}

.quiz .bb-app-root .bb-form-page-form app-display-messages:is(:empty) {
  display: none;
}

.quiz .bb-app-root .bb-form-page-form app-display-messages {
  width: 100%;
}

.quiz .bb-app-root fieldset {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  border: 0;
  padding: 0;
}

.quiz .bb-app-root legend {
  position: absolute;
  margin: -1px;
  border: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Step heading + "N/M" progress counter. The counter is hidden on interstitial
   steps (no questions), which the engine flags with body.bb-step--no-q. */
.quiz .bb-app-root h2 {
  margin-block: var(--spacing-size-xsmall);
  color: var(--quiz-text);
  font: 600 var(--quiz-heading-size) / 1.2 var(--quiz-font);
}

.quiz .bb-app-root .bb-form-page-header-html,
.quiz .bb-app-root .bb-questions-page {
  counter-reset: quiz-step var(--bb-current-step-num);
}

.quiz .bb-app-root .bb-form-page-header-html::before,
.quiz .bb-app-root .bb-questions-page::before {
  display: block;
  padding-block-end: var(--spacing-3);
  content: counter(quiz-step) '/' counter(quiz-total);
  font-weight: 600;
  font-size: var(--quiz-counter-size);
  line-height: 1;
}

.bb-step--no-q .quiz .bb-app-root .bb-form-page-header-html::before,
.bb-step--no-q .quiz .bb-app-root .bb-questions-page::before {
  content: none;
}

.quiz .bb-app-root app-question-step {
  display: flex;
  flex-direction: column;
  gap: var(--quiz-step-gap);
}

.quiz .bb-app-root app-question-step > div {
  font-weight: 500;
  font-size: var(--quiz-prompt-size);
}

.quiz .bb-app-root .bb-help-text {
  margin-block: var(--spacing-3) 0;
  font-style: italic;
  font-weight: 700;
  font-size: var(--quiz-small-size);
}

/* Labels and text inputs (lead form, date of birth) */
.quiz .bb-app-root label {
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: var(--quiz-small-size);
}

.quiz .bb-app-root .bb-label-text,
.quiz .bb-app-root .bb-label-email {
  padding: 0;
}

.quiz .bb-app-root .bb-form-group {
  position: relative;
}

.quiz .bb-app-root input[type='text'],
.quiz .bb-app-root input[type='email'] {
  appearance: none;
  margin: 0;
  border: 1px solid var(--quiz-input-border);
  border-radius: var(--quiz-radius);
  padding: var(--spacing-3) var(--spacing-size-xsmall);
  width: 100%;
  min-height: var(--quiz-input-height);
  color: var(--quiz-text);
  font-weight: 600;
  font-size: var(--quiz-small-size);
  line-height: inherit;
  font-family: inherit;
}

.quiz .bb-app-root input[type='text']::placeholder,
.quiz .bb-app-root input[type='email']::placeholder {
  color: var(--quiz-text);
}

@media (min-width: 60rem) {
  .quiz .bb-app-root input[type='text'],
  .quiz .bb-app-root input[type='email'] {
    font-size: 1rem;
  }
}

/* Error state: the engine adds .has-error to the group and renders
   <span role="alert" class="bb-help-block bb-danger"> under the input. */
.quiz .bb-app-root .bb-danger.bb-help-block {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: var(--quiz-tooltip-z);
  margin-block-start: var(--spacing-size-xsmall);
  border-radius: var(--quiz-radius);
  background: var(--quiz-error);
  padding: var(--spacing-size-xxsmall) var(--spacing-size-small);
  color: var(--quiz-surface);
  font-size: var(--quiz-small-size);
}

.quiz .bb-app-root .bb-danger.bb-help-block::before {
  display: block;
  position: absolute;
  bottom: 100%;
  left: 1em;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--quiz-error);
  width: 0.75em;
  height: 0.5em;
  content: '';
}

/* Radio answers: lettered A/B/C circles */
.quiz .bb-app-root .app-radiobutton-list {
  display: flex;
  row-gap: var(--quiz-gap);
  flex-flow: column;
  animation: bb-section-in var(--quiz-fade-duration) ease;
  counter-reset: alpha;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz .bb-app-root .bb-radio {
  counter-increment: alpha;
  margin: 0 0 var(--spacing-size-xsmall);
}

.quiz .bb-app-root .bb-radio label {
  display: flex;
  column-gap: 1.125rem;
  align-items: center;
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: normal;
}

.quiz .bb-app-root .bb-radio input {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  appearance: none;
  transition: background-color var(--quiz-fade-duration) ease;
  cursor: pointer;
  margin: 0;
  border: 1px solid var(--quiz-radio-border);
  border-radius: 50%;
  background: var(--quiz-surface);
  width: var(--quiz-radio-size);
  height: var(--quiz-radio-size);
  color: var(--quiz-ink);
}

.quiz .bb-app-root .bb-radio input::before {
  content: counter(alpha, upper-alpha);
}

.quiz .bb-app-root .bb-radio input:hover {
  border-color: var(--quiz-accent);
  background: var(--quiz-accent-soft);
}

.quiz .bb-app-root .bb-radio input:checked {
  border-color: var(--quiz-selected-border);
  background: var(--quiz-selected-bg);
}

/* Buttons: Next (yellow, arrow after) and Back (light yellow, arrow before) */
.quiz .bb-app-root .bb-button-row {
  display: flex;
  flex-direction: column;
  gap: var(--quiz-gap);
  animation: bb-section-in var(--quiz-fade-duration) ease;
  margin-block: 0;

  @media screen and (min-width: 640px) {
    flex-direction: row;
  }
}

.quiz .bb-app-root .bb-btn-next,
.quiz .bb-app-root .bb-btn-prev {
  display: inline-flex;
  column-gap: var(--quiz-gap);
  justify-content: var(--quiz-button-justify);
  align-items: center;
  cursor: pointer;
  margin: 0;
  border: 1px solid var(--quiz-accent);
  border-radius: var(--quiz-button-radius);
  background: var(--quiz-accent);
  padding: var(--quiz-button-padding);
  min-width: var(--quiz-button-min-width);
  color: var(--quiz-ink);
  font: inherit;
}

.quiz .bb-app-root .bb-btn-next:hover {
  background: var(--quiz-accent-soft);
}

.quiz .bb-app-root .bb-btn-prev {
  border-color: var(--quiz-accent-soft);
  background: var(--quiz-accent-soft);
}

.quiz .bb-app-root .bb-btn-prev:hover {
  border-color: var(--quiz-accent);
}

.quiz .bb-app-root .bb-btn-next:disabled,
.quiz .bb-app-root .bb-btn-prev:disabled {
  cursor: not-allowed;
}

.quiz .bb-app-root .bb-btn-next::after,
.quiz .bb-app-root .bb-btn-prev::before {
  margin-block: calc(-1 * var(--spacing-size-xxsmall));
  content: '\e007';
  font-style: normal;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1;
  font-family: var(--font-bsw-icons), sans-serif;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
}

.quiz .bb-app-root .bb-btn-prev::before {
  transform: scale(-1);
  margin-block: 0;
}

/* "Loadingâ€¦" indicator */
.quiz .bb-app-root .bb-loader {
  display: inline-block;
  animation: bb-loader-blink 1s infinite ease;
  margin-inline: var(--spacing-sm) 0;
  font-style: italic;
  font-size: var(--quiz-small-size);
}

/* The engine's request spinner (ng-http-loader) is position: fixed over the whole
   viewport. Absolute pins it to the open dialog (the nearest positioned ancestor)
   instead; the extra .quiz .bb-app-root beats the engine's runtime-injected rule. */
.quiz .bb-app-root #spinner.backdrop {
  position: absolute;
  inset: 0;
}

@keyframes bb-section-in {
  0% {
    opacity: 0;
  }
}

@keyframes bb-loader-blink {
  50% {
    opacity: 1;
  }

  0%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz .bb-app-root .app-radiobutton-list,
  .quiz .bb-app-root .bb-button-row {
    animation: none;
  }
}
