/* custom icon badge is added in php file if user is logged in*/
#woo-mobile-menu-icon {
    cursor: pointer;
}

.custom-menu-header {
    display: block;
    width: 100%;
    background-color: #EAE6DA;
    border-bottom: #E0DDD9 1px solid;
    box-sizing: border-box;
    padding: 15px 15px 5px 15px;
}

.custom-menu-header .site-logo {
    height: 25px;
    max-height: 25px;
}

img.close-menu-btn {
    display: inline;
    float: right;
    width: 20px;
    max-width: 20px;
    height: 20px;
    max-height: 20px;
    cursor: pointer;
}

.custom-menu-list{
    display: block;
    width: 100%;
    height: 100%;
    max-height: 80vh;
    overflow-y: scroll;
}

.woo-mobile-menu {
    position: fixed;
    z-index: 9999;
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    display: block; /* removed flex */
    font-size: 14px;
    min-height: 100vh;
    width: 100%;
    transition: .3s;
    background-color: #EAE6DA;
    box-shadow: 0 0 20px rgba(0,0,0,.2);
    margin-top: 0;
    padding: 0;
    overflow-y: auto; /* allow scroll if menu is taller than viewport */
    opacity: 0;
    transform: translateX(100%);
    font-family: "Montserrat", Sans-serif !important;
}

.woo-mobile-menu.open {
    opacity: 1;
    transform: translateX(0);
}

#menu-emeteora-desktop,
#menu-emeteora-desktop .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#menu-emeteora-desktop li {
    width: 100%;
    box-sizing: border-box;
}

#menu-emeteora-desktop li a {
    display: block;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    text-decoration: none;
    border-bottom: #E0DDD9 1px solid;
}

/* style parent items with children */
#menu-emeteora-desktop .menu-item-has-children > a {
    position: relative;
    padding-right: 35px; /* space for arrow */
    color: #1f1f1d;
    font-weight: 500;
    font-size: 16px;
    display: block;
    width: 100%;
}

/* arrow icon */
#menu-emeteora-desktop .menu-item-has-children > a::after {
    display: inline-block;
    width: 15px;
    height: 10px;
    content: '';
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('https://e-meteora.com/wp-content/themes/meteora/images/menu-arrow.svg');
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* rotate arrow when active */
#menu-emeteora-desktop .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(-180deg);
}

/* hide submenus initially */
#menu-emeteora-desktop .sub-menu {
    display: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* submenu items */
#menu-emeteora-desktop .sub-menu li {
    width: 100%;
    box-sizing: border-box;
    padding: 0px 15px;
}

/* submenu links */
#menu-emeteora-desktop .sub-menu li a {
    font-size: 16px;
    color: #5c5c53;
    display: block;
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border-bottom: #E0DDD9 1px solid;
}

.woo-mobile-menu-footer{
    display: table;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    border-top: #E0DDD9 1px solid;
    background-color: #EAE6DA;
}
.woo-mobile-menu-footer p{
    display: block;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    color: #5c5c53;
    text-transform: uppercase;
}


/* prevent tap highlight / flicker on mobile */
#menu-emeteora-desktop li,
#menu-emeteora-desktop li a {
    -webkit-tap-highlight-color: transparent; /* remove default highlight */
    -webkit-touch-callout: none; /* disable callout on long press */
    -webkit-user-select: none; /* prevent text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* optional: smooth transition for background or color changes */
#menu-emeteora-desktop li a {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* prevent active/focus flash */
#menu-emeteora-desktop li a:focus,
#menu-emeteora-desktop li a:active {
    outline: none;
    background-color: transparent; /* prevent browser active highlight */
}
