/* page overlay */

#page_overlay {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: dimgrey;
    opacity: 0;
    visibility: hidden;
}

#page_overlay.show {
    overflow: hidden;
    opacity: 0.5;
    visibility: visible;
}

/* basket sidebar */

#basket_sidebar {
    position: fixed;
    top: 0;
    z-index: 101;
    height: 100%;
    background-color: white;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0s, right 0.25s linear;
}

#basket_sidebar.active {
    visibility: visible;
    opacity: 1;
    right: 0;

}

#basket_sidebar button[data-dismiss="close_basket_sidebar"] {
    font-size: 1rem;
}

@media screen and (min-width: 576px) { /* small and more*/
    #basket_sidebar {
        right:-480px;
        width: 480px;
    }
}

@media screen and (max-width: 575px) { /* less than small */
    #basket_sidebar {
        right:-90%;
        width: 90%;
    }
}

#arrow_basket_sidebar_content {
    padding-left: 1rem;
}

#basket_sidebar_items {
    overflow-y: auto;
    scrollbar-gutter: stable;
    max-height: calc(100vh - ( 164px + 48px ) ); /* leave space for #arrow_basket_sidebar_subtotal */
}

#basket_sidebar_subtotal {
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

@media screen and (max-width: 575px) { /* less than small */
    #basket_sidebar_items, #basket_sidebar_subtotal {
        scrollbar-gutter: unset;
        padding-right: 1rem;
    }
}

.basket_sidebar_item {
    display: flex;
    border-top: 1px solid black;
    padding: 1rem 1rem 0 1rem;
}

.basket_sidebar_item_figure {
    max-width: 100px;
    flex: 0 0 100px;
    margin-right: 0.5rem
}

.basket_sidebar_item_figure img {
    max-width: 100%;
}

.basket_sidebar_item_figure .basket_sidebar_item_figure_no_image {
    background-color: gainsboro; /* lighter than lightgrey */
    height: 100%;
    width: 100%;
    text-align: center;
    margin: auto;
}

.basket_sidebar_item_figure .basket_sidebar_item_figure_no_image > div {
    /*height: 100px;*/
    /*width: 100px;*/
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200%;
}

.basket_sidebar_item_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
}

.basket_sidebar_item_details {
    display: flex;
    justify-content: space-between;
}

.basket_sidebar_item_info {
    margin-right: 0.5rem
}

.basket_sidebar_item_title {
    margin-bottom: 0.5rem;
}

.basket_sidebar_item_attributes {
    font-size: 75%
}

.basket_sidebar_item_remove {

}

.basket_sidebar_item_quantity_multiplication_price {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem
}

.basket_sidebar_item_quantity_multiplication {
    flex: 0 0 50%;
    text-align: right;
}

.basket_sidebar_item_price {

}

.basket_sidebar_subtotal_title_amount {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 0;
    border-top: 2px solid black;
    font-weight: 700
}

.basket_sidebar_link_basket, .basket_sidebar_link_checkout {
    margin-bottom: 1rem;
}

.basket_sidebar_link_basket > .btn, .basket_sidebar_link_checkout > .btn {
    width: 100%;
}
#arrow_basket_sidebar  div#esolution_free_shipping_content{
	display: table;
}
@media screen and (max-width: 768px){
	#basket_sidebar {
    		z-index: 1000!important;
	}
}
