@keyframes sideMenuAnimation {
    0% {
        opacity: 0;
        transform: translate3d(100%,0,0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0);
    }
}


side-drawer {
    max-width: 600px;
    width: 100%;
    height: 100vh;
    border: none;
    animation: sideMenuAnimation 0.3s var(--ease) forwards;
    flex-direction: column;
    overscroll-behavior: contain;
    padding: 0;
    margin: 0;

    /* The rest here is only needed when not using popover api */
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    background-color: white;

    .button[popovertargetaction="close"], .button[toggle-by-aria-control] {
        padding: 0;
        --icon-size: 16px;
        width: 40px;
        height: 40px;
        flex-grow: 0;
        flex-shrink: 0;
        align-items: center;
        min-width: 40px;
        position: fixed;
        top: var(--spacing-0);
        right: var(--spacing-0);
        background-color: white;
        z-index: 2;
    }
}


side-drawer:popover-open {
    inset: 0 0 0 auto;
    height: 100dvh;
    overflow-y: auto;
    display: flex;
}
side-drawer::backdrop {

    background-color: rgba(0,0,0,0.2);

}

