/* MK Truck Tools 2.0.29 — typography isolation and header repair.
   Important: never impose a font family on the host theme/site. */

/* All plugin UI inherits the font already selected by the active theme/Elementor. */
.mktt-ui,.mktt-ui *,
.mktt-shell,.mktt-shell *,
.mktt-grid,.mktt-grid *,
.mktt-chassis,.mktt-chassis *,
.mktt-app-modal,.mktt-app-modal *,
.mktt-status-home,.mktt-status-home *,
.mktt-status-page,.mktt-status-page *,
.mktt-customer-portal,.mktt-customer-portal *,
.mktt-ref,.mktt-ref *,
.mktt-ref-account-extra,.mktt-ref-account-extra *,
.mktt-staff-doc-center,.mktt-staff-doc-center *,
.mktt-home-buying-v224,.mktt-home-buying-v224 *,
.mktt-behavior-hub-v225,.mktt-behavior-hub-v225 *,
.mktt-behavior-hero-intent,.mktt-behavior-hero-intent *,
.mktt-behavior-calc-note,.mktt-behavior-calc-note *,
.mktt-home-consult,.mktt-home-consult *,
.mktt-free-consult,.mktt-free-consult *,
.mktt-staff-panel,.mktt-staff-panel *,
.mktt-staff-login,.mktt-staff-login *,
.mktt-crm-customer,.mktt-crm-customer *,
.mktt-mobile-drawer,.mktt-mobile-drawer *,
.mktt-mobile-call-cta,.mktt-mobile-call-cta *,
.mktt-desktop-nav-v224,.mktt-desktop-nav-v224 *,
.mktt-desktop-account-v224,
.mktt-mobile-account-button,
.mktt-brand-v228,.mktt-brand-v228 *,
.mktt-drawer-brand-v228,.mktt-drawer-brand-v228 *{
  font-family:inherit;
}

/* Form controls must also follow the site typography on iOS/Safari. */
.mktt-ui input,.mktt-ui select,.mktt-ui textarea,.mktt-ui button,
.mktt-shell input,.mktt-shell select,.mktt-shell textarea,.mktt-shell button,
.mktt-ref input,.mktt-ref select,.mktt-ref textarea,.mktt-ref button,
.mktt-behavior-hub-v225 input,.mktt-behavior-hub-v225 select,.mktt-behavior-hub-v225 textarea,.mktt-behavior-hub-v225 button,
.mktt-free-consult input,.mktt-free-consult select,.mktt-free-consult textarea,.mktt-free-consult button{
  font-family:inherit;
}

/* Replacement brand: keep its CSS strictly inside the logo component. */
.mktt-brand-v228{box-sizing:border-box!important}
.mktt-brand-v228 *{box-sizing:border-box!important}
.mktt-brand-copy-v228{overflow:hidden!important}
.mktt-brand-copy-v228 strong,.mktt-brand-copy-v228 small{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* Mobile: reserve independent zones for brand (right) and actions (left). */
@media(max-width:760px){
  .mktt-mobile-header-v222.mktt-brand-host-v228{
    position:relative!important;
    min-height:78px!important;
    padding-right:0!important;
    padding-left:0!important;
    overflow:visible!important;
  }
  .mktt-brand-v228{
    right:10px!important;
    left:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    gap:7px!important;
    max-width:min(48vw,230px)!important;
    min-width:0!important;
  }
  .mktt-brand-v228 img{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    border-radius:12px!important;
  }
  .mktt-brand-copy-v228{
    width:auto!important;
    max-width:calc(min(48vw,230px) - 52px)!important;
    min-width:0!important;
    align-items:flex-start!important;
  }
  .mktt-brand-copy-v228 strong{
    font-size:14px!important;
    line-height:1.45!important;
    white-space:nowrap!important;
  }
  .mktt-brand-copy-v228 small{
    margin-top:1px!important;
    font-size:7.6px!important;
    line-height:1.55!important;
    white-space:nowrap!important;
  }
  .mktt-mobile-header-actions{
    left:10px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    display:flex!important;
    gap:7px!important;
    max-width:46vw!important;
  }
  .mktt-mobile-header-actions .mktt-mobile-account-button{
    min-height:42px!important;
    height:42px!important;
    padding-inline:12px!important;
    white-space:nowrap!important;
  }
  .mktt-mobile-menu-toggle{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
  }
}

@media(max-width:410px){
  .mktt-brand-v228{right:7px!important;gap:5px!important;max-width:44vw!important}
  .mktt-brand-v228 img{width:39px!important;height:39px!important;flex-basis:39px!important}
  .mktt-brand-copy-v228{max-width:calc(44vw - 44px)!important}
  .mktt-brand-copy-v228 strong{font-size:12.7px!important}
  .mktt-brand-copy-v228 small{font-size:6.8px!important}
  .mktt-mobile-header-actions{left:7px!important;gap:5px!important;max-width:51vw!important}
  .mktt-mobile-header-actions .mktt-mobile-account-button{height:40px!important;min-height:40px!important;padding-inline:9px!important;font-size:11.5px!important}
  .mktt-mobile-menu-toggle{width:40px!important;height:40px!important;min-width:40px!important}
}

@media(max-width:350px){
  .mktt-brand-copy-v228 small{display:none!important}
  .mktt-brand-copy-v228 strong{font-size:12px!important}
}

/* Legacy theme identity hidden by JS remains hidden without affecting navigation. */
.mktt-brand-legacy-v228{display:none!important}

/* v2.0.30 final typography safety net.
   Never set a global font on html/body/theme/Elementor containers.
   Only plugin-owned nodes inherit whatever their actual parent/site already uses. */
:is(
  .mktt-ui,.mktt-shell,.mktt-grid,.mktt-chassis,.mktt-app-modal,
  .mktt-status-home,.mktt-status-page,.mktt-customer-portal,.mktt-ref,
  .mktt-ref-account-extra,.mktt-staff-doc-center,.mktt-home-buying-v224,
  .mktt-behavior-hub-v225,.mktt-behavior-hero-intent,.mktt-behavior-calc-note,
  .mktt-home-consult,.mktt-free-consult,.mktt-staff-panel,.mktt-staff-login,
  .mktt-crm-customer,.mktt-mobile-drawer,.mktt-mobile-call-cta,
  .mktt-desktop-nav-v224,.mktt-desktop-account-v224,.mktt-mobile-account-button,
  .mktt-brand-v228,.mktt-drawer-brand-v228,.mktt-offices-v226,.mktt-budget-tool,
  .mktt-v227-notices,.mktt-saved-bar-v224
),
:is(
  .mktt-ui,.mktt-shell,.mktt-grid,.mktt-chassis,.mktt-app-modal,
  .mktt-status-home,.mktt-status-page,.mktt-customer-portal,.mktt-ref,
  .mktt-ref-account-extra,.mktt-staff-doc-center,.mktt-home-buying-v224,
  .mktt-behavior-hub-v225,.mktt-behavior-hero-intent,.mktt-behavior-calc-note,
  .mktt-home-consult,.mktt-free-consult,.mktt-staff-panel,.mktt-staff-login,
  .mktt-crm-customer,.mktt-mobile-drawer,.mktt-mobile-call-cta,
  .mktt-desktop-nav-v224,.mktt-brand-v228,.mktt-drawer-brand-v228,
  .mktt-offices-v226,.mktt-budget-tool,.mktt-v227-notices,.mktt-saved-bar-v224
) * {
  font-family:inherit;
}
