.menus-expandable-widget {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background-color: var(--color-primary-bg);
}

.menus-expandable-widget .menus-widget-container {
    width: 100%;
}

.menus-expandable-widget .expand-btn {
    background-color: #fff4;
    color: #fff;
    border-radius: 4px;
    padding: 8px 16px;
    border: none;
    /*min-width: max-content;*/
    min-width: 80px;
    cursor: pointer;
}

.menus-expandable-widget .expand-btn .ph {
    display: inline-block;
    transform: translateY(2px);
    margin-right: 4px;
}

.menus-expandable-widget:not(.max-view) .expand-btn {
    display: none;
}

.menus-expandable-widget.max-view .menu-widget .megamenu-link:first-child a {
    /*background: none;*/
    color: var(--menu-text-color) !important;
    background-color: var(--menu-background-color) !important;
    height: fit-content;
    width: fit-content;
    filter: brightness(10);
    background-position-y: 5px;
}

.menus-expandable-widget.max-view .menu-widget .megamenu-link:first-child a::after {
    content: var(--home-label);
    content: '\00a0';
    padding: 8px 16px;
}

.menus-expandable-widget.max-view .menu-widget .mega-menu-dropdown {
    --submenu-border-top: none;
    border-top: var(--submenu-border-top) !important;
    border-radius: 4px;
}

.menus-expandable-widget.max-view .menu-widget .menu-parent-unordered-list {
    box-shadow: none;
    border: none;
    padding: 0;
}

.menus-expandable-widget.max-view .menu-widget .megamenu-link {
    border-left: none !important;
    /*margin: 5px 5px 0 0;*/
}

.menus-expandable-widget.max-view .menu-widget .megamenu-link>a {
    background-color: #999;
    border-radius: 4px;
    padding: 8px 16px;
}
.menus-expandable-widget .menu-widget .megamenu-link>a {
    --menu-text-color: #fff;
    --menu-background-color: #fff0;
    color: var(--menu-text-color) !important;
    background-color: var(--menu-background-color) !important;
}
.menus-expandable-widget .menu-widget .megamenu-link>a:hover,
.menus-expandable-widget .menu-widget .megamenu-link>a:active {
    --menu-text-color: #fff;
    --menu-background-color: #fff4;
}

.menus-expandable-widget .menu-widget .menu-child-title {
    color: #000;
}

/* Add arrow using ::after */
.menus-expandable-widget.max-view .menu-parent-list:has(.menu-child-box) .menu-parent-list-link::after {
    /*content: '▾'; !* down arrow symbol *!*/
    position: relative;
    display: inline-block;
    right: 0;
    margin-left: 4px;
    top: 50%;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    content: "\e136";/* ph-caret-down*/
    /* .ph class rules */
    font-size: 0.8em; /* smaller than text */
    font-family: "Phosphor" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    letter-spacing: 0;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga=1";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    font-feature-settings: "liga";
    -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.menus-expandable-widget .menu-widget .menu-sub-child-list:hover {
    background-color: #2DAB5B44;
    /*color: var(--color-primary-text);*/
    text-decoration: underline;
    border-radius: 4px;
    border-top-color: transparent;
}

.menus-expandable-widget .menu-widget .menu-sub-child-list:hover+.menu-sub-child-list {
    border-top: 1px solid transparent;
}

@media (max-width: 768px) {
    .menus-expandable-widget .menu-widget .menu-parent-list:hover {
        background-color: #fff4;
    }
    .menus-expandable-widget .menu-widget .menu-sub-child-link:hover {
        background-color: transparent;
    }
}