/* Core-integrated partner registration; inherits existing Core/Elementor design. */
#tm-registration-form section.tm-app.tm-application{max-width:100%;}

/* A signed application result remains visible even after an Elementor popup reload. */
body.tm-platform #tm-completed-registration{position:relative;z-index:2;max-width:1050px;width:calc(100% - 32px);margin:24px auto 30px;padding:0;box-sizing:border-box}
body.tm-platform #tm-completed-registration .tm-after-apply-preview{margin:0}
body.tm-platform #tm-registration-form .tm-completed-registration{max-width:100%}
@media(max-width:610px){body.tm-platform #tm-completed-registration{width:calc(100% - 20px);margin:12px auto 22px}}

/* v1.0.9 — Result header borrows the public area heading, card remains untouched. */
body.tm-platform .tm-application:has(> .tm-after-apply-preview){padding-top:0!important;}
body.tm-platform .tm-application:has(> .tm-after-apply-preview)>h1{display:none!important;}
body.tm-platform .tm-application .tm-registration-results-head{padding-top:0!important;position:relative;}
/* Reserve room for the existing Elementor close control without changing public heading CSS. */
body.tm-platform .elementor-popup-modal:has(.tm-after-apply-preview) .tm-registration-results-head,
body.tm-platform .dialog-widget:has(.tm-after-apply-preview) .tm-registration-results-head{padding-right:44px!important;}
/* Only the registration RESULT dialog: compact cross aligned to top-right of heading. */
@media(max-width:610px){
 body.tm-platform .elementor-popup-modal:has(.tm-after-apply-preview) .dialog-close-button,
 body.tm-platform .dialog-widget:has(.tm-after-apply-preview) .dialog-close-button{
   position:absolute!important;top:10px!important;right:10px!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   box-sizing:border-box!important;width:44px!important;height:44px!important;
   min-width:44px!important;min-height:44px!important;padding:0!important;
   font-size:16px!important;line-height:1!important;border-radius:9px!important;
   background:#edf3f7!important;color:#173958!important;border:0!important;
   box-shadow:none!important;z-index:100!important;
 }
 body.tm-platform .elementor-popup-modal:has(.tm-after-apply-preview) .dialog-close-button i,
 body.tm-platform .elementor-popup-modal:has(.tm-after-apply-preview) .dialog-close-button svg,
 body.tm-platform .dialog-widget:has(.tm-after-apply-preview) .dialog-close-button i,
 body.tm-platform .dialog-widget:has(.tm-after-apply-preview) .dialog-close-button svg{width:16px!important;height:16px!important;font-size:16px!important;}
 body.tm-platform .elementor-popup-modal:has(.tm-after-apply-preview) .dialog-message,
 body.tm-platform .dialog-widget:has(.tm-after-apply-preview) .dialog-message{padding-top:8px!important;}
}
/* v1.1.6 — replace stale fallback in a re-opened Elementor popup after submission. */
#tm-registration-form .tm-registration-complete-notice{background:#f3f8fc;border:1px solid #d6e6f2;border-radius:10px;padding:16px;color:#10375b;font:500 14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
#tm-registration-form .tm-registration-complete-notice strong{display:block;font-size:16px;font-weight:800}
#tm-registration-form .tm-registration-complete-notice p{margin:8px 0 12px}
#tm-registration-form .tm-registration-complete-notice a{color:#10375b;font-weight:800;text-decoration:underline}
