.fst-mobile-bottom-nav-root {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --fst-bottom-nav-height: 64px;
  }

  body.fst-has-mobile-bottom-nav {
    padding-bottom: calc(var(--fst-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  body.fst-has-mobile-bottom-nav.fst-mobile-bottom-nav-suspended {
    padding-bottom: 0;
  }

  html.fst-mobile-bottom-nav-open,
  body.fst-mobile-bottom-nav-open {
    overflow: hidden;
  }

  .fst-mobile-bottom-nav-root {
    display: block;
  }

  body.fst-mobile-bottom-nav-suspended .fst-mobile-bottom-nav-root {
    display: none !important;
  }

  .fst-mobile-bottom-nav {
    position: fixed;
    z-index: 880;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--fst-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 4px 6px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--fst-border, #dce3e7);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 24px rgba(23, 36, 45, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .fst-mobile-bottom-nav__item {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 5px 2px 4px;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #65717a !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: inherit;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .fst-mobile-bottom-nav__item:hover,
  .fst-mobile-bottom-nav__item:focus,
  .fst-mobile-bottom-nav__item:active {
    border: 0 !important;
    background: var(--fst-blue-soft, #eef7fa) !important;
    color: var(--fst-blue-dark, #005a84) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .fst-mobile-bottom-nav__item.is-active {
    background: transparent !important;
    color: var(--fst-blue-dark, #005a84) !important;
  }

  .fst-mobile-bottom-nav__item.is-active .fst-mobile-bottom-nav__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fst-green-dark, #3d8500);
    transform: translateX(-50%);
  }

  .fst-mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--fst-blue-dark, #005a84) !important;
    outline-offset: -2px;
  }

  .fst-mobile-bottom-nav__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
  }

  .fst-mobile-bottom-nav__icon svg,
  .fst-mobile-bottom-nav__panel svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fst-mobile-bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fst-mobile-bottom-nav__cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--fst-green-dark, #3d8500);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
  }

  .fst-mobile-bottom-nav__cart-count[data-count="0"] {
    display: none;
  }

  .fst-mobile-bottom-nav__overlay {
    position: fixed;
    z-index: 890;
    inset: 0;
    background: rgba(14, 24, 31, .38);
  }

  .fst-mobile-bottom-nav__panel {
    position: fixed;
    z-index: 900;
    left: 10px;
    right: 10px;
    bottom: calc(var(--fst-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    display: flex;
    flex-direction: column;
    max-height: min(68dvh, 620px);
    overflow: hidden;
    border: 1px solid var(--fst-border, #dce3e7);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(14, 24, 31, .24);
    transform: translateY(0);
  }

  .fst-mobile-bottom-nav__panel[hidden],
  .fst-mobile-bottom-nav__overlay[hidden] {
    display: none !important;
  }

  .fst-mobile-bottom-nav__panel-handle {
    width: 34px;
    height: 4px;
    margin: 9px auto 2px;
    border-radius: 999px;
    background: #d7e0e4;
  }

  .fst-mobile-bottom-nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px 13px;
    border-bottom: 1px solid var(--fst-border, #dce3e7);
  }

  .fst-mobile-bottom-nav__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--fst-green-dark, #3d8500);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .fst-mobile-bottom-nav__panel-head h2 {
    margin: 0;
    color: var(--fst-ink, #202633);
    font-size: 1.12rem;
    line-height: 1.15;
    letter-spacing: -.02em;
  }

  .fst-mobile-bottom-nav__panel-close {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--fst-border, #dce3e7) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--fst-ink, #202633) !important;
    box-shadow: none !important;
  }

  .fst-mobile-bottom-nav__panel-close:hover,
  .fst-mobile-bottom-nav__panel-close:focus {
    border-color: #a8c7d5 !important;
    background: var(--fst-blue-soft, #eef7fa) !important;
    color: var(--fst-blue-dark, #005a84) !important;
  }

  .fst-mobile-bottom-nav__panel-close:focus-visible {
    outline: 2px solid var(--fst-blue-dark, #005a84) !important;
    outline-offset: 2px;
  }

  .fst-mobile-bottom-nav__panel-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: #bdcbd2 transparent;
  }

  .fst-mobile-bottom-nav__all-products {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    border-bottom: 1px solid var(--fst-border, #dce3e7);
    color: var(--fst-blue-dark, #005a84) !important;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none !important;
  }

  .fst-mobile-bottom-nav__all-products svg,
  .fst-mobile-bottom-nav__category-parent svg {
    width: 17px;
    height: 17px;
  }

  .fst-mobile-bottom-nav__category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .fst-mobile-bottom-nav__category-group {
    min-width: 0;
    padding: 13px 0 11px;
    border-bottom: 1px solid #edf1f3;
  }

  .fst-mobile-bottom-nav__category-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--fst-ink, #202633) !important;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
  }

  .fst-mobile-bottom-nav__category-parent:hover,
  .fst-mobile-bottom-nav__category-parent:focus,
  .fst-mobile-bottom-nav__all-products:hover,
  .fst-mobile-bottom-nav__all-products:focus {
    color: var(--fst-green-dark, #3d8500) !important;
  }

  .fst-mobile-bottom-nav__category-children {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 9px;
  }

  .fst-mobile-bottom-nav__category-children a {
    color: var(--fst-muted, #68717d) !important;
    font-size: .7rem;
    line-height: 1.35;
    text-decoration: none !important;
  }

  .fst-mobile-bottom-nav__category-children a:hover,
  .fst-mobile-bottom-nav__category-children a:focus {
    color: var(--fst-blue-dark, #005a84) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }

  .fst-mobile-bottom-nav__empty {
    margin: 18px 0 4px;
    color: var(--fst-muted, #68717d);
    font-size: .76rem;
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  .fst-mobile-bottom-nav__label {
    font-size: 9.5px;
  }

  .fst-mobile-bottom-nav__category-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fst-mobile-bottom-nav,
  .fst-mobile-bottom-nav__panel,
  .fst-mobile-bottom-nav__overlay,
  .fst-mobile-bottom-nav__item {
    transition: none !important;
    animation: none !important;
  }
}
