/*
 * FollowerAbzar SMM 80.3.19
 * Public mobile header/drawer stability + final drawer width/radius owner.
 */
@media (max-width:1023.98px){
  /* Keep hamburger in normal header flow before and after body scroll locking. */
  header.fasmm-public-header .fasmm-public-header__drawer-control{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
  }
  header.fasmm-public-header .fasmm-public-mobile-menu,
  header.fasmm-public-header .fasmm-public-side-menu{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle,
  body.fasmm-public-menu-open header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  body.fasmm-public-menu-open header.fasmm-public-header .fasmm-public-header__drawer-toggle{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    margin:0!important;
    align-self:center!important;
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    transform:none!important;
    translate:none!important;
    border-radius:12px!important;
  }
  header.fasmm-public-header .fasmm-public-header__drawer-toggle:hover,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle:focus,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle:focus-visible,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle[aria-expanded="true"]{
    transform:none!important;
    translate:none!important;
  }

  /* Final drawer geometry: almost full phone width, always right anchored and rounded. */
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"],
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"]{
    position:fixed!important;
    top:10px!important;
    right:10px!important;
    bottom:10px!important;
    left:auto!important;
    width:min(390px,calc(100vw - 20px))!important;
    width:min(390px,calc(100dvw - 20px))!important;
    max-width:calc(100vw - 20px)!important;
    max-width:calc(100dvw - 20px)!important;
    min-width:0!important;
    height:calc(100dvh - 20px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 20px)!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--fasmm-drawer-border,var(--fasmm-public-border,#dfe5ef))!important;
    border-radius:20px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__header,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__header{
    width:100%!important;
    min-width:0!important;
    border-radius:19px 19px 0 0!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-drawer__profile,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-drawer__profile,
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__scroll,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__scroll,
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__footer,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__actions{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__scroll,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__scroll{
    padding:8px 12px 16px!important;
    overflow-x:hidden!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] .fasmm-public-menu--drawer,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] .fasmm-public-menu--drawer{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    gap:7px!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__item,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__item{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    border-radius:14px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__link,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__link,
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__section-toggle,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] .fasmm-public-drawer__section-toggle{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__footer,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__actions{
    border-radius:0 0 19px 19px!important;
  }
}

@media (max-width:600px){
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"],
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"]{
    width:calc(100vw - 20px)!important;
    width:calc(100dvw - 20px)!important;
    max-width:390px!important;
    border-radius:18px!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__header,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__header{
    border-radius:17px 17px 0 0!important;
  }
  body > .fasmm-public-side-drawer[data-fasmm-portaled="1"] > .fasmm-public-side-drawer__footer,
  body > .fasmm-public-mobile-drawer[data-fasmm-portaled="1"] > .fasmm-public-mobile-drawer__actions{
    border-radius:0 0 17px 17px!important;
  }
  header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  header.fasmm-public-header .fasmm-public-header__drawer-toggle,
  body.fasmm-public-menu-open header.fasmm-public-header .fasmm-public-header__mobile-toggle,
  body.fasmm-public-menu-open header.fasmm-public-header .fasmm-public-header__drawer-toggle{
    flex-basis:40px!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
  }
}
