#mfs-mobile-header { display: none; }

@media (max-width: 767px) {
  body:has(#mfs-mobile-header) :is(.elementor-location-header, header#site-header) {
    display: none !important;
  }
  #mfs-mobile-header {
    --mfs-mobile-gutter: 12px;
    position: relative;
    z-index: 100;
    display: block;
    isolation: isolate;
    color: #fff;
    background: #222;
    font-family: Montserrat, system-ui, sans-serif;
  }
  #mfs-mobile-header *, #mfs-mobile-header *::before { box-sizing: border-box; }
  #mfs-mobile-header .mfs-mobile-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px) minmax(0, 1fr);
    align-items: center;
    min-height: 74px;
    padding-inline: var(--mfs-mobile-gutter);
  }
  #mfs-mobile-header .mfs-mobile-brand { display: flex; justify-content: center; align-items: center; }
  #mfs-mobile-header .mfs-mobile-brand img { display: block; width: 100%; max-height: 48px; object-fit: contain; }
  #mfs-mobile-header .mfs-mobile-actions { display: flex; justify-content: flex-end; min-width: 0; }
  #mfs-mobile-header .mfs-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
  }
  #mfs-mobile-header summary::-webkit-details-marker,
  #mfs-mobile-header details:not([open]) summary svg:nth-child(2),
  #mfs-mobile-header details[open] summary svg:first-child,
  #mfs-mobile-header .mfs-mobile-cart[hidden] { display: none !important; }
  #mfs-mobile-header :is(a, summary):focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
  #mfs-mobile-header .mfs-mobile-cart span {
    position: absolute;
    inset: 1px 0 auto auto;
    min-width: 16px;
    padding: 1px 3px;
    border-radius: 12px;
    color: #222;
    background: #fff;
    font-size: 10px;
    font-weight: 650;
    text-align: center;
  }
  #mfs-mobile-header .mfs-mobile-panel {
    position: absolute;
    inset: 100% 0 auto;
    max-height: 70vh;
    max-height: min(75dvh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 20px 24px;
    background: #222;
    border-top: 1px solid #525252;
    box-shadow: 0 10px 18px #0003;
  }
  #mfs-mobile-header ul { list-style: none; margin: 0; padding: 0; }
  #mfs-mobile-header .mfs-mobile-links > li { border-bottom: 1px solid #454545; }
  #mfs-mobile-header .mfs-mobile-links a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; }
  #mfs-mobile-header .mfs-mobile-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
  #mfs-mobile-header .mfs-mobile-links .sub-menu { margin-inline-start: 16px; font-size: .875rem; }
  #mfs-mobile-header .mfs-mobile-languages { margin-top: 20px; }
  #mfs-mobile-header .mfs-mobile-languages p { margin: 0 0 8px; color: #ddd; font-size: .875rem; }
  #mfs-mobile-header .mfs-mobile-languages ul { display: flex; gap: 8px; }
  #mfs-mobile-header .mfs-mobile-languages a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #888;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
  }
  #mfs-mobile-header .mfs-mobile-languages a[aria-current="true"] { color: #222; background: #fff; border-color: #fff; }
}

@media (max-width: 390px) {
  #mfs-mobile-header .mfs-mobile-bar { grid-template-columns: 88px minmax(0, 1fr) 88px; }
}

@media (max-width: 767px) {
  #mfs-mobile-header { position: sticky; top: 0; }
  .admin-bar #mfs-mobile-header { top: 46px; }
  #mfs-mobile-header .mfs-mobile-links > li { position: relative; }
  #mfs-mobile-header .mfs-mobile-links .menu-item-has-children > a { padding-inline-end: 48px; }
  #mfs-mobile-header .mfs-mobile-submenu > summary {
    position: absolute;
    inset: 2px 0 auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    list-style: none;
    cursor: pointer;
  }
  #mfs-mobile-header .mfs-mobile-submenu > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  #mfs-mobile-header .mfs-mobile-submenu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
}
@media (max-width: 767px) {
  #mfs-mobile-header .mfs-mobile-bar {
    min-height: 82px;
    grid-template-columns: minmax(96px, 1fr) minmax(0, 196px) minmax(96px, 1fr);
  }
  #mfs-mobile-header .mfs-mobile-brand img { max-height: 53px; }
  #mfs-mobile-header .mfs-mobile-icon { flex-basis: 48px; width: 48px; height: 48px; }
  #mfs-mobile-header .mfs-mobile-icon svg { width: 26px; height: 26px; }
  #mfs-mobile-header .mfs-mobile-links a { min-height: 52px; font-size: 1.0625rem; }
  #mfs-mobile-header .mfs-mobile-links .sub-menu a { font-size: .9375rem; }
  #mfs-mobile-header .mfs-mobile-submenu > summary { width: 48px; height: 48px; }
}
@media (max-width: 767px) {
  body:has(#mfs-mobile-header) :is(.mfs-commerce-nav, .mfs-shop-cart) {
    display: none !important;
  }
}