/* ============================================================
   DEVA BD — five-button mobile bottom navigation
   Home · Shop · Order · Cart · Account
   ============================================================ */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
}

/* The navigation is injected once by assets/js/bottom-nav.js. */
body nav.ks-reference-bottom {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 78px !important;
  height: auto !important;
  z-index: 999 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  background: #fff !important;
  border-top: 1px solid #A8843A !important;
  padding: 7px 0 calc(9px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  box-shadow: 0 -2px 12px rgba(17, 17, 17, .05) !important;
  transform: none !important;
  translate: none !important;
  inset: auto 0 0 0 !important;
  backface-visibility: hidden !important;
  contain: layout paint !important;
}

body nav.ks-reference-bottom .ks-bnav-item {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 60px !important;
  padding: 2px 2px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6f7074 !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: color .18s ease, transform .18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

body nav.ks-reference-bottom .ks-bnav-item:active {
  transform: translateY(1px) !important;
}

body nav.ks-reference-bottom .ks-bnav-item.active,
body nav.ks-reference-bottom .ks-bnav-item:hover {
  color: #A8843A !important;
}

body nav.ks-reference-bottom .ks-bnav-ico {
  position: relative !important;
  display: block !important;
  width: 31px !important;
  height: 31px !important;
  flex: 0 0 31px !important;
  line-height: 1 !important;
  color: #353638 !important;
}

body nav.ks-reference-bottom .ks-bnav-item.active .ks-bnav-ico {
  color: #A8843A !important;
}

body nav.ks-reference-bottom .ks-bnav-ico svg {
  display: block !important;
  width: 31px !important;
  height: 31px !important;
  max-width: none !important;
  overflow: visible !important;
}

/* The reference design uses a filled active Account icon. */
body nav.ks-reference-bottom .ks-bnav-item.active[data-key="account"] svg {
  fill: currentColor !important;
}

body nav.ks-reference-bottom .ks-bnav-label {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: inherit !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

body nav.ks-reference-bottom .ks-bnav-badge {
  position: absolute !important;
  top: -4px !important;
  right: -7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #A8843A !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 13px !important;
  box-sizing: border-box !important;
}

body nav.ks-reference-bottom .ks-bnav-item:focus-visible {
  outline: 2px solid #A8843A !important;
  outline-offset: -3px !important;
}

@media (max-width: 380px) {
  body nav.ks-reference-bottom .ks-bnav-item {
    font-size: 12px !important;
  }

  body nav.ks-reference-bottom .ks-bnav-ico,
  body nav.ks-reference-bottom .ks-bnav-ico svg {
    width: 28px !important;
    height: 28px !important;
  }

  body nav.ks-reference-bottom .ks-bnav-ico {
    flex-basis: 28px !important;
  }

  body nav.ks-reference-bottom .ks-bnav-label {
    font-size: 12px !important;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0 !important;
  }

  body nav.ks-reference-bottom {
    display: none !important;
  }
}

/* Keep the five buttons hidden while a full-screen overlay is open. */
body.ks-modal-open nav.ks-reference-bottom {
  display: none !important;
}
