
aside.sidebar.fixed {
    position: fixed;
    bottom: 50%;
    transform: translateY(50%);
    /* right: max(0px, calc((100% - 1920px) / 2)); */
    right: 0;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;

    &:focus,
    &:focus-visible,
    &:hover,
    &:focus-within {
        z-index: 10001;
    }
    @media screen and (max-width: 640px) {
        bottom: 10px;
        right: -6px;
        transform: none;
    }

    @media screen and (max-width: 768px) {
        margin-bottom: 20px;
    }
    &:focus,
    &:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    &:focus .stickyElement,
    &:focus-visible .stickyElement {
        .head {
            gap: 18px;
        }
        .head .title {
            max-width: 300px;
            opacity: 1;
            visibility: visible;
        }
        .options {
            display: flex;
        }
        .option {
            gap: 18px;
            a {
                gap: 10px;
            }
            .link {
                max-width: 300px;
                opacity: 1;
                visibility: visible;
            }
            &.wysiwyg{
                /* min-width: 300px; */
                /* display: block; */
                /* padding: 15px; */
            }
        }
    }

    @media screen and (max-width: 640px) {
        &:focus,
        &:focus-visible {
            outline: 3px solid #fff;
            outline-offset: 3px;
        }

        &:active {
            outline: 3px solid #fff;
            outline-offset: 3px;
        }

        &:focus .stickyElement,
        &:focus-visible .stickyElement {
            position: absolute;
            bottom: 10px;
            right: 0;
            padding: 15px 15px 5px 10px;
            .head {
                gap: 18px;
            }
            .head .title {
                max-width: 300px;
                opacity: 1;
                visibility: visible;
            }
            .options {
                display: flex;
            }
            .option {
                gap: 18px;
                a {
                    gap: 10px;
                }
                .link {
                    max-width: 300px;
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }

    .stickyElement {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 20px 7px;
        background-color: var(--secondColor);
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        transition: all 0.4s ease;
        /* transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s; */
        @media screen and (max-width: 640px) {
            padding: 10px;
        }
        .head {
            display: flex;
            align-items: center;
            /* gap: 18px; */

            .image {
                border-radius: 50%;
                overflow: hidden;
                width: 44px;
                height: 44px;
                @media screen and (max-width: 640px) {
                    width: 34px;
                    height: 34px;
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .title {
                font-size: 16px;
                line-height: 162.5%;
                font-weight: 700;
                color: #fff;
                max-width: 0;
                opacity: 0;
                visibility: hidden;
                overflow: hidden;
                white-space: nowrap;
                transition: all 0.4s ease;

                @media screen and (max-width: 640px) {
                    font-size: 15px;
                }
                &.hidden{
                    /* display: none; */
                }
            }
        }
        .options {
            display: flex;
            flex-direction: column;
            @media screen and (max-width: 640px) {
                display: none;
            }

            .option {
                align-items: center;
                display: flex;

                a {
                    display: flex;
                    align-items: center;
                    color: #fff;
                    transition: all 0.3s ease;
                    text-decoration: none;
                    outline: none;
                    &:hover {
                        /* color: #0D4E52; */
                    }
                    &:focus,
                    &:focus-visible {
                        outline: 2px solid #fff;
                        outline-offset: 2px;
                    }
                    @media screen and (max-width: 640px) {
                        &:focus,
                        &:focus-visible {
                            outline: 3px solid #fff;
                            outline-offset: 3px;
                        }
                        &:active {
                            outline: 3px solid #fff;
                            outline-offset: 3px;
                        }
                    }
                }

                &.wysiwyg{
                    display: block;
                }
                &.wysiwyg.hidden {
                    display: none;
                }

                .icon {
                    padding: 13px 7px;
                    display: flex;
                    border-top: 1px solid rgba(255,255,255,0.4);

                    img {
                        width: 28px;
                        max-height: 28px;
                        object-fit: contain;
                        filter: brightness(0) invert(1);
                        transition: all .3s ease-in-out;
                        @media screen and (max-width: 640px) {
                            width: 18px;
                            max-height: 18px;
                        }
                    }
                }
                .link {
                    max-width: 0;
                    opacity: 0;
                    visibility: hidden;
                    overflow: hidden;
                    white-space: nowrap;
                    transition: all 0.4s ease;
                    a{
                        transition: color .3s ease-in-out;
                        font-size: 16px;
                        line-height: 162.5%;
                        color: #fff;;
                        text-decoration: none;
                        white-space: nowrap;
                        @media screen and (max-width: 640px) {
                            font-size: 15px;
                        }
                        &:hover {
                            /* color: #0D4E52; */
                        }
                    }
                    &.hidden{
                        /* display: none; */
                    }
                }
                &.divider{
                    hr{
                        display: none;
                        /* margin: 5px 0;
                        background: rgb(206, 206, 206);
                        width: 100%; */

                        /* margin: 5px 0;
                        background: rgb(206, 206, 206);
                        width: 100%;
                        height: 1px;
                        border: none;
                        max-height: 0;
                        opacity: 0;
                        visibility: hidden;
                        transition: all 0.4s ease; */
                    }
                }
                &.hidden{
                    /* display: none; */
                }
            }
        }
    }
    &:hover,
    &:focus,
    &:focus-within{
        .stickyElement{
            @media screen and (max-width: 640px) {
                position: absolute;
                bottom: 10px;
                right: 0;
                padding: 15px 15px 5px 10px;
            }
            .head {
                gap: 18px;
            }
            .head .title {
                max-width: 300px;
                opacity: 1;
                visibility: visible;
            }
            .title.hidden,
            .options .option.hidden,
            .options .link.hidden{
                /* display: flex;
                align-items: center; */
            }
            .options{
                @media screen and (max-width: 640px) {
                    display: flex;
                }
                .option {
                    gap: 18px;
                    a {
                        gap: 10px;
                        text-decoration: none;
                        outline: none;
                        &:hover {
                            color: #0D4E52;
                            .icon {
                                img {
                                    filter: none;
                                }
                            }
                        }
                        &:focus,
                        &:focus-visible {
                            outline: 2px solid #fff;
                            outline-offset: 2px;
                        }
                        @media screen and (max-width: 640px) {
                            &:focus,
                            &:focus-visible {
                                outline: 3px solid #fff;
                                outline-offset: 3px;
                            }
                            &:active {
                                outline: 3px solid #fff;
                                outline-offset: 3px;
                            }
                        }
                    }
                    .link {
                        max-width: 300px;
                        opacity: 1;
                        visibility: visible;
                    }
                    &.wysiwyg.hidden {
                        display: block;
                        max-width: 300px;
                        padding: 15px 0;
                        @media screen and (max-width: 640px) {
                            min-width: 50vw;
                        }
                    }

                    &.divider hr {
                        /* max-height: 1px;
                        opacity: 1;
                        visibility: visible; */
                    }
                }
            }
        }
    }
}
