/* Overlay */
#msm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Slide Menu (desktop default: 300px) */
#msm-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
}

#msm-menu a {
    color: #1a1a1a!important;
}

#msm-menu a:hover {
    color: #525252!important;
}

#msm-menu .current-menu-item > a {
  position: relative;
}

#msm-menu .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #41FFAF;
}

/* Full width on small screens */
@media (max-width: 768px) {
    #msm-menu {
        width: 100%;
    }
}

#msm-menu .msm-menu-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
}

/* Close Button */
#msm-menu button#msm-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    margin-top: 10px;
}

/* WordPress Menu Styling */
#msm-menu .msm-nav {
    margin-top: 50px;
    list-style: none;
    padding: 0;
}

/* Active States */
#msm-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#msm-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.msm-extra-content {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.msm-cta-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    background-color: #41FFAF!important; /* Divi default blue */
    color: #1a1a1a!important;
    font-weight: bold;
    border-radius: 21px;
    text-align: center;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.msm-cta-button:hover {
    background-color: #c9ffe8!important;
}

.msm-extra-text {
    font-size: 14px;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    line-height: 130%;
}
