.svqt-root[hidden],
.svqt-invite[hidden],
.svqt-modal[hidden] {
  display: none !important;
}

html.svqt-modal-open,
html.svqt-modal-open body {
  overflow: hidden !important;
}

.svqt-root,
.svqt-root * {
  box-sizing: border-box;
}

.svqt-root {
  --svqt-orange: #f4a300;
  --svqt-orange-dark: #d98f00;
  --svqt-ink: #172033;
  --svqt-muted: #667085;
  --svqt-border: #e4e7ec;
  --svqt-soft: #fff8e8;
  --svqt-white: #ffffff;
  color: var(--svqt-ink);
  font-family: inherit;
}

.svqt-invite {
  position: fixed;
  left: 20px;
  bottom: 0;
  z-index: 999970;
  width: min(400px, calc(100vw - 28px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(2px);
  transform: translateY(18px) scale(0.975);
  transform-origin: left bottom;
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.24s ease,
    visibility 0s linear 0.24s;
  will-change: opacity, transform;
}

.svqt-invite.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.svqt-invite__trigger {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  width: 100%;
  min-height: 112px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.svqt-invite__trigger:hover,
.svqt-invite__trigger:focus,
.svqt-invite__trigger:focus-visible,
.svqt-invite__trigger:active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
}

.svqt-invite__mascot {
  position: relative;
  z-index: 2;
  display: block;
  align-self: end;
  width: 126px;
  margin-right: -18px;
  transform: translateY(0);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 18px rgba(23, 32, 51, 0.2));
  transition: transform 0.18s ease;
  pointer-events: none;
}

.svqt-invite__mascot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0 !important;
  object-fit: contain;
  object-position: center bottom;
}

.svqt-invite__bubble {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 96px;
  padding: 18px 54px 17px 24px;
  border: 1px solid rgba(244, 163, 0, 0.42);
  border-radius: 20px;
  background: var(--svqt-white);
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.svqt-invite__bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 43px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(244, 163, 0, 0.42);
  border-bottom: 1px solid rgba(244, 163, 0, 0.42);
  background: var(--svqt-white);
  transform: rotate(45deg);
}

.svqt-invite__title {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--svqt-ink);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
  text-wrap: balance;
}

.svqt-invite__description {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: var(--svqt-muted);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
}

.svqt-invite__arrow {
  position: absolute;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--svqt-soft);
  color: #925f00;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease;
}

.svqt-invite__trigger:hover .svqt-invite__bubble,
.svqt-invite__trigger:focus-visible .svqt-invite__bubble {
  border-color: rgba(244, 163, 0, 0.68);
  box-shadow: 0 22px 58px rgba(23, 32, 51, 0.25);
  transform: translateY(-2px);
}

.svqt-invite__trigger:hover .svqt-invite__mascot,
.svqt-invite__trigger:focus-visible .svqt-invite__mascot {
  transform: translateY(-2px) rotate(-1.5deg);
}

.svqt-invite__trigger:hover .svqt-invite__arrow,
.svqt-invite__trigger:focus-visible .svqt-invite__arrow {
  transform: translateX(3px);
}

.svqt-icon-button.svqt-invite__close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex-basis: 28px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.88);
  color: #667085;
  font-size: 19px;
  box-shadow: 0 3px 12px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(6px);
}

.svqt-icon-button.svqt-invite__close:hover,
.svqt-icon-button.svqt-invite__close:focus-visible {
  border-color: rgba(244, 163, 0, 0.34);
  background: var(--svqt-white);
  color: var(--svqt-ink);
}

@media (prefers-reduced-motion: reduce) {
  .svqt-invite,
  .svqt-invite__bubble,
  .svqt-invite__mascot,
  .svqt-invite__arrow {
    transition-duration: 0.01ms !important;
  }
}

.svqt-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(244, 163, 0, 0.42);
  border-radius: 999px;
  background: var(--svqt-soft);
  color: #925f00;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.svqt-modal {
  position: fixed;
  inset: 0;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.svqt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(4px);
}

.svqt-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc(min(88vh, 860px) * 9 / 16), calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: min(88vh, 860px);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  background: var(--svqt-white);
  box-shadow: 0 30px 100px rgba(17, 24, 39, 0.35);
  outline: none;
}

.svqt-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 28px 18px;
  border-bottom: 1px solid var(--svqt-border);
}

