.lantivo-bottom-nav,
.lantivo-bottom-nav__space {
  display: none;
}

@media (max-width: 749px), (pointer: coarse) {
  .lantivo-bottom-nav__space {
    display: block;
    height: calc(var(--lantivo-bottom-nav-height, 70px) + env(safe-area-inset-bottom, 0px));
  }

  .lantivo-bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    align-items: stretch;
    width: 100%;
    height: calc(var(--lantivo-bottom-nav-height, 70px) + env(safe-area-inset-bottom, 0px));
    padding: 3px 0 env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: var(--lantivo-bottom-nav-background, #c9e0f5);
    isolation: isolate;
  }

  .lantivo-bottom-nav__highlight {
    position: absolute;
    z-index: -1;
    top: 3px;
    bottom: calc(3px + env(safe-area-inset-bottom, 0px));
    left: 0;
    width: 105px;
    border-radius: 10px;
    background: #e4f2ff;
    opacity: 1;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.25, 1);
  }

  .lantivo-bottom-nav__item {
    position: relative;
    z-index: 1;
    display: flex;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    height: 100%;
    gap: 0;
    padding: 0 2px;
    border-radius: 10px;
    color: #000000 !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .lantivo-bottom-nav__item[data-key="home"] { grid-column: 1; }
  .lantivo-bottom-nav__item[data-key="categories"] { grid-column: 2; }
  .lantivo-bottom-nav__item[data-key="about"] { grid-column: 4; }
  .lantivo-bottom-nav__item[data-key="search"] { grid-column: 5; }

  .lantivo-bottom-nav__item.is-active {
    color: #002d71 !important;
  }

  .lantivo-bottom-nav__icon {
    display: block;
    flex: 0 0 auto;
    width: var(--lantivo-icon-width, 23px);
    height: var(--lantivo-icon-height, 23px);
    background-color: currentColor;
    -webkit-mask: var(--lantivo-icon-image) center / contain no-repeat;
    mask: var(--lantivo-icon-image) center / contain no-repeat;
  }

  .lantivo-bottom-nav__icon--home {
    --lantivo-icon-width: 23px;
    --lantivo-icon-height: 21px;
    transform: scale(1.10855, 1.042);
  }

  .lantivo-bottom-nav__icon--categories {
    --lantivo-icon-width: 23px;
    --lantivo-icon-height: 21px;
    transform: scale(1.03406, 1.05928);
  }

  .lantivo-bottom-nav__icon--contact {
    width: 23px;
    height: 23px;
    background-color: #ffffff;
    transform: scale(1.03283);
  }

  .lantivo-bottom-nav__icon--about,
  .lantivo-bottom-nav__icon--search {
    width: 22px;
    height: 22px;
  }

  .lantivo-bottom-nav__icon--about { transform: scale(1.00558); }
  .lantivo-bottom-nav__icon--search { transform: scale(1.05218); }

  .lantivo-bottom-nav__item[data-key="about"] .lantivo-bottom-nav__icon,
  .lantivo-bottom-nav__item[data-key="search"] .lantivo-bottom-nav__icon {
    width: 22px;
    height: 22px;
  }

  .lantivo-bottom-nav__label {
    display: none;
    max-width: 100%;
    margin-top: 0;
    overflow: hidden;
    color: inherit;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lantivo-bottom-nav__item.is-active .lantivo-bottom-nav__label {
    display: block;
  }

  .lantivo-bottom-nav__item[data-key="home"].is-active .lantivo-bottom-nav__label { margin-top: 3.3px; }
  .lantivo-bottom-nav__item[data-key="categories"].is-active .lantivo-bottom-nav__label { margin-top: 3.25px; }
  .lantivo-bottom-nav__item[data-key="about"].is-active .lantivo-bottom-nav__label { margin-top: 3.8px; }
  .lantivo-bottom-nav__item[data-key="search"].is-active .lantivo-bottom-nav__label { margin-top: 3.3px; }

  .lantivo-bottom-nav__contact-orb {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    transform: translateY(-4px);
    border: 3px solid var(--lantivo-bottom-nav-background, #c9e0f5);
    border-radius: 50%;
    background: #002d71;
  }

  .lantivo-bottom-nav__item--contact {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 50%;
    display: flex;
    grid-column: auto;
    align-items: center;
    justify-content: flex-start;
    width: 76px;
    height: calc(var(--lantivo-bottom-nav-height, 70px) - 5px);
    padding: 0;
    transform: translateX(-50%);
    color: #002d71 !important;
  }

  .lantivo-bottom-nav__item--contact .lantivo-bottom-nav__label {
    display: block;
    flex: 0 0 auto;
    margin-top: 3px;
    overflow: visible;
    font-size: inherit;
    text-overflow: clip;
  }

  .lantivo-bottom-nav__item:focus-visible {
    outline: 2px solid #002d71;
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lantivo-bottom-nav__highlight {
    transition: none;
  }
}
