@media (max-width:768px){
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:calc(var(--tpdmv-safe-bottom,0px) + 8px)!important;
    /* Journey's fixed container uses 2147483535. Keep the quiz controls above
       its transparent hit-testing layer while their calculated bottom offset
       keeps them physically clear of the visible ad. */
    z-index:2147483646!important;
    pointer-events:auto!important;
    isolation:isolate!important;
    display:grid!important;
    grid-template-columns:minmax(108px,.72fr) minmax(0,1.28fr)!important;
    gap:8px!important;
    width:min(calc(100% - 20px),800px)!important;
    padding:10px!important;
    border:1px solid #dce4ef!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 -8px 26px rgba(21,34,56,.18)!important;
    -webkit-transform:translate3d(-50%,0,0)!important;
    transform:translate3d(-50%,0,0)!important;
    -webkit-backface-visibility:hidden!important;
    backface-visibility:hidden!important;
    will-change:transform!important;
  }
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active .tp-btn{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    margin:0!important;
    padding:10px 8px!important;
    white-space:normal!important;
    line-height:1.2!important;
    touch-action:manipulation!important;
    pointer-events:auto!important;
    -webkit-tap-highlight-color:rgba(0,0,0,0)!important;
  }
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active .tp-secondary{
    color:#17345f!important;
    border:1px solid #cbd8ea!important;
    background:#f3f6fa!important;
  }
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active .tp-secondary:disabled{
    opacity:.48!important;
  }
}
@media (max-width:390px){
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active{
    grid-template-columns:minmax(94px,.65fr) minmax(0,1.35fr)!important;
  }
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active .tp-btn{
    font-size:14px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  #tpdmv-quiz .tp-footer.tpdmv-flow-sticky-active{scroll-behavior:auto!important}
}

/* v1.1.6 - Compact desktop quiz: question + answers + Next fit on one screen
   even with header and banners. Desktop only; mobile and results untouched. */
@media (min-width:769px){
  #tpdmv-quiz :is(.tp-question,#tp-question,.tp-question-text,.tp-q-text,.tp-q,h2,h3):not(#tp-results *):not(.tp-results *){
    font-size:clamp(18px,1.35vw,21px)!important;
    line-height:1.4!important;
    margin-top:0!important;
    margin-bottom:12px!important;
    font-weight:650!important;
  }
  #tpdmv-quiz button.tp-option{
    font-size:15.5px!important;
    line-height:1.35!important;
    padding:10px 14px!important;
    margin-top:0!important;
    margin-bottom:8px!important;
    min-height:44px!important;
  }
  #tpdmv-quiz :is(.tp-explanation,.tp-feedback,.tp-explain,.expl):not(#tp-results *){
    font-size:15px!important;
    line-height:1.5!important;
    margin-top:10px!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  #tpdmv-quiz .tp-footer:not(.tpdmv-flow-sticky-active){
    margin-top:12px!important;
  }
  #tpdmv-quiz .tp-footer .tp-btn{
    min-height:44px!important;
    font-size:15.5px!important;
  }
}
