.catalog-cart-block {
    overflow: hidden;
    position: fixed;
    top: 312px;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 83px;
    background-size: 74%;
    background-color: #FFD7E1;
    border-radius: 10px 0 0 10px;
    background-position-x: 14px;
    box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.2);
    z-index: 110;
    transition: all 0.3s ease;
}
.catalog-cart-block svg {
    display: block;
    width: 54px;
    height: 51px;
    margin-right: -7px;
    flex: 0 0 auto;
}

.catalog-cart-block .svg-malina {
    color: #F63F95;
}

.catalog-cart-block .text {
    display: none;
    margin: 0;
}

.catalog-cart-block:hover {
    color: white;
    background-color: #F63F95;
    /* background-size: 84%; */
    /* padding-inline: 15px 20px; */
    /* width: unset; */
    width: 160px;
}

.catalog-cart-block:hover .svg-malina {
    color: #FFD7E1;
}
.catalog-cart-block:hover svg {
    margin: 0;
}

.catalog-cart-block:hover .text {
    display: inline;
}

.catalog-cart-counter {
    background: white;
    color: black;
    text-align: center;
    line-height: 21px;
    min-width: 21px;
    position: absolute;
    top: 11px;
    left: 30px;
    border-radius: 50%;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    -webkit-animation-name: bounceIn;
    animation-name: bounceIn;
    -webkit-animation-duration: .75s;
    animation-duration: .75s;
    -webkit-animation-fill-mode: backwards;
    animation-fill-mode: backwards;
    -webkit-animation-delay: 500ms;
    animation-delay: 500ms;
}

.catalog-cart-block:hover .catalog-cart-counter {
    left: 36px;
}

@-webkit-keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(.9, .9, .9);
        transform: scale3d(.9, .9, .9);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(.97, .97, .97);
        transform: scale3d(.97, .97, .97);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(.9, .9, .9);
        transform: scale3d(.9, .9, .9);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(.97, .97, .97);
        transform: scale3d(.97, .97, .97);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}


@media(max-width: 768px) {
    .catalog-cart-block {
        top: 140px;
        width: 40px;
        height: 44px;
        background-position: center;
    }
    .catalog-cart-counter {
        top: 2px;
        font-size: 12px;
        line-height: 12px;
        min-width: 12px;
        left: 25px;
    }

    .catalog-cart-block svg {
        width: 25px;
        height: 27px;
    }
}
