/* D20F47 — Global mobile footer + clean floating chat clearance */
@media (max-width:760px){
  body.reb-global-mobile-footer-enabled{padding-bottom:82px!important;}
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
    position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;
    transform:translateX(-50%)!important;width:min(760px,100%)!important;height:72px!important;
    padding:7px 4px max(7px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important;
    background:#15191b!important;z-index:2147482000!important;gap:0!important;
  }
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a{
    position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;width:auto!important;height:58px!important;margin:0!important;padding:4px 1px!important;border-radius:10px!important;
    background:transparent!important;box-shadow:none!important;color:#c4cbd1!important;text-decoration:none!important;gap:4px!important;
  }
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a i{font-size:17px!important;line-height:18px!important;width:22px!important;text-align:center!important;}
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a span{display:block!important;font-size:9px!important;line-height:11px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a:not(.active){color:#c4cbd1!important;}
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a.active{color:#f5b026!important;}
  .reb-social-bottom-badge{position:absolute!important;top:2px!important;left:calc(50% + 5px)!important;min-width:16px!important;height:16px!important;padding:0 4px!important;border-radius:9px!important;background:#ef3e2f!important;color:#fff!important;font-size:9px!important;line-height:16px!important;text-align:center!important;}
  .reb-global-mobile-footer-d20f45 .reb-footer-profile-photo{display:block!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;border-radius:50%!important;object-fit:cover!important;border:1.5px solid #c4cbd1!important;box-sizing:border-box!important;margin:0!important;padding:0!important;background:#fff!important;}
  .reb-global-mobile-footer-d20f45 a.active .reb-footer-profile-photo{border-color:#f5b026!important;}

  /* Keep Live Chat fully above the 72px footer; never cover Profile/Notifications. */
  body.reb-global-mobile-footer-enabled .reb-customer-chat-launcher{
    right:14px!important;bottom:92px!important;width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;
  }
  body.reb-global-mobile-footer-enabled .reb-chat-shell{
    right:14px!important;bottom:150px!important;left:auto!important;top:auto!important;
    max-height:calc(100dvh - 250px)!important;
  }
}

/* D20F56 — logged-out Profile must show the normal user icon, never an empty/broken IMG. */
@media(max-width:760px){
  .reb-global-mobile-footer-d20f45 .reb-footer-profile-photo[hidden]{display:none!important;}
  .reb-global-mobile-footer-d20f45 .reb-footer-profile-fallback{display:block;width:22px!important;height:18px!important;font-size:17px!important;line-height:18px!important;text-align:center!important;}
}

/* D20F56 — logged-out Profile icon fallback */
@media(max-width:760px){
.reb-global-mobile-footer-d20f45 .reb-footer-profile-photo[hidden]{display:none!important;}
.reb-global-mobile-footer-d20f45 .reb-footer-profile-fallback{display:block!important;width:22px!important;height:18px!important;font-size:17px!important;line-height:18px!important;text-align:center!important;}
}

/* D20F57 — DOM-level logged-out fallback. No profile IMG exists until a valid photo has loaded. */
@media(max-width:760px){
 .reb-global-mobile-footer-d20f45 a[data-reb-nav="profile"]:not(.has-profile-photo) .reb-footer-profile-fallback{display:block!important;}
 .reb-global-mobile-footer-d20f45 a[data-reb-nav="profile"].has-profile-photo .reb-footer-profile-fallback{display:none!important;}
 .reb-global-mobile-footer-d20f45 a[data-reb-nav="profile"] .reb-footer-profile-photo{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;border-radius:50%!important;object-fit:cover!important;border:1.5px solid #c4cbd1!important;box-sizing:border-box!important;margin:0!important;padding:0!important;background:#fff!important;}
}

/* D20F73 — force the shared mobile footer to the full physical viewport width on every page. */
@media (max-width:760px){
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43,
  body .reb-social-bottom-nav.reb-global-mobile-footer-d20f45{
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    min-width:100vw!important;
    margin:0!important;
    transform:none!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }
  .reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a{
    width:100%!important;
    max-width:none!important;
  }
}

/* D20F73 — full physical viewport width footer on every mobile page */
@media (max-width:760px){
.reb-social-bottom-nav.reb-social-bottom-nav-d20f43,body .reb-social-bottom-nav.reb-global-mobile-footer-d20f45{left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;min-width:100vw!important;margin:0!important;transform:none!important;border-radius:0!important;box-sizing:border-box!important}
.reb-social-bottom-nav.reb-social-bottom-nav-d20f43>a{width:100%!important;max-width:none!important}
}
