.sticky-top{
    z-index: 100;
}


.header-top {
    position: relative;
    z-index: 100;
}

.custom-logo {
    max-height: 40px;
    width: 100%;
    margin-top: -7px;
}

/* ------------------- Menu Pre Nav CSS ------------------- */
.menu-pre-nav #search-clear:focus {
    opacity: 1;
}

.menu-pre-nav .desktop-sub-menu a {
    font-size: 16px !important
}

.header-top__cta {
    background-color: #D3D3D3;
    color: black;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.header-top__cta:hover{
    color: #fff;
    background-color: black;
}

.header-top{
    background-color: #EBEFF3;
}


/* ------------------- End Menu Pre Nav CSS ------------------- */

/* Tooltip arrow */

.desktop-sub-menu__box::after, .desktop-sub-menu__box::before {
	bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: "";
    height: 0px;
    width: 0px;
    position: absolute;
    pointer-events: none;
}

.desktop-sub-menu__box::after {
	border-color: rgba(136, 183, 213, 0);
    border-bottom-color: var(--secondary-palette-white);
    border-width: 14px;
	margin-left: -14px;
}

.desktop-sub-menu__box::before {
	border-color: rgba(194, 225, 245, 0);
    border-bottom-color: #dcdde6;
    border-width: 15px;
	margin-left: -15px;
}

/* ----Search Bar CSS---- */
.search-container{
    padding-left: 50px;
}

.search-input{
    border-bottom: 2px solid var(--primary-palette-yellow-100);
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background-color: transparent;
}

.search-btn{
    position: absolute;
    top: 0px;
    z-index: 10;
    left: -28px; 
}

/*-------Product Login-------*/
.product-login:hover > .desktop-sub-menu {
    display: block !important;
}

.product-login:hover{
    background-color: var(--primary-palette-blue);
    color: var(--secondary-palette-white) !important;
}

.product-login:hover > a {
    color: var(--secondary-palette-white) !important;
}

.product-login.show-login-text {
    background-color: var(--primary-palette-blue);
 
}

.product-login.show-login-text > a {
    color: var(--secondary-palette-white);
}

.product-login.show-login-text li:first-child {
   
    color: var(--secondary-palette-white);
}

.product-login a{
    padding-right: 8px;
    padding-top: 8px;
    padding-bottom: 25px;
   
}

.product-login .mega-menu__items:hover{
    color: var(--primary-palette-blue);
    text-decoration: underline;
}

.product-login .show-login-text{
    display: block !important;
}

input[type="search" i]::-webkit-search-cancel-button{
	position: relative;
    right: 12px; 
	cursor: pointer;
}


/* ------------------- Mega Menu CSS ------------------- */
.mega-menu {
    background-color: rgb(252, 247, 242);
    position: relative;
    height: 77px;
}

.mega-menu li.primary__cta>a {
    padding-left: 10px;
    padding-right: 10px; 
}

.mega-menu__hover--text {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.mega-menu__items--container{
    padding-left: 23px !important; 
}

.mega-menu__dropdown {
    height: 77px;
}

.mega-menu__items:hover,
.mega-menu__dropdown.current-menu-item .mega-menu__items,
.mega-menu-active {
    color: var(--primary-palette-blue) !important;
}

.mega-menu__no-dropdown{
	height:77px; 
}

.mega-menu__no-dropdown .mega-menu__dropdown--underline::before {
	content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 0;
    left: 50%;
    transform: translateX(calc(-50% - 0px));
    background-color: transparent;
    transition: width 0.3s ease, background-color 0.3s ease; 
}

.mega-menu__dropdown--underline::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 0;
    left: 50%;
    transform: translateX(calc(-50% - 7px));
    background-color: transparent;
    transition: width 0.3s ease, background-color 0.3s ease; 
}

.mega-menu__no-dropdown::before {
    transform: translateX(calc(-50% - 0px));
}

.mega-menu__dropdown--underline:hover::before,
.mega-menu__dropdown--underline.mega-menu-active::before {
    width: 100%;
    background: linear-gradient(to right, #146EF5, #FF0022);
}

.no-hover .mega-menu__items:hover::before{
    content: "";
    position: absolute;
    height: 0px;
}

.mega-menu__hover--text:hover span {
    visibility: visible;
    opacity: 1;
}

.mega-menu__hover--text span {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: visibility 0.5s, opacity 0.5s;
    color: var(--primary-palette-blue);
}

.mega-menu__items {
    font-family: var(--primary-font-family);
    font-weight: normal;
    font-size: 16px;
    color: var(--secondary-palette-dark-grey);
    transition: color 0.3s ease-in-out;
}

.mega-menu__dropdown--link::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    content: "";
    background-image: url("../svg/down-arrow-black.svg");
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
    margin-bottom: -6px;
    margin-left: 5px;
}

.mega-menu__rotate--arrow::after {
    transform: rotate(180deg);
    /*background-image: url("/wp-content/themes/efax-new/assets/images/down-arrow-yellow.svg"); */
}

.mega-menu__rotate--arrow-270::after {
    transform: rotate(270deg);
}

#resources-panel .accordion .accordion-item:last-child{
    display: none;
}

