html.mmb-mobile-mode,
html.mmb-mobile-mode body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

html.mmb-mobile-mode body {
    touch-action: pan-x pan-y;
}

.mmb-mobile-app {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    flex-direction: column;
    background: var(--mmb-content-bg, #fff);
    direction: rtl;
    font-family: inherit;
    isolation: isolate;
}

.mmb-mobile-app[hidden] {
    display: none !important;
}

.mmb-mobile-content {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--mmb-content-bg, #fff);
    padding-bottom: env(safe-area-inset-bottom);
}

.mmb-content-stage {
    min-height: 100%;
    transition: opacity .16s ease, transform .16s ease;
}

.mmb-transition-fade.is-swapping .mmb-content-stage {
    opacity: 0;
}

.mmb-transition-slide.is-swapping .mmb-content-stage {
    opacity: 0;
    transform: translateX(-18px);
}

/* Bottom navigation: inactive items show only the icon; active item expands as a pill. */
.mmb-bottom-nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 0 0 auto;
    min-height: 76px;
    padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-top: 1px solid rgba(15, 40, 31, .06);
    background: var(--mmb-bar-bg, #fff);
    box-shadow: 0 -10px 30px rgba(19, 45, 35, .07);
    gap: 4px;
}

.mmb-bottom-nav::-webkit-scrollbar {
    display: none;
}

.mmb-nav-item {
    position: relative;
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0;
    padding: 0 13px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--mmb-bar-text, #6b7280) !important;
    box-shadow: none !important;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: flex-basis .28s ease, width .28s ease, min-width .28s ease, max-width .28s ease, padding .28s ease, color .2s ease, background-color .2s ease, transform .16s ease;
}

.mmb-nav-item.is-active {
    flex-basis: 126px;
    width: auto;
    min-width: 106px;
    max-width: 160px;
    justify-content: flex-start;
    padding-inline: 17px;
    color: var(--mmb-active, #04724d) !important;
    background: color-mix(in srgb, var(--mmb-active, #04724d) 12%, transparent) !important;
}

.mmb-nav-item:active {
    transform: scale(.96);
}

.mmb-nav-item:focus-visible {
    outline: 2px solid var(--mmb-active, #04724d) !important;
    outline-offset: 2px;
}

.mmb-nav-item:disabled {
    opacity: .65;
    cursor: wait;
}

.mmb-nav-icon {
    display: flex;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
}

.mmb-nav-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 100%;
    max-height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmb-nav-icon svg path[d^="M4 4h6"],
.mmb-nav-icon svg path[d^="M4 5a3"] {
    fill: currentColor;
    stroke: none;
}

.mmb-nav-icon.is-custom svg {
    width: 27px;
    height: 27px;
}

.mmb-nav-label {
    display: block;
    max-width: 0;
    margin-inline-start: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(5px);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    transition: max-width .28s ease, margin .28s ease, opacity .18s ease .03s, transform .28s ease;
}

.mmb-nav-item.is-active .mmb-nav-label {
    max-width: 105px;
    margin-inline-start: 9px;
    opacity: 1;
    transform: translateX(0);
}

.mmb-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: color-mix(in srgb, var(--mmb-content-bg, #fff) 86%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .18s;
}

.mmb-loader span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mmb-active, #04724d);
    animation: mmb-bounce .8s infinite alternate;
}

.mmb-loader span:nth-child(2) {
    animation-delay: .14s;
}

.mmb-loader span:nth-child(3) {
    animation-delay: .28s;
}

.mmb-mobile-app.is-loading .mmb-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mmb-error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: var(--mmb-content-bg, #fff);
}

.mmb-error[hidden] {
    display: none !important;
}

.mmb-error p {
    margin: 0;
    color: #5f6d66;
}

.mmb-error button {
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--mmb-active, #04724d);
    color: #fff;
    font: inherit;
    font-weight: 600;
}

.admin-bar .mmb-mobile-app {
    top: 46px;
}

@media (min-width: 783px) {
    .admin-bar .mmb-mobile-app {
        top: 32px;
    }
}

@media (max-width: 360px) {
    .mmb-bottom-nav {
        gap: 1px;
        padding-inline: 6px;
    }

    .mmb-nav-item {
        flex-basis: 47px;
        width: 47px;
        min-width: 47px;
        max-width: 47px;
    }

    .mmb-nav-item.is-active {
        flex-basis: 110px;
        min-width: 96px;
        max-width: 140px;
        padding-inline: 14px;
    }

    .mmb-nav-label {
        font-size: 12px;
    }
}

@keyframes mmb-bounce {
    to {
        transform: translateY(-7px);
        opacity: .45;
    }
}

@supports not (color: color-mix(in srgb, #000 10%, transparent)) {
    .mmb-nav-item.is-active {
        background: rgba(4, 114, 77, .10) !important;
    }

    .mmb-loader {
        background: rgba(255, 255, 255, .88);
    }
}
