/* Bottom panel on phones */
.mobile-bar {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 39;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.6rem;
    padding: 0.8rem 0.8rem calc(0.8rem + env(safe-area-inset-bottom));
    color: var(--color-white);
    background-color: rgba(35, 37, 42, 0.96);
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
  }

  .mobile-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 5.2rem;
    padding: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    border-radius: 1.2rem;
  }

  .mobile-bar__item svg {
    width: 2.2rem;
    height: 2.2rem;
  }

  .mobile-bar__item--main {
    color: var(--color-dark);
    background-color: var(--color-white);
  }

  /* The bar must not cover the end of the page */
  body {
    padding-bottom: 7.2rem;
  }
}
