/* 1. Parent konteiner ei blokeeri klikke paremale nupule! */
.mobile-sticky-bar {
    width: 100% !important;
    pointer-events: none !important; /* Klikid läbivad selle elemendi! */
}

/* 2. Ainult nupp ja avatud menüü ise vastavad klikkidele */
.mobile-menu-toggle-wrapper {
    pointer-events: auto !important;
    transition: max-width 0.35s ease, width 0.35s ease !important;
    width: 100% !important;
    max-width: 190px !important;
}

.mobile-menu-toggle-wrapper.is-open,
.mobile-menu-toggle-wrapper.is-closing {
    width: 100% !important;
    max-width: 100% !important; 
}

.services-trigger-button {
    transition: max-width 0.35s ease, width 0.35s ease !important;
    width: 100% !important;
    max-width: 190px !important;
}

.mobile-menu-toggle-wrapper.is-open .services-trigger-button,
.mobile-menu-toggle-wrapper.is-closing .services-trigger-button {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .mobile-menu-toggle-wrapper {
        max-width: 154px !important; 
    }
    .services-trigger-button {
        max-width: 154px !important; 
    }
}

.button-content-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
}

.services-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 0 !important; 
}

.services-close-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    color: #ffffff;
    line-height: 1;
}

.mobile-menu-toggle-wrapper.is-open .services-close-icon {
    display: block;
}

.mobile-menu-toggle-wrapper.is-open .menu-icon-burger {
    display: none;
}

/* 3. MENÜÜ KONTEINER JA LEKKIMISE KAITSE */
.services-button-menu-container {
    max-height: 0;
    width: 100%;
    overflow: hidden;
    display: none; /* Peidab nimekirja täielikult kui see pole lahti! */
    transition: max-height 0.3s ease; 
}

.mobile-menu-toggle-wrapper.is-open .services-button-menu-container,
.mobile-menu-toggle-wrapper.is-closing .services-button-menu-container {
    display: block; /* Töötab alles avamisel */
}

.services-button-menu-container.is-visible {
    max-height: 75vh;
    overflow-y: auto;
}

.services-button-menu-container::-webkit-scrollbar {
    width: 6px;
}
.services-button-menu-container::-webkit-scrollbar-track {
    background: transparent;
}
.services-button-menu-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.services-button-menu {
    list-style: none;
    margin: 0;
    padding: 1.5rem;
}

.services-button-menu .menu-item-object-custom {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-button-menu .menu-item-object-custom:first-child {
    margin-top: 0;
}

.services-button-menu .menu-item-object-custom .breakdance-menu-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0;
    cursor: default;
    pointer-events: none;
    white-space: normal;
    line-height: normal;
}

.services-button-menu .menu-item-object-teenus {
    margin-bottom: 0.25rem;
}

.services-button-menu .menu-item-object-teenus .breakdance-menu-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    display: block;
    border-left: 3px solid transparent;
    white-space: normal;
    text-wrap: wrap;
}

.services-button-menu .menu-item-active .breakdance-menu-link,
.services-button-menu .current-menu-item .breakdance-menu-link {
    font-weight: 600;
    color: #ffffff;
}