.nr-mobile-customer-shell {
  display: none;
}

@media (max-width: 768px) {
  body.nr-customer-mobile-enabled {
    --nr-mobile-bottom-nav-height: 64px;
    --nr-mobile-bottom-safe-area: env(safe-area-inset-bottom, 0px);
    --nr-mobile-bottom-nav-space: calc(
      var(--nr-mobile-bottom-nav-height) + var(--nr-mobile-bottom-safe-area)
    );
    --nr-mobile-bottom-action-gap: 10px;
    --nr-mobile-bottom-action-offset: calc(
      var(--nr-mobile-bottom-nav-space) + var(--nr-mobile-bottom-action-gap)
    );
    --nr-mobile-bottom-action-reserve: 104px;
    --nr-mobile-browse-action-reserve: 72px;
    overflow-x: hidden;
    padding-bottom: var(--nr-mobile-bottom-nav-space);
  }

  body.nr-customer-mobile-enabled > .app-header {
    display: none;
  }

  body.nr-customer-mobile-enabled > .app-main {
    min-width: 0;
  }

  body.nr-customer-mobile-enabled > .nr-mobile-customer-shell {
    display: block;
  }

  .nr-mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(39, 55, 31, 0.12);
    background: rgba(251, 247, 237, 0.97);
    box-shadow: 0 5px 18px rgba(32, 45, 24, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nr-mobile-menu {
    position: relative;
  }

  .nr-mobile-menu summary {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(39, 55, 31, 0.14);
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #263f17;
    cursor: pointer;
    list-style: none;
  }

  .nr-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .nr-mobile-menu summary svg,
  .nr-mobile-icon-link svg,
  .nr-mobile-bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nr-mobile-menu-backdrop {
    position: fixed;
    inset: 56px 0 0;
    z-index: 1;
    border: 0;
    background: rgba(17, 25, 14, 0.34);
  }

  .nr-mobile-menu-backdrop[hidden] {
    display: none;
  }

  .nr-mobile-menu-panel {
    position: fixed;
    top: 62px;
    left: 10px;
    z-index: 2;
    width: min(290px, calc(100vw - 20px));
    max-height: calc(100dvh - 146px);
    overflow-y: auto;
    display: grid;
    padding: 8px;
    border: 1px solid rgba(39, 55, 31, 0.14);
    border-radius: 14px;
    background: #fffdf7;
    box-shadow: 0 18px 44px rgba(24, 35, 18, 0.24);
  }

  .nr-mobile-menu-panel a,
  .nr-mobile-menu-panel button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    background: transparent;
    color: #172112;
    padding: 8px 10px;
    font: 750 13px/1.2 Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .nr-mobile-menu-panel a:hover,
  .nr-mobile-menu-panel button:hover {
    background: #e8f0df;
    color: #263f17;
  }

  .nr-mobile-menu-panel form {
    margin: 0;
  }

  .nr-mobile-brand {
    min-width: 0;
    display: block;
    color: #172112;
    text-decoration: none;
  }

  .nr-mobile-brand strong,
  .nr-mobile-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nr-mobile-brand strong {
    font: 850 14px/1.15 Arial, sans-serif;
  }

  .nr-mobile-brand small {
    margin-top: 2px;
    color: rgba(23, 33, 18, 0.64);
    font: 650 10px/1.15 Arial, sans-serif;
  }

  .nr-mobile-header-actions {
    display: flex;
    gap: 4px;
  }

  .nr-mobile-icon-link {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #263f17;
    text-decoration: none;
  }

  .nr-mobile-icon-link:hover {
    background: #e8f0df;
  }

  .nr-mobile-count {
    position: absolute;
    top: -1px;
    right: -1px;
    min-width: 17px;
    height: 17px;
    border: 2px solid #fbf7ed;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #3f6424;
    color: #fff;
    padding: 0 3px;
    font: 800 9px/1 Arial, sans-serif;
  }

  .nr-mobile-count[hidden] {
    display: none;
  }

  .nr-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    height: var(--nr-mobile-bottom-nav-space);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 5px 5px calc(5px + var(--nr-mobile-bottom-safe-area));
    border-top: 1px solid rgba(39, 55, 31, 0.13);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 -8px 24px rgba(32, 45, 24, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nr-mobile-bottom-nav > a {
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: rgba(23, 33, 18, 0.64);
    font: 750 10px/1.12 Arial, sans-serif;
    text-decoration: none;
    text-align: center;
  }

  .nr-mobile-bottom-nav > a > span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nr-mobile-bottom-nav > a[aria-current="page"] {
    color: #3f6424;
  }

  .nr-mobile-search-action {
    position: relative;
  }

  .nr-mobile-search-icon {
    width: 46px;
    height: 46px;
    margin-top: -25px;
    border: 4px solid #fffdf7;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3f6424;
    color: #fff;
    box-shadow: 0 8px 18px rgba(38, 63, 23, 0.26);
  }

  body.nr-customer-mobile-enabled .nr-market:not(.nr-search-market) .nr-market-header {
    display: none;
  }

  body.nr-customer-mobile-enabled .nr-search-market .nr-market-header {
    position: static;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nr-customer-mobile-enabled .nr-search-market .nr-header-inner {
    display: block;
    padding: 8px 0 0;
  }

  body.nr-customer-mobile-enabled .nr-search-market .nr-brand,
  body.nr-customer-mobile-enabled .nr-search-market .nr-account-nav {
    display: none;
  }

  body.nr-customer-mobile-enabled .nr-search-market .nr-searchbar {
    height: 38px;
  }

  body.nr-customer-mobile-enabled .nr-customer-bottom-action {
    bottom: var(--nr-mobile-bottom-action-offset);
  }

  .nr-customer-bottom-action[data-smart-sticky-action] {
    transition:
      transform 220ms ease,
      opacity 180ms ease;
    will-change: transform;
  }

  .nr-customer-bottom-action[data-smart-sticky-action].is-smart-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + var(--nr-mobile-bottom-action-gap)));
  }

  body.nr-customer-mobile-enabled:has(.nr-market) > .app-main {
    padding-bottom: 0 !important;
  }

  body.nr-customer-mobile-enabled:has(
    .nr-customer-bottom-action:not([hidden]):not(.is-smart-hidden)
  ) > .app-main {
    padding-bottom: var(--nr-mobile-bottom-action-reserve) !important;
  }

  body.nr-customer-mobile-enabled:has(.nr-market):has(
    .nr-customer-bottom-action:not([hidden]):not(.is-smart-hidden)
  ) > .app-main {
    padding-bottom: var(--nr-mobile-browse-action-reserve) !important;
  }

  body.nr-customer-mobile-enabled .nr-cart-layout,
  body.nr-customer-mobile-enabled .nr-checkout-page {
    padding-bottom: 0;
  }

  body.nr-customer-mobile-enabled .nr-checkout-sticky {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body.nr-customer-mobile-enabled .nr-checkout-sticky-inner {
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  body.nr-customer-mobile-enabled .nr-checkout-sticky .button {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 370px) {
  .nr-mobile-header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 8px;
  }

  .nr-mobile-menu summary {
    width: 36px;
    height: 36px;
  }

  .nr-mobile-icon-link {
    width: 32px;
  }

  .nr-mobile-brand strong {
    font-size: 13px;
  }

  .nr-mobile-brand small {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  body.nr-customer-mobile-enabled {
    --nr-mobile-bottom-action-reserve: 112px;
    --nr-mobile-browse-action-reserve: 58px;
  }

  body.nr-customer-mobile-enabled .nr-browse-cart-inner {
    grid-template-columns: minmax(64px, 0.7fr) minmax(0, 1.3fr);
    gap: 7px;
    padding: 7px;
  }

  body.nr-customer-mobile-enabled .nr-browse-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body.nr-customer-mobile-enabled .nr-browse-cart-actions a {
    min-height: 36px;
    padding: 7px 5px;
    font-size: 11px;
  }

  body.nr-customer-mobile-enabled .nr-cart-sticky {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body.nr-customer-mobile-enabled .nr-cart-sticky-inner {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  body.nr-customer-mobile-enabled .nr-cart-sticky .button {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-customer-bottom-action[data-smart-sticky-action] {
    transition: none;
  }
}
