/* Mobile bottom navigation */

.bsp-mobnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: var(--bsp-mobnav-bg, #ffffff);
  border-top: 1px solid var(--bsp-mobnav-border, #e5e7eb);
  box-shadow: 0 -2px 12px rgba(17, 24, 39, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bsp-mobnav__list {
  list-style: none;
  margin: 0;
  padding: 6px 4px 4px;
  display: grid;
  grid-template-columns: repeat(var(--bsp-mobnav-columns, 5), 1fr);
  align-items: stretch;
  min-height: calc(var(--bsp-mobnav-height, 62px) - 6px);
}

.bsp-mobnav__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.bsp-mobnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  padding: 2px 4px 6px;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--bsp-mobnav-inactive, #374151);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bsp-mobnav__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--bsp-mobnav-icon, 24px) + 4px);
  height: calc(var(--bsp-mobnav-icon, 24px) + 4px);
  color: inherit;
}

.bsp-mobnav__icon svg {
  display: block;
  width: var(--bsp-mobnav-icon, 24px);
  height: var(--bsp-mobnav-icon, 24px);
}

.bsp-mobnav__label {
  font-size: var(--bsp-mobnav-label, 11px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bsp-mobnav__item.is-active .bsp-mobnav__link {
  color: var(--bsp-mobnav-active, var(--bsp-pink-primary, #e91e63));
}

.bsp-mobnav .bsp-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bsp-mobnav-badge-bg, var(--bsp-pink-primary, #e91e63));
  color: var(--bsp-mobnav-badge-text, #ffffff);
  font-size: var(--bsp-mobnav-badge-font, 10px);
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--bsp-mobnav-badge-border, #ffffff);
  box-sizing: content-box;
}

.bsp-mobnav .bsp-badge.is-empty {
  display: none;
}

body.bsp-cart-drawer-open .bsp-mobnav,
body.bsp-wishlist-drawer-open .bsp-mobnav {
  z-index: 99980;
}
