/* TOIDU MENÜÜ STIILID */

.fdm-menu, .fdm-column li {
    list-style: none;
}

.fdm-item-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.fdm-item-panel .fdm-item-price-wrapper {
    text-align: right;
}

.fdm-item-panel .fdm-item-content {
    grid-column: 1;
}

.fdm-icon:before, .fdm-icon:after {
    width: 25px;
    height: 25px;
    font-size: 22px!important;
}

.fdm-item-content, .fdm-item-panel {
    margin-bottom: 5px!important;
}

/* /TOIDU MENÜÜ STIILID */


/* Testin paska */
.fdm-menu-sidebar-section-description {
    display: none;
}
.fdm-menu-sidebar-section-title-selected {
    color: #9B1230;
    font-size: 17px!important;
    margin-bottom: 16px;
}
/* .fdm-menu-title, .fdm-section-header h3 {
    font-size: 140%!important;
} */
.fdm-menu-title, .fdm-section-header h3, .fdm-item-panel .fdm-item-title, .fdm-src-panel p.src-title {
    /* font-size: 120%!important; */
    margin-bottom: 0;
}
.fdm-menu-sidebar-section-title {
    margin-bottom: 3px!important;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding: 0 10px;
}
@media screen and (max-width: 1025px) {
    .fdm-menu-sidebar-section-title {
        margin-bottom: 12px !important;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
        padding: 0 10px;
    }
}

/* @media screen and (max-width: 1024px) {
    .fdm-menu-sidebar-div {
            text-align: center;
            position: sticky;
            top: 0;
            background-color: white;
            z-index: 9;
            border: 1px solid black;
            padding: 10px;
            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
            will-change: transform;
        }
    .fdm-menu-sidebar-div {
            position: relative;
            float: left;
            width: 300px !important;
            margin: 0;
        }
    }

.fdm-menu-sidebar-div {
    position: sticky!important;
    top: 110px;
    float: left;
    width: 300px !important;
    margin: 0!important;
} */

/* Add new classes for scroll behavior */
/* .menu-scroll-up {
    transform: translateY(-100%);
    opacity: 0;
}

.menu-scroll-down {
    transform: translateY(0);
    opacity: 1;
}


@media screen and (min-width: 1024px) {

    .menu-scroll-down {
        transform: translateY(30px);
        opacity: 1;
    }

} */

.fdm-menu-sidebar-div {
    background-color: rgba(255, 255, 255, 0.98)!important;
    /* background-color: blue!important; */
    z-index: 10 !important;
    /* padding: 15px 0 0 0!important; */
    /* margin: 8px 0 28px 0!important; */
}

@media screen and (max-width: 1025px) {
	.fdm-menu-sidebar-div {
		width: 100% !important;
		margin-right: 0;
        position: sticky !important;
        top: 80px !important;
	}
}

.fdm-menu-sidebar-section-title-selected {
    font-size: 17px!important;
    color: var(--salbos-font-color) !important;
}
.fdm-sidebar-mobile-expand-button {
    border: 1px solid var(--salbos-font-color);
}


.fdm-section-header h3 {
    font-weight: bold;
}
.fdm-sidebar-mobile-expand-button {
    width: 100%!important;
    margin: 0!important;
}
@media screen and (min-width: 1025px) { 
    .fdm-menu-sidebar-div {
        position: sticky!important;
        top: 107px!important;
        text-align: center!important;
        transition: border-bottom 0.3s ease;
        padding: 15px 0 0 0 !important;
        margin:0!important;
    }
    
    /* Add border and shadow when element becomes sticky */
    .fdm-menu-sidebar-div.is-sticky {
        /* border-bottom: 1px solid rgba(0, 0, 0, 0.08); */
        position: relative;
    }

    .fdm-menu-sidebar-div.is-sticky::before {
        content: '';
        position: absolute;
        top: 0;  /* Pull it up slightly to overlap with the nav */
        left: 50%;
        transform: translateX(-50%);
        width: 120vw;  /* Full viewport width */
        height: 56px;
        box-shadow: inset 0px 8px 8px 0px rgba(0, 0, 0, 0.12);
        /* box-shadow: inset 0px 20px 20px 0px rgb(0 15 68 / 20%); */
        pointer-events: none;  /* Allow clicks to pass through */
    }
    
    .fdm-sidebar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 15px;
        justify-content: center;
    }
    .fdm-menu-sidebar-section-title, 
    .fdm-menu-sidebar-section-description {
        flex: 0 1 auto;
        min-width: 200px;
        max-width: 300px;
    }
}
.fdm-menu-sidebar-div.fdm-sidebar-display-1 {
    width: 100%!important;
}

.fdm-section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08)!important;
}
ul.fdm-menu, .fdm-menu-footer {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

.sh-nav-mobile a.menu-item-open-fix {
    font-weight: bold;
}

.sh-nav-mobile {
    padding: 20px!important;
}

/* .fdm-columns-2 .fdm-column {
    width: 100%!important;
} */