.icon-box_item .bx-basket {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cartline_wrapper {
    position: absolute;
    cursor: default;
    right: 0;
    padding-top: 12px;
    display: block;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: .3s ease-out top, .3s ease-out padding;
    transition: .3s ease-out top, .3s ease-out padding;
}

.header .sticky .cartline_wrapper {
    right: 65px;
}

.cartline_wrapper-wrp {
    max-height: 458px;
    padding: 20px 10px 20px 20px;
    width: 390px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background-color: #fff;
}

.wrp-btn-icons-basket:hover .cartline_wrapper {
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
}
.wrp-btn-icons-basket:hover .cartline_wrapper .cart-list-wrapper {
    opacity: 1;
    transition: 0.3s ease-out;
    pointer-events: auto;
    z-index: 1000;
}
.wrp-btn-icons-basket:hover .cartline_wrapper .cartline_footer {
    opacity: 1;
    transition: 0.3s ease-out;
    pointer-events: auto;
    z-index: 1000;
}

.cartline_wrapper .wrapper-inner {
    position: relative;
}

.cart-list-wrapper {
    opacity: 0;
    overflow: hidden;
    max-height: 360px;
    padding-right: 10px;
    scrollbar-color: var(--scroll-bar-dark) var(--scroll-bar-light);
    transition: 0.3s ease-out;
}
.cart-list-wrapper.customScroll{
    scrollbar-gutter: unset;
}

.cart-list-wrapper.customScroll::-webkit-scrollbar-track {
    border-radius: 5px;
}

.cart-list-wrapper.customScroll::-webkit-scrollbar {
    width: 2px;
    background: var(--scroll-bar-light);
}

.cart-list-wrapper.customScroll::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--scroll-bar-dark);
}

.cartline_wrapper .close-btn {
    cursor: pointer;
    width: 15px;
    height: 15px;
    background: none;
    opacity: .5;
    position: absolute;
    top: 50%;
    margin-top: -8px;
    /*right: 10px;*/
    right: 0;
    transition: 0.2s all linear;
}

.cartline_wrapper .close-btn svg {
    fill: currentColor;
}

.cartline_wrapper .close-btn:hover {
    transition: 0.2s all linear;
    opacity: 1;
}

.cart-list-item {
    padding: 20px 0;
    position: relative;
    border-bottom: solid 1px var(--border-bottom-gray);
}

.cart-list-item:first-child {
    padding-top: 0;
}

.cart-list-item:last-child {
    border: none;
}

.cart-list-item-wrapper-img {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-direction: column;
    flex-direction: column;
}

.cart-list-item-wrapper-img img {
    max-width: 100%;
    max-height: 100%;
}

.cart-list-item-img {
    margin-right: 16px;
}

.cart-list-item-name-box {
    color: var(--main_text_black);
    cursor: pointer;
    display: inline-block;
    margin-right: 32px;
}

.cart-list-item-name-box .item_name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 34px;
    padding: 0;
    overflow: hidden;
    font-weight: 400!important;
    font-size: 14px;
    line-height: 120%;
    margin-bottom: 10px;
    color: var(--main_text_black);
    transition: 0.2s all linear;
}

.cart-list-item-name-box .item_name:hover span {
    color: var(--main_active_red);
    transition: 0.2s all linear;
}

.cart-list-item-price .price {
    text-align: left;
    display: flex;
    align-items: end;
    justify-content: flex-start;
}

.cart-list-item-price {
    display: flex;
    align-items: center;
}

.cart-list-item-price .current-price {
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    color: var(--main_text_black);
    margin-right: 8px;
}

.cart-list-item-price .old-price {
    line-height: 100%;
    font-weight: 400;
    font-size: 12px;
    text-decoration-line: line-through;
    color: var(--old-price-gray);
    margin-right: 12px;
}
.cart-list-item-price .old-price span{
    color: var(--old-price-gray);
}

