.mega-menu2-element {
    position: relative;
}

.mega-menu2-element .mm2-side-wrapper {
    display: none;
}

.mega-menu2-element .mm2-button,
.mega-menu2-element .mm2-side-button {
    padding: 12px 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.mega-menu2-element .mm2-button {
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    background-color: #2563eb;
}

.mega-menu2-element .mm2-button:hover,
.mega-menu2-element .mm2-wrapper:hover .mm2-button {
    background-color: #1d4ed8;
}

.mega-menu2-element .mm2-wrapper {
    width: 270px;
}

.mega-menu2-element .mm2-button > i {
    vertical-align: middle;
    margin: 0 5px;
}

.mega-menu2-element .mm2-button > svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 7px;
    fill: currentColor;
}

.mega-menu2-element .mm2-button:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: ease .3s;
}

.mega-menu2-element .mm2-wrapper:hover .mm2-button:after {
    width: 100%;
}

/* Dropdown panel */
.mega-menu2-element .mm2-container {
    position: absolute;
    top: 100%;
    width: 1140px;
    max-height: 600px;
    padding-top: 10px;
    display: none;
    z-index: 9999;
}

.mega-menu2-element .mm2-container.mm2-show {
    display: flex;
}

.mega-menu2-element .mm2-container.mm2-show .mm2-content {
    animation: mm2-dropdown-in .22s ease-out;
}

@keyframes mm2-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu2-element .mm2-overlay {
    position: fixed;
    display: none;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, .28);
    z-index: 999;
    margin-top: 1px;
}

.mega-menu2-element .mm2-side-overlay {
    margin: 0;
    top: 0;
    right: 0;
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, .45);
}

.mega-menu2-element .mm2-content {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 9999;
    background-color: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .22);
}

.mega-menu2-element .mm2-items .menu > li > ul,
.mega-menu2-element .mm2-items .menu > li > .sub-menu.ah-elementor-submenu-wrapper {
    display: none;
}

.mega-menu2-element .mm2-content .menu li {
    padding: 0;
    margin: 0;
}

.mega-menu2-element .mm2-content .menu li a {
    text-align: right;
}

/* Category column */
.mega-menu2-element .mm2-items {
    width: 240px;
    height: auto;
    padding: 10px;
    overflow: auto;
    background-color: #f8fafc;
    border-left: 1px solid #eef2f7;
    direction: ltr;
}

.mega-menu2-element .mm2-items > div {
    direction: rtl;
}

.mega-menu2-element .mm2-content .menu > li + li {
    margin-top: 2px;
}

.mega-menu2-element .mm2-content .menu > li > a {
    position: relative;
    display: block;
    width: 100%;
    padding: 11px 14px 11px 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: #334155;
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease;
}

.mega-menu2-element .mm2-content .menu > li.menu-item-has-children > a:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 6px;
    height: 6px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .45;
    transform: translateY(-50%) rotate(45deg);
    transition: opacity .2s ease, left .2s ease;
}

.mega-menu2-element .mm2-content .menu > li.active-menu-item > a:after {
    left: 10px;
    opacity: 1;
}

.mega-menu2-element .mm2-wrapper li #mega_menu_plus {
    display: none;
}

.mega-menu2-element .mm2-content .menu > li > a svg,
.mega-menu2-element .mm2-content .menu > li > a img,
.mega-menu2-element .mm2-content .menu > li > a .menu-item-icon {
    float: right;
    vertical-align: middle;
    margin-left: 10px;
}

.mega-menu2-element .mm2-content .menu > li > a svg,
.mega-menu2-element .mm2-content .menu > li > a img {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    object-fit: contain;
}

.mega-menu2-element .mm2-content .menu > li > a .menu-item-icon {
    margin-top: 4px;
}

.mega-menu2-element .mm2-content .menu > li > a:hover {
    color: #2563eb;
}

.mega-menu2-element .mm2-content .menu > li.current-menu-item > a,
.mega-menu2-element .mm2-content .menu > li.active-menu-item > a {
    color: #2563eb;
    background-color: #eef2ff;
}

