:root {
  --bottom-nav-height: 82px;
  --bottom-nav-item-height: 54px;
  --bottom-nav-icon-size: 24px;
  --bottom-nav-label-size: 10px;
  --bottom-nav-camera-size: 56px;
  --bottom-nav-surface-offset: calc(var(--bottom-nav-camera-size) / 2);
  --bottom-nav-control-bottom-gap: 0px;
  --bottom-nav-camera-protrusion: 11.2px;
  --bottom-nav-camera-top-offset: calc(var(--bottom-nav-surface-offset) - var(--bottom-nav-camera-protrusion));
  --bottom-nav-safe-bottom: var(--kf-safe-bottom, env(safe-area-inset-bottom, 0px));
}

.bottom-nav.bottom-nav {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 430px);
  min-height: calc(var(--bottom-nav-height) + var(--bottom-nav-safe-bottom));
  height: calc(var(--bottom-nav-height) + var(--bottom-nav-safe-bottom));
  padding: 0 14px calc(var(--bottom-nav-control-bottom-gap) + var(--bottom-nav-safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  isolation: isolate;
  overflow: visible;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

.bottom-nav.bottom-nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--bottom-nav-surface-offset);
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-top: 1px solid rgba(230, 220, 204, .92);
  border-radius: inherit;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 -8px 24px rgba(42, 34, 20, .09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bottom-nav.bottom-nav > .nav-item {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: var(--bottom-nav-item-height);
  height: var(--bottom-nav-item-height);
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  color: #48534d;
  font-family: inherit;
  text-decoration: none;
  overflow: hidden;
}

.bottom-nav.bottom-nav > .nav-item > .ui-icon {
  width: var(--bottom-nav-icon-size);
  height: var(--bottom-nav-icon-size);
  flex: 0 0 var(--bottom-nav-icon-size);
}

.bottom-nav.bottom-nav > .nav-item > strong {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 2px;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: var(--bottom-nav-label-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav.bottom-nav > .nav-item.active {
  color: #0b8560;
}

.bottom-nav.bottom-nav > .nav-item.camera {
  align-self: start;
  min-height: var(--bottom-nav-camera-size);
  height: var(--bottom-nav-camera-size);
  margin-top: var(--bottom-nav-camera-top-offset);
  justify-content: flex-start;
  gap: 0;
}

.bottom-nav.bottom-nav > .nav-item.camera > span {
  box-sizing: border-box;
  width: var(--bottom-nav-camera-size);
  height: var(--bottom-nav-camera-size);
  flex: 0 0 var(--bottom-nav-camera-size);
  display: grid;
  place-items: center;
  border: 4px solid #fffaf1;
  border-radius: 50%;
  background: #0b8560;
  color: #fff;
  box-shadow: none;
}

.bottom-nav.bottom-nav > .nav-item.camera > span > .ui-icon {
  width: 25px;
  height: 25px;
}

.bottom-nav.bottom-nav > .nav-item.message > i {
  position: absolute;
  top: 3px;
  right: 17px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: block;
  border-radius: 9px;
  background: #e84a35;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

@media (min-width: 700px) {
  .bottom-nav.bottom-nav {
    bottom: 20px;
    border-radius: 0 0 8px 8px;
  }
}