.pre-nav__menu-item,
.menu-link {
    transition: color 0.3s ease;
}

.pre-nav__menu-item:hover,
.pre-nav__menu-item.current-menu-item .mega-menu__items {
    color: var(--primary-palette-blue) !important;
    
}

.tab-title__outline {
    height: 1px;
    background: #ABADC0;
    flex-grow: 1;
}

.tab-content__title{
    line-height: normal;
}

.tab-content__image-wrapper {
    min-width: 60px;
}

.tab-panel__featured-image{
    max-height: 250px; 
    object-fit: contain;
}

.tab-content__column-wrap::after {
    content: "";
    border: solid thin #ABADC0;
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    border-radius: 15px;
    top: 10px;
    z-index: -1;
}

.tab-content__link {
    position: relative; 
}

.tab-content__link::after{
    content: "";
    position: absolute;
    height: 100%;
    width: 105%;
    background-color: transparent; 
    border-radius: 21px;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease;
}

.tab-content__link:hover::after{
    background-color: #EBEFF3; 
}

.tab-content__link.no-background:hover::after{
    content:"";
    position: absolute;
    background-color: inherit;

}

 .tab-content__link:hover .gradient,
 .tab-content__link:hover .tab-content__title {
    color: #000;
    color: transparent;
    background-image: linear-gradient(to right, #146EF5, #FF0022);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

.tab-content__link.no-hover:hover::after{
    height: 0px; 
    cursor: auto; 
}

.tab-content__title.ai::before {
    content: "";
    background-image: url("../svg/icon-ai-text.svg");
    height: 30px;
    width: 30px;
    display: block;
    position: absolute;
    top: 3px;
    left: -19px;
    background-repeat: no-repeat;
}

.tab-content__title.new::before {
    content: "";
    background-image: url("../svg/icon-new-text.svg");
    height: 30px;
    width: 30px;
    display: block;
    position: absolute;
    top: 6px;
    left: -27px;
    background-repeat: no-repeat;
}


.mega-menu__dropdown--content {
    position: absolute;
    left: 0;
    top: 77px;
    width: 100%;
    background-color: var(--secondary-palette-white);
    box-shadow: 0px 8.48px 13.48px 0px #93A5C08F;
    z-index: 1000;
    padding: 8px 10px;
    max-height: 83vh;
	overflow-y: auto;
}

.mega-menu__dropdown--content .nav-link {
    padding: 18px 32px;
    border: 0;
    border-radius: 0;
    text-align: right;
    border-right: 4px solid transparent;
}

.mega-menu__dropdown--content .nav-link:hover {
    color: #E5151C;
    border-right: 4px solid transparent;
}

.mega-menu__dropdown--content .nav-link.active {
    color: #E5151C;
    border-right: 4px solid var(--Red-200, #F04055);
}

.mega-menu__dropdown--content .nav-tabs {
    border-right: 3px solid var(--Cool-100, #F5F6FB);
    border-bottom: none;
}

.mega-menu__dropdown--related-content a {
    font-family: var(--primary-font-family) !important;
}

.mega-menu__dropdown--related-content .icon-wrapper img {
    text-align: center;
}

.mega-menu__dropdown--related-content:hover {
    background-color: var(--secondary-palette-white);
    border-radius: 5px;
}

.mega-menu__dropdown--highlight-box {
    border-radius: 0px 0px 15px 0px;
    background-color: #F5F6FB;
}


.mega-menu .tab-content {
    min-height: 320px;
}

.mega-menu .tab-content>.active {
    display: flex;
}

.mega-menu .text-underline-gap {
    border-bottom: 2px solid var(--primary-palette-blue-300);
    padding-bottom: 2px;
}

.mega-menu__mobile--search input {
    border: none !important;
    border-bottom: 2px solid var(--Yellow-100, #FFC46A) !important;
    border-radius: 0 !important; 
    font-size: 16px !important;
}


.mega-menu__desktop--search input:focus,
.mega-menu__mobile--search input:focus {
    outline: none;
    box-shadow: none;
}

.mega-menu__desktop--search #search-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-left: 0;
    overflow: hidden;
    /* transition: width 0.3s ease, opacity 0.3s ease; */
}

.mega-menu__desktop--search #search-input.expanded {
    width: 160px !important;
    opacity: 1;
}

/* ------End Mega Menu CSS ------ */

.search-mobile input{
    border-radius: 0px;
    background-color: transparent;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(238, 244, 255, 0) inset !important; /* Change "red" to your desired color */
    -webkit-text-fill-color: #030000 !important; /* Change to your desired text color */
}

.form-control{
    border-bottom: solid 2px var(--primary-palette-yellow-100) !important;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: .105rem .75rem;
}
.form-control:focus {
    
    border-bottom: solid 2px var(--primary-palette-yellow-100) !important;
}


.hide_element {
    display: none !important;
}

.mega-menu__desktop--search .mega-menu__items {
    display: none;
}

header.sticky {
    border-bottom: solid 1px #D9D9D9;
}

/* Login Tooltip CSS */
.login-tooltip{
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: var(--secondary-palette-white);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: visibility 0.5s, opacity 0.5s;
    color: var(--primary-palette-blue);
}



.desktop-sub-menu:hover .login-tooltip {
    opacity: 0;
    visibility: hidden;
}

.desktop-product-login:hover .login-tooltip {
    opacity: 1;
    visibility: visible;
}

.desktop-product-login .desktop-sub-menu {
    list-style: none;
    position: absolute;
    min-width: 250px;
    padding-bottom: 25px;
    padding-top: 40px;
    border-radius: 15px;
    padding-left: 0px;
}

.desktop-product-login .desktop-sub-menu::after {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    right: 37px;
    font-size: 12px;
    color: grey;
}

.desktop-sub-menu a {
    padding-right: 30px;
    border-right: solid 7px #e3172500;
    padding-top: 15px;
    font-size: 16px;
}

.desktop-sub-menu li {
    padding-top: 10px;
   
}

.desktop-product-login .desktop-sub-menu {
    list-style: none;
    padding-left: 10px !important;
}


.mobile-product-list .h3 {
    font-size: 18px;
}

@media (min-width:767px) {
    .desktop-sub-menu {
        z-index: 10;
        top: 50px;
        background: var(--secondary-palette-white);
        right: -45px;
        border: solid 1px #dcdde6;
    }

    .desktop-sub-menu a:hover {
        color: var(--primary-palette-blue);
    }

    .desktop-product-login::after {
        content: "";
        display: block;
        position: absolute;
        top: 59px;
        right: -6px;
        font-size: 12px;
        color: grey;
    }

    .mega-menu li.primary__cta>a {
        padding-left: 30px;
        padding-right: 30px; 
    }

}


@media ( min-width: 992px ) {
    .desktop-sub-menu {
        background: var(--secondary-palette-white);
        list-style: none;
        position: absolute;
        min-width: 190px;
        padding-bottom: 25px;
        padding-top: 20px;
        text-align: left;
        border-radius: 15px;
        right: -68px;
        padding-left: 0px;
        z-index: 10000;
        top: 45px; 
    }

    .mega-menu__items--container{
        padding-left: 45px !important; 
    }

    .search-btn{
        position: relative;
        right: auto;
        top: -3px;
        left: 0px;
    }

    .search-btn.expanded{
        padding-right: 8px;
    }

    .mega-menu {
        background: linear-gradient(270.03deg, rgb(252, 247, 242) 6.06%, var(--secondary-palette-white) 75.79%);
    }

    .mega-menu__desktop--search #search-input {
        width: 0 !important;
        opacity: 0;
        padding-left: 0;
        overflow: hidden;
    }

    .mega-menu__desktop--search #search-input.expanded {
        width: 386px !important;
        opacity: 1;
        background: var(--secondary-palette-white);
    }

    .bg-lg-white{
        background-color: #fff; 
    }
    

}


@media screen and (width<=1200px) {  
    .mega-menu .hamburger-icon img {
        margin-right: 15px;
    }

    .mega-menu__dropdown--content {
        display: block;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        position: static;
        background-color: transparent;
        top: 92px;
    }

    .mega-menu__dropdown {
        display: block;
        height: auto;
    }

    .mega-menu {
        height: 77px;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 100%);
        background-color: rgb(252, 247, 242);
        transition: transform 0.4s ease-in-out;
        overflow-y: scroll;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-menu-panel.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        overflow-x: hidden; 
    }

    .inner-mobile-mega-menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 77px);
        background-color: rgb(252, 247, 242);
        transition: transform 0.4s ease-in-out;
        overflow-y: scroll;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
    }

    .inner-mobile-mega-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel:not(.active),
    .inner-mobile-mega-menu:not(.active) {
        opacity: 0;
        pointer-events: none;
        display: none;
    }

    .menu-back {
        display: inline-block;
        margin-bottom: 20px;
        transition: color 0.3s ease-in-out;
    }

    .mobile-mega-menu__item .menu-link {
        border-bottom: 1px solid var(--Warm-200, #EEE9E3);
        width: 100%;
    }

    .mobile-mega-menu {
        overflow-x: hidden;
    }

    .mobile-mega-menu__dropdown::after {
        flex-shrink: 0;
        width: 1.25rem;
        height: 1.25rem;
        content: "";
        background-image: url("../svg/dark-blue-arrow-icon.svg");
        background-repeat: no-repeat;
        background-size: auto;
        background-position: center;
        transition: transform 0.2s ease-in-out;
        margin-top: -1px;
        display: inline-block;
        width: 20px;
        position: absolute;
        top: 39px;
        right: 0;
        z-index: -1;
    }

    .mobile-mega-menu__content .accordion-button {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0px;
    }

    .mobile-mega-menu__content .accordion-item {
        background-color: transparent;
        border: none;
        border-bottom: 1px solid var(--Warm-200, #EEE9E3);
    }

    .mobile-mega-menu__content .accordion-body {
        padding: 0 0 30px 0;
    }

    .menu-container {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .menu-container.show {
        display: block;
        opacity: 1;
    }

    header.header-wrapper {
        background: linear-gradient(270.03deg, rgb(252, 247, 242) 6.06%, var(--secondary-palette-white) 75.79%);
    }

    .mega-menu__dropdown--highlight-box {
        background-color: transparent;
    }

    .mega-menu__bottom--border {
        border-top: 1px solid var(--Warm-200, #EEE9E3)
    }

    .mega-menu__dropdown--related-content:hover {
        background-color: transparent;
    }

    .mobile-menu__accordion .accordion-button {
        box-shadow: none;
        color: #474F5A;
    }

    .mobile-menu__accordion .accordion-button:focus {
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    .mobile-menu__accordion .accordion-item {
        border: none;
        border-bottom: 1px solid var(--Warm-200, #EEE9E3)
    }

    body.no-scroll {
        overflow: hidden;
        touch-action: none;
    }
}

    @media(min-width: 1200px){
        .search-mobile{
        display: none; 
    }
    }