.wkmp-mobile-nav { display: none; }

@media (max-width: 700px) {
    body:has(.wkmp-mobile-nav) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .wkmp-mobile-nav {
        position: fixed;
        inset: auto 10px max(8px, env(safe-area-inset-bottom));
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 4px 2px;
        border: 1px solid #dfe9f8;
        border-radius: 20px;
        background: #fbfdff;
        box-shadow: 0 5px 25px #0e346627;
    }
    .wkmp-mobile-nav::before {
        position: absolute;
        inset: -1px 14% auto;
        height: 2px;
        border-radius: 100px;
        background: linear-gradient(90deg, transparent, #1764be, transparent);
        content: "";
    }
    .wkmp-mobile-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 5px;
        min-height: 53px;
        border-radius: 13px;
        color: #536782;
        font-size: clamp(9px, 2.85vw, 12px);
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
    }
    .wkmp-mobile-nav a[aria-current="page"] { color: #1258ab; background: #eaf3ff; }
    .wkmp-mobile-nav svg { width: 23px; height: 23px; }
}

.wkmp-mobile-panel {
    width: min(390px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border: 1px solid #dce8f8;
    border-radius: 20px;
    color: #172b49;
    background: #fff;
    box-shadow: 0 18px 50px #122e5344;
}
.wkmp-mobile-panel::backdrop { background: #0c234d70; }
.wkmp-mobile-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.wkmp-mobile-panel h2 { margin: 0; font-size: 17px; }
.wkmp-mobile-panel [data-wkmp-close] {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: #edf4fe;
    color: #123d72;
    font-size: 21px;
}
.wkmp-mobile-drawer {
    inset: 0 0 0 auto;
    margin: 0;
    width: min(330px, 88vw);
    height: 100%;
    max-height: 100%;
    border-radius: 20px 0 0 20px;
    overflow: auto;
}
.wkmp-mobile-drawer[open] { animation: wkmp-mobile-drawer-in .24s ease-out; }
@keyframes wkmp-mobile-drawer-in { from { transform: translateX(100%); } }
.wkmp-mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.wkmp-mobile-drawer .children { padding-inline-start: 14px; }
.wkmp-mobile-drawer li > a {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid #e8eff8;
}
.wkmp-mobile-drawer .current-cat > a { color: #1258ab; font-weight: 800; }
.wkmp-mobile-panel form { display: grid; gap: 10px; }
.wkmp-mobile-panel input:not([type=hidden]) {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cad9ed;
    font-size: 16px;
}
.wkmp-mobile-primary {
    min-height: 44px;
    padding: 6px 12px;
    border: 0;
    color: #fff;
    background: #1258ab;
    font-weight: 750;
}
.wkmp-mobile-edit { padding: 0; border: 0; color: #1258ab; background: transparent; text-align: start; }
.wkmp-mobile-panel [role=status] { margin: 0; font-size: 12px; }
.wkmp-mobile-panel [role=status]:empty { display: none; }
