.mobile-bottom-menu {
    position: fixed;
    right: 0;
    bottom: -14px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface-elevated);
    color: var(--text-primary);
    border-radius: 20px;
    transform: translateY(110%);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 180ms linear, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    z-index: 12000;
    width: 100%;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 65%, transparent);
    box-shadow: 0 -6px 18px var(--shadow-color);
}

.mobile-bottom-menu .mbm-left {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.mobile-bottom-menu .mbm-left img {
    display: block;
    width: 16px;
    height: 16px;
}

.mobile-bottom-menu .mbm-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 29px;
}

.mobile-bottom-menu .mbm-theme-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-bottom-menu .mbm-theme-btn:hover {
    background-color: var(--primary-color);
    color: var(--primary-contrast-text);
}

.mobile-bottom-menu .icon2 {
    margin-top: 1px;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background-color: var(--surface-elevated);
    color: var(--primary-color);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-bottom-menu .icon2:hover {
    background-color: var(--primary-color);
    color: var(--primary-contrast-text);
}

.mobile-bottom-menu .icon2:focus-visible,
.mobile-bottom-menu .mbm-login-btn:focus-visible,
.mobile-bottom-menu .mbm-theme-btn:focus-visible,
.mobile-bottom-menu .site-name:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* visible */
.mobile-bottom-menu.mobile-enabled {
    transform: translateY(0);
    opacity: 1;
}

/* hidden on scroll down: move further down and fade */
.mobile-bottom-menu.hidden-down {
    transform: translateY(140%);
    opacity: 0;
}

/* hide on wider screens */
@media (min-width: 801px) {
    .mobile-bottom-menu {
        display: none !important;
    }
}

@media only screen and (min-width: 700px) and (max-width: 930px) {
    .menu {
        display: block;
    }
}

@media only screen and (max-width: 800px) {
    .icon2 {
        position: absolute;
        right: 0;
        top: 8px;
        font-size: 24px;
        width: 28px;
    }

    .icon2.collapsed {
        right: 0;
        top: 8px;
    }
}