body.cgs-with-slip-slidin-away {
    overflow: hidden;
    min-height: 100%;
}

#cgs-slip-slidin-away-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background: rgba(0, 0, 0, .8);
    cursor: pointer;
    opacity: 0;
}

body>.cgs-slip-slidin-away {
    z-index: 1001;
    position: fixed;
    top: 0;
    min-height: 100%;
    padding: 20px;
    margin: 0;
    background-color: #fff;
    box-sizing: border-box;
    animation-duration: 0.3s;
    animation-name: cgs-slip-slidin-away-open-full;
    left: 0px;
    width: 100%;
}
body>.cgs-slip-slidin-away.cgs-slip-slidin-away-closing {
	left: 100%;
	animation-name: cgs-slip-slidin-away-close-full;
}

@media screen and (min-width: 500px) {
    #cgs-slip-slidin-away-backdrop {
        opacity: 1;
    }
	body>.cgs-slip-slidin-away {
        left: auto;
        width: 400px;
        right: 0px;
        animation-name: cgs-slip-slidin-away-open-partial;
    }
    body>.cgs-slip-slidin-away.cgs-slip-slidin-away-closing {
        left: auto;
        right: -400px;
        animation-name: cgs-slip-slidin-away-close-partial;
    }
}

@keyframes cgs-slip-slidin-away-open-full {
    from { left: 100%; }
    to { left: 0px; }
}
@keyframes cgs-slip-slidin-away-close-full {
    from { left: 0px; }
    to { left: 100%; }
}

@keyframes cgs-slip-slidin-away-open-partial {
    from { right: -400px; }
    to { right: 0px; }
}
@keyframes cgs-slip-slidin-away-close-partial {
    from { right: 0px; }
    to { right: -400px; }
}

body>.cgs-slip-slidin-away>.cgs-slip-slidin-away-close,
    body>.cgs-slip-slidin-away>.cgs-slip-slidin-away-close:link,
    body>.cgs-slip-slidin-away>.cgs-slip-slidin-away-close:visited {
    float: right;
    display: block;
    color: #777;
    text-decoration: none;
    font-size: 2em;
    line-height: normal;
    margin:0;
    padding:0;
    border:0;
    background-color: inherit;
}
