#popup-add-to-basket .flip-container {
    height: 592px;
}

#popup-add-to-basket .flip-front {
    height: 100%;
    padding: 16px 0;
}

#popup-add-to-basket .flip-header {
    max-width: calc(100% - 48px);
    padding-left: 16px;
}

#popup-add-to-basket .flip-content {
    margin-top: 12px;
    height: calc(100% - 224px);
    width: 100%;
}

.basket-products-title {
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    letter-spacing: 0.15px;
    color: #263238;
    margin-bottom: 8px;
    padding: 0 16px;
}
.basket-products-title:not(:first-child) {
    margin-top: 24px;
}

.basket-product {
    width: 100%;
}

.basket-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 224px;
    height: 224px;
    margin: 0 auto;

    padding: 0 16px;
}
.basket-product-image img, .basket-complect-product-image img {
    max-height: 100%;
}

.basket-product-name {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: #455A64;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    max-height: 40px;

    padding: 0 16px;
}

.basket-product-price {
    display: inline-block;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #263238;
    margin-top: 7px;
    margin-right: 24px;

    padding-left: 16px;
}
.basket-complect-expand {
    display: inline-block;
    position: relative;
    bottom: 2px;
    font-weight: 500;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #455A64;
}
.basket-complect-expand:hover {
    cursor: pointer;
    color: #008DEE;
}
.flip-arrow-down {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
    top: -1px;
    left: 2px;
    transition: all 300ms ease-in-out;
}
.flip-arrow-down:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #008DEE;
    border-left: 2px solid #008DEE;
    transform: rotate(-45deg);
}
.flip-complect-opened .flip-arrow-down {
    transform: rotate(180deg);
    top: 1px;
    left: -2px;
}


.basket-complect-products {
    display: none;
    background-color: #FAFAFA;
    position: relative;

    padding: 8px 16px;
}

.basket-complect-product {
    max-height: 83px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.basket-complect-product:last-child {
    margin-bottom: 0;
}


.basket-complect-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-right: 8px;
    border: 1px solid #B3E5FC;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 2px;
}
.basket-complect-product-info {
    width: calc(100% - 74px);
}
.basket-complect-product-price {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.15px;
    color: #263238;
    margin-bottom: 7px;
}
.basket-complect-product-qty {
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    letter-spacing: 0.4px;
    color: #B0BEC5;
    margin-left: 16px;
}
.basket-complect-product-name {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: #455A64;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    max-height: 60px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


.basket-product-hr {
    height: 1px;
    width: 156px;
    background-color: #CFD8DC;
    margin: 16px auto;
}


#popup-add-to-basket .flip-footer {
    margin: 0;
    text-align: center;
    padding: 0 16px;
}


#popup-add-to-basket .flip-close-btn {
    display: block;
    height: 48px;
    border-radius: 40px;

    font-weight: 500;
    font-size: 14px;
    line-height: 48px;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    color: #008DEE;
}
#popup-add-to-basket .flip-close-btn:hover {
    color: #1976D2;
    cursor: pointer;
}
#popup-add-to-basket .flip-submit {
    margin-top: 16px;
}
#popup-add-to-basket .flip-oneclick {
    background: none;
    border-color: #ECEFF1;
    color: #78909C;
    padding: 0;
    line-height: 48px;
    margin-top: 14px;
}
#popup-add-to-basket .flip-oneclick:hover {
    cursor: pointer;
    border-color: #FAFAFA;
    background: #FAFAFA;
}
#popup-add-to-basket .flip-oneclick:before {
    width: 24px;
    font-size: 24px;
    color: #78909C;
    position: relative;
    top: 5px;
    margin-right: 17px;
}

#popup-add-to-basket .mCSB_inside>.mCSB_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-right: 0;
}



#popup-add-to-basket.add-to-basket-cart .flip-container {
    height: auto;
}
#popup-add-to-basket.add-to-basket-cart .flip-footer {
    display: none;
}



@media (max-width: 767px) {
    #popup-add-to-basket.in .flip-container {
        width: 100%;
        min-height: 400px;
    }

    #popup-add-to-basket .flip-front {
        min-height: unset;
    }

    #popup-add-to-basket .flip-header {
        padding-top: 9px;
    }
    #popup-add-to-basket .flip-close {
        top: 22px;
    }

    #popup-add-to-basket .flip-content {
        height: auto;
        max-height: calc(100% - 213px);
        margin-top: 6px;
    }

    #popup-add-to-basket .basket-product-image {
        width: auto;
    }

    .basket-complect-expand:hover {
        color: #455A64;
    }
}

@media (min-width: 768px) and (max-height: 600px) {
    #popup-add-to-basket .flip-container {
        height: 480px;
    }

    #popup-add-to-basket .flip-front {
        padding: 8px 0;
    }

    #popup-add-to-basket .mCSB_inside>.mCSB_container {
        padding: 0;
    }

    #popup-add-to-basket .flip-content {
        margin-top: 8px;
        height: calc(100% - 210px);
    }

    .basket-product-image {
        width: 160px;
        height: 160px;
    }

    #popup-add-to-basket .flip-oneclick {
        margin-top: 0;
    }

    #popup-add-to-basket .flip-submit {
        margin-top: 12px;
    }
}

@media (max-width: 767px) and (max-height: 639px) {
    #popup-add-to-basket .flip-content {
        max-height: calc(100% - 175px);
    }

    #popup-add-to-basket .flip-close-btn {
        height: 40px;
        line-height: 40px;
    }
    #popup-add-to-basket .flip-oneclick {
        margin-top: 8px;
        padding: 0;
        height: 40px;
        line-height: 40px;
    }
    #popup-add-to-basket .flip-submit.flip-basket {
        height: 40px;
        margin-top: 8px;
        padding: 12px 0;
    }
}