/* Mobile storefront TabBar — visual override only. */
@media (max-width: 767.98px) {
    :root {
        --tt-tabbar-height: 60px;
        --tt-tabbar-primary: #7067e8;
        --tt-tabbar-muted: #8a8f98;
        --mf-topbar-height: 0px;
    }

    /* Navigation is provided by the bottom TabBar on phones. */
    .navbar-acg,
    .fly-header,
    .mf-topbar {
        display: none !important;
    }

    .mf-app-shell {
        padding-top: 0 !important;
    }

    body {
        padding-bottom: calc(var(--tt-tabbar-height) + 8px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .tt-mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2147482000;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        height: calc(var(--tt-tabbar-height) + env(safe-area-inset-bottom, 0px));
        min-height: 0;
        box-sizing: border-box;
        padding: 1px 12px env(safe-area-inset-bottom, 0px);
        border: 0;
        border-top: 1px solid rgba(15, 23, 42, .06);
        background: rgba(255, 255, 255, .25);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .04);
        backdrop-filter: saturate(165%) blur(22px);
        -webkit-backdrop-filter: saturate(165%) blur(22px);
        isolation: isolate;
    }

    .tt-mobile-bottom-nav a {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 0;
        height: var(--tt-tabbar-height);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        padding: 2px;
        border: 0;
        border-radius: 0;
        outline: none;
        color: var(--tt-tabbar-muted);
        background: transparent;
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: .01em;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        transform: translateZ(0) scale(1);
        transform-origin: center;
        transition: color 180ms ease, opacity 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
    }

    .tt-mobile-bottom-nav a > i,
    .tt-mobile-bottom-nav__icon {
        position: relative;
        display: inline-flex;
        width: 34px;
        height: 28px;
        flex: 0 0 28px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: transparent;
        transform: translateZ(0) scale(1);
        transform-origin: center;
        transition: color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
        will-change: transform;
    }

    .tt-mobile-bottom-nav a > i,
    .tt-mobile-bottom-nav__icon > i {
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }

    .tt-mobile-bottom-nav a > i::before,
    .tt-mobile-bottom-nav__icon > i::before {
        display: block;
        font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
        font-size: 21px;
        font-style: normal;
        font-weight: 400;
        line-height: 1;
    }

    .tt-mobile-bottom-nav a > i,
    .tt-mobile-bottom-nav__icon > i {
        transition: filter 180ms ease;
    }

    .tt-mobile-bottom-nav a[data-tt-nav="home"] > i::before {
        content: "🏠";
    }

    .tt-mobile-bottom-nav a[data-tt-nav="query"] > i::before {
        content: "🔎";
    }

    .tt-mobile-bottom-nav a[data-tt-nav="article"] > i::before {
        content: "📖";
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"] .tt-mobile-bottom-nav__icon > i::before {
        content: "🎧";
    }

    .tt-mobile-bottom-nav a[data-tt-nav="account"] > i::before {
        content: "👤";
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"] .tt-mobile-bottom-nav__icon {
        width: 36px;
        transform: translateY(-1px) scale(1.04);
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"] .tt-mobile-bottom-nav__icon > i {
        font-size: 22px;
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"] .tt-mobile-bottom-nav__icon > i::before {
        font-size: 22px;
    }

    .tt-mobile-bottom-nav a.is-active {
        color: var(--tt-tabbar-muted);
        background: transparent;
        font-weight: 500;
        transform: translateZ(0) scale(1.08);
    }

    .tt-mobile-bottom-nav a[data-tt-nav="home"],
    .tt-mobile-bottom-nav a[data-tt-nav="home"].is-active {
        background: transparent !important;
    }

    .tt-mobile-bottom-nav a.is-active > i,
    .tt-mobile-bottom-nav a.is-active .tt-mobile-bottom-nav__icon {
        color: inherit;
        background: transparent;
        transform: translateZ(0) scale(1);
    }

    .tt-mobile-bottom-nav a.is-active > i,
    .tt-mobile-bottom-nav a.is-active .tt-mobile-bottom-nav__icon > i {
        filter: none;
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"].is-active .tt-mobile-bottom-nav__icon {
        transform: translateY(-1px) scale(1.04);
    }

    .tt-mobile-bottom-nav a:active > i,
    .tt-mobile-bottom-nav a:active .tt-mobile-bottom-nav__icon {
        transform: translateZ(0) scale(.92);
        transition-duration: 80ms;
    }

    .tt-mobile-bottom-nav a[data-tt-nav="service"]:active .tt-mobile-bottom-nav__icon {
        transform: translateY(0) scale(.92);
    }

    .tt-mobile-bottom-nav a.is-navigating {
        pointer-events: none;
        opacity: .72;
    }

    .tt-mobile-bottom-nav a:focus-visible::before {
        position: absolute;
        inset: 3px 6px;
        border: 2px solid rgba(112, 103, 232, .38);
        border-radius: 14px;
        content: '';
        pointer-events: none;
    }

    .tt-mobile-bottom-nav .tt-support-unread {
        top: -5px;
        right: -4px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .16);
    }

    .taotao-pwa-panel {
        bottom: calc(var(--tt-tabbar-height) + 8px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 359.98px) {
    .tt-mobile-bottom-nav {
        padding-right: 6px;
        padding-left: 6px;
    }

    .tt-mobile-bottom-nav a {
        font-size: 11px;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .tt-mobile-bottom-nav a,
    .tt-mobile-bottom-nav a > i,
    .tt-mobile-bottom-nav__icon {
        transition: none;
    }
}
