.ss-mobile-bottom-nav {
  display: none;
}

.ss-mobile-search {
  display: none;
}

@media (max-width: 959px) {
  :root {
    --ss-mobile-bottom-nav-height: 68px;
    --ss-mobile-bottom-nav-total: calc(var(--ss-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: var(--ss-mobile-bottom-nav-total);
  }

  body.ss-mobile-search-open {
    overflow: hidden;
  }

  .ss-mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    height: var(--ss-mobile-bottom-nav-total);
    padding: 3px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 -3px 18px rgba(0, 0, 0, .055);
  }

  body.ss-mobile-search-open .ss-mobile-bottom-nav {
    z-index: 1001;
    bottom: var(--ss-mobile-keyboard-offset, 0px);
  }

  .ss-mobile-bottom-nav__item,
  .ss-mobile-bottom-nav a.ss-mobile-bottom-nav__item,
  .ss-mobile-bottom-nav a.ss-mobile-bottom-nav__item:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    height: 61px;
    margin: 0;
    padding: 3px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .ss-mobile-bottom-nav__item svg {
    display: block;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ss-mobile-bottom-nav__item[aria-current="page"] {
    font-weight: 600;
  }

  .ss-mobile-bottom-nav__item:focus-visible {
    outline: 2px solid #111;
    outline-offset: -3px;
  }

  .ss-mobile-search:not([hidden]) {
    position: fixed;
    inset: 0 0 calc(var(--ss-mobile-bottom-nav-total) + var(--ss-mobile-keyboard-offset, 0px));
    z-index: 1000;
    display: block;
    background: #fff;
    color: #111;
  }

  .ss-mobile-search__panel {
    height: min(100%, calc(var(--ss-mobile-search-viewport-height, 100dvh) - var(--ss-mobile-bottom-nav-total)));
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 16px;
    background: #fff;
    overflow: hidden;
  }

  .ss-mobile-search__header {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ss-mobile-search .search-modal__content {
    min-width: 0;
    padding: 0;
    color: #111;
  }

  .ss-mobile-search .search-modal__form {
    min-width: 0;
  }

  .ss-mobile-search .search-modal__field {
    height: 50px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
  }

  .ss-mobile-search .field__input {
    height: 48px;
    padding-right: 42px;
    font-size: 16px;
  }

  .ss-mobile-search .search-modal__field .header__icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 48px;
    margin-right: 0;
    padding: 9px;
    color: #111;
  }

  .ss-mobile-search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
  }

  .ss-mobile-search__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .ss-mobile-search .predictive-search {
    z-index: 2;
    max-height: max(0px, calc(var(--ss-mobile-search-viewport-height, 100dvh) - var(--ss-mobile-bottom-nav-total) - 88px - env(safe-area-inset-top, 0px)));
    background: #fff;
    color: #111;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: none !important;
  }

  .ss-mobile-search .predictive-search__results {
    max-height: max(0px, calc(var(--ss-mobile-search-viewport-height, 100dvh) - var(--ss-mobile-bottom-nav-total) - 88px - env(safe-area-inset-top, 0px))) !important;
  }

  .ss-mobile-search .search-modal__content[data-col="1"] .predictive-search__results-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ss-mobile-chat-launcher {
    right: 20px !important;
    bottom: calc(var(--ss-mobile-bottom-nav-total) + 12px) !important;
    scale: var(--ss-mobile-chat-scale, 1) !important;
    transform-origin: right bottom !important;
  }

  body product-float-buy-buttons,
  body .cart-fixed-checkout.cart-footer__fixed-checkout {
    bottom: var(--ss-mobile-bottom-nav-total);
  }
}

@media (max-width: 359px) {
  .ss-mobile-bottom-nav__item,
  .ss-mobile-bottom-nav a.ss-mobile-bottom-nav__item,
  .ss-mobile-bottom-nav a.ss-mobile-bottom-nav__item:hover {
    font-size: 9px;
  }

  .ss-mobile-bottom-nav__item svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}
