/* MitsubishiMTC v40 public UI restore: external CSS, cache-safe. */
:root{--mtc-v40-red:#d71920;--mtc-v40-dark:#15171a;--mtc-v40-shadow:0 14px 34px rgba(17,19,23,.22)}

/* Critical: never let older rules hide the new quick UI. */
.mtc-v39-contact-stack{display:flex!important;position:fixed!important;right:18px!important;bottom:94px!important;left:auto!important;top:auto!important;flex-direction:column!important;gap:10px!important;z-index:2147483000!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
.mtc-v39-contact-stack a{display:flex!important;align-items:center!important;justify-content:center!important;width:58px!important;height:58px!important;padding:0!important;border:1px solid rgba(17,19,23,.12)!important;border-radius:50%!important;background:#fff!important;box-shadow:var(--mtc-v40-shadow)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;text-decoration:none!important;overflow:hidden!important}
.mtc-v39-contact-stack a[data-channel="phone"]{background:var(--mtc-v40-red)!important;border-color:var(--mtc-v40-red)!important}
.mtc-v39-contact-stack img{display:block!important;width:42px!important;height:42px!important;object-fit:contain!important}
.mtc-v39-contact-stack a[data-channel="phone"] img{width:29px!important;height:29px!important}
.mtc-v39-contact-stack a:hover,.mtc-v39-contact-stack a:focus-visible{transform:translateY(-2px)!important;box-shadow:0 18px 38px rgba(17,19,23,.28)!important}

.mtc-v39-conversion-dock{display:grid!important;position:fixed!important;left:50%!important;right:auto!important;bottom:18px!important;top:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:min(800px,calc(100vw - 190px))!important;max-width:800px!important;transform:translateX(-50%)!important;z-index:2147482900!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.mtc-v39-conversion-dock a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:50px!important;padding:10px 18px!important;border-radius:999px!important;color:#fff!important;font:900 13px/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:center!important;text-decoration:none!important;box-shadow:0 12px 28px rgba(0,0,0,.20)!important}
.mtc-v39-conversion-dock a:nth-child(1){background:var(--mtc-v40-red)!important}
.mtc-v39-conversion-dock a:nth-child(2){background:var(--mtc-v40-dark)!important}
.mtc-v39-conversion-dock a:nth-child(3){background:#34383f!important}

/* Hide duplicated legacy controls only after the v40 replacements are visible. */
.floating-actions,.quick-conversion-bar{display:none!important}

/* Tablet/mobile main menu. The panel is viewport-fixed so header overflow cannot clip it. */
.mtc-v39-mobile-nav{display:none!important}
@media(max-width:1180px){
  .mmv-header{overflow:visible!important;position:relative!important;z-index:2147482500!important}
  .mmv-nav,.mmv-header-actions{display:none!important}
  .mtc-v39-mobile-nav{display:block!important;position:relative!important;margin-left:auto!important;z-index:2147483200!important}
  .mtc-v39-mobile-nav>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:46px!important;min-height:44px!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:var(--mtc-v40-dark)!important;color:#fff!important;cursor:pointer!important;list-style:none!important;font:900 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-transform:uppercase!important}
  .mtc-v39-mobile-nav>summary::-webkit-details-marker{display:none!important}
  .mtc-v39-mobile-nav>summary::before{content:"☰"!important;font-size:20px!important;line-height:1!important}
  .mtc-v39-mobile-nav[open]>summary::before{content:"×"!important;font-size:25px!important}
  .mtc-v39-mobile-panel{display:block!important;position:fixed!important;top:76px!important;right:12px!important;left:12px!important;width:auto!important;min-width:0!important;max-height:calc(100dvh - 92px)!important;margin:0!important;padding:10px!important;overflow:auto!important;border:1px solid rgba(17,19,23,.12)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 26px 70px rgba(0,0,0,.26)!important;z-index:2147483300!important}
  .mtc-v39-mobile-panel>a,.mtc-v40-products-dropdown>summary,.mtc-v40-products-list>a{box-sizing:border-box!important;width:100%!important;color:#16181c!important;text-decoration:none!important;font:800 14px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
  .mtc-v39-mobile-panel>a{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:10px 13px!important;border-bottom:1px solid #eceff2!important}
  .mtc-v39-mobile-panel>a::after{content:"›"!important;color:#a3a8af!important;font-size:22px!important}
  .mtc-v39-mobile-panel>.mtc-v39-menu-primary{margin-bottom:7px!important;border:0!important;border-radius:10px!important;background:var(--mtc-v40-red)!important;color:#fff!important}
  .mtc-v39-mobile-panel>.mtc-v39-menu-primary::after{color:#fff!important}
  .mtc-v40-products-dropdown{display:block!important;border-bottom:1px solid #eceff2!important}
  .mtc-v40-products-dropdown>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:50px!important;padding:10px 13px!important;cursor:pointer!important;list-style:none!important}
  .mtc-v40-products-dropdown>summary::-webkit-details-marker{display:none!important}
  .mtc-v40-products-dropdown>summary::after{content:"⌄"!important;font-size:18px!important;color:#6b7077!important;transition:transform .18s ease!important}
  .mtc-v40-products-dropdown[open]>summary::after{transform:rotate(180deg)!important}
  .mtc-v40-products-list{display:grid!important;gap:4px!important;padding:0 8px 9px 18px!important}
  .mtc-v40-products-list>a{display:flex!important;align-items:center!important;min-height:42px!important;padding:8px 11px!important;border-radius:9px!important;background:#f5f6f7!important}
  .mtc-v40-products-list>a:hover,.mtc-v40-products-list>a:focus-visible{background:#eceff2!important}
}

/* Hero carousel: JS is primary. This external CSS also provides a 4-slide fallback. */
.mmv-hero-slide{transition:opacity .72s ease!important}
html.mtc-v40-js-ready .mmv-hero-slide{animation:none!important}
html:not(.mtc-v40-js-ready) .mmv-hero-track:has(>.mmv-hero-slide:nth-child(4)):not(:has(>.mmv-hero-slide:nth-child(5)))>.mmv-hero-slide{opacity:0!important;animation:mtc-v40-four-slide 20s linear infinite both!important;pointer-events:none!important}
html:not(.mtc-v40-js-ready) .mmv-hero-track:has(>.mmv-hero-slide:nth-child(4)):not(:has(>.mmv-hero-slide:nth-child(5)))>.mmv-hero-slide:nth-child(1){animation-delay:0s!important}
html:not(.mtc-v40-js-ready) .mmv-hero-track:has(>.mmv-hero-slide:nth-child(4)):not(:has(>.mmv-hero-slide:nth-child(5)))>.mmv-hero-slide:nth-child(2){animation-delay:5s!important}
html:not(.mtc-v40-js-ready) .mmv-hero-track:has(>.mmv-hero-slide:nth-child(4)):not(:has(>.mmv-hero-slide:nth-child(5)))>.mmv-hero-slide:nth-child(3){animation-delay:10s!important}
html:not(.mtc-v40-js-ready) .mmv-hero-track:has(>.mmv-hero-slide:nth-child(4)):not(:has(>.mmv-hero-slide:nth-child(5)))>.mmv-hero-slide:nth-child(4){animation-delay:15s!important}
@keyframes mtc-v40-four-slide{0%,20%{opacity:1}25%,95%{opacity:0}100%{opacity:1}}

@media(max-width:760px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
  .mtc-v39-mobile-nav>summary{width:44px!important;height:44px!important;padding:0!important;min-width:44px!important}
  .mtc-v39-mobile-nav>summary span{display:none!important}
  .mtc-v39-mobile-panel{top:68px!important;right:8px!important;left:8px!important;max-height:calc(100dvh - 82px)!important;border-radius:14px!important}
  .mtc-v39-conversion-dock{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:7px 7px max(7px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important;border-top:1px solid #dfe2e6!important;background:#fff!important;box-shadow:0 -8px 26px rgba(0,0,0,.12)!important;transform:none!important}
  .mtc-v39-conversion-dock a{min-height:52px!important;padding:7px 4px!important;border-radius:9px!important;font-size:10.5px!important;line-height:1.1!important;white-space:normal!important}
  .mtc-v39-contact-stack{right:9px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;gap:7px!important}
  .mtc-v39-contact-stack a{width:49px!important;height:49px!important}
  .mtc-v39-contact-stack img{width:37px!important;height:37px!important}
  .mtc-v39-contact-stack a[data-channel="phone"] img{width:25px!important;height:25px!important}
  .ai-chat{bottom:calc(78px + env(safe-area-inset-bottom))!important;right:66px!important;z-index:2147482800!important}
  .ai-chat-panel{bottom:64px!important}
}
@media(min-width:761px) and (max-width:1180px){
  .mtc-v39-contact-stack{right:12px!important;bottom:88px!important}
  .mtc-v39-conversion-dock{bottom:16px!important;width:min(760px,calc(100vw - 170px))!important}
}
@media(max-width:390px){
  .mtc-v39-mobile-panel{top:64px!important}
  .mtc-v39-contact-stack{right:7px!important}
  .mtc-v39-contact-stack a{width:46px!important;height:46px!important}
  .mtc-v39-contact-stack img{width:34px!important;height:34px!important}
  .mtc-v39-conversion-dock a{font-size:9.8px!important;padding-left:2px!important;padding-right:2px!important}
}
