.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body:not(.pos-mobile-app-shell) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 997;
    display: grid;
    grid-template-columns: repeat(var(--mobile-nav-count, 5), minmax(0, 1fr));
    align-items: center;
    min-height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 7px 8px max(7px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .11);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav__item {
    position: relative;
    min-width: 0;
    min-height: 56px;
    margin: 0 2px;
    padding: 6px 3px 5px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus {
    color: #334155;
    text-decoration: none;
  }

  .mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--app-theme-color, #2563eb);
    outline-offset: -2px;
  }

  .mobile-bottom-nav__item:active {
    transform: scale(.96);
  }

  .mobile-bottom-nav__item.is-active {
    background: #f1f5f9;
    background: color-mix(in srgb, var(--app-theme-color, #2563eb) 11%, white);
    color: var(--app-theme-color, #2563eb);
  }

  .mobile-bottom-nav__item.is-active::before {
    position: absolute;
    top: 3px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .mobile-bottom-nav__item i {
    display: block;
    font-size: 19px;
    line-height: 1;
  }

  .mobile-bottom-nav__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.pos-mobile-app-shell .mobile-bottom-nav {
    display: none !important;
  }

  body:not(.pos-mobile-app-shell) .ba-we-love-subscribers-wrap {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:not(.pos-mobile-app-shell) .scroll-to-bottom {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:not(.pos-mobile-app-shell) .scroll-to-top {
    bottom: calc(141px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 359.98px) {
  .mobile-bottom-nav {
    padding-right: 4px;
    padding-left: 4px;
  }

  .mobile-bottom-nav__item {
    margin-right: 1px;
    margin-left: 1px;
    font-size: 9.5px;
  }
}

@media print {
  .mobile-bottom-nav {
    display: none !important;
  }
}
