/**
 * Mobile Menu Styling - stretchshop.nl style
 * Alleen uiterlijk aanpassingen, functionaliteit blijft intact
 */

/* Sidebar container */
.mfn-header-tmpl-menu-sidebar {
    background-color: #fff !important;
}

/* Zorg dat de sidebar op mobiel altijd tot de onderkant van het scherm komt */
@media screen and (max-width: 767px) {
    .mfn-header-tmpl-menu-sidebar {
        height: 100vh;
    }

    /* Gebruik dynamische viewporthoogte waar ondersteund (iOS Safari e.d.) */
    @supports (height: 100dvh) {
        .mfn-header-tmpl-menu-sidebar {
            height: 100dvh;
        }
    }
}

.mfn-header-tmpl-menu-sidebar .mfn-header-tmpl-menu-sidebar-wrapper {
    padding: 60px 20px 30px !important;
}

/* Menu titel toevoegen */
.mfn-header-tmpl-menu-sidebar .mfn-header-tmpl-menu-sidebar-wrapper::before {
    content: "Menu";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: #fff;
    z-index: 5;
}

/* Close button */
.mfn-header-tmpl-menu-sidebar .mfn-close-icon {
    top: 14px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 10;
}

/* Menu items */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu {
    width: 100%;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li {
    margin: 0 !important;
    border-bottom: 1px solid #e5e5e5;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li:first-child {
    border-top: 1px solid #e5e5e5;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li > .mfn-menu-link {
    padding: 14px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

/* Items met submenu: pijl RECHTS, submenu ONDER het item */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children > .mfn-menu-link {
    width: 100% !important;
    padding-right: 50px !important;
}

/* Submenu onder het hoofditem */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children > .mfn-submenu {
    width: 100% !important;
    order: 3;
}

/* Pijl toggle button RECHTS van de link */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children > .elvita-submenu-toggle {
    position: absolute;
    right: 0;
    top: 14px;
    width: 50px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    z-index: 2;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children > .elvita-submenu-toggle::before {
    content: "›";
    transition: transform 0.2s ease;
}

/* Pijl gedraaid als submenu open is */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu > .mfn-menu-li.menu-item-has-children.elvita-submenu-open > .elvita-submenu-toggle::before {
    transform: rotate(90deg);
}

/* Verberg default submenu iconen */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu .menu-sub,
.mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-menu-subicon {
    display: none !important;
}

/* Submenu styling */
.mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-submenu {
    background: #fff !important;
    padding-left: 30px !important;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-submenu .mfn-menu-li {
    border-bottom: 1px solid #f0f0f0;
}

.mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-submenu .mfn-menu-link {
    padding: 12px 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-transform: none !important;
}

@media screen and (max-width: 767px) {
    .elvita-mobile-menu-footer {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid #e5e5e5;
        font-size: 13px;
        color: #333;
    }

    .elvita-mobile-menu-footer h3 {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 6px;
        text-transform: none;
    }

    .elvita-mobile-menu-footer p {
        margin: 0 0 10px;
        line-height: 1.5;
    }

    .elvita-mobile-menu-contact a {
        color: #000;
        text-decoration: none;
        font-weight: 500;
    }

    .elvita-mobile-menu-contact a:hover {
        text-decoration: underline;
    }

    .elvita-mobile-menu-socials {
        margin-top: 12px;
    }

    .elvita-mobile-menu-social-icons {
        display: flex;
        gap: 10px;
        margin-top: 4px;
    }

    .elvita-mobile-menu-social-icons .mfn-icon-2 {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #f5f5f5;
        color: #000;
        text-decoration: none;
    }

    .elvita-mobile-menu-social-icons .mfn-icon-2 i {
        font-size: 16px;
    }
}