/* NuroCore v41 [quiz] "Find your protocol": launcher above the Ask pill + questionnaire sheet / dialog.
   Markup: inc/research-quiz.php · behaviour: assets/nc-quiz.js · revert: delete the three files. */

/* ------------------------------------------------------------------ launcher */
.nc-quiz-fab {
  --ncq-lift: 0px;
  --ncq-ask: 62px; /* the Ask pill (52px) + 10px gap until the script has measured */
  position: fixed;
  z-index: 1054;
  right: 20px;
  bottom: calc(20px + var(--ncq-lift) + var(--ncq-ask) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transition: bottom 0.3s var(--nc-ease, ease), opacity 0.25s var(--nc-ease, ease), transform 0.25s var(--nc-ease, ease), visibility 0s 0.25s;
  visibility: hidden;
}
.nc-quiz-fab.is-ready { opacity: 1; visibility: visible; transition: bottom 0.3s var(--nc-ease, ease), opacity 0.25s var(--nc-ease, ease), transform 0.25s var(--nc-ease, ease), visibility 0s; }
.nc-quiz-fab > * { pointer-events: auto; }
.nc-quiz-fab .nc-quiz-fab__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  margin: 0;
  padding: 0 16px 0 6px;
  border: 1px solid rgba(59, 23, 75, 0.12);
  border-radius: 999px;
  background: #FFFFFF; /* v41 [final-ux]: opaque (WebKit showed the text under the frosted pill through it) */
  color: var(--nc-ink, #24103A);
  font: 600 13px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 28px -12px rgba(26, 10, 41, 0.45), 0 1px 2px rgba(26, 10, 41, 0.06);
  transition: transform 0.3s var(--nc-ease, ease), box-shadow 0.3s var(--nc-ease, ease), border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.nc-quiz-fab .nc-quiz-fab__btn::after { content: ""; position: absolute; inset: -4px -2px; } /* 48px touch target */
.nc-quiz-fab .nc-quiz-fab__btn:hover { transform: translateY(-2px); border-color: rgba(59, 23, 75, 0.2); box-shadow: 0 16px 34px -14px rgba(26, 10, 41, 0.5), 0 1px 2px rgba(26, 10, 41, 0.06); }
.nc-quiz-fab .nc-quiz-fab__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--nc-ink, #24103A), 0 10px 28px -12px rgba(26, 10, 41, 0.45); }
.nc-quiz-fab__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--nc-grad, linear-gradient(120deg, #3B174B, #6B2D8A 55%, #9F519F));
}
.nc-quiz-fab__ico svg { display: block; }
.nc-quiz-fab.is-yield { opacity: 0; visibility: hidden; transform: translate3d(0, 6px, 0); transition: bottom 0.3s var(--nc-ease, ease), opacity 0.2s var(--nc-ease, ease), transform 0.2s var(--nc-ease, ease), visibility 0s 0.2s; }
.nc-quiz-fab.is-yield > * { pointer-events: none; }
html.nc-chat-open .nc-quiz-fab,
html.nc-quiz-open .nc-quiz-fab,
html.nc-gate-locked .nc-quiz-fab,
body:is(.--mobileNav--active, .--side-panel-active, .search-panel--active, .--drop-panel-active, .--filter-panel-active) .nc-quiz-fab { opacity: 0; visibility: hidden; }
html.nc-chat-open .nc-quiz-fab > *,
html.nc-quiz-open .nc-quiz-fab > *,
body:is(.--mobileNav--active, .--side-panel-active, .search-panel--active, .--drop-panel-active, .--filter-panel-active) .nc-quiz-fab > * { pointer-events: none; }
@media (max-width: 767px) {
  .nc-quiz-fab { --ncq-ask: 54px; right: 12px; bottom: calc(12px + var(--ncq-lift) + var(--ncq-ask) + env(safe-area-inset-bottom, 0px)); }
  .nc-quiz-fab .nc-quiz-fab__btn { height: 36px; gap: 7px; padding: 0 13px 0 5px; font-size: 12.5px; }
  .nc-quiz-fab .nc-quiz-fab__btn::after { inset: -5px -2px; }
  .nc-quiz-fab__ico { width: 26px; height: 26px; }
  .nc-quiz-fab__ico svg { width: 13px; height: 13px; }
}
/* v41 [final-ux] one tidy dock (owner, 30 Oct: launchers "appearing and disappearing depending on where you scroll").
   At every width the launcher is a stable 44 px icon button just left of Ask, never hidden or faded while the
   page scrolls (nc-quiz.js only lifts the stack above a sticky add-to-cart bar or a cookie sheet). Its name, "Find your
   protocol", is the button's aria-label and its own text, which shows as a small label beside it on hover or keyboard
   focus (pointer devices); on touch it stays icon only. */
.nc-quiz-fab .nc-quiz-fab__btn {
  width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center;
  border-color: rgba(59, 23, 75, 0.1);
}
.nc-quiz-fab .nc-quiz-fab__btn::after { inset: 0; }
.nc-quiz-fab .nc-quiz-fab__ico { width: 32px; height: 32px; }
.nc-quiz-fab .nc-quiz-fab__ico svg { width: 15px; height: 15px; }
.nc-quiz-fab .nc-quiz-fab__t {
  position: absolute; top: 50%; right: calc(100% + 10px);
  padding: 8px 12px; border-radius: 999px; background: var(--nc-ink, #24103A); color: #FFFFFF;
  font: 600 12.5px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif); white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(26, 10, 41, 0.5);
  opacity: 0; transform: translate3d(6px, -50%, 0); pointer-events: none;
  transition: opacity 0.2s var(--nc-ease, ease), transform 0.2s var(--nc-ease, ease);
}
@media (hover: hover) and (pointer: fine) {
  .nc-quiz-fab .nc-quiz-fab__btn:hover .nc-quiz-fab__t { opacity: 1; transform: translate3d(0, -50%, 0); }
}
.nc-quiz-fab .nc-quiz-fab__btn:focus-visible .nc-quiz-fab__t { opacity: 1; transform: translate3d(0, -50%, 0); }
/* one row along the bottom edge (WhatsApp left; this button and Ask right, centred on Ask's 52 px height), so the dock
   never reaches the hero benefit bar or an add-to-cart row and the footer keeps nc-core.css's clearance */
.nc-quiz-fab { right: calc(20px + var(--ncq-askw, 101px)); bottom: calc(24px + var(--ncq-lift) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) {
  .nc-quiz-fab .nc-quiz-fab__btn { height: 44px; padding: 0; gap: 0; }
  .nc-quiz-fab .nc-quiz-fab__btn::after { inset: 0; }
  /* phones: the dock is one 44 px row along the bottom edge (WhatsApp left, this button just left of Ask), so it never
     reaches the hero benefit bar on the home page's first screen or the add-to-cart row on product pages, and the
     page keeps everything above the bottom 56 px clear */
  .nc-quiz-fab { right: calc(12px + var(--ncq-askw, 85px)); bottom: calc(12px + var(--ncq-lift) + env(safe-area-inset-bottom, 0px)); }
}
/* under 390 px the centred "Details" scroll cue (nc-commerce.css, first screen of a product page) would touch this
   button in the row: it sits 22 px left of centre there, between WhatsApp and the dock */
@media (max-width: 389px) {
  body.single-product .nc-cue { left: calc(50% - 22px); }
}
@media (prefers-reduced-motion: reduce) {
  .nc-quiz-fab .nc-quiz-fab__t { transition: none; }
}
@media print { .nc-quiz-fab, .nc-quiz { display: none !important; } }

/* ------------------------------------------------------------------ dialog shell */
html.nc-quiz-open, html.nc-quiz-open body { overflow: hidden; }
html.nc-quiz-open body { padding-right: var(--ncq-sbw, 0px); }
.nc-quiz {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--nc-font-body, Inter, system-ui, sans-serif);
  color: var(--nc-text, #4B3D5C);
}
.nc-quiz[hidden] { display: none; }
.nc-quiz__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 41, 0.5);
  opacity: 0;
  transition: opacity 0.36s var(--nc-ease, ease);
}
.nc-quiz.is-open .nc-quiz__scrim { opacity: 1; }
.nc-quiz__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92vh;
  max-height: min(92dvh, 760px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 60px -24px rgba(26, 10, 41, 0.5);
  overflow: hidden;
  outline: 0;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.nc-quiz.is-open .nc-quiz__sheet { transform: translate3d(0, 0, 0); }
.nc-quiz__sheet::before { /* brand hairline */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--nc-grad, linear-gradient(120deg, #3B174B, #6B2D8A 55%, #9F519F));
}

.nc-quiz__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 22px 64px 6px 24px;
  touch-action: none;
}
.nc-quiz__head::before { /* grab handle (phones) */
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  width: 36px; height: 4px;
  margin-left: -18px;
  border-radius: 4px;
  background: var(--nc-line, #E9E1F1);
}
.nc-quiz__eyebrow {
  margin: 0;
  color: var(--nc-plum, #6B2D8A);
  font: 600 11px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nc-quiz__dots { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nc-quiz__dots li {
  width: 6px; height: 6px;
  margin: 0;
  border-radius: 6px;
  background: var(--nc-line, #E9E1F1);
  transition: width 0.35s var(--nc-ease, ease), background-color 0.35s var(--nc-ease, ease);
}
.nc-quiz__dots li.is-done { background: var(--nc-lavender, #C9A9DD); }
.nc-quiz__dots li.is-on { width: 20px; background: var(--nc-grad, linear-gradient(120deg, #3B174B, #6B2D8A 55%, #9F519F)); }
.nc-quiz .nc-quiz__x {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nc-ink, #24103A);
  cursor: pointer;
  transition: background-color 0.2s;
}
.nc-quiz .nc-quiz__x:hover { background: var(--nc-paper, #FAF7FC); }
.nc-quiz .nc-quiz__x:focus-visible { outline: 2px solid var(--nc-plum, #6B2D8A); outline-offset: -2px; }

.nc-quiz__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 24px 0;
}
.nc-quiz__sr, .nc-quiz__radio {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ a step */
.nc-quiz__step, .nc-quiz__res { margin: 0; }
.nc-quiz__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.nc-quiz .nc-quiz__q {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--nc-ink, #24103A);
  font: 600 21px/1.25 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: -0.01em;
  text-transform: none;
}
.nc-quiz .nc-quiz__q:focus { outline: 0; }
.nc-quiz__n, .nc-quiz__kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--nc-orchid, #9F519F);
  font: 600 11px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nc-quiz__sub { margin: 8px 0 0; color: var(--nc-muted, #7C6D8C); font-size: 14px; line-height: 1.5; }
.nc-quiz__opts { display: grid; gap: 10px; margin: 18px 0 0; }
.nc-quiz__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--nc-line, #E9E1F1);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--nc-ease, ease), box-shadow 0.2s var(--nc-ease, ease), background-color 0.2s var(--nc-ease, ease), transform 0.2s var(--nc-ease, ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .nc-quiz__opt:hover { border-color: #D3C1E3; background: var(--nc-paper, #FAF7FC); } }
.nc-quiz__opt:active { transform: scale(0.99); }
.nc-quiz__opt:has(.nc-quiz__radio:checked) { border-color: var(--nc-plum, #6B2D8A); box-shadow: inset 0 0 0 1px var(--nc-plum, #6B2D8A); background: var(--nc-paper, #FAF7FC); }
.nc-quiz__opt:has(.nc-quiz__radio:focus-visible) { outline: 2px solid var(--nc-plum, #6B2D8A); outline-offset: 2px; }
.nc-quiz__opt-tx { flex: 1 1 auto; min-width: 0; }
.nc-quiz__opt-t { display: block; color: var(--nc-ink, #24103A); font: 600 15px/1.3 var(--nc-font-head, Montserrat, system-ui, sans-serif); }
.nc-quiz__opt-h { display: block; margin-top: 3px; color: var(--nc-muted, #7C6D8C); font-size: 13px; line-height: 1.4; }
.nc-quiz__pick {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--nc-mist, #EFE6F7);
  color: var(--nc-plum, #6B2D8A);
  font: 600 10px/1.2 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.nc-quiz__tick {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1.5px solid #CFC0DD;
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s;
}
.nc-quiz__tick::after {
  content: "";
  position: absolute;
  left: 7px; top: 3.5px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.25s var(--nc-ease, ease), opacity 0.2s;
}
.nc-quiz__radio:checked ~ .nc-quiz__tick { border-color: transparent; background: var(--nc-grad, linear-gradient(120deg, #3B174B, #6B2D8A 55%, #9F519F)); }
.nc-quiz__radio:checked ~ .nc-quiz__tick::after { opacity: 1; transform: rotate(45deg) scale(1); }
.nc-quiz__err { margin: 12px 0 0; color: var(--nc-plum, #6B2D8A); font-size: 13px; font-weight: 600; }
.nc-quiz__err[hidden] { display: none; }

/* footer (sticky inside the scrolling body) */
.nc-quiz__foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px -24px 0;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 16px);
}
.nc-quiz .nc-quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nc-text, #4B3D5C);
  font: 600 14px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  cursor: pointer;
}
.nc-quiz .nc-quiz__back:hover { color: var(--nc-ink, #24103A); }
.nc-quiz .nc-quiz__back:focus-visible { outline: 2px solid var(--nc-plum, #6B2D8A); outline-offset: 2px; }
.nc-quiz .nc-quiz__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 50px;
  margin: 0;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background-color: var(--nc-plum, #6B2D8A);
  background-image: var(--nc-grad, linear-gradient(120deg, #3B174B, #6B2D8A 55%, #9F519F));
  background-size: 160% 100%;
  background-position: 0 50%;
  color: #fff !important;
  font: 600 15px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(26, 10, 41, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-position 0.5s var(--nc-ease, ease), transform 0.25s var(--nc-ease, ease), box-shadow 0.25s var(--nc-ease, ease);
}
.nc-quiz .nc-quiz__next:hover { background-position: 100% 50%; transform: translateY(-1px); }
.nc-quiz .nc-quiz__next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--nc-ink, #24103A); }
.nc-quiz .nc-quiz__next.is-busy { cursor: progress; opacity: 0.9; }

/* ------------------------------------------------------------------ result */
.nc-quiz .nc-quiz__q.nc-quiz__q--res { font-size: 22px; }
.nc-quiz__list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.nc-quiz__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--nc-line, #E9E1F1);
  border-radius: 16px;
  background: #fff;
}
.nc-quiz__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 25%, #fff 0%, var(--nc-paper, #FAF7FC) 60%, var(--nc-mist, #EFE6F7) 100%);
}
.nc-quiz__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nc-quiz__meta { min-width: 0; }
.nc-quiz__meta p, .nc-quiz__side p { margin: 0; }
.nc-quiz__ey { color: var(--nc-orchid, #9F519F); font: 600 10px/1.3 var(--nc-font-head, Montserrat, system-ui, sans-serif); letter-spacing: 0.12em; text-transform: uppercase; }
.nc-quiz__name { margin-top: 4px !important; color: var(--nc-ink, #24103A); font: 600 15px/1.3 var(--nc-font-head, Montserrat, system-ui, sans-serif); overflow-wrap: anywhere; }
.nc-quiz__opt2 { margin-top: 2px !important; color: var(--nc-text, #4B3D5C); font-size: 13px; line-height: 1.4; }
.nc-quiz__inc { margin-top: 4px !important; color: var(--nc-muted, #7C6D8C); font-size: 12.5px; line-height: 1.45; }
.nc-quiz__side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.nc-quiz__price { color: var(--nc-ink, #24103A); font: 600 15px/1.2 var(--nc-font-head, Montserrat, system-ui, sans-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nc-quiz__stock { margin-top: 3px !important; color: var(--nc-muted, #7C6D8C); font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
.nc-quiz__stock.is-mto { color: var(--nc-plum, #6B2D8A); }
.nc-quiz__view {
  display: inline-block;
  margin-top: 2px;
  padding: 8px 0 4px;
  color: var(--nc-plum, #6B2D8A) !important;
  font: 600 13px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nc-quiz__view:hover { color: var(--nc-ink, #24103A) !important; }
.nc-quiz__notes { margin: 14px 0 0; padding: 0; list-style: none; }
.nc-quiz__notes li { position: relative; margin: 6px 0 0; padding-left: 16px; color: var(--nc-muted, #7C6D8C); font-size: 13px; line-height: 1.45; }
.nc-quiz__notes li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--nc-lavender, #C9A9DD); }
.nc-quiz__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px 2px 0;
  border-top: 1px solid var(--nc-line, #E9E1F1);
  color: var(--nc-text, #4B3D5C);
  font-size: 14px;
}
.nc-quiz__sum strong { color: var(--nc-ink, #24103A); font: 600 20px/1 var(--nc-font-head, Montserrat, system-ui, sans-serif); font-variant-numeric: tabular-nums; }
.nc-quiz__msg { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--nc-mist, #EFE6F7); color: var(--nc-ink, #24103A); font-size: 13px; line-height: 1.45; }
.nc-quiz__msg[hidden] { display: none; }
.nc-quiz__msg a { color: var(--nc-plum, #6B2D8A); font-weight: 600; }
.nc-quiz__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; }
.nc-quiz .nc-quiz__link {
  display: inline-block;
  min-height: 32px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--nc-plum, #6B2D8A) !important;
  font: 600 13px/1.4 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nc-quiz .nc-quiz__link:focus-visible, .nc-quiz__view:focus-visible { outline: 2px solid var(--nc-plum, #6B2D8A); outline-offset: 2px; border-radius: 4px; }
.nc-quiz__fine { margin: 10px 0 4px; color: var(--nc-muted, #7C6D8C); font-size: 11.5px; line-height: 1.55; }
.nc-quiz__foot--res .nc-quiz__add { min-width: 0; }

/* loading */
.nc-quiz__load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 300px;
  color: var(--nc-muted, #7C6D8C);
  font-size: 14px;
  text-align: center;
}
.nc-quiz__load p { margin: 0; }
.nc-quiz__spin {
  width: 28px; height: 28px;
  border: 2px solid var(--nc-mist, #EFE6F7);
  border-top-color: var(--nc-plum, #6B2D8A);
  border-radius: 50%;
  animation: ncq-spin 0.9s linear infinite;
}
@keyframes ncq-spin { to { transform: rotate(360deg); } }

/* v41 [final-ux]: several answers (checkboxes: square ticks), results grouped by research area, a skeleton while the
   shortlist is read */
.nc-quiz__opt:has(.nc-quiz__radio[type="checkbox"]) .nc-quiz__tick { border-radius: 7px; }
.nc-quiz .nc-quiz__grp {
  margin: 20px 0 0; padding: 0;
  color: var(--nc-plum, #6B2D8A); font: 600 11px/1.3 var(--nc-font-head, Montserrat, system-ui, sans-serif);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nc-quiz .nc-quiz__grp + .nc-quiz__list { margin-top: 10px; }
.nc-quiz__skh { display: block; width: 62%; height: 22px; margin: 2px 0 6px; border-radius: 6px; }
.nc-quiz__item--skel .nc-quiz__img, .nc-quiz__skh, .nc-quiz__skl i {
  background: linear-gradient(90deg, var(--nc-paper, #FAF7FC) 0%, var(--nc-mist, #EFE6F7) 50%, var(--nc-paper, #FAF7FC) 100%);
  background-size: 200% 100%;
  animation: ncq-skel 1.2s ease-in-out infinite;
}
.nc-quiz__item--skel { grid-template-columns: 72px minmax(0, 1fr); }
.nc-quiz__skl { display: grid; gap: 8px; }
.nc-quiz__skl i { display: block; height: 10px; border-radius: 5px; }
.nc-quiz__skl i:nth-child(1) { width: 40%; }
.nc-quiz__skl i:nth-child(2) { width: 75%; height: 14px; }
.nc-quiz__skl i:nth-child(3) { width: 55%; }
@keyframes ncq-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .nc-quiz__item--skel .nc-quiz__img, .nc-quiz__skh, .nc-quiz__skl i { animation: none; } }

/* step change */
.is-enter { animation: ncq-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ncq-in { from { opacity: 0; transform: translate3d(14px, 0, 0); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ phones */
@media (max-width: 767px) {
  .nc-quiz__head { padding: 26px 60px 4px 20px; }
  .nc-quiz__body { padding: 8px 20px 0; }
  .nc-quiz__foot { margin: 8px -20px 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .nc-quiz .nc-quiz__next { flex: 1 1 auto; min-width: 0; max-width: 260px; }
  .nc-quiz__foot > span:first-child { display: none; }
  .nc-quiz__foot > span:first-child + .nc-quiz__next { max-width: none; }
  .nc-quiz .nc-quiz__q { font-size: 20px; }
  .nc-quiz__opt { min-height: 56px; padding: 12px 14px; }
}
@media (max-width: 767px) {
  .nc-quiz__item { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .nc-quiz__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: -4px; text-align: left; }
  .nc-quiz__stock { margin-top: 0 !important; }
  .nc-quiz__view { margin: 0 0 0 auto; padding: 6px 0 2px; }
}
@media (max-width: 380px) {
  .nc-quiz__item { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 10px; }
  .nc-quiz__img { width: 60px; height: 60px; }
  .nc-quiz__opt-h { font-size: 12.5px; }
}

/* ------------------------------------------------------------------ tablets and desktop: a centred dialog */
@media (min-width: 768px) {
  .nc-quiz { align-items: center; padding: 24px; }
  .nc-quiz__sheet {
    width: min(620px, 100%);
    max-height: min(88vh, 780px);
    border-radius: 22px;
    box-shadow: 0 40px 100px -30px rgba(26, 10, 41, 0.55);
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s var(--nc-ease, ease);
  }
  .nc-quiz.is-open .nc-quiz__sheet { opacity: 1; transform: translate3d(0, 0, 0); }
  .nc-quiz__head { padding: 26px 72px 8px 32px; touch-action: auto; }
  .nc-quiz__head::before { display: none; }
  .nc-quiz .nc-quiz__x { top: 14px; right: 14px; }
  .nc-quiz__body { padding: 12px 32px 0; }
  .nc-quiz__foot { margin: 10px -32px 0; padding: 20px 32px 26px; }
  .nc-quiz .nc-quiz__q { font-size: 24px; }
  .nc-quiz .nc-quiz__q.nc-quiz__q--res { font-size: 24px; }
  .nc-quiz__opts--grid { grid-template-columns: 1fr 1fr; }
  .nc-quiz__opts--grid .nc-quiz__opt { min-height: 76px; }
  .nc-quiz__item { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; }
  .nc-quiz__img { width: 88px; height: 88px; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nc-quiz-fab, .nc-quiz-fab .nc-quiz-fab__btn, .nc-quiz__sheet, .nc-quiz__scrim, .nc-quiz__opt, .nc-quiz__dots li, .nc-quiz .nc-quiz__next { transition-duration: 0.01s !important; }
  .nc-quiz__sheet { transform: none !important; }
  .nc-quiz:not(.is-open) .nc-quiz__sheet { opacity: 0; }
  .nc-quiz.is-open .nc-quiz__sheet { opacity: 1; }
  .is-enter { animation: none; }
  .nc-quiz__spin { animation-duration: 2s; }
}
