/* WTT AirROI v3.2.3
   Keep the working v3.2.2 popup and full-page design.
   Fix only:
   1) modal close button position
   2) mobile launcher/card layout
*/

/* The v3.2.2 stack fix made the close button relative for z-index.
   Put it back where it belongs: top-right of the popup. */
html body .wtt-modal .wtt-modal-dialog > .wtt-modal-close,
html body .wtt-modal .wtt-modal-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:50!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  margin:0!important;
  transform:none!important;
}

/* Keep the modal heading clear of the close button. */
html body .wtt-modal .wtt-airroi-estimator .wtt-header{
  padding-right:58px!important;
}

/* Mobile service-page launcher: stack text and button instead of left/right split. */
@media (max-width: 760px){
  html body .wtt-airroi-launcher{
    width:100%!important;
    max-width:100%!important;
    margin:18px auto!important;
  }

  html body .wtt-airroi-launcher .wtt-launcher-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:16px!important;
    padding:18px!important;
    text-align:center!important;
  }

  html body .wtt-airroi-launcher .wtt-launcher-card > div{
    width:100%!important;
    max-width:100%!important;
  }

  html body .wtt-airroi-launcher .wtt-eyebrow{
    justify-content:center!important;
    text-align:center!important;
  }

  html body .wtt-airroi-launcher .wtt-launcher-card h3{
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
    font-size:clamp(1.42rem,7vw,1.9rem)!important;
    line-height:1.08!important;
  }

  html body .wtt-airroi-launcher .wtt-launcher-card p:not(.wtt-eyebrow){
    max-width:100%!important;
    margin:9px auto 0!important;
    text-align:center!important;
    font-size:.95rem!important;
    line-height:1.5!important;
  }

  html body .wtt-airroi-launcher .wtt-launcher-card .wtt-btn,
  html body .wtt-airroi-launcher .wtt-launcher-card button.wtt-btn{
    width:100%!important;
    max-width:100%!important;
    min-height:50px!important;
    padding-left:18px!important;
    padding-right:18px!important;
    white-space:normal!important;
  }
}

@media (max-width: 640px){
  html body .wtt-modal .wtt-modal-dialog > .wtt-modal-close,
  html body .wtt-modal .wtt-modal-close{
    top:12px!important;
    right:12px!important;
  }

  html body .wtt-modal .wtt-airroi-estimator .wtt-header{
    padding-right:54px!important;
  }
}
