.lehmann-results-embed{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  line-height:0;
  overflow:hidden;
}
.lehmann-results-frame{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
  margin:0;
  padding:0;
  background:#f3eee4;
  opacity:0;
  transition:opacity .18s ease;
}
.elementor-widget-shortcode .lehmann-results-embed,
.elementor-shortcode .lehmann-results-embed{
  width:100%;
}

/* v1.1: let Results Engine fully control natural iframe height */
.lehmann-results-frame{
  min-height:0 !important;
  will-change:auto;
}

/* =========================================================
   v1.2 – Elementor / WordPress mobile width fix
   ========================================================= */

/* Do not let Elementor wrappers constrain the iframe width */
.elementor-widget-shortcode,
.elementor-widget-shortcode > .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode,
.elementor-widget-shortcode .lehmann-results-embed{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
}

.lehmann-results-embed{
  box-sizing:border-box;
}

.lehmann-results-frame{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box;
}

/* On phones the results module gets the true device viewport width.
   This neutralizes Elementor/container horizontal padding. */
@media(max-width:767px){
  .elementor-widget-shortcode:has(.lehmann-results-embed){
    overflow:visible !important;
  }

  .lehmann-results-embed{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    overflow:hidden !important;
  }

  .lehmann-results-frame{
    display:block;
    width:100vw !important;
    max-width:100vw !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow-x:hidden !important;
  }
}

/* iOS Safari viewport safety */
@supports (width: 100dvw){
  @media(max-width:767px){
    .lehmann-results-embed,
    .lehmann-results-frame{
      width:100dvw !important;
      max-width:100dvw !important;
    }
    .lehmann-results-embed{
      margin-left:calc(50% - 50dvw) !important;
      margin-right:calc(50% - 50dvw) !important;
    }
  }
}
