//@media(min-width: 992px){
//    .container-fluid, .container {
//        &.frame-space-before- {
//            &.adjusted-for-sidebar {
//                max-width: 66.666666666666666%;
//                margin-left: 0;
//            }
//        }
//    }
//}
@include media-breakpoint-up(lg) {
    .sidebar-container {
        display: none;
    }
}

@include media-breakpoint-down(lg) {
    .sidebar-container {
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-thumb {
            border-radius: 4px;
            background: #959595;

            &:hover {
                background: #7F7D7D;
            }
        }

        position: absolute;
        right: 0;
        z-index: 99;
        top: 0;
        max-width: 33.333333333%;
        height: 100%;
        @include media-breakpoint-down(xl) {
            padding-left: 0;
        }

        &.fixed {
            position: fixed;
        }

        .sidebar-wrapper {
            position: sticky;
            max-width: unset;
            width: 100%;
            padding: 0;
            margin-top: 22px;

            @include media-breakpoint-down(lg) {
                display: none;
            }

            .line_separator {
                display: none;
            }

        .ast-cart-heading {
            font: normal normal bold 29px/37px 'TFArrow', sans-serif;
        }

            .form-cart {
                padding: 0 40px 50px 40px;
                background-color: white;
                border-radius: 6px;
                overflow-y: scroll;
                max-height: 60vh;


                @include media-breakpoint-down(xl) {
                    padding: 0 10px 50px 10px;
                }
            }

            .book_id {
                display: none;
            }

            .book_total {
                margin-right: 0;
                flex-wrap: wrap;

                .book_total_label {
                    width: 100%;
                    margin-bottom: 13px;
                }

                @media (min-width: 576px) {
                    .book_total_label {
                        width: auto;
                        margin-bottom: 0;
                    }

                    flex-wrap: nowrap;
                }
            }

            .cart-item-container {
                margin-right: 0;

                .cart-item {
                    padding-top: 30px;
                    display: flex;
                    flex-direction: column;

                    .cart_item_room {
                        width: 100%;
                        max-width: unset;
                        font-size: 18px;
                    }

                    .cart_item_dates {
                        width: 100%;
                        order: 1;
                        border: none;
                        padding-bottom: 20px;
                    }

                    .price_value {
                        order: 3;
                        width: 100%;
                        text-align: right;
                        border-bottom: 1px solid #CCCBCB;
                        padding-bottom: 15px;
                    }

                    .cart_nights {
                        order: 2;
                        width: 100%;
                        border: none;
                        margin-bottom: 13px;
                    }

                    .stay_extra_prod_items {
                        order: 4;
                        width: 100%;
                        letter-spacing: 0px;
                        color: #7F7D7D;
                        display: flex;
                        padding-top: 5px;
                        flex-flow: row wrap;

                        .stay_extra_prod {
                            width: 100%;
                            flex-wrap: wrap;
                            border-bottom: 1px solid #CCCBCB;

                            .extra_prod_label {
                                margin-bottom: 13px;
                                border-bottom: 1px solid #CCCBCB;
                            }

                            .extra_prod_price {
                                width: 100%;
                                text-align: right;
                                border-bottom: 1px solid #CCCBCB;
                            }
                        }
                    }

                    .cart_nights, .cart_item_dates {
                        padding-bottom: 0;
                    }

                    @media (min-width: 576px) {
                        .stay_extra_prod_items {
                            padding-top: 5px;

                            .stay_extra_prod {
                                width: unset;
                                flex-wrap: nowrap;
                                color: #7F7D7D;
                                display: contents;

                                .extra_prod_quantity {
                                    width: 10%;
                                    display: unset;
                                    color: #7F7D7D;
                                    font-size: 16px;
                                    line-height: initial;
                                    border-bottom: 1px solid #CCCBCB;
                                    padding: 20px 0;

                                    &:after {
                                        content: " x";
                                    }
                                }

                                .extra_prod_label {
                                    margin-bottom: 0;
                                    width: 70%;
                                    padding: 19px 0 20px 0;
                                }

                                .extra_prod_price {
                                    width: 20%;
                                    text-align: right;
                                    padding: 20px 0;
                                }
                            }
                        }

                        .cart_item_room {
                            width: 80%;
                            max-width: 80%;
                            font-size: 18px;
                        }

                        .cart_item_dates {
                            width: unset;
                            order: 2;
                            color: #7F7D7D;
                            font-size: 16px;
                        }

                        .price_value {
                            order: 1;
                            text-align: right;
                            border-bottom: 0;
                            padding-bottom: 0;
                            right: 0;
                            width: 20%;
                            max-width: 20%;
                            margin-left: auto;
                            margin-top: -28px;

                        }

                        .cart_nights {
                            width: unset;
                            order: 3;
                            margin-bottom: 0;
                            color: #7F7D7D;
                            font-size: 16px;
                            padding-bottom: 20px;
                            border-bottom: 1px solid #CCCBCB;
                        }

                        .total_price_value, .remove-from-cart {
                            display: none;
                        }
                    }
                }
            }

            .book_total {
                width: unset;
                position: relative;
                margin-top: 20px;

                .book_total_label {
                    font-size: 24px;
                    color: #444444;
                    width: 60%;
                }

            .persons-total {
                font: normal normal 800 16px/22px 'Newsreader', sans-serif;
                color: #7F7D7D;
            }

                .book_total_price {
                    width: 40%;
                    right: 0;
                    position: absolute;
                    top: 0;
                    text-align: right;
                    color: #D08E78;
                }
            }

            .cart_buttons {
                display: flex;
                flex-wrap: wrap;

                .form-finalize-cart {
                    width: 100%;
                    background: #FFB710 !important;
                    border: 3px solid #FFB710;
                    height: 56px;
                    margin-top: 10px;

                    .btn-text {
                        font-size: 1.125rem;
                        text-transform: uppercase;
                        font-weight: 500;
                    }

                    &:hover {
                        background-color: #feb832 !important;
                        border-color: #feb832;

                        &:after {
                            background-color: #feb832 !important;
                        }
                    }
                }

                .form-clear-cart {
                    width: 100%;
                    background: transparent !important;
                    color: #00503c;
                    border: 2px solid #00503c;
                    height: 56px;
                    margin-top: 10px;
                    order: 1;

                    .btn-text {
                        font-size: 1.125rem;
                        text-transform: uppercase;
                        font-weight: 500;
                    }

                    &:hover {
                        color: white;
                        background-color: #00503c !important;
                    }
                }
            }

            .book_promo,
            .gift-vouchers-consumed {
                display: none;
            }
        }

        &.cart-empty {
            .sidebar-wrapper {
                display: block !important;
            }
        }
    }
}


@include media-breakpoint-down(lg) {
    #be-sidebar-cart {
        @include media-breakpoint-down(xl) {
            padding: 0 5px;
        }

        &.cart-empty {
            .empty-cart-container {
                background-color: white;
                border-radius: 6px;
                min-height: 150px;
                padding-left: 25px;
                padding-right: 25px;
                padding-top: 65px;

                .back-to-start {
                    border-radius: 4px;
                    padding: 9px 30px;
                    background: #FFB710;
                    border: 3px solid #FFB710;
                    font-weight: 400;
                    width: 100%;

                    &:hover {
                        filter: brightness(1.1);
                    }
                }

                @include media-breakpoint-down(lg) {
                    padding-top: 25px !important;
                    min-height: 100px !important;
                    position: fixed;
                    display: block;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    max-width: 100%;
                    align-items: center;
                }
            }
        }
    }
}
