/*
 * Header and off-canvas menu fixes. Site-wide - the header is on every page.
 *
 * Moved out of assets/header-ui.php in 1.54.0, where it was printed inline in
 * wp_head on every page view (4.6KB of HTML no browser could cache). As a file
 * it is cached across pages. Enqueued straight after tm-global.css, which was
 * verified to give identical computed style to the old inline position (every
 * element, 3 pages desktop + 2 phone).
 *
 * THESE SELECTORS ARE HARD-CODED ELEMENTOR ELEMENT IDs (a19ba31, 2d5fa15c,
 * 4b9be595, 287257ba, 5a44ab6c, 4fb743c, 09e9dd2 in header template 2491 and its
 * off-canvas). If the header is rebuilt they go stale silently. When it is next
 * rebuilt, give those widgets CSS classes and switch these rules to them.
 */

/* tm-mobile-header-fixes */
@media (max-width:1024px){
  .elementor-2491 .elementor-element-a19ba31,
  .elementor-2491 .elementor-sticky .elementor-element-a19ba31,
  .elementor-2491 .elementor-sticky__spacer .elementor-element-a19ba31{
    display:inline-flex !important;
  }
  .elementor-element-a19ba31 .tm-acct-name{ display:none !important; }
  .elementor-element-a19ba31 .tm-acct-menu{
    display:none !important;
    pointer-events:none !important;
  }
}
@media (max-width:1024px){
  .elementor-element-2d5fa15c .elementor-element-4b9be595 nav.elementor-nav-menu--main,
  .elementor-element-2d5fa15c .elementor-element-4b9be595 ul.elementor-nav-menu,
  .elementor-element-2d5fa15c .elementor-element-4b9be595 ul.elementor-nav-menu > li{
    display:block !important;
  }
  .elementor-element-2d5fa15c .elementor-element-287257ba nav.elementor-nav-menu--main,
  .elementor-element-2d5fa15c .elementor-element-287257ba ul.elementor-nav-menu,
  .elementor-element-2d5fa15c .elementor-element-287257ba ul.elementor-nav-menu > li{
    display:block !important;
  }
}

/* tm-offcanvas-polish */
.elementor-element-2d5fa15c .elementor-element-5a44ab6c{
  padding-left:20px !important;
  padding-right:20px !important;
}

.elementor-element-2d5fa15c .elementor-element-4fb743c,
.elementor-element-2d5fa15c .elementor-element-09e9dd2{
  align-self:center !important;
  width:auto !important;
  max-width:100% !important;
}
.elementor-element-2d5fa15c .elementor-element-4fb743c .elementor-button,
.elementor-element-2d5fa15c .elementor-element-09e9dd2 .elementor-button{
  width:auto !important;
  min-width:270px !important;
  max-width:100% !important;
  padding-left:24px !important;
  padding-right:24px !important;
  text-align:center !important;
  justify-content:center !important;
}
.elementor-element-2d5fa15c .elementor-element-09e9dd2{
  margin-top:-6px !important;
}

.elementor-element-2d5fa15c .elementor-element-4b9be595 .elementor-nav-menu--main .sub-menu{
  display:block !important;
  position:static !important;
  visibility:inherit !important;
  opacity:1 !important;
  transform:none !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:2px 0 6px !important;
  padding:0 0 0 14px !important;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}
.elementor-element-2d5fa15c .elementor-element-4b9be595 .elementor-nav-menu--main .sub-menu .elementor-sub-item{
  display:block !important;
  padding:9px 12px 9px 16px !important;
  border-radius:8px !important;
  font-size:15px !important;
  font-weight:500 !important;
  color:#FFFFFF !important;
  opacity:.82 !important;
}
.elementor-element-2d5fa15c .elementor-element-4b9be595 .elementor-nav-menu--main .sub-menu .elementor-sub-item:hover{
  opacity:1 !important;
  color:#F57B20 !important;
  background:rgba(255,255,255,.05) !important;
}

.elementor-element-2d5fa15c .elementor-element-4b9be595 .elementor-nav-menu--main .sub-arrow,
.elementor-element-2d5fa15c .elementor-element-4b9be595 .elementor-nav-menu--main .elementor-item .sub-arrow{
  display:none !important;
}

/* tm-acct-ico-mask */
.tm-acct-trigger .tm-acct-ico{display:none !important;}.tm-acct-trigger::after{content:"" !important;display:inline-block !important;width:28px !important;height:28px !important;margin-left:8px !important;vertical-align:middle !important;background-color:#283071 !important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23283071%27%20stroke-width=%272%27%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%279%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2710%27%20r=%273%27/%3E%3Cpath%20d=%27M6.2%2018.8a4%204%200%200%201%203.8-2.8h4a4%204%200%200%201%203.8%202.8%27/%3E%3C/svg%3E") center / contain no-repeat !important;mask:url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23283071%27%20stroke-width=%272%27%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%279%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2710%27%20r=%273%27/%3E%3Cpath%20d=%27M6.2%2018.8a4%204%200%200%201%203.8-2.8h4a4%204%200%200%201%203.8%202.8%27/%3E%3C/svg%3E") center / contain no-repeat !important;}.tm-acct-trigger:hover::after,.tm-acct-trigger:focus-visible::after{background-color:#F57B20 !important;}.e-off-canvas .tm-acct-trigger::after{background-color:#ffffff !important;}.e-off-canvas .tm-acct-trigger:hover::after,.e-off-canvas .tm-acct-trigger:focus-visible::after{background-color:#ffffff !important;}
