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

@media (max-width: 767px) {
  .site-header .bp-mobile-nav,
  .site-header .bp-header-auth--authenticated {
    display: none;
  }

  .bp-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: 68px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    overflow: visible;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(17, 19, 24, .12);
  }

  .bp-bottom-nav-item,
  .bp-bottom-nav-create > summary {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bp-bottom-nav-item:hover,
  .bp-bottom-nav-item:focus-visible,
  .bp-bottom-nav-create > summary:hover,
  .bp-bottom-nav-create > summary:focus-visible {
    color: var(--red);
    background: #fff1f2;
  }

  .bp-bottom-nav-item.is-active {
    color: var(--red);
    background: #fff1f2;
  }

  .bp-bottom-nav-label {
    white-space: nowrap;
  }

  .bp-bottom-nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    line-height: 1;
    flex: 0 0 24px;
  }

  .bp-bottom-nav-icon svg,
  .bp-bottom-nav-create-icon svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .bp-bottom-nav-garage-mark {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-color: currentColor;
    -webkit-mask: url("/icons/fontawesome-motorcycle.svg") center / contain no-repeat;
    mask: url("/icons/fontawesome-motorcycle.svg") center / contain no-repeat;
  }

  .bp-bottom-nav-avatar {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: cover;
    border: 1px solid transparent;
    border-radius: 50%;
  }

  .bp-bottom-nav-item.is-active .bp-bottom-nav-avatar {
    border-color: currentColor;
  }

.bp-bottom-nav-create-icon {
  display: grid;
  width: 24px;
    height: 24px;
    color: var(--red);
    flex: 0 0 24px;
    place-items: center;
  }

  .bp-bottom-nav-create > summary {
    list-style: none;
  }

  .bp-bottom-nav-create > summary::-webkit-details-marker {
    display: none;
  }

  .bp-bottom-nav-create[open] > summary {
    color: var(--red);
    background: #fff1f2;
  }

  .bp-bottom-nav-create[open] .bp-bottom-nav-create-icon {
    color: var(--red);
    background: transparent;
    border: 0;
  }

  .bp-bottom-nav-menu {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    display: grid;
    width: min(190px, calc(100vw - 24px));
    gap: 4px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(17, 19, 24, .18);
    transform: translateX(50%);
  }

  .bp-bottom-nav-menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--text);
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 850;
    text-align: center;
  }

  .bp-bottom-nav-menu a:hover,
  .bp-bottom-nav-menu a:focus-visible {
    color: var(--red);
    background: #fff1f2;
  }

  .bp-bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 14%;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    color: var(--white);
    background: var(--red);
    border: 2px solid var(--white);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
    line-height: 13px;
    text-align: center;
  }

  main {
    padding-bottom: 18px;
  }

  .site-footer {
    padding-bottom: calc(68px + env(safe-area-inset-bottom) + 16px);
  }

}

@media (min-width: 768px) {
  .bp-bottom-nav {
    display: none;
  }
}