/* Sub categories panel */
.mega-menu2-element .mm2-sub-items {
    width: calc(100% - 240px);
    display: flex;
    background-position: left 24px bottom 24px;
    background-repeat: no-repeat;
    background-size: 240px;
    overflow-y: auto;
}

.mega-menu2-element .mm2-items::-webkit-scrollbar,
.mega-menu2-element .mm2-sub-items::-webkit-scrollbar {
    width: 6px;
}

.mega-menu2-element .mm2-items::-webkit-scrollbar-track,
.mega-menu2-element .mm2-sub-items::-webkit-scrollbar-track {
    background-color: transparent;
}

.mega-menu2-element .mm2-items::-webkit-scrollbar-thumb,
.mega-menu2-element .mm2-sub-items::-webkit-scrollbar-thumb {
    background-color: #dbe2ec;
    border-radius: 6px;
}

.mega-menu2-element .mm2-sub-items > ul,
.mega-menu2-element .mm2-sub-items > .sub-menu.ah-elementor-submenu-wrapper {
    display: block;
    padding: 20px 24px;
    gap: 4px 0;
    width: 100%;
    background-position: left 24px bottom 24px;
    background-repeat: no-repeat;
    background-size: 0;
    flex-wrap: wrap;
    align-content: start;
}

.mega-menu2-element .mm2-sub-items > ul::after,
.mega-menu2-element .mm2-sub-items > .sub-menu.ah-elementor-submenu-wrapper::after {
    display: block;
    clear: both;
    content: "";
}

.mega-menu2-element .mm2-sub-items > ul > li {
    width: 25%;
    max-width: 25%;
    min-width: 16%;
    display: inline-block;
    float: right;
    padding: 0 4px;
}

.mega-menu2-element .mm2-sub-items > ul > li.mega_menu_hover {
    display: inline-table;
    float: none;
}

.mega-menu2-element .mm2-sub-items ul ul {
    display: block;
    margin: 4px 0 12px;
    padding: 0;
}

.mega-menu2-element .mm2-sub-items ul ul li {
    width: 100%;
}

.mega-menu2-element .mm2-sub-items ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #475569;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}

.mega-menu2-element .mm2-sub-items ul li.menu-item-has-children > a,
.mega-menu2-element .mm2-sub-items ul li.menu-item-first > a {
    font-weight: 700;
    color: #0f172a;
    border-right: 3px solid #2563eb;
    border-radius: 0;
    padding: 2px 10px 2px 0;
    margin: 8px 12px 4px 0;
}

.mega-menu2-element .mm2-sub-items ul li a:hover {
    color: #2563eb;
    background-color: #f1f5ff;
}

.mega-menu2-element .mm2-sub-items ul li.menu-item-has-children > a:hover,
.mega-menu2-element .mm2-sub-items ul li.menu-item-first > a:hover {
    background-color: transparent;
}

/* Mobile side menu */
.mega-menu2-element .mm2-side-container {
    display: block;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 999999999;
    transition: opacity .3s ease;
}

.mega-menu2-element .mm2-side-button {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mega-menu2-element .mm2-side-button:hover {
    border-color: #c7d2fe;
    background-color: #f8fafc;
}

.mega-menu2-element .mm2-side-button img,
.mega-menu2-element .mm2-side-button svg {
    max-width: 100%;
    max-height: 100%;
    fill: currentColor;
}

.mega-menu2-element .mm2-side-content {
    position: absolute;
    top: 0;
    right: -100%;
    transition: right .35s cubic-bezier(.4, 0, .2, 1), left .35s cubic-bezier(.4, 0, .2, 1);
    width: 320px;
    max-width: 88%;
    height: 100%;
    z-index: 99999;
    padding-bottom: 16px;
    background-color: #fff;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 0 40px rgba(15, 23, 42, .18);
    overflow: hidden;
    overflow-y: auto;
}

.mega-menu2-element .mm2-side-content > div > .menu {
    padding: 10px;
}

.mega-menu2-element .mm2-side-content ul li:not([class*=elementor]) a svg,
.mega-menu2-element .mm2-side-content ul li:not([class*=elementor]) img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 8px;
}

.mega-menu2-element .mm2-side-content ul ul {
    display: none;
}

.mega-menu2-element .mm2-side-content ul li {
    position: relative;
}

.mega-menu2-element .mm2-side-content ul li a {
    width: 100%;
    display: inline-block;
    padding: 11px 14px 11px 46px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: #1e293b;
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease;
}

.mega-menu2-element .mm2-side-content ul li a:hover {
    color: #2563eb;
    background-color: #f1f5ff;
}

.mega-menu2-element .mm2-side-content ul li.is-toggled > a,
.mega-menu2-element .mm2-side-content ul li.is-toggled > span {
    color: #2563eb;
}

.mega-menu2-element .mm2-side-content ul li.is-toggled > a {
    background-color: #eef2ff;
}

.mega-menu2-element .mm2-side-content ul li #mega_menu_plus {
    top: 7px;
    left: 7px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: #475569;
    background-color: #f1f5f9;
    border-radius: 8px;
    transition: background-color .25s ease, color .25s ease;
}

.mega-menu2-element .mm2-side-content ul li #mega_menu_plus > * {
    transition: transform .25s ease;
}

.mega-menu2-element .mm2-side-content ul li.is-toggled > #mega_menu_plus {
    color: #fff;
    background-color: #2563eb;
}

.mega-menu2-element .mm2-side-content ul li.is-toggled > #mega_menu_plus > * {
    transform: rotate(45deg);
}

.mega-menu2-element .mm2-side-content ul li #mega_menu_plus:before {
    content: none;
}

.mega-menu2-element .mm2-side-content ul ul li #mega_menu_plus {
    top: 4px;
}

.mega-menu2-element .mm2-side-content ul ul.sub-menu {
    margin: 4px 16px 6px 0;
    padding-right: 8px;
    border-right: 2px solid #e2e8f0;
    background: none;
    background-size: 0;
}

.mega-menu2-element .mm2-side-content ul ul.mega_menu_show_ul,
.mega-menu2-element .mm2-side-content ul div.mega_menu_show_ul {
    display: block;
}

.mega-menu2-element .mm2-side-content ul ul.sub-menu li a {
    padding-top: 9px;
    padding-bottom: 9px;
    font-weight: 400;
    color: #475569;
    border-radius: 8px;
}

.mega-menu2-element .mm2-side-container.mm2-side-show {
    user-select: auto;
    opacity: 1;
    pointer-events: all;
}

.mega-menu2-element .mm2-side-container.mm2-side-show .mm2-side-content {
    right: 0;
}

.mega-menu2-element .mm2-side-head {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
}

.mega-menu2-element .mm2-side-head a {
    display: flex;
    align-items: center;
    width: 100%;
}

.mega-menu2-element .mm2-side-head img {
    max-width: 100px;
    object-fit: contain;
}

.mega-menu2-element .has-mm-title span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: none;
}

.mega-menu2-element .mm2-side-button.has-mm-title {
    display: flex;
    gap: 8px;
}

@media screen and (max-width: 1200px) {
    .mega-menu2-element .mm2-container {
        width: 1000px;
    }
}

@media screen and (max-width: 1024px) {
    .mega-menu2-element .mm2-wrapper {
        display: none;
        width: 100%;
    }

    .mega-menu2-element .mm2-side-wrapper {
        display: block;
    }

    .mega-menu2-element .has-mm-title span {
        display: inline-block;
    }
}

@media screen and (min-width: 992px) {
    .mm2-container .mm2-sub-items.ah-has-overflow > ul.sub-menu {
        overflow-y: scroll
    }
}

@media screen and (max-width: 767px) {
    ul.menu li.menu-item.elementor div.mega_menu_show_ul.sub-menu.ah-elementor-submenu-wrapper {
        display: block;
    }
}
