.gmm-nav {
    display: none;
}

@media (max-width: 768px) {
    html.gmm-has-mobile-menu,
    body.gmm-has-mobile-menu {
        scroll-padding-bottom: 112px;
    }

    body.gmm-has-mobile-menu {
        padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
    }

    .gmm-nav {
        display: block;
        position: fixed;
        left: var(--gmm-side);
        right: var(--gmm-side);
        bottom: calc(var(--gmm-bottom) + env(safe-area-inset-bottom, 0px));
        z-index: var(--gmm-z);
        pointer-events: none;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .gmm-nav__inner {
        min-height: 72px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        padding: 8px 8px 7px;
        background: var(--gmm-bg);
        border-radius: var(--gmm-radius);
        box-shadow: var(--gmm-shadow);
        pointer-events: auto;
        border: 1px solid rgba(0,0,0,.05);
    }

    .gmm-nav__item {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 56px;
        padding: 3px 2px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        color: var(--gmm-text);
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
        transition: transform .18s ease, color .18s ease, opacity .18s ease;
    }

    /*
     * Keep the mobile-menu palette isolated from theme link states.
     * Themes such as Flatsome can define a:hover/a:focus/a:active/a:visited
     * with a lighter color, making labels disappear on the white menu.
     */
    .gmm-nav .gmm-nav__item,
    .gmm-nav .gmm-nav__item:link,
    .gmm-nav .gmm-nav__item:visited,
    .gmm-nav .gmm-nav__item:hover,
    .gmm-nav .gmm-nav__item:focus,
    .gmm-nav .gmm-nav__item:focus-visible,
    .gmm-nav .gmm-nav__item:active {
        color: var(--gmm-text) !important;
        text-decoration: none !important;
    }

    .gmm-nav .gmm-nav__item:hover .gmm-nav__label,
    .gmm-nav .gmm-nav__item:focus .gmm-nav__label,
    .gmm-nav .gmm-nav__item:active .gmm-nav__label,
    .gmm-nav .gmm-nav__item:visited .gmm-nav__label {
        color: inherit !important;
        opacity: 1 !important;
    }

    .gmm-nav__item:active {
        transform: scale(.94);
    }

    .gmm-nav__icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: var(--gmm-icon);
    }

    .gmm-nav svg {
        width: 26px;
        height: 26px;
        display: block;
        fill: currentColor;
    }

    .gmm-nav__label {
        max-width: 100%;
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: .01em;
        text-align: center;
        white-space: normal;
    }

    .gmm-nav__item--center {
        padding-top: 29px;
    }

    .gmm-nav__center-bubble {
        position: absolute;
        top: -39px;
        left: 50%;
        width: 66px;
        height: 66px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--gmm-accent);
        color: #fff;
        border: 4px solid var(--gmm-bg);
        box-shadow: 0 5px 18px rgba(0,0,0,.20);
    }

    .gmm-nav__center-bubble svg {
        width: 29px;
        height: 29px;
    }

    .gmm-cart-count {
        position: absolute;
        top: -6px;
        right: -9px;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--gmm-badge-bg);
        color: var(--gmm-badge-color);
        border: 2px solid var(--gmm-bg);
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        box-sizing: border-box;
    }

    .gmm-nav .gmm-nav__item.is-active,
    .gmm-nav .gmm-nav__item.is-active:link,
    .gmm-nav .gmm-nav__item.is-active:visited,
    .gmm-nav .gmm-nav__item.is-active:hover,
    .gmm-nav .gmm-nav__item.is-active:focus,
    .gmm-nav .gmm-nav__item.is-active:active {
        color: var(--gmm-accent) !important;
    }

    .gmm-nav .gmm-nav__item.is-active .gmm-nav__icon {
        color: var(--gmm-accent) !important;
    }

    /* The center action bubble intentionally keeps a white icon. */
    .gmm-nav .gmm-nav__item--center .gmm-nav__center-bubble,
    .gmm-nav .gmm-nav__item--center:hover .gmm-nav__center-bubble,
    .gmm-nav .gmm-nav__item--center:focus .gmm-nav__center-bubble,
    .gmm-nav .gmm-nav__item--center:active .gmm-nav__center-bubble {
        color: #fff !important;
    }

    @media (max-width: 390px) {
        .gmm-nav {
            left: max(8px, var(--gmm-side));
            right: max(8px, var(--gmm-side));
        }

        .gmm-nav__inner {
            padding-left: 5px;
            padding-right: 5px;
        }

        .gmm-nav__label {
            font-size: 9.5px;
        }

        .gmm-nav__center-bubble {
            width: 62px;
            height: 62px;
            top: -36px;
        }
    }
}
