.mega-menu {
    width: 100%;
    max-width: 1312px;
    margin: 0px auto;
    background: #FFF;
    box-shadow: 9px 13px 16px 0 rgba(0, 0, 0, 0.05), 2px 3px 9px 0 rgba(0, 0, 0, 0.05);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    font-family: var(--theme-font-family) !important;
}

.mega-menu-content-header h2{
    color: var(--Text-Heading-secondary, #1F1D21);
    font-family: var(--theme-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

/* Content Area */
.mega-menu-menu-content {
    width: 100%;
    background-color: #FFF;
}

.mega-menu-content {
    padding: 40px 32px 0px 32px;
}

.mega-menu-content.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
}

.mega-menu-content .top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mega-menu-content .bottom {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    padding: 32px 0px 24px 0px;
    border-top: 1px solid #F0F0F0;
}

.mega-menu-content .bottom .left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mega-menu-content .bottom .left h6{
    color: #0D0D0D;
    font-family: var(--theme-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    margin: 0px;
}
.mega-menu-content .bottom .left p{
    color: #6D6D6D;
    font-family: var(--theme-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 0px;
}
.mega-menu-content .bottom .right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.mega-menu-content .bottom .right a {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    align-self: stretch;
    border-radius: 999px;
    background: var(--e-global-color-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    width: 100%;
    justify-content: space-between;
    padding: 12px 24px;
    color: #FFF;
    font-family: var(--theme-font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    text-transform: none;
}
.mega-menu-content .bottom .right a:hover {
    filter: brightness(0.7);
}
.mega-menu-content-categories {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px 32px;
}

.mega-menu-category-link {
    display: flex;
    padding-bottom: 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 0px;
    border-bottom: 1px solid #F0F0F0;
    background: var(--Colour-Background, #FFF);
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.mega-menu-category-link:hover {
    transform: translateX(4px);
    color: var(--e-global-color-secondary);
}

/* Remove border and padding from last row items based on data-last-row attribute */
.mega-menu-content-categories[data-last-row="1"] .mega-menu-category-link:nth-last-child(1) {
    border-bottom: none;
    padding-bottom: 0;
}

.mega-menu-content-categories[data-last-row="2"] .mega-menu-category-link:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
}

.mega-menu-content-categories[data-last-row="3"] .mega-menu-category-link:nth-last-child(-n+3) {
    border-bottom: none;
    padding-bottom: 0;
}

.mega-menu-content-categories[data-last-row="4"] .mega-menu-category-link:nth-last-child(-n+4) {
    border-bottom: none;
    padding-bottom: 0;
}

.mega-menu-category-link .mega-menu-category-icon {
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.mega-menu-name-icon{
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-category-content {
    display: flex;
    align-items: center;
    flex: 1;
}