/* MAIN NAV */
.nav, .header-links {
    display: none !important;
}

a.menu-button {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    z-index: 300;
    top: 50%;
    font-size: 2.5rem;
    line-height: 1;
    z-index: 300;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a.menu-button:hover {
    opacity: 0.5;
}

.stuck a.menu-button {
    color: initial;
}

/* Larger than tablet */
@media (min-width: 1000px) {
    a.menu-button {
        display: none;
    }

    .nav, .header-links {
        display: flex !important;
    }
}

.nav ul#navmenu {
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: space-around;
    gap: 1rem;
}

.nav ul, .nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul#navmenu a {
    text-decoration: none;
    transition: all ease 0.3s;
    line-height: 1.1;
    display: block;
    color: #fff;
}

.nav ul#navmenu .l1 {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.stuck .nav ul#navmenu .l1 {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.nav ul#navmenu .l1 a {
    display: flex;
    font-size: 1.3rem;
    color: #fff;
    padding: .5rem .5rem;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 700;
    border-radius: 4px;
}

/* Larger than Desktop HD */
@media (min-width: 1200px) {
    .nav ul#navmenu .l1 a {
        font-size: 1.5rem;
    }
}

.nav ul#navmenu .l1 a:hover, .nav ul#navmenu .selected {
    background: #0082CA;
    color: #fff;
}

.afco-site .nav ul#navmenu .l1 a:hover, .afco-site .nav ul#navmenu .l1 .selected {
    background: #0082CA;
    color: #fff;
}

.pro-site .nav ul#navmenu .l1 a:hover, .pro-site .nav ul#navmenu .l1 .selected {
    background: #B4922F;
    color: #fff;
}

.dyna-site .nav ul#navmenu .l1 a:hover, .dyna-site .nav ul#navmenu .l1 .selected {
    background: #D81920;
    color: #fff;
}

.long-site .nav ul#navmenu .l1 a:hover, .long-site .nav ul#navmenu .l1 .selected {
    background: #EB1C2D;
    color: #fff;
}

.stuck .nav ul#navmenu .l1 a {
    color: #000;
}

.stuck .nav ul#navmenu .l1 a:hover {
    color: #fff;
}

.nav ul#navmenu li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.nav ul#navmenu ul {
    margin: 0;
    padding: 0;
    background: #fff;
    position: absolute;
    opacity: 0;
    padding: 1rem 1rem;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    top: 40px;
    width: 240px;
    border-radius: .5rem;
    transition: all ease 0.3s;
}

.nav ul#navmenu ul li span {
    width: 100%;
}

/* 2nd Menu */
.nav ul#navmenu li:hover li a {
    display: block;
    border-radius: .5rem;
    color: initial;
    padding: .5rem 1rem;
    text-transform: capitalize;
    font-size: 1.5rem;
    transition: background ease 0.3s;
    ;
}

/* 2nd Menu Hover Persistence */
.nav ul#navmenu li:hover li a:hover, .nav ul#navmenu li:hover li:hover a {
    background: #eee;
}

/* 3rd Menu */
.nav ul#navmenu li:hover li:hover li a {
    display: none;
    visibility: hidden;
}

.nav ul#navmenu li:hover ul ul, .nav ul#navmenu li:hover ul ul ul {
    display: none;
}

.nav ul#navmenu li:hover ul, .nav ul#navmenu ul li:hover ul, .nav ul#navmenu ul ul li:hover ul {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* Mega Menu */
.mega-menu-drop {
    max-width: 1440px;
    position: relative;
    transition: all ease 0.3s;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    overflow: auto;
    border-radius: .5rem;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.34);
    box-sizing: border-box;
    top: 1rem;
    opacity: 0;
    height: 0px;
    visibility: hidden;
    display: none;
    top: -100vh;
    font-size: 1.5rem;
}

body.menu-active:after {
    content: "";
    top: 0;
    left: 0;
    position: fixed;
    z-index: 400;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 800px) {
    .mega-menu-drop {
        display: block;
    }
}

.mega-menu-drop.active {
    top: 0rem;
    height: auto;
    visibility: visible;
    opacity: 1;
}

