/* FollowerAbzar SMM 80.2.13
 * Mobile header/drawer ownership hotfix.
 * This file intentionally loads after every historical public/UI bundle.
 * The drawer wrapper itself is never transformed: fixed backdrop/drawer children
 * must remain viewport-fixed on mobile browsers.
 */
@media (max-width:1023.98px){
  header.fasmm-public-header{
    overflow:visible!important;
    isolation:isolate!important;
  }
  header.fasmm-public-header .fasmm-public-header__inner{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:64px!important;
    padding:8px 64px!important;
    margin-inline:auto!important;
    overflow:visible!important;
  }

  /* Do not use display:contents/transform on the ancestor that owns the fixed drawer. */
  header.fasmm-public-header .fasmm-public-header__drawer-control{
    display:block!important;
    position:static!important;
    width:0!important;
    height:0!important;
    flex:0 0 0!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    overflow:visible!important;
    z-index:auto!important;
  }
  header.fasmm-public-header .fasmm-public-header__drawer-control>.fasmm-public-mobile-menu,
  header.fasmm-public-header .fasmm-public-header__drawer-control>.fasmm-public-side-menu{
    display:block!important;
    position:static!important;
    width:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    overflow:visible!important;
    z-index:auto!important;
  }

  /* Right: hamburger. Position the button, not its drawer-owning wrapper. */
  header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:50%!important;
    right:10px!important;
    left:auto!important;
    transform:translateY(-50%)!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    border-radius:10px!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    z-index:2147481800!important;
  }
  header.fasmm-public-header .fasmm-public-header__mobile-toggle>span,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle>span{display:none!important}

  /* True visual center: logo is independent of left/right controls. */
  header.fasmm-public-header .fasmm-public-header__brand{
    display:flex!important;
    position:absolute!important;
    top:50%!important;
    left:50%!important;
    right:auto!important;
    transform:translate(-50%,-50%)!important;
    align-items:center!important;
    justify-content:center!important;
    width:min(48vw,190px)!important;
    max-width:190px!important;
    height:48px!important;
    margin:0!important;
    padding:0!important;
    pointer-events:auto!important;
    z-index:20!important;
  }
  header.fasmm-public-header .fasmm-public-header__brand .fasmm-public-site-logo,
  header.fasmm-public-header .fasmm-public-header__brand .fasmm-public-site-logo__media{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    height:46px!important;
    min-width:0!important;
  }
  header.fasmm-public-header .fasmm-public-header__brand img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:min(46vw,166px)!important;
    max-height:42px!important;
    margin:auto!important;
    object-fit:contain!important;
  }
  /* When no image is configured/loaded, keep a real centered brand instead of an empty gap. */
  header.fasmm-public-header .fasmm-public-header__brand .fasmm-public-site-logo__fallback:not([hidden]){
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    max-width:100%!important;
  }
  header.fasmm-public-header .fasmm-public-header__brand .fasmm-public-site-logo__fallback:not([hidden]) .fasmm-public-site-logo__text{
    display:block!important;
    max-width:128px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
  }

  /* Left: cart. */
  header.fasmm-public-header .fasmm-public-header__drawer-control>.fasmm-public-header__mobile-actions{
    display:flex!important;
    position:absolute!important;
    top:50%!important;
    left:10px!important;
    right:auto!important;
    transform:translateY(-50%)!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    width:44px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:2147481800!important;
  }
  header.fasmm-public-header .fasmm-public-header__mobile-actions .fasmm-header-cart,
  header.fasmm-public-header .fasmm-public-header__mobile-actions .fasmm-public-header__cart-action{
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    border-radius:10px!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
  }
  header.fasmm-public-header .fasmm-public-header__actions,
  header.fasmm-public-header .fasmm-public-header__spacer{display:none!important}

  /* Viewport-owned drawer/backdrop. No positioned/transformed ancestor may redefine fixed positioning. */
  body>.fasmm-public-drawer-backdrop,
  .fasmm-public-drawer-backdrop,
  .fasmm-public-mobile-backdrop{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    transform:none!important;
    border-radius:0!important;
    z-index:2147483000!important;
  }
  .fasmm-public-side-drawer,
  .fasmm-public-mobile-drawer{
    position:fixed!important;
    top:8px!important;
    right:8px!important;
    bottom:8px!important;
    left:auto!important;
    width:min(360px,calc(100vw - 16px))!important;
    height:auto!important;
    max-height:calc(100dvh - 16px)!important;
    margin:0!important;
    border-radius:10px!important;
    overflow:hidden!important;
    z-index:2147483100!important;
  }
  body.fasmm-public-menu-open .fasmm-public-drawer-backdrop.is-open,
  body.fasmm-public-menu-open .fasmm-public-mobile-backdrop.is-open{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.fasmm-public-menu-open .fasmm-public-side-drawer.is-open,
  body.fasmm-public-menu-open .fasmm-public-mobile-drawer.is-open{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:translate3d(0,0,0)!important;
  }
}

@media (max-width:420px){
  header.fasmm-public-header .fasmm-public-header__inner{padding-inline:60px!important}
  header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle{right:8px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  header.fasmm-public-header .fasmm-public-header__drawer-control>.fasmm-public-header__mobile-actions{left:8px!important;width:42px!important;height:42px!important}
  header.fasmm-public-header .fasmm-public-header__mobile-actions .fasmm-header-cart,
  header.fasmm-public-header .fasmm-public-header__mobile-actions .fasmm-public-header__cart-action{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  header.fasmm-public-header .fasmm-public-header__brand{width:min(46vw,164px)!important}
  header.fasmm-public-header .fasmm-public-header__brand img{max-width:min(43vw,145px)!important}
}

/* All opened menus/dropdowns keep the requested 10px radius on both desktop and mobile. */
header.fasmm-public-header :is(.fasmm-public-header-menu .sub-menu,.fasmm-public-menu__submenu,.fasmm-public-side-drawer,.fasmm-public-mobile-drawer,.fasmm-notification-dropdown),
.fasmm-cart-drawer{border-radius:10px!important}
