﻿#product-tree-blender {
    background-color: #000;
    bottom: 0;
    left: 0;
    opacity: 0.4;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
}

#product-tree-holder {
    display: flex;
    max-height: calc(100vh - 200px);
    position: absolute;
}

#product-tree-holder button:focus { outline: 0; }

#product-tree-holder a {
    color: #2c2c2c;
    text-decoration: none;
}

.tree-dropdown-menu {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 20;
}

.tree-dropdown-menu ul {
    height: 100%;
    list-style: none;
    margin: 0;
    min-width: 250px;
    overflow-y: auto;
    padding: 0;
}

.tree-dropdown-menu + .tree-dropdown-menu {
    align-self: stretch;
    margin-left: -1px;
}

.tree-dropdown-menu-head { display: none; }

.tree-dropdown-item {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    height: 34px;
    user-select: none;
    gap:4px;
}

.tree-dropdown-item:hover,
.tree-dropdown-item-activ { background-color: #ccc; }

.tree-dropdown-item > .menu-item-noicon {
    flex: 0 0 1rem;
}
.tree-dropdown-item > .menu-item-icon {
    display: flex;
    flex: 0 0 48px;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 4px 0;
    width: 100%;
}

.tree-dropdown-item > .menu-item-icon > img {
    max-height: 100%;
    max-width: 24px;
}

.tree-dropdown-item > .menu-item-text {
    flex: 1 1 auto;
    font-weight: 300;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tree-dropdown-item > .menu-item-arrow {    
    flex: 0 0 30px;
    height: 100%;
    width: 30px;
    background: none;
    background-image: url('/img/navbar-main/arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    height: 11px;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 575px) {
    #product-tree-holder {
        bottom: 0;
        height: 100%;
        left: 0;
        max-height: none;
        width: 80%;
    }

    .tree-dropdown-menu {
        border: none;
        border-right: 1px solid #ccc;
        display: flex;
        flex-direction: column;
        height: 100vh;
        position: absolute;
        width: 100%;
    }

    .tree-dropdown-menu-head {
        background-color: #f5f5f5;
        display: flex;
        padding: 7px;
    }

    .tree-dropdown-menu-head button {
        align-items: center;
        background: none;
        border: none;
        color: #444;
        display: flex;
        font-size: 1.1rem;
        gap: 5px;
        line-height: 20px;
    }

    .tree-dropdown-menu ul { flex: 1 1 auto; }

    .tree-dropdown-item {
        font-size: 1rem;
        height: 40px;
    }

    .tree-dropdown-menu + .tree-dropdown-menu { margin-left: 0; }

    .tree-dropdown-item > .menu-item-arrow {
        flex: 0 0 40px;
        width: 40px;
    }
}



.tree-dropdown-menu-5 { display: none; }
.tree-dropdown-item > .menu-item-arrow-4 { display: none; }

@media (min-width: 576px) {
    .tree-dropdown-menu-1 { display: block; }

    .tree-dropdown-menu-2 { display: none; }

    .tree-dropdown-menu-3 { display: none; }

    .tree-dropdown-menu-4 { display: none; }

    .tree-dropdown-item > .menu-item-arrow-0 { display: flex; }

    .tree-dropdown-item > .menu-item-arrow-1 { display: none; }

    .tree-dropdown-item > .menu-item-arrow-2 { display: none; }

    .tree-dropdown-item > .menu-item-arrow-3 { display: none; }
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
    .tree-dropdown-menu-2 { display: block; }

    .tree-dropdown-item > .menu-item-arrow-1 { display: flex; }
}

@media (min-width: 1200px) {
    .tree-dropdown-menu-3 { display: block; }

    .tree-dropdown-item > .menu-item-arrow-2 { display: flex; }
/*    .tree-dropdown-menu-4 { display: block; }

    .tree-dropdown-item > .menu-item-arrow-3 { display: flex; }*/
}