﻿.pwa-body {
  margin: 0;
  padding-bottom: 65px; /* Prevents menu from overlapping website content */
  font-family: sans-serif;
}

.mobile-app-menu-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}

.mobile-app-menu {
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 65px;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  border-radius: 33px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #777777;
  text-decoration: none;
  font-size: 12px;
  width: 100%;
  height: 100%;
  transition: color 0.3s ease, transform 0.2s ease; /* Fast transitions for 60fps feel */
}

  .menu-item i {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .menu-item img.menu-item-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-bottom: 2px;
  }

  .menu-item .icon-bg {
    background-color: #387dff;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

    .menu-item .icon-bg i {
      margin: 0;
      font-size: 1rem;
      color: white;
      padding: 0;
    }

    .menu-item .icon-bg img.menu-item-image {
      width: 25px;
      height: 25px;
      object-fit: contain;
      margin: 0;
    }

  /* App-like Active State Highlight */
  .menu-item.active {
    color: #007aff; /* iOS style blue tint */
    font-weight: bold;
    background-color: #F6F6F6;
    border-radius: 33px;
  }


.child-popup {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, 0);
  background-color: rgba(255,255,255,0.8);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 99999;
  flex-direction: column-reverse;
}

.child-content {
  height: 50%;
  background-color: #f9f9f9;
  padding-top: 20px;
}

.child-links {
  display: grid;
  grid-template-columns: auto auto auto;
  row-gap: 1rem;
  padding: 10px;
  width: 100%;
}

@@media(min-width: 992px) {
  .mobile-app-menu-wrapper {
    display: none;
  }
}
