.mobile-menu {
    display: none;
}

@include media-breakpoint-down(lg) {
    .mobile-menu {
        position: fixed;
        inset: 74px 0 0;
        z-index: 50;
        display: block;
        pointer-events: none;
        visibility: hidden;
        transition: visibility 0s linear 0.28s;
    }

    .mobile-menu.is-open {
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }

    .mobile-menu__backdrop {
        position: absolute;
        inset: 0;
        background: $portal-backdrop;
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .mobile-menu.is-open .mobile-menu__backdrop {
        opacity: 1;
    }

    .mobile-menu__panel {
        position: absolute;
        inset: 0 0 0 auto;
        width: min(100vw, 430px);
        overflow-y: auto;
        background: $portal-soft;
        transform: translateX(100%);
        transition: transform 0.28s ease;
    }

    .mobile-menu.is-open .mobile-menu__panel {
        transform: translateX(0);
    }

    .mobile-menu__brand {
        min-height: 82px;
        padding: 0 24px;
        background: $portal-white;
        border-bottom: 1px solid rgba($portal-line, 0.8);
    }

    .mobile-menu__brand .brand-logo {
        width: auto;
        height: 32px;
        flex: 0 0 auto;
    }

    .mobile-menu__brand button {
        padding: 0;
        border: 0;
        background: transparent;
        line-height: 1;
    }

    .mobile-menu__brand button img {
        display: block;
        width: 44px;
        height: 44px;
    }

    .mobile-menu__profile {
        padding: 18px 24px;
        background: $portal-white;
        border-bottom: 1px solid $portal-line;
    }

    .mobile-menu__profile .avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 15px;
    }

    .mobile-menu__profile .profile-summary__copy {
        max-width: calc(100% - 104px);
    }

    .mobile-menu__profile .profile-summary__copy strong,
    .mobile-menu__profile .profile-summary__copy span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu__profile .profile-summary__copy span {
        font-size: 12px;
        line-height: 1.2;
    }

    .mobile-menu .portal-menu {
        padding: 26px 24px 42px;
        gap: 31px;
    }

    .mobile-menu .portal-menu__item {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 18px;
    }
}
