/* Localsewa v32.8.74 — bottom navigation state fix
 * Active state is immediate: no dark-green-to-mint transition on tap.
 */

@media (max-width: 767.98px) {
  [data-bottom-navigation] {
    box-sizing: border-box !important;
    height: calc(60px + env(safe-area-inset-bottom)) !important;
    min-height: calc(60px + env(safe-area-inset-bottom)) !important;
    padding: 4px 8px env(safe-area-inset-bottom) !important;
    border-top: 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -7px 24px rgba(15, 23, 42, 0.075) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  [data-bottom-navigation] > div {
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
  }

  [data-bottom-navigation] a {
    position: relative !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 3px 2px 2px !important;
    gap: 2px !important;
    border-radius: 14px !important;
    color: #637269 !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: none !important;
  }

  [data-bottom-navigation] a > div:first-child {
    width: 36px !important;
    height: 30px !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #5f6f67 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  [data-bottom-navigation] a > span:last-child {
    color: inherit !important;
    font-weight: inherit !important;
    transition: none !important;
  }

  [data-bottom-navigation] a:hover,
  [data-bottom-navigation] a:active {
    color: #637269 !important;
  }

  [data-bottom-navigation] a:hover > div:first-child,
  [data-bottom-navigation] a:active > div:first-child {
    background: transparent !important;
    color: #5f6f67 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  [data-bottom-navigation] a[aria-current="page"],
  [data-bottom-navigation] a[aria-current="page"]:hover,
  [data-bottom-navigation] a[aria-current="page"]:active {
    color: #15803d !important;
    font-weight: 700 !important;
  }

  [data-bottom-navigation] a[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 18px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #22a95a;
    opacity: .8;
  }

  [data-bottom-navigation] a[aria-current="page"] > div:first-child,
  [data-bottom-navigation] a[aria-current="page"]:hover > div:first-child,
  [data-bottom-navigation] a[aria-current="page"]:active > div:first-child {
    background: #eafaf0 !important;
    color: #16a34a !important;
    transform: none !important;
    box-shadow: 0 5px 13px rgba(22, 163, 74, 0.10) !important;
  }

  [data-bottom-navigation] a [data-nav-badge] {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    z-index: 2;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-bottom-navigation] a,
  [data-bottom-navigation] a > div:first-child,
  [data-bottom-navigation] a > span:last-child {
    transition: none !important;
  }
}
