.b_user_inf_aside{
    position: sticky;
    top: calc(var(--header_heigth) + 10px);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100svh - (var(--header_heigth) + 20px));
    height: fit-content;
    width: 100%;

    .aside_section{
        background: #f7f7f7;
        margin-bottom: 5px;

        font-size: 14px;
        color: #282828;

        .section_header{
            padding: 10px 7px;
            &:has(.count_elements_in_section) {padding: 0;}
            background: #ebf0ef;

            display: flex;
            align-items: center;
            &:has(.left_part_section_header){justify-content: space-between;}
            gap: 10px;
            margin-bottom: 10px;

            font-size: 16px;
            color: #000;

            .left_part_section_header{
                display: flex;
                align-items: center;
                gap: 10px;
            }

            img:not(.caret){width: 16px;filter: var(--grey_icon_filter);}

            .caret{
                height: 22px;
                display: block;
                rotate: var(--rotate, 270deg);
                transition: 0.3s ease all;
            }

            .count_elements_in_section{
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 5px;

                background: #8b9796;
                color: #fff;
                text-decoration: none;

                width: 60px;
                min-width: 60px;
                padding: 7px 5px;

                img{
                    width: 20px;
                    display: block;
                    filter: var(--white_icon_filter);
                }

                &.updated{
                    animation: 1s ease-in-out 1 UpdateCountElementsInSectionAnimation;
                }
                &:hover{background: #0096cd;}
            }

            &:hover{
                background: #dbe0df;
            }
        }

        .section_body{
            padding: 10px 7px;
            margin-top: 10px;

            .ghost_block{
                --to_heigth: 100px;
                height: var(--to_heigth);
                width: 100%;
                display: block;

                &.animated{
                    height: 0;
                    animation-name: UserInfAsideGhostBlockAnimation;
                    animation-fill-mode: forwards;
                    animation-timing-function: ease;
                    animation-duration: 0.5s;
                    animation-iteration-count: 1;
                }
            }

            .section_row_link{
                --filter: var(--grey_icon_filter);
                display: flex;
                gap: 10px;
                align-items: center;
                cursor: pointer;

                color: #282828;
                text-decoration: none;

                margin-bottom: 10px;
                &:last-of-type{margin-bottom: 0;}

                img{
                    height: 14px;
                    display: block;
                    filter: var(--filter);
                }

                &:hover{
                    --filter: var(--hovered_icon_filter);
                    color: var(--hovered_text_color);
                }
            }

            .cart_or_favor_section_bottom_panel{
                margin-top: 15px;

                .total_price{
                    width: 100%;
                    margin-bottom: 5px;

                    font-size: 15px;
                    font-weight: 400;
                    text-align: right;
                }

                .btm_panel_controls{
                    display: flex;
                    gap: 10px;

                    .delete_all{
                        --filter: var(--light_grey_icon_filter);
                        padding: 5px;
                        cursor: pointer;

                        border: 1px solid #acb5b4;
                        img{
                            width: 15px;
                            display: block;
                            filter: var(--filter);
                        }

                        div{font-size: 12px;color: #acb5b4;}
                        &:has(div){display: flex;align-items:center;gap: 5px;}
                        &:hover{
                            --filter: var(--red_icon_filter);
                            border: 1px solid #ff0000;
                            div{color: #ff0000;}
                        }
                    }

                    .procced_to_checkout{
                        display: flex;
                        flex-grow: 1;
                        justify-content: center;
                        align-items: center;
                        gap: 2px;

                        font-size: 12px;
                        color: #fff;
                        text-decoration: none;

                        cursor: pointer;
                        background: #008ac4;
                        padding: 5px;
                        border: 1px #008ac4 solid;

                        img{width: 15px;display: block;filter: var(--white_icon_filter);rotate: 270deg;}

                        &:hover{background: #006691;}
                    }
                }
            }
        }

        &[data-accordion="true"] {
            .section_header{cursor: pointer;}
            .section_body{display: none;}
            &.open{
                .section_header .caret{--rotate: 180deg;}
                .section_body{display: block;}
            }
        }
    }

    @media(max-width: 1024px){display: none;}
}

@keyframes UpdateCountElementsInSectionAnimation {
    0% {
        scale: 1;
    }
    50% {
        background: #0096cd;
        scale: 1.11;
    }
    100%{
        background: #8b9796;
        scale: 1;
    }
}

@keyframes UserInfAsideGhostBlockAnimation {
    from {
        heigth: 0px;
    }
    to {
        height: var(--to_heigth);
    }
}