@media (max-width: 767.98px) {
        :root {
            --am-app-teal: #0ABAB5;
            --am-app-gray: #b7b7b7;
        }

        body.am-has-app-nav {
            padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
        }

        body.am-app-nav-ready .mobile-navigation-bar {
            display: none !important;
        }

        .am-safe-app-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1000000;

            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            align-items: end;

            width: 100%;
            height: calc(82px + env(safe-area-inset-bottom));
            margin: 0;
            padding: 7px 8px env(safe-area-inset-bottom);

            box-sizing: border-box;
            direction: inherit;

            background: rgba(255, 255, 255, .985);
            border-top: 1px solid #ececec;
            box-shadow: 0 -3px 14px rgba(0, 0, 0, .035);

            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .am-safe-nav-item {
            position: relative;
            display: flex;

            min-width: 0;
            height: 70px;
            margin: 0;
            padding: 7px 2px 5px;

            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 5px;

            color: var(--am-app-gray);
            text-decoration: none !important;
            text-align: center;

            -webkit-tap-highlight-color: transparent;
        }

        .am-safe-nav-item:hover,
        .am-safe-nav-item:focus,
        .am-safe-nav-item:active {
            text-decoration: none !important;
        }

        /* Icon */
        .am-safe-nav-icon {
            display: flex;
            width: 30px;
            height: 30px;
            align-items: center;
            justify-content: center;
            color: inherit;
        }

        .am-safe-nav-icon svg {
            display: block;
            width: 29px;
            height: 29px;
            overflow: visible;

            fill: none;
            stroke: currentColor;
            stroke-width: 1.55;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .am-safe-nav-icon .am-safe-play {
            fill: currentColor;
            stroke: none;
        }

        /* Label */
        .am-safe-nav-label {
            display: block;
            max-width: 100%;
            overflow: hidden;

            color: inherit;
            font-size: 11.5px;
            line-height: 1.1;
            font-weight: 400;

            white-space: nowrap;
            text-overflow: ellipsis;
        }

        /* Active icon and label */
        .am-safe-nav-item.is-active,
        .am-safe-nav-item.is-active:hover,
        .am-safe-nav-item.is-active:focus,
        .am-safe-nav-item.is-active:active {
            color: var(--am-app-teal) !important;
        }

        .am-safe-nav-item.is-active .am-safe-nav-icon,
        .am-safe-nav-item.is-active .am-safe-nav-label {
            color: var(--am-app-teal) !important;
        }

        .am-safe-nav-item.is-active .am-safe-nav-label {
            font-weight: 700;
        }

        /* Center cart */
        .am-safe-nav-item.am-safe-cart {
            overflow: visible;
            padding-top: 0;
            justify-content: flex-end;
        }

        .am-safe-cart-circle {
            position: absolute;
            top: -31px;
            left: 50%;

            display: flex;
            width: 68px;
            height: 68px;

            transform: translateX(-50%);
            align-items: center;
            justify-content: center;

            border-radius: 50%;
            background: var(--am-app-teal);
            color: #fff;

            box-shadow: 0 5px 13px rgba(0, 0, 0, .07);
        }

        .am-safe-cart-circle svg {
            display: block;
            width: 36px;
            height: 36px;

            fill: none;
            stroke: currentColor;
            stroke-width: 1.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Cart count badge */
        .am-safe-cart-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            z-index: 3;

            display: none;
            min-width: 24px;
            height: 24px;
            padding: 2px 5px;

            box-sizing: border-box;
            align-items: center;
            justify-content: center;

            border: 2px solid #fff;
            border-radius: 50%;

            background: #e53935;
            color: #fff;

            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
        }

        .am-safe-cart-badge.is-visible {
            display: flex;
        }
        .am-safe-cart-label {
            color: #a9a9a9;
        }

        .am-safe-cart.is-active .am-safe-cart-label {
            color: var(--am-app-teal) !important;
            font-weight: 700;
        }

        /* Navigation order */
        .am-safe-home { grid-column: 1; }
        .am-safe-explore { grid-column: 2; }
        .am-safe-cart { grid-column: 3; }
        .am-safe-brands { grid-column: 4; }
        .am-safe-account { grid-column: 5; }

        /* Product page uses its own purchase bar */
        body.am-product-screen .am-safe-app-nav {
            display: none !important;
        }

        body.am-product-screen {
            padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
        }

        @media (max-width: 360px) {
            .am-safe-app-nav {
                padding-left: 4px;
                padding-right: 4px;
            }

            .am-safe-nav-label {
                font-size: 10.5px;
            }

            .am-safe-cart-circle {
                width: 62px;
                height: 62px;
                top: -27px;
            }

            .am-safe-cart-circle svg {
                width: 33px;
                height: 33px;
            }
        }
    }
