/* --- Base Styles --- */

aside.sidebar.fixed {
    position: fixed;
    top: 215px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    right: MIN(1%, 20px);
    z-index: 10;
    padding: 20px;
    background-color: var(--main-color);
    border-color: var(--main-color);
    border-width: 1px;
    border-style: solid;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    pointer-events: auto;
    box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s;
    animation: slide-close 0.3s ease-in-out forwards;
    /* --ssn-shadow: -4px 4px 12px rgba(0, 0, 0, .1);
    --ssn-shadow-colored: -4px 4px 12px var(--ssn-shadow-color); */
}

aside.sidebar.fixed .stickyElement {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: fit-content;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s;

}

aside.sidebar.fixed .stickyElement .head {
    display: flex;
    gap: 10px;
}

aside.sidebar.fixed .stickyElement .head .title {
    font-weight: 700;
    color: #000;
}

aside.sidebar.fixed .stickyElement .head .title.hidden {
    display: none;
}

aside.sidebar.fixed .stickyElement .options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

aside.sidebar.fixed .stickyElement .options .option {
    align-items: center;
    display: flex;
    gap: 12px;
}

aside.sidebar.fixed .stickyElement .options .option.wysiwyg {
    min-width: 300px;
    display: block;
    padding: 15px;
}

aside.sidebar.fixed .stickyElement .options .option:last-child {
    margin-bottom: 5px;
}

aside.sidebar.fixed .stickyElement .options .option > a {
    transition: color .3s ease-in-out;
    font-size: 16px;
    line-height: 1.62em;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: #fff;
    gap: 12px;
}

aside.sidebar.fixed .stickyElement .options .option > a:hover {
    text-decoration: underline;
}

aside.sidebar.fixed .stickyElement .options .option > a:hover .icon img {
    filter: drop-shadow(0px 0px 3px var(--main-color));
}

aside.sidebar.fixed .stickyElement .options .option .icon {
    display: flex;
    width: 28px;
    height: 28px;
}

aside.sidebar.fixed .stickyElement .options .option .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

aside.sidebar.fixed .stickyElement .options .option .link.hidden {
    display: none;
    font-size: 16px;
    line-height: 1.62em;
}

aside.sidebar.fixed .stickyElement .options .option.divider hr {
    margin: 5px 0;
    background: rgb(206, 206, 206);
    width: 100%;
}

aside.sidebar.fixed .stickyElement .options .option.hidden {
    display: none;
}


/* --- Hover, Focus, and Focus-Within States --- */



@media only screen and (min-width: 1024px) {
    aside.sidebar.fixed:hover .stickyElement .title.hidden,
    aside.sidebar.fixed:hover,
    aside.sidebar.fixed:focus,
    aside.sidebar.fixed:focus-within {
        animation: slide-open 0.5s ease-in-out forwards;
    }
    aside.sidebar.fixed:hover .stickyElement .options .option.hidden,
    aside.sidebar.fixed:hover .stickyElement .options .link.hidden,
    aside.sidebar.fixed:focus .stickyElement .title.hidden,
    aside.sidebar.fixed:focus .stickyElement .options .option.hidden,
    aside.sidebar.fixed:focus .stickyElement .options .link.hidden,
    aside.sidebar.fixed:focus-within .stickyElement .title.hidden,
    aside.sidebar.fixed:focus-within .stickyElement .options .option.hidden,
    aside.sidebar.fixed:focus-within .stickyElement .options .link.hidden {
        display: flex;
        align-items: center;
    }

    aside.sidebar.fixed:hover .stickyElement .title.hidden.wysiwyg,
    aside.sidebar.fixed:hover .stickyElement .options .option.hidden.wysiwyg,
    aside.sidebar.fixed:hover .stickyElement .options .link.hidden.wysiwyg,
    aside.sidebar.fixed:focus .stickyElement .title.hidden.wysiwyg,
    aside.sidebar.fixed:focus .stickyElement .options .option.hidden.wysiwyg,
    aside.sidebar.fixed:focus .stickyElement .options .link.hidden.wysiwyg,
    aside.sidebar.fixed:focus-within .stickyElement .title.hidden.wysiwyg,
    aside.sidebar.fixed:focus-within .stickyElement .options .option.hidden.wysiwyg,
    aside.sidebar.fixed:focus-within .stickyElement .options .link.hidden.wysiwyg {
        display: block;
    }
}




/* --- Media Queries --- */

@media ((max-width: 640px) and (max-height: 700px)) {

    aside.sidebar.fixed .stickyElement {
        padding: 0;
    }

    aside.sidebar.fixed .stickyElement .options:not(.no-hs) {
        display: none;
    }

    aside.sidebar.fixed:hover .stickyElement .options,
    aside.sidebar.fixed:focus .stickyElement .options,
    aside.sidebar.fixed:focus-within .stickyElement .options {
        display: flex;
    }
}
@media only screen and (max-width: 1024px) {
    aside.sidebar.fixed {
        padding: 16px;
    }
    aside.sidebar.fixed .stickyElement .options {
        gap: 20px;
    }
    aside.sidebar.fixed .stickyElement .options .option .icon {
        width: 20px;
        height: 20px;
    }
}
@media only screen and (max-width: 768px) {
    aside.sidebar.fixed {
        padding: 12px;
    }
    aside.sidebar.fixed .stickyElement .options .option .icon {
        width: 18px;
        height: 18px;
    }
    aside.sidebar.fixed .stickyElement .options .option .link.hidden {
        font-size: 14px;
    }
}

@keyframes slide-open {
    0% {
        transform: translateX(100px);
    }
    100% {
        transform: translateX(0);
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        right: 0;
    }
}

@keyframes slide-close {
    0% {
        transform: translateX(0);
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        right: 0;
    }
    100% {
        right: MIN(1%, 20px);
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
        border-top-right-radius: 50px;
        border-bottom-right-radius: 50px;
    }
}