.pnmegamenu-mobile {
    position: fixed;
    z-index: 1000;
}

.pnmegamenu-mobile-toggle {
    background: #333;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: fixed;
    top: 10px;
    z-index: 1001;
    opacity: 1;
    visibility: visible;
}

.pnmegamenu-mobile.pnmegamenu-mobile-offcanvas-open .pnmegamenu-mobile-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
}

.pnmegamenu-mobile-toggle:hover {
    background: #555;
}

.pnmegamenu-mobile-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
}

.pnmegamenu-mobile-toggle-icon::before,
.pnmegamenu-mobile-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
}

.pnmegamenu-mobile-toggle-icon::before {
    top: -8px;
}

.pnmegamenu-mobile-toggle-icon::after {
    bottom: -8px;
}

.pnmegamenu-mobile-toggle-left .pnmegamenu-mobile-toggle {
    left: 10px;
    right: auto;
}

.pnmegamenu-mobile-toggle-center .pnmegamenu-mobile-toggle {
    left: 50%;
    transform: translateX(-50%);
}

.pnmegamenu-mobile-toggle-right .pnmegamenu-mobile-toggle {
    right: 5%;
    top: 130px;
}

.pnmegamenu-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pnmegamenu-mobile-offcanvas-open .pnmegamenu-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

.pnmegamenu-mobile-offcanvas {
    position: fixed;
    top: 0;
    height: 100%;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.pnmegamenu-mobile-offcanvas-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.pnmegamenu-mobile-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.pnmegamenu-mobile-close:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.pnmegamenu-mobile-close:active {
    transform: scale(0.95);
}

.pnmegamenu-mobile-close-icon {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
}

.pnmegamenu-mobile-close-icon::before,
.pnmegamenu-mobile-close-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    top: 50%;
    left: 0;
    border-radius: 1px;
}

.pnmegamenu-mobile-close-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.pnmegamenu-mobile-close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

.pnmegamenu-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pnmegamenu-mobile-item {
    display: block;
    border-bottom: 1px solid #eee;
}

.pnmegamenu-mobile-item.current-item.active {
    background: rgba(0, 0, 0, 0.05);
}

.pnmegamenu-mobile-item:last-child {
    border-bottom: none;
}

.pnmegamenu-mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pnmegamenu-mobile-link {
    flex: 1;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    text-align: left;
}

.pnmegamenu-mobile-link:hover {
    color: #0091dc;
}

.pnmegamenu-mobile-active > .pnmegamenu-mobile-link-wrapper > .pnmegamenu-mobile-link {
    color: #007bff;
    font-weight: bold;
}

.pnmegamenu-mobile-caret {
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pnmegamenu-mobile-caret::before,
.pnmegamenu-mobile-caret::after {
    content: '';
    position: absolute;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.pnmegamenu-mobile-caret::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.pnmegamenu-mobile-caret::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

.pnmegamenu-mobile-submenu-open > .pnmegamenu-mobile-link-wrapper > .pnmegamenu-mobile-caret::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.pnmegamenu-mobile-caret:hover::before,
.pnmegamenu-mobile-caret:hover::after {
    background: #666;
}

.pnmegamenu-mobile-caret:active::before,
.pnmegamenu-mobile-caret:active::after {
    background: #333;
}

.pnmegamenu-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.pnmegamenu-mobile-level-2 a {
    padding: 5px 0 5px 25px;
}

.pnmegamenu-mobile-level-3 a {
    padding: 5px 0 5px 35px;
}

.pnmegamenu-mobile-submenu-open {
    display: block;
}

.pnmegamenu-mobile-submenu-open > .pnmegamenu-mobile-submenu {
    display: block;
    animation: pnmegamenumobileDropdown 0.3s forwards;
}

.pnmegamenu-mobile-submenu .pnmegamenu-mobile-link {
    font-size: 14px;
}

.pnmegamenu-mobile-animate-fadeInDown {
    animation: pnmegamenumobileFadeInDown 0.3s forwards;
}

.pnmegamenu-mobile-animate-dropdown {
    animation: pnmegamenumobileDropdown 0.3s forwards;
}

@keyframes pnmegamenumobileFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pnmegamenumobileDropdown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}