.svqt-dialog__heading {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.svqt-dialog__heading h2 {
  max-width: 100%;
  margin: 0;
  color: var(--svqt-ink);
  font-size: clamp(25px, 2.4vw, 31px);
  line-height: 1.12;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

.svqt-dialog__heading h2.svqt-dialog-title--long {
  font-size: clamp(23px, 2.1vw, 27px);
}

.svqt-dialog__heading h2.svqt-dialog-title--extra-long {
  font-size: clamp(21px, 1.9vw, 24px);
}

.svqt-eyebrow {
  margin: 10px 0 0;
  color: #925f00;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.svqt-icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--svqt-border);
  border-radius: 50%;
  background: var(--svqt-white);
  color: var(--svqt-ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.svqt-icon-button:hover,
.svqt-icon-button:focus-visible {
  border-color: #cfd4dc;
  background: #f8fafc;
  transform: translateY(-1px);
}

.svqt-progress {
  padding: 14px 28px 0;
}

.svqt-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--svqt-muted);
  font-size: 12px;
  font-weight: 600;
}

.svqt-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.svqt-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4a300, #ffbf3f);
  transition: width 0.22s ease;
}

.svqt-dialog__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 20px 28px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d09a40 #f8f1e5;
}

.svqt-dialog__body::-webkit-scrollbar {
  width: 10px;
}

.svqt-dialog__body::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid #f8f1e5;
  border-radius: 999px;
  background: linear-gradient(180deg, #e2ad4b 0%, #c88717 100%);
  background-clip: padding-box;
}

.svqt-dialog__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d79a2c 0%, #a96f16 100%);
  background-clip: padding-box;
}

.svqt-dialog__body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #f8f1e5;
  box-shadow: inset 0 0 0 1px #eadfce;
}

.svqt-question-intro p {
  margin: 0 0 18px;
  color: var(--svqt-muted);
  font-size: 15px;
  line-height: 1.55;
}

.svqt-options,
.svqt-options--compact {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.svqt-option {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 64px;
  padding: 15px 16px;
  border: 1px solid var(--svqt-border);
  border-radius: 16px;
  background: var(--svqt-white);
  color: var(--svqt-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.svqt-option:hover,
.svqt-option:focus-visible {
  border-color: rgba(244, 163, 0, 0.75);
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.svqt-option.is-selected {
  border-color: var(--svqt-orange);
  background: var(--svqt-soft);
}

.svqt-option img {
  width: 32px;
  height: 22px;
  flex: 0 0 32px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.svqt-option__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svqt-option__copy strong {
  color: var(--svqt-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}

.svqt-option__copy small {
  color: var(--svqt-muted);
  font-size: 12px;
  line-height: 1.35;
}

.svqt-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 28px;
  border-top: 1px solid var(--svqt-border);
  background: #fcfcfd;
}

.svqt-dialog__footer [data-svqt-back] {
  order: 2;
}

.svqt-dialog__note {
  display: none;
}

.svqt-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.svqt-button:hover,
.svqt-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.svqt-button--primary {
  border-color: var(--svqt-orange);
  background: var(--svqt-orange);
  color: #ffffff !important;
}

.svqt-button--primary:hover,
.svqt-button--primary:focus-visible {
  border-color: var(--svqt-orange-dark);
  background: var(--svqt-orange-dark);
}

.svqt-button--secondary {
  border-color: #d0d5dd;
  background: #ffffff;
  color: var(--svqt-ink) !important;
}

.svqt-button--secondary:hover,
.svqt-button--secondary:focus-visible {
  border-color: #98a2b3;
  background: #f8fafc;
}

.svqt-button--text {
  min-height: auto;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
  color: #7a5100 !important;
}

.svqt-button--text:hover,
.svqt-button--text:focus-visible {
  background: var(--svqt-soft);
}

.svqt-loading,
.svqt-empty-state {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.svqt-loading p,
.svqt-empty-state p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--svqt-muted);
  line-height: 1.55;
}

.svqt-empty-state h3 {
  margin: 0;
  color: var(--svqt-ink);
  font-size: 23px;
}

.svqt-empty-state .svqt-button {
  margin-top: 18px;
}

.svqt-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #f1f3f7;
  border-top-color: var(--svqt-orange);
  border-radius: 50%;
  animation: svqt-spin 0.8s linear infinite;
}

@keyframes svqt-spin {
  to { transform: rotate(360deg); }
}

.svqt-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svqt-result-card {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--svqt-border);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.06);
}

.svqt-result-card:first-child {
  border-color: rgba(244, 163, 0, 0.72);
  box-shadow: 0 12px 34px rgba(244, 163, 0, 0.13);
}

.svqt-result-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svqt-result-card__image {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 16px;
  background: #f1f3f6;
}

.svqt-result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svqt-result-card__heading {
  min-width: 0;
}

.svqt-result-card__rank {
  display: block;
  margin-bottom: 3px;
  color: #966200;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.svqt-result-card__heading h3 {
  margin: 0;
  overflow: hidden;
  color: var(--svqt-ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svqt-result-card__lessons {
  margin: 4px 0 0;
  color: var(--svqt-muted);
  font-size: 11px;
}

.svqt-result-card__reason {
  margin: 15px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.svqt-result-card__availability {
  margin-top: 14px;
  padding: 12px;
  border-radius: 13px;
  background: #f8fafc;
}

.svqt-result-card__availability strong {
  display: block;
  margin-bottom: 6px;
  color: var(--svqt-ink);
  font-size: 12px;
}

.svqt-result-card__availability ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svqt-result-card__availability li {
  position: relative;
  margin: 4px 0;
  padding-left: 13px;
  color: #475467;
  font-size: 11px;
  line-height: 1.4;
}

.svqt-result-card__availability li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--svqt-orange);
}

.svqt-result-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.svqt-result-card__actions .svqt-button {
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
}

.svqt-diagnostics {
  margin-top: 18px;
  border: 1px dashed #cfd4dc;
  border-radius: 14px;
  background: #fcfcfd;
}

.svqt-diagnostics summary {
  padding: 13px 15px;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.svqt-diagnostics__content {
  padding: 0 15px 14px;
  color: var(--svqt-muted);
  font-size: 12px;
  line-height: 1.5;
}

.svqt-diagnostics__content ul {
  margin: 6px 0 10px;
  padding-left: 18px;
}

.svqt-diagnostics__content p {
  margin: 8px 0 0;
}

.svqt-live-region {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 641px) {
  .svqt-dialog__header {
    min-height: 132px;
    flex: 0 0 132px;
    align-items: center;
    padding: 22px 28px;
  }

  .svqt-progress {
    min-height: 60px;
    flex: 0 0 60px;
    padding: 13px 28px 12px;
    border-bottom: 1px solid var(--svqt-border);
  }

  .svqt-dialog__footer {
    min-height: 72px;
    flex: 0 0 72px;
    padding: 14px 28px;
  }

  .svqt-option {
    flex: 0 0 auto;
  }
}

@media (max-width: 900px) {
  .svqt-result-card__actions {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .svqt-mobile-copy-hidden {
    display: none !important;
  }

  .svqt-invite {
    left: 10px;
    bottom: 0;
    width: calc(100vw - 20px);
  }

  .svqt-invite__trigger {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 96px;
  }

  .svqt-invite__mascot {
    width: 100px;
    margin-right: -12px;
    transform: translateY(0);
  }

  .svqt-invite__bubble {
    min-height: 84px;
    padding: 15px 48px 14px 18px;
    border-radius: 18px;
  }

  .svqt-invite__bubble::before {
    left: -7px;
    top: 36px;
    width: 14px;
    height: 14px;
  }

  .svqt-invite__title {
    font-size: 17px;
  }

  .svqt-invite__description {
    margin-top: 4px;
    font-size: 12.5px;
  }

  .svqt-invite__arrow {
    right: 12px;
    bottom: 11px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .svqt-icon-button.svqt-invite__close {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    min-width: 26px;
    flex-basis: 26px;
    font-size: 18px;
  }

  .svqt-modal {
    align-items: flex-end;
    padding: 0;
  }

  .svqt-dialog {
    width: 100%;
    height: 68vh;
    height: 68dvh;
    max-height: 68vh;
    max-height: 68dvh;
    border-radius: 24px 24px 0 0;
  }

  .svqt-dialog__header {
    min-height: 0;
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 20px 19px 15px;
  }

  .svqt-dialog__heading h2 {
    font-size: 27px;
  }

  .svqt-dialog__heading h2.svqt-dialog-title--long {
    font-size: 24px;
  }

  .svqt-dialog__heading h2.svqt-dialog-title--extra-long {
    font-size: 21px;
  }

  .svqt-progress {
    min-height: 0;
    flex: 0 0 auto;
    padding: 12px 19px 0;
    border-bottom: 0;
  }

  .svqt-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 19px 24px;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .svqt-dialog__footer {
    min-height: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    padding: 13px 19px;
  }

  .svqt-dialog__note {
    max-width: 210px;
  }

  .svqt-option {
    min-height: 62px;
  }

  .svqt-result-card__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svqt-root *,
  .svqt-root *::before,
  .svqt-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