.stuck .mega-menu-drop.active {
    top: 1rem;
}

.search-clicked .mega-menu-drop.active {
    top: 2rem;
    z-index: 3;
}

.mega-menu-drop .mega-menu {
    padding: 1.5rem 2rem;
    max-height: calc(100vh - 160px - 8rem);
    overflow: auto;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.stuck .mega-menu-drop .mega-menu {
    max-height: calc(100vh - 100px - 8rem);
}

.stuck.search-clicked .mega-menu-drop .mega-menu {
    max-height: calc(100vh - 178px - 9rem);
}

.mega-menu-drop .mega-menu::-webkit-scrollbar-track {
    background-color: transparent;
}

.mega-menu-drop .mega-menu::-webkit-scrollbar {
    background-color: transparent;
}

.mega-menu-drop .mega-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
}

.afco-site .mega-menu-drop {
    background: rgba(0, 130, 201, 0.96);
}

.pro-site .mega-menu-drop {
    background: rgba(180, 146, 47, 0.96);
}

.dyna-site .mega-menu-drop {
    background: rgba(215, 25, 32, 0.96);
}

.long-site .mega-menu-drop {
    background: rgba(235, 28, 45, 0.96);
}

.mega-menu ul ul ul {
    display: none;
}

.mega-menu ul, .mega-menu li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    -webkit-column-break-inside: avoid;
    break-inside: avoid-column;
    page-break-inside: avoid;
    break-inside: avoid;
}

