/**
 * MT shell: глобальна шапка/підвал (motor_textile_v2).
 * Компонентні стилі header/search/drawer — у mt_home.css (селектори #mt-shell-search-form).
 * Тут лише приховування Chameleon shell і мінімальні правила поза #mt-home.
 */

body.mt-shell-active > nav#top,
body.mt-shell-active > header:not(.mt-home-header),
body.mt-shell-active > .menu-header-box,
body.mt-shell-active > footer:not(.mt-home-footer),
body.mt-shell-active > .container.hidden-xs,
body.mt-shell-active #fm-fixed-mobile {
  display: none !important;
}

body.mt-shell-active.mt-inner-page {
  background: var(--mt-bg, #f5f3ef);
}

body.mt-shell-active.mt-inner-page #content {
  padding-top: 0;
}

body.mt-shell-active.mt-home-search-panel-open,
body.mt-shell-active.mt-home-live-search-open {
  overflow: hidden;
}

body.mt-shell-active.mt-shell-variant-checkout .mt-home-header__burger {
  display: none;
}

/* Скидання legacy megamenu.css header{padding-top:54px} / tabs.css .ft_tabs_mob header{100px}
   (#fm-fixed-mobile прихований вище — відступ лишався порожнім) */
body.mt-shell-active header.mt-home-header {
  padding-top: env(safe-area-inset-top, 0);
}

/* Шапка/drawer поза #mt-home: успадковані stroke/fill з .mt-home svg */
body.mt-shell-active .mt-home-header,
body.mt-shell-active nav.mt-home-drawer {
  box-sizing: border-box;
}

body.mt-shell-active .mt-home-header svg,
body.mt-shell-active nav.mt-home-drawer svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mt-shell-active .mt-home-contact svg,
body.mt-shell-active .mt-home-contact svg path,
body.mt-shell-active .mt-home-contact svg circle {
  stroke: none;
  stroke-width: 0;
}

body.mt-shell-active .mt-home-contact__button-icon svg path,
body.mt-shell-active .mt-home-contact__phone-icon svg path,
body.mt-shell-active .mt-home-contact__email-icon svg path,
body.mt-shell-active .mt-home-contact__address-icon svg path {
  fill: currentColor;
}

body.mt-shell-active .mt-home-contact__address-icon svg circle {
  fill: #fff;
}

body.mt-shell-active .mt-home-contact__messenger-svg,
body.mt-shell-active .mt-home-contact__messenger-svg path {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

/* Drawer: лівий край тексту */
body.mt-shell-active nav.mt-home-drawer,
body.mt-shell-active .mt-home-drawer .mt-home-side-nav__link,
body.mt-shell-active .mt-home-drawer .mt-home-side-nav__child-link {
  text-align: left;
}

@supports selector(:has(*)) {
  body.mt-shell-active:has(.mt-home-live-search-open) {
    overflow-x: visible !important;
  }
}

body.mt-shell-active.mt-home-search-panel-open {
  overflow-x: visible !important;
}
