@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');

.map-main {
    width: 100vw;
    height: 100vh;
}

.left-menu {
    font-family: 'Montserrat', sans-serif;
    color: white;
    /* padding: 18px 0 24px; */
    box-sizing: border-box;

    position: fixed;
    width: 321px;
    height: 100%;
    left: 0px;
    top: 0;
    overflow: visible;


}

.red-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;

    background: #B91C1B;
    border-radius: 10px;

}

.grey-reset-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;

    background: rgba(92, 92, 92, 1);
    border-radius: 12px;

}

.flex-filter-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 76px);
    padding: 24px 24px 24px 24px;
     background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);
                backdrop-filter: blur(1.9px);
}

.basket-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
    height: 76px;
    padding: 18px 24px;
    position: relative;
    overflow: visible;
     background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);
                backdrop-filter: blur(1.9px);


}

.filter-btns-box {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.filter-btns-box>* {
    width: 100%;
}

.part-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 140%; 
}

.filter-box {
  
        margin-bottom: 15px;
    
} 
@media (max-height: 660px) {
    .filter-box {
        max-height: 510px;
        overflow-y: auto;
        margin-bottom: 15px;
        overflow-x: hidden;
    }
}

.filters {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.select-field {

    padding: 6px 8px 6px 14px;

    width: 100%;
    height: 40px;

    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.select-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
}

.option-field {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    margin-top: 4px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;

    width: 273px;

    overflow-y: auto;

    padding: 4px;

    isolation: isolate;
    /* dropdown */

    box-sizing: border-box;

    border: 0.5px solid rgba(255, 255, 255, 0.32);
    /* shadow down/lg */
    background: #333333;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;

}

.red-btn__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 6px;

}

.red-btn__title {
    flex: 1;
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.red-btn__text {
    color: white;
    font-size: 13px;
    line-height: 17px;
    font-weight: 400;

}

.toggle {
    display: flex;
    align-items: center;
    padding: 2px;
    width: 36px;
    height: 20px;
    border-radius: 9999px;

}

.toggle--off {
    justify-content: flex-start;
    background: #B85F60;
    &.grey {
        background-color: rgba(106, 106, 106, 1);
    }
}

.toggle--on {
    justify-content: flex-end;
    background: #E71E21;
}

.toggle__circle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
}

.boolean-type-red-btn {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: rgba(153, 26, 28, 1) !important;
}

.checkbox-type:hover {
    background: rgba(185, 28, 27, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.select-field span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket {
    position: absolute;
    padding: 24px 12px 24px 24px;
    left: 100%;
    top: 35px;
    z-index: 50;
    margin-left: 27px;
    width: 368px;
    max-height: 471px;
    border-radius: 0 12px 12px 12px;
 background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);
                backdrop-filter: blur(1.9px);
}

.basket::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 0;
    width: 19px;
    height: 19px;
   background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);
                backdrop-filter: blur(1.9px);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.close-btn-basket {
    position: absolute;
    top: 18px;
    cursor: pointer;
    right: 18px;
}
.filter-number {

margin-left: 10px;
    border-radius: 50%;
    background: #757575;
    color: white;
    font-size: 10px;
padding: 2px 8px;
    font-weight: 600;

}

.basket__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.basket__title {
     width: 100%;
    height: 28px;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    color: #FFFFFF;
    display: flex;
    place-content: space-between;
    justify-content: space-between;
}

.basket__total {
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
}
.basket__total > :nth-child(2) {
    display: flex;
    gap: 12px;
        flex-shrink: 0;
}

.basket__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-height: 256px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;

}

.basket-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 16px 16px;
    gap: 8px;
    width: 320px;
    min-height: max-content;
    height: max-content;
    background: #333333;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
}

.basket-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
}

.basket-card__actions {
    display: flex;
    gap: 10px;
}

