.bx-basket {
}

.bx-basket-fixed {
    position: relative;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
}

.basket-line-block {
    position: relative;
    white-space: nowrap;
    font-size: 13px;
    text-align: center;
}

.profile-block {
    display: none;
}

.bx-basket-fixed .basket-line-block.profile-block {
    padding: 15px 15px 0;
}

.profile-login {
    display: block;
}

.basket-block {

}

.basket-line-block-icon-profile {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.basket-icon-block {
    position: relative;
    display: block;
    width: 80px;
    height: 60px;
    margin: 0 auto;
    background: url("images/cart.jpg") no-repeat;
    background-size: 70%;
    background-position: center;
    cursor: pointer;
}

.basket-line-block-icon-profile:after {
    position: absolute;
    top: -1px;
    left: -5px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
    background: no-repeat center url(images/profile.svg);
}

.basket-num-products {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    left: 44px;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    opacity: 1;
    visibility: hidden;
}

.basket-num-products.active {
    opacity: 1;
    visibility: visible;
}

.basket-total-price {
    text-align: center;
}

.personal-block {
    display: none;
}

.bx-basket-fixed .basket-line-block.personal-block {
    padding: 0 15px 5px;
}

.basket-line-block a:hover {
    text-decoration: underline;
}

.bx-basket-fixed.open .profile-block,
.bx-basket-fixed.open .personal-block {
    display: block;
}

/*FIXED BASKET*/

.bx-basket-fixed {
    position: fixed;
    z-index: 1005;
    width: auto;
    padding: 0;
    border: 1px solid #f0f0f0;
    border-radius: 1px;
    background: #fff;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
}

.bx-basket-fixed.bx-opener {
    top: 0 !important;
}

.bx-basket-fixed .basket-line-block {
    margin-left: 0;
    padding-left: 0;
}

.bx-basket-fixed.top {
    top: 10px;
}

.bx-basket-fixed.right {
    right: 0
}

.bx-basket-fixed.bottom {
    bottom: 10px
}

.bx-basket-fixed.left {
    left: 0
}

.bx-basket-fixed.bx-max-height {
    /*top: 10px;*/
    /*bottom: 10px;*/
}

@media all and (max-width: 991px){
    body {
        padding-bottom: 100px;
    }

    .bx-basket-fixed.vcenter {
        right: 0;
        left: 0;
        top: auto !important;
        bottom: 0;
    }

    .bx-basket-fixed .basket-line {
        display: -webkit-flex;
        display: flex;
    }

    .bx-basket-fixed .sidebar_block {
        position: relative;
        width: 100%;
    }

    .bx-basket-fixed .sidebar_block_border {
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.15);
    }

    .bx-basket-fixed .basket-num-products {
        left: calc(50% + 5px);
    }

    .bx-basket-fixed.bx-opener {
        top: 0 !important;
    }
}

.bx-basket-item-list {
    display: none;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f7f7f7;
}

.bx-basket-fixed.open .bx-basket-item-list {
    display: block;
}

.bx-opener .bx-basket-item-list {
    display: block;
    height: 100%;
    max-height: calc(100vh - 280px);
    top: 0 !important;
}

.bx-max-height .bx-basket-item-list {
    position: relative;

}

.bx-closed .bx-basket-item-list {
    overflow: hidden;
    height: 35px;
}

.bx-basket-item-list-action {
    position: relative;
    z-index: 120;
    padding: 10px 0;
    background: #ebebeb;
    color: #000;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
    cursor: pointer;
}

.bx-basket-item-list-button-container {
    position: relative;
    padding: 10px 15px;
    border-top: 1px solid #f7f7f7;
    background: #fff;
    text-align: center;
}

.bx-basket-item-list-container {
    overflow-y: auto;
    max-height: calc(100vh - 90px - 280px);
    padding: 0 5px;
    background: #ebebeb;
}

@media all and (max-width: 992px){
    .bx-basket-fixed.bx-opener {
        width: 100%;
        bottom: 0;
    }
}

.bx-basket-item-list-item {
    position: relative;
    padding-top: 15px;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    border: 2px solid #ebebeb;
    background: #fff;
}

.bx-basket-item-list-container .bx-basket-item-list-item:last-child {
    /*margin-bottom: 0;*/
    /*border-bottom: none;*/
}

.bx-basket-item-list-item-status {
    display: none;
    margin: 10px;
    padding: 3px;
    border-radius: 3px;
    background: #ebebeb;
    text-align: center;
    white-space: normal;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
}

.bx-basket-item-list-item-img {
    position: relative;
    padding-bottom: 5px;
    text-align: center;
}

.bx-basket-item-list-item-img img {
    max-width: 90px;
    height: auto;
    border: 1px solid #e6e6e6;
}

.bx-basket-item-list-item-name {
    padding-bottom: 5px;
}

.bx-basket-item-list-item-name a {
    font-size: 13px;
    line-height: 16px;
}

.bx-basket-item-list-item-name a:hover {
    text-decoration: underline;
}

.bx-basket-item-list-item-remove,
.basket-line-close {
    position: absolute;
    top: -7px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: .5;
    cursor: pointer;
    transition: 250ms linear all;
}

.basket-line-close {
    display: none;
    top: 0;
    left: 0;
    z-index: 2;
}

@media all and (max-width: 992px){
    .basket-line-close {
        top: 10px;
        left: auto;
        right: 10px;
    }
}

.bx-basket-fixed.open .basket-line-close {
    display: block;
}

.bx-basket-item-list-item-remove:after,
.bx-basket-item-list-item-remove:before,
.basket-line-close:after,
.basket-line-close:before {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background-color: #333;
    content: '';
    transform: translate(-50%, -50%);
}

.bx-basket-item-list-item-remove:after,
.basket-line-close:after {
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -moz-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    -o-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.bx-basket-item-list-item-remove:before,
.basket-line-close:before {
    -webkit-transform: translate(-50%, -50%) rotate(135deg);
    -moz-transform: translate(-50%, -50%) rotate(135deg);
    -ms-transform: translate(-50%, -50%) rotate(135deg);
    -o-transform: translate(-50%, -50%) rotate(135deg);
    transform: translate(-50%, -50%) rotate(135deg);
}

.bx-basket-item-list-item-remove:hover,
.basket-line-close:hover {
    opacity: .7;
}

.bx-basket-item-list-item-price-block {
    padding-bottom: 5px;
    font-size: 12px;
}

.bx-basket-item-list-item-price {
    display: inline-block;
    margin-right: 5px;
}

.bx-basket-item-list-item-price-old {
    display: inline-block;
    margin-right: 5px;
    color: #b0b0b0;
    text-decoration: line-through
}

.bx_cart_login_top .basket-line {
    line-height: 1.44em;
}

.sidebar_block {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px 5px;

}

.sidebar_block_border{
    border-bottom: 1px solid #A6A6A6;
}

.basket-line {
    min-width: 70px;
}