/* ==========================================================
   Mobile menu (mmenu 7.3) + menu button
   Loaded from real_header() with a ?v= file-time version so
   Cloudflare / browsers always get the latest copy.
   ========================================================== */

/* ---------- Menu button (header) ---------- */
.mini-cart ul li.mmenu-icon > a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mini-cart ul li.mmenu-icon > a:hover,
.mini-cart ul li.mmenu-icon > a:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ---------- Panel ---------- */
.mm-menu.mm-menu_offcanvas {
    --mm-color-background: #03132a;
    --mm-color-border: rgba(255, 255, 255, 0.08);
    --mm-color-text: rgba(255, 255, 255, 0.88);
    --mm-color-text-dimmed: rgba(255, 255, 255, 0.5);
    --mm-color-button: rgba(255, 255, 255, 0.5);
    --mm-color-background-highlight: rgba(255, 255, 255, 0.06);
    --mm-color-background-emphasis: transparent;
    font-family: 'Roboto', sans-serif;
}

/* The greeting card is the header, so drop mmenu's "Menu" title bar */
.mm-menu .mm-navbar {
    display: none !important;
}
.mm-menu .mm-panels > .mm-panel {
    padding: 0 !important;
}

/* Reset mmenu's negative list margins (they assume 20px panel padding) */
.mm-menu .mm-panels > .mm-panel > .mm-listview {
    margin: 0 !important;
    padding: 0 0 24px 0;
}

/* ---------- Rows ---------- */
.mm-menu .mm-listitem {
    padding: 0;
}
.mm-menu .mm-listitem:after {
    border-color: rgba(255, 255, 255, 0.06);
    left: 20px;
    right: 20px;
}
.mm-menu .mm-listview .mm-listitem > a.mm-listitem__text {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mm-menu .mm-listitem > a > i {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: #5b9cf5;
}
.mm-menu .mm-listview .mm-listitem > a.mm-listitem__text:hover,
.mm-menu .mm-listview .mm-listitem > a.mm-listitem__text:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* ---------- Signed-in greeting (top card) ---------- */
.mm-menu .mm-listview .mm-greeting > a.mm-listitem__text {
    padding: 28px 20px 22px !important;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0a2a5c 0%, #03132a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mm-menu .mm-greeting:after {
    display: none;
}
.mm-menu .mm-greeting .mm-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #004799;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mm-menu .mm-greeting .mm-avatar i {
    flex: none;
    width: auto;
    color: #ffffff;
    font-size: 16px;
}
.mm-menu .mm-greeting > a > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-menu .mm-greeting small {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* Logged out: no greeting card, so give the first row some breathing room */
.mm-menu .mm-panels > .mm-panel > .mm-listview > .mm-listitem:first-child:not(.mm-greeting) {
    margin-top: 16px;
}

/* ---------- Logout ---------- */
.mm-menu .mm-logout {
    margin-top: 8px;
}
.mm-menu .mm-logout:after {
    display: none;
}
.mm-menu .mm-listview .mm-logout > a.mm-listitem__text,
.mm-menu .mm-logout > a > i {
    color: #ff6b6b;
}
.mm-menu .mm-listview .mm-logout > a.mm-listitem__text:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

/* ---------- Dim the page behind the open menu ---------- */
.mm-wrapper__blocker {
    background: rgba(3, 19, 42, 0.45);
}