.basket__button {
    width: 320px;
    height: 48px;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #B91C1B;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.grey-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
        justify-content: center;
    padding: 8px;

    min-width: 34px;
    min-height: 34px;

    background: linear-gradient(0deg, #525252, #525252), #333333;
    border-radius: 8px;


}

.grey-btn:hover {

    background: linear-gradient(0deg, #757575, #757575), #333333;


}

.dark-red-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    min-width: 67px;
    height: 24px;

    background: #762827;
    border-radius: 100px;

    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: #FFFFFF;

}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-info> :first-child {

    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;

    color: #FFFFFF;
}

.cart-item-info> :nth-child(2) {

    font-weight: 300;
    font-size: 13px;
    line-height: 18px;

    color: #FFFFFF;
}

#global-tooltip {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;

  
    padding: 8px 12px;
    box-sizing: border-box;

    background: #fff;
    border: .5px solid rgba(255, 255, 255, .17);
    border-radius: 4px;
        font-family: 'Montserrat', sans-serif;


    font: 500 13px/18px 'Montserrat';
    color: #252525;

    pointer-events: none;

    opacity: 0;
    visibility: hidden;
    transition: opacity .15s;

    z-index: 999999999;
}

#global-tooltip.show {
    opacity: 1;
    visibility: visible;
}

#global-tooltip::after {
    content: "";
    position: absolute;
    top: 89%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
    border-right: .5px solid rgba(255, 255, 255, .17);
    border-bottom: .5px solid rgba(255, 255, 255, .17);
}

#global-tooltip span {
    white-space: nowrap;
}

.filter-btn {
    display: none;
}

.close-btn {
    display: none;
}

@media (max-width: 960px) {
    .left-menu {

        bottom: auto;
        height: 64px;
        top: 0;
        width: 100%;

background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);


    }

    .basket-box {
        padding: 12px 20px;
        height: 64px;
        border: none;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), rgba(51, 51, 51, 0.8);


    }

    .part-title {
        font-size: 18px;
        flex-direction: row;
        display: flex;
        justify-content: space-between;
        align-items: end;

        &.basket-title {
            display: none;
        }
    }

    .filter-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px 16px;
        gap: 10px;
        height: 40px;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), #333333;
        border-radius: 10px;
        cursor: pointer;

    }

    .flex-filter-container {
        top: 0;
        position: absolute;
        /* Frame 579 */

        width: 100%;
height: 100dvh;
        padding: 16px 20px 32px;
        background: rgba(51, 51, 51, 0.90);

    }

    .select-box {
        width: 100%;
        font-size: 12px;
        font-weight: 600;
        gap: 6px;
    }

    .close-btn {
        display: block;
    }

    .filters {
        margin-top: 18px;
        gap: 20px;
    }

    .boolean-type-red-btn {
        margin-top: 6px;
        align-items: start;
    }

    .select-field {
        border: 0.5px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
    }

    .red-btn__title {
        font-size: 15px;
    }

    .filter-btns-box>* {
        min-height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }

    .option-field {
        gap: 10px;
        width: 100%;

        background: #5C5C5C;
        border: 0.5px solid rgba(255, 255, 255, 0.32);
        box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-radius: 8px;


    }

    .basket {
        padding: 16px 20px 32px;
        left: 0;
        top: 0;
        z-index: 50;
        margin-left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;

        background: rgba(51, 51, 51, 0.90);
        border-radius: 0px;

    }

    .basket::before {

        left: 0;
        top: 0;
        width: 0;
        height: 0;

    }

    .basket__title {
        font-size: 18px;
        font-weight: 700;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
        width: 100%;
    }

    .basket__total {
        margin-bottom: 18px;
    }

    .basket__list {
        gap: 16px;
        max-height: calc(100vh - 108px);
    }

    .grey-btn {
        min-width: 38px;
        min-height: 38px;
    }
.grey-btn > svg {
     align-items: cneter;
}
    .basket-card__actions {
        gap: 12px;
    }

    .basket-card {
        gap: 4px;
        width: 100%;
    }

    .basket__button {
        margin-top: auto;
        font-size: 15px;
        font-weight: 500;
        border-radius: 12px;
        width: 100%;

    }


}