@font-face {
  font-family: "VNET Mobile Navigation Icons";
  src: url("fonts/fa-solid-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

.vnet-mbn {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .vnet-mbn {
    position: fixed;
    z-index: 99990;
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    left: max(.75rem, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(100% - 1.5rem), 28rem);
    min-height: 68px;
    margin-inline: auto;
    padding: .35rem .2rem .3rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgb(104 78 127 / 96%), rgb(61 42 82 / 97%));
    box-shadow: 0 .75rem 2rem rgb(3 0 12 / 48%), inset 0 1px 0 rgb(255 255 255 / 12%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
    transition: opacity .22s ease, transform .28s ease, visibility .22s ease;
  }

  body.home .vnet-mbn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 2rem));
    visibility: hidden;
  }

  body.home.vnet-mbn-is-scrolled .vnet-mbn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  body.vnet-mbn-over-footer {
    padding-bottom: 0;
  }

  body.vnet-mbn-over-footer .vnet-mbn.vnet-mbn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 2rem));
    visibility: hidden;
  }

  body .vnet-mbn .vnet-mbn__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 57px;
    padding: .2rem .05rem;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .1rem;
    color: rgb(255 255 255 / 82%) !important;
    border-radius: .85rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background-color .2s ease, transform .16s ease;
  }

  .vnet-mbn__item::before {
    position: absolute;
    bottom: .1rem;
    width: 1.75rem;
    height: .18rem;
    border-radius: 999px;
    background: transparent;
    content: "";
    transition: background-color .2s ease, box-shadow .2s ease;
  }

  .vnet-mbn__item:active {
    background-color: transparent;
    transform: none;
  }

  .vnet-mbn__item:focus-visible {
    outline: 2px solid #f26aff;
    outline-offset: -3px;
  }

  .vnet-mbn__icon {
    display: block;
    font-family: "VNET Mobile Navigation Icons" !important;
    font-size: 1.55rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    transition: color .2s ease, filter .2s ease, transform .2s ease;
  }

  .vnet-mbn__icon--home::before { content: "\f015"; }
  .vnet-mbn__icon--wifi::before { content: "\f1eb"; }
  .vnet-mbn__icon--business::before { content: "\f1ad"; }
  .vnet-mbn__icon--headset::before { content: "\f590"; }
  .vnet-mbn__icon--location::before { content: "\f3c5"; }

  .vnet-mbn__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(.56rem, 2.5vw, .68rem);
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .vnet-mbn .vnet-mbn__item.is-active {
    color: #ec20ff !important;
  }

  .vnet-mbn__item.is-active::before {
    background-color: #e200ff;
    box-shadow: none;
  }

  .vnet-mbn__item.is-active .vnet-mbn__icon {
    filter: none;
    transform: none;
  }

}

@media (max-width: 767.98px) and (orientation: portrait) {
  body:not(.home):not(.vnet-mbn-over-footer) #cxone-guide-container .be-template,
  body.home.vnet-mbn-is-scrolled:not(.vnet-mbn-over-footer) #cxone-guide-container .be-template {
    bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }

  body:not(.home):not(.vnet-mbn-over-footer) #cxone-guide-container .be-template .icon img,
  body.home.vnet-mbn-is-scrolled:not(.vnet-mbn-over-footer) #cxone-guide-container .be-template .icon img {
    margin-bottom: -11px !important;
  }

  body:not(.home):not(.vnet-mbn-over-footer) #cxone-guide-container .be-template .icon::after,
  body.home.vnet-mbn-is-scrolled:not(.vnet-mbn-over-footer) #cxone-guide-container .be-template .icon::after {
    top: -58.5px !important;
  }

  body.vnet-mbn-over-footer #cxone-guide-container .be-template {
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 359.98px) {
  .vnet-mbn {
    right: .45rem;
    left: .45rem;
    width: calc(100% - .9rem);
  }

  .vnet-mbn__label {
    font-size: .54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vnet-mbn,
  .vnet-mbn__item,
  .vnet-mbn__icon {
    transition: none;
  }
}
