/* AEMAZON v130: one geometry for server and app-injected primary navigation.
 * Keep visibility, active-state routing and scroll folding owned by their existing controllers.
 * Safe-area padding is counted once, inside the border-box height. */
:root{
  --aem-bottom-safe:env(safe-area-inset-bottom,0px);
  --aem-bottom-nav-height:72px;
  --aem-bottom-nav-total:calc(var(--aem-bottom-nav-height) + var(--aem-bottom-safe));
}
@media(max-width:1023px){
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav){
    box-sizing:border-box!important;
    position:fixed!important;
    top:auto!important;bottom:0!important;left:0!important;right:0!important;
    width:100%!important;max-width:none!important;
    height:var(--aem-bottom-nav-total)!important;
    min-height:var(--aem-bottom-nav-total)!important;
    max-height:var(--aem-bottom-nav-total)!important;
    margin:0!important;
    padding:5px 10px var(--aem-bottom-safe)!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-template-rows:calc(var(--aem-bottom-nav-height) - 6px)!important;
    grid-auto-flow:column!important;
    column-gap:0!important;row-gap:0!important;
    align-items:stretch!important;justify-items:stretch!important;
    border:0!important;border-top:1px solid #e8e8ea!important;
    border-radius:0!important;overflow:visible!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 -5px 18px rgba(18,18,20,.055)!important;
  }
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav)>:is(a,button){
    box-sizing:border-box!important;
    display:flex!important;position:relative;
    flex-direction:column!important;align-items:center!important;justify-content:center!important;
    align-self:stretch!important;justify-self:stretch!important;
    min-width:0!important;width:auto!important;max-width:none!important;
    min-height:0!important;height:100%!important;max-height:none!important;
    margin:0!important;padding:0!important;gap:4px!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
    font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif!important;
    font-size:10.5px!important;font-weight:800!important;line-height:12px!important;
    letter-spacing:normal!important;text-align:center!important;text-decoration:none!important;
    -webkit-tap-highlight-color:transparent;
  }
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav)>:is(a,button)>svg{
    box-sizing:border-box!important;display:block!important;flex:0 0 24px!important;
    width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
    margin:0!important;padding:0!important;
  }
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav)>:is(a,button)>span:not([data-dm-unread-badge]):not(.aemazon-native-chat-new){
    display:block!important;margin:0!important;padding:0!important;
    font:inherit!important;line-height:12px!important;white-space:nowrap!important;
  }
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav)>:is(.aemazon-ios-bottom-compose,.aemazon-app-bottom-compose,.rk-server-bottom-compose,.market-nav-compose,.place-compose,.gas-compose){
    align-self:start!important;justify-self:center!important;
    width:58px!important;min-width:58px!important;max-width:58px!important;
    height:58px!important;min-height:58px!important;max-height:58px!important;
    margin:-16px 0 0!important;padding:0!important;gap:0!important;
    border:4px solid #fff!important;border-radius:50%!important;
    background:#ff5a1f!important;color:#fff!important;
    box-shadow:0 7px 18px rgba(255,90,31,.32)!important;
  }
  html body :is(#aemazon-ios-bottom-nav,#aemazon-app-bottom-nav,#aemazon-server-ranking-bottom-nav,.market-mobile-nav,.place-bottom-nav,.gas-bottom-nav)>:is(.aemazon-ios-bottom-compose,.aemazon-app-bottom-compose,.rk-server-bottom-compose,.market-nav-compose,.place-compose,.gas-compose)>svg{
    flex-basis:27px!important;width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;
  }
  body.market-home-page .market-shell{padding-bottom:calc(86px + var(--aem-bottom-safe))!important}
}
