/**
 * mobile-nav.css
 *
 * Dandiran WooCommerce Theme — Mobile Bottom Navigation
 *
 * Fixed bottom bar, mobile only (hidden via the `d-lg-none` utility
 * class on the element itself, so no extra media query is needed
 * here to hide/show it — this file only styles it).
 *
 * Depends on dnd-tokens.css for --dnd-primary / --dnd-muted etc.
 */

.mst-mobile-nav {
  height: calc(54px + env(safe-area-inset-bottom, 0px));
  min-height: calc(54px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--dnd-white);
  border-top: 1px solid var(--dnd-border);
  box-shadow: 0 -2px 10px rgba(20, 20, 30, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateZ(0);
}

.mst-mobile-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 6px;
  background: none;
  border: none;
  color: var(--dnd-muted);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.mst-mobile-nav__item:hover,
.mst-mobile-nav__item:focus-visible {
  color: var(--dnd-primary);
}

.mst-mobile-nav__item.is-active {
  color: var(--dnd-primary-two);
}

/* .mst-mobile-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: #53565a;
} */

.mst-mobile-nav__icon svg {
  width: 22px;
  height: 22px;
}

.mst-mobile-nav__label {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Body spacing
|--------------------------------------------------------------------------
| Prevents the fixed nav from covering the last bit of page content on
| mobile. Only needed while the nav is actually rendered — the
| .has-mobile-nav class is added to <body> from footer.php alongside
| the nav's own d-lg-none, so on lg+ (or on single product, where the
| nav isn't printed at all) this padding never applies.
*/

@media (max-width: 991.98px) {
  body.has-mobile-nav {
    padding-bottom: 62px;
  }
}


.mst-mobile-nav__icon--has-avatar {
  overflow: hidden;
  border-radius: 50%;
}

.mst-mobile-nav__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