.cart-list-item-price .measure {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--main_text_black);
    margin-left: 0 !important;
}
.cart-list-item-dop-price{
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.cart-list-item-name-box .cart-list-item-price.cart-list-item-dop-price .item_name{
    font-size: 12px;
    margin: 0;
    max-width: 75%;
    overflow: hidden;
    max-height: 30px;
    color: var(--main-txt);
}
.cartline_wrapper-wrp .cart-list-item-dop-price .old-price{
    display: none;
}
.cart-list-item-price.cart-list-item-dop-price .current-price{
    font-size: 12px;
    margin-right: 0;
    white-space: nowrap;
}
.cartline_wrapper .product_item-link {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-align: left;
}

.cartline_wrapper .product-item-container {
}

.cartline_wrapper .swiper-wrapper {
    padding: 0 1px;
}

.cartline_wrapper .product_item_wrapper_img {
    height: 150px;
    line-height: 150px;
}

.cartline_wrapper .product_item_wrapper_img .product_item_img-bg {
    max-width: 90%;
    max-height: 90%;
    border: none;
}

.cartline_wrapper .product_item_name_box {
    height: 34px;
    font-size: 12px;
    padding: 0;
    margin: 10px 0;
    overflow: hidden;
}

.cartline_wrapper .product_item_name_box a.item_name {
    font-size: 12px;
    color: var(--main_link_color);
    text-align: left;
}

.product_item__cart.on-basket .product-item-amount, .bx-catalog-element.on-basket .product-detail-byu-container .product-item-amount {
    display: block;
}

.product-item-container:after, .product-item-container:before,
.bx-catalog-element .product-detail-byu-container .quantity-block:after, .bx-catalog-element .product-detail-byu-container .quantity-block:before {
    position: absolute;
    bottom: 5px;
    right: 5px;
    left: 5px;
    top: 5px;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

.bx-catalog-element .product-detail-byu-container .quantity-block:after, .bx-catalog-element .product-detail-byu-container .quantity-block:before {
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

.product-item-container:after, .bx-catalog-element .product-detail-byu-container .quantity-block:after {
    content: "";
    background-color: rgba(255, 255, 255, 0.8);
    margin: 15px;
    display: block;
    height: 95%;
    border-radius: 10px;
}

.product-item-container:before,
.bx-catalog-element .product-detail-byu-container .quantity-block:before {
    max-height: 222px;
}

.product-item-container.loader-on:after, .bx-catalog-element .product-detail-byu-container .quantity-block.loader-on:after {
    z-index: 1000;
}

.product-item-container.loader-on:before, .bx-catalog-element .product-detail-byu-container .quantity-block.loader-on:before {
    z-index: 1001;
}

.product-item-container.hover.loader-on:before,
.bx-catalog-element .product-detail-byu-container.hover .quantity-block.loader-on:before {
    height: 536px;
}

.product-item-container.loader-on:after, .product-item-container.loader-on:before,
.bx-catalog-element .product-detail-byu-container .quantity-block.loader-on:after, .bx-catalog-element .product-detail-byu-container .quantity-block.loader-on:before {
    opacity: 1;
    visibility: visible;
}

.cartline_footer {
    opacity: 0;
    padding-right: 10px;
    transition: 0.3s ease-out;
}
.basket-modal{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    background-color: rgba(0,0,0,0.3);
    z-index: 1095;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.basket-modal.show{
    opacity: 1;
    visibility: visible;
}
.basket-modal-content{
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 12px 24px rgb(0 0 0 / 20%);
    padding: 60px 40px 40px;
    position: relative;
}
.basket-modal-content-title{
    margin-bottom: 52px;
    color: var(--main_text_black);
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    display: flex;
    justify-content: center;
}
.header .btn-goods-link {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    max-width: 350px;
    font-size: 14px;
    line-height: 14px;
    background-color: var(--main_color);
    color: var(--main_text_black);
    font-weight: 500 !important;
    transition: 0.3s all linear;
}

.header .btn-goods-link:focus {
    background-color: var(--yellow-button-hover);
    transition: 0.3s all linear !important;
}

.header .btn-goods-link:hover {
    background-color: var(--yellow-button-hover);
    transition: 0.3s all linear !important;
}

.header .btn-goods-link:active {
    transform: scale(0.95);
    background-color: var(--yellow-button-hover)!important;
    transition: 0.3s transform linear !important;
}

@media (max-width: 900px) {
    .bx-basket .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .title_box .row {
        margin-left: -10px;
        margin-right: -10px;
    }
}

.icon-item.basket-icon svg {
    margin-right: 0px;
}

.btn-goods .btn-goods-link {
    padding: 14px 0;
}

@media (max-width: 1024px) {
    .icon-item.basket-icon svg {
        margin-right: 0px;
        fill: var(--main_color);
    }
}
@media (max-width: 768px){
    .cartline_wrapper{
        right: -37px;
    }
}
@media (max-width: 440px) {
    .cartline_wrapper-wrp{
        width: 320px;
    }
    .cart-list-item-name-box{
        margin-right: 16px;
    }
    .cart-list-item-price.cart-list-item-dop-price .current-price{
        margin-left: 4px;
    }
    .cart-list-item-img{
        margin-right: 12px;
    }
    .cart-list-item-price .price{
        flex-direction: column-reverse;
        margin-right: 12px;
        align-items: flex-start;
    }
    .cart-list-item-price .current-price{
        margin-right: 0;
    }
    .cart-list-item-price .price span:last-child{
        margin-right: 0;
        margin-bottom: 2px;
    }
    .cart-list-item-price{
        align-items: end;
    }
}