/* The legacy four-item tabbar is hidden only on the five primary routes. */
body.sgc-fixed-menu-route-v1 .tabbar,
body.sgc-fixed-menu-route-v1 uni-tabbar,
body.sgc-fixed-menu-route-v1 .uni-tabbar,
body.sgc-fixed-menu-route-v1 .feature-tabbar,
body.sgc-fixed-menu-route-v1 .receive-tabbar-v15 {
  display: none !important;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-v1 {
  position: fixed;
  right: var(--mobile-canvas-gutter, 0px);
  bottom: 0;
  left: var(--mobile-canvas-gutter, 0px);
  z-index: 1200;
  display: grid;
  width: auto;
  height: 72px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid rgba(222, 228, 237, 0.96);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 22px rgba(31, 52, 78, 0.08);
  font-family: inherit;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1 {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 0;
  border: 0;
  outline: 0;
  color: #8d9bb0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-icon-v1 {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: currentColor;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-icon-v1 svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-label-v1 {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1.is-active {
  color: #ff5a61;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1.is-active .sgc-fixed-menu-icon-v1 {
  width: 42px;
  height: 42px;
  margin-top: -18px;
  color: #fff;
  background: linear-gradient(145deg, #ff9a38 0%, #ff4e61 100%);
  box-shadow: 0 7px 16px rgba(255, 92, 92, 0.28);
  transform: translateY(-1px);
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1.is-active .sgc-fixed-menu-icon-v1 svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1:focus-visible .sgc-fixed-menu-icon-v1 {
  box-shadow: 0 0 0 3px rgba(72, 139, 255, 0.28);
}

@media (max-width: 480px) {
  body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-v1 {
    right: 0;
    left: 0;
  }
}
