/* Join the existing service switcher and navigation into one mobile bottom bar. */
@media (max-width: 599px) {
  :root {
    --service-switch-height: 72px;
  }

  .service-switch-card {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(var(--bottom-nav-offset) + var(--bottom-nav-safe-gap) + var(--bottom-nav-height));
    width: auto;
    max-width: 430px;
    height: var(--service-switch-height);
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
    border-bottom-width: 0;
    z-index: 29;
  }

  body:not([data-modal-open="1"]):not(:has(#modalRoot[data-open="1"])) .bottom-nav {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .app-shell {
    padding-bottom: calc(var(--bottom-nav-offset) + var(--bottom-nav-safe-gap) + var(--bottom-nav-height) + var(--service-switch-height) + 8px);
    scroll-padding-bottom: calc(var(--bottom-nav-offset) + var(--bottom-nav-safe-gap) + var(--bottom-nav-height) + var(--service-switch-height) + 8px);
  }
}
