.mobile-bottom-nav {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 3;
  padding-block-end: env(safe-area-inset-bottom, 0);
  color: rgb(var(--color-text));
  background-color: rgb(var(--color-background));
  border-block-start: 1px solid rgb(var(--color-entry-line));
}
.mobile-bottom-nav__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  height: var(--mobile-bottom-nav-height);
  padding: 0;
  margin: 0;
  list-style: none;
}
.mobile-bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.mobile-bottom-nav__icon {
  display: flex;
}
.mobile-bottom-nav__icon .icon,
.mobile-bottom-nav__icon svg,
.mobile-bottom-nav__item--cart .cart-bubble svg {
  width: 20px;
  height: 20px;
}
.mobile-bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-bottom-nav__item--active {
  color: rgb(var(--color-button-text-link));
}
.mobile-bottom-nav__item--active::before {
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 25%;
  height: 3px;
  content: "";
  background-color: rgb(var(--color-button-background));
  border-radius: 0 0 3px 3px;
}
.mobile-bottom-nav__item--cart .cart-bubble,
.mobile-bottom-nav__item--cart .cart-bubble > a,
.mobile-bottom-nav__item--cart .cart-bubble > button {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.mobile-bottom-nav__item--cart .cart-bubble > a::after,
.mobile-bottom-nav__item--cart .cart-bubble > button::after {
  position: absolute;
  inset: 0;
  content: "";
}
.mobile-bottom-nav__item--cart .cart-bubble__count {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: calc(50% + 4px);
  min-width: 18px;
  padding-inline: 5px;
  line-height: 18px;
  color: rgba(var(--color-cart-bubble-text), 1);
  text-align: center;
  background-color: rgba(var(--color-cart-bubble), 1);
  border-radius: 18px;
}
.mobile-bottom-nav__item--cart .cart-bubble__count:empty {
  display: none;
}
