.mojnet-mobile-bar,
.mojnet-mobile-menu-overlay {
    display: none;
}

.mojnet-settings-wrap .postbox {
    margin: 18px 0;
    max-width: 1180px;
}

.mojnet-settings-wrap .inside {
    padding: 16px 18px 18px;
}

.mojnet-settings-wrap table input.regular-text,
.mojnet-settings-wrap table input[type="url"] {
    width: 100%;
}

.mojnet-extra-links {
    display: grid;
    gap: 10px;
    max-width: 1180px;
}

.mojnet-extra-link-row {
    display: grid;
    grid-template-columns: 96px minmax(160px, 1fr) minmax(220px, 1.4fr) 150px auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.mojnet-extra-link-row input[type="text"],
.mojnet-extra-link-row input[type="url"],
.mojnet-extra-link-row select {
    width: 100%;
}

@media (max-width: 960px) {
    .mojnet-extra-link-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.mojnet-mobile-nav-active {
        padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }

    body.mojnet-mobile-menu-open {
        overflow: hidden !important;
    }

    .mojnet-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99998;
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        background: #fff;
        border-top: 1px solid rgba(5, 5, 5, .12);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, .12);
        font-family: "Barlow", sans-serif;
        box-sizing: border-box;
    }

    .mojnet-mobile-bar-item {
        appearance: none;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #050505 !important;
        min-width: 0;
        min-height: 54px;
        padding: 5px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none !important;
        font: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mojnet-mobile-bar-item:focus-visible {
        outline: 2px solid #d8232a;
        outline-offset: -2px;
    }

    .mojnet-mobile-bar-item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    .mojnet-mobile-icon {
        width: 24px;
        height: 24px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mojnet-mobile-menu-toggle {
        background: transparent;
        color: #050505 !important;
    }

    .mojnet-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: block;
        background: #050505;
        color: #fff;
        font-family: "Barlow", sans-serif;
        overflow-y: auto;
        padding: max(18px, env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
        box-sizing: border-box;
    }

    .mojnet-mobile-menu-overlay[hidden] {
        display: none;
    }

    .mojnet-mobile-menu-panel {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mojnet-mobile-menu-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 44px;
        gap: 14px;
        align-items: center;
        padding-bottom: 22px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .mojnet-mobile-menu-logo {
        width: 56px;
        height: 42px;
        display: grid;
        align-content: center;
        background: #fff;
        color: #050505;
        font-family: "Barlow Condensed", "Barlow", sans-serif;
        font-size: 25px;
        line-height: .78;
        font-weight: 900;
        letter-spacing: 0;
        padding: 3px;
        box-sizing: border-box;
    }

    .mojnet-mobile-menu-logo strong {
        display: inline-block;
        background: #d8232a;
        color: #fff;
        font: inherit;
        padding: 1px 2px 2px;
    }

    .mojnet-mobile-menu-head h2 {
        margin: 0;
        color: #fff;
        font-family: "Barlow Condensed", "Barlow", sans-serif;
        font-size: 38px;
        line-height: .9;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .mojnet-mobile-menu-close {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
    }

    .mojnet-mobile-menu-links {
        display: grid;
        gap: 10px;
        padding-top: 20px;
    }

    .mojnet-mobile-menu-links a {
        min-height: 62px;
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 8px;
        background: rgba(255, 255, 255, .06);
        color: #fff !important;
        text-decoration: none !important;
        box-sizing: border-box;
    }

    .mojnet-mobile-menu-links a span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px;
        line-height: 1;
        font-weight: 900;
        text-transform: uppercase;
    }
}
