/* Customer/public navigation only; operational panels have separate layouts. */
.wm-mobile-bottom-nav,
.wm-mobile-bottom-spacer {
    display: none;
}

@media screen and (max-width: 767px) {
    body.wm-mobile-nav {
        --wm-mobile-nav-height: 76px;
        --wm-mobile-nav-offset: calc(var(--wm-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .wm-mobile-bottom-spacer {
        display: block;
        height: var(--wm-mobile-nav-offset);
        flex-shrink: 0;
        pointer-events: none;
    }

    .wm-mobile-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 1030;
        display: block;
        box-sizing: border-box;
        height: var(--wm-mobile-nav-offset);
        padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
        border: 1px solid #eedfe9;
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 -5px 24px rgba(125, 49, 98, .09);
        -webkit-tap-highlight-color: transparent;
    }

    .wm-mobile-bottom-nav__items {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        height: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .wm-mobile-bottom-nav__item {
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .wm-mobile-bottom-nav__link {
        position: relative;
        display: flex;
        box-sizing: border-box;
        height: 100%;
        min-height: 54px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 2px;
        border-radius: 14px;
        color: #76687d;
        text-align: center;
        text-decoration: none;
        touch-action: manipulation;
        transition: color .15s ease, background-color .15s ease;
    }

    .wm-mobile-bottom-nav__icon {
        display: flex;
        width: 42px;
        height: 30px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
    }

    .wm-mobile-bottom-nav__icon svg {
        display: block;
        width: 23px;
        height: 23px;
        flex-shrink: 0;
    }

    .wm-mobile-bottom-nav__label {
        display: block;
        max-width: 100%;
        font-family: inherit;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.25;
        white-space: nowrap;
    }

    .wm-mobile-bottom-nav__link:hover,
    .wm-mobile-bottom-nav__link:focus-visible,
    .wm-mobile-bottom-nav__link.is-active {
        background: #fff5fa;
        color: #ad255e;
        text-decoration: none;
    }

    .wm-mobile-bottom-nav__link.is-active .wm-mobile-bottom-nav__icon {
        background: linear-gradient(125deg, #f5eaff, #fce2ee);
        color: #b22a66;
    }

    .wm-mobile-bottom-nav__link.is-active .wm-mobile-bottom-nav__label {
        font-weight: 800;
    }

    .wm-mobile-bottom-nav__link:focus-visible {
        outline: 2px solid #ac2b69;
        outline-offset: -2px;
    }

    /* Keep the existing vertical support stack above the new navigation. */
    body.wm-mobile-nav .icon11 {
        bottom: calc(var(--wm-mobile-nav-offset) + 82px) !important;
    }

    body.wm-mobile-nav .wizzy-chat__launcher {
        right: 10px;
        bottom: calc(var(--wm-mobile-nav-offset) + 12px);
    }

    body.wm-mobile-nav .wizzy-chat__panel {
        right: 10px;
        bottom: calc(var(--wm-mobile-nav-offset) + 10px);
        width: min(390px, calc(100vw - 20px));
        height: min(650px, calc(100vh - var(--wm-mobile-nav-offset) - 24px));
        height: min(650px, calc(100dvh - var(--wm-mobile-nav-offset) - 24px));
    }

    body.wm-mobile-nav .scroll-to-top {
        right: auto;
        left: 12px;
        bottom: calc(var(--wm-mobile-nav-offset) + 16px);
    }
}

@media screen and (max-width: 575px) {
    body.wm-mobile-nav .wizzy-chat__panel {
        right: 8px;
        width: calc(100vw - 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wm-mobile-bottom-nav__link {
        transition: none;
    }
}

@media print {
    .wm-mobile-bottom-nav,
    .wm-mobile-bottom-spacer {
        display: none !important;
    }
}