.category-tree-list a[data-productcount] {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.category-tree-list a[data-productcount]:before {
    order: 1;
    content: attr(data-productcount);
    display: flex;
    flex-shrink: 0;
    align-content: center;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding: .2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    color: #fff;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10rem;
    transition: all ease 0.3s;
}

.category-tree-list a[data-productcount="0"] {
    text-decoration: line-through !important;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.3 !important;
}

.footer-wrap .category-tree-list a[data-productcount]:before {
    display: none;
}

.category-tree-list a[data-productcount]:hover:before {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    color: #333;
}

.mega-menu a {
    display: flex;
    flex-grow: 1;
    text-decoration: none;
}

.mega-menu ul:first-child {
    column-count: 2;
    display: block;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 800px) {
    .mega-menu ul:first-child {
        column-count: 3;
    }
}

/* Larger than desktop */
@media (min-width: 1200px) {
    .mega-menu ul:first-child {
        column-count: 5;
    }
}

.support-nav.mega-menu ul:first-child {
    column-count: 2;
}

.mega-menu ul a, .mega-menu ul a:hover {
    text-transform: capitalize;
    color: #fff;
}

/* First Level */
.mega-menu ul:first-child > li > span a, .mega-menu ul:first-child > li > a {
    font-weight: 700;
    margin-bottom: .5rem;
}

.mega-menu ul:first-child ul {
    margin-top: -.5rem;
    padding-bottom: 1rem;
}

.mega-menu ul:first-child ul li a:after {
    content: "";
    position: absolute;
    width: 1px;
    opacity: 0;
    height: 2px;
    background: #fff;
    bottom: -1px;
    left: 0;
    transition: all ease 0.3s;
}

.mega-menu ul:first-child ul li a:hover:after {
    opacity: 1;
    width: 100px;
}

.mega-menu ul:first-child ul a {
    opacity: 0.8;
    text-decoration: none;
    line-height: 1;
    padding: .25rem 0;
}

.mega-menu ul:first-child ul a:hover {
    opacity: 1;
}

/* FOOTER NAV Basic, Level 1 only */
/* Mobile Menu */
.efi-mobile-menu:before {
    content: "";
    height: 100px;
    width: calc(100% - 8rem);
    display: block;
    margin: 1rem 4rem;
    box-sizing: border-box;
}

.afco-site .efi-mobile-menu:before {
    background: url(../Userfiles/template/afco-logo.svg) no-repeat center;
    background-size: 100% 70px;
}

.pro-site .efi-mobile-menu:before {
    background: url(../Userfiles/template/pro-logo.svg) no-repeat center;
    background-size: 100% 70px;
}

.dyna-site .efi-mobile-menu:before {
    background: url(../Userfiles/template/dynatech-logo.svg) no-repeat center;
    background-size: 100% 70px;
}

.long-site .efi-mobile-menu:before {
    background: url(../Userfiles/template/longacre-logo.svg) no-repeat center;
    background-size: 100% 70px;
}

.efi-mobile-menu {
    width: 80%;
    max-width: 400px;
    position: fixed;
    background: rgba(50, 50, 50, 0.7);
    z-index: 9900;
    left: -100%;
    top: 0;
    display: block;
    transition: all ease 0.3s;
    height: 100vh;
}

.afco-site .efi-mobile-menu {
    background: rgba(0, 130, 201, 0.8);
}

.pro-site .efi-mobile-menu {
    background: rgba(180, 146, 47, 0.8);
}

.dyna-site .efi-mobile-menu {
    background: rgba(215, 25, 32, 0.8);
}

.long-site .efi-mobile-menu {
    background: rgba(235, 28, 45, 0.8);
}

body.efi-menu-open {
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.efi-mobile-menu .default {
    display: none;
}

.efi-mobile-menu-inner {
    padding: 0 1rem;
    height: calc(100vh - 200px - 2rem);
    overflow: hidden;
    overflow: auto;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

/* Larger than mobile */
@media (min-width: 400px) {
    .efi-mobile-menu-inner {
        padding: 0 2rem;
    }
}

.efi-mobile-menu-inner::-webkit-scrollbar-track {
    background-color: transparent;
}

.efi-mobile-menu-inner::-webkit-scrollbar {
    background-color: transparent;
}

.efi-mobile-menu-inner::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

body.efi-menu-open .efi-mobile-menu {
    left: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 0px 100px #000;
}

body.efi-menu-open .efi-menu-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9800;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.efi-mobile-menu ul, .efi-mobile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    position: relative;
}

.efi-mobile-menu .efi-expanded + ul {
    display: block;
}

.efi-mobile-menu li a {
    text-decoration: none;
    width: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 50px;
    line-height: 1;
    padding: 1rem 2rem;
    color: #fff;
    transition: background ease 0.3s;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.efi-mobile-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.efi-mobile-menu li a.efi-expanded {
    background: #fff !important;
    color: #333;
}

.efi-menu-expand {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
    align-content: center;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    transition: color ease 0.3s;
    border-radius: 100rem;
    transition: background ease 0.3s;
}

.efi-menu-expand:after {
    font-family: "FontAwesome 5 Free";
    font-weight: 600;
    content: "\002B";
}

.efi-expanded .efi-menu-expand:after {
    content: "\2212";
}

.efi-menu-expand:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Level 1 */
.efi-mobile-menu > ul {
}

.efi-mobile-menu > ul > li > a {
}

/* Level 2 */
.efi-mobile-menu ul ul {
    display: none;
    background: rgba(0, 0, 0, 0.1);
}

.efi-mobile-menu ul ul > li > a {
}

/* Level 3 */
.efi-mobile-menu ul ul ul {
    display: none;
    background: rgba(0, 0, 0, 0.1);
}

.efi-mobile-menu ul ul ul > li > a {
}

/* Level 4 */
.efi-mobile-menu ul ul ul ul {
    display: none;
    background: rgba(0, 0, 0, 0.1);
}

.efi-mobile-menu ul ul ul ul > li > a {
}

.other-links {
    padding-top: 4rem;
}

.other-links a {
    text-decoration: none;
    display: block;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 90%;
    opacity: 0.8;
}

.other-links .phone-link {
    display: none;
}

.efi-mobile-phone {
    width: 100%;
    color: #fff;
    font-size: initial;
    letter-spacing: 1px;
    box-sizing: border-box;
    text-align: center;
}

.efi-mobile-phone:empty {
    display: none;
}

.efi-mobile-phone a {
    display: block;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
}

.efi-mobile-social {
    padding: 2rem 2rem;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.efi-mobile-social:empty {
    display: none;
}

.efi-mobile-social a {
    text-decoration: none;
    padding: 0 1rem;
    color: #fff;
}

.efi-mobile-social a:hover {
    color: rgba(255, 255, 255, 0.5);
}


