body,
main {
    overflow-x: hidden;
}

/*noinspection CssOverwrittenProperties*/
.king-addons-off-canvas {
    position: fixed;
    overflow: auto;
    transition: all 600ms ease;
    max-height: 100vh;
    /* Safari fix */
    max-height: 100svh;
}

/* Hide scrollbar */
.king-addons-off-canvas::-webkit-scrollbar {
    display: none;
}

.king-addons-off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.king-addons-off-canvas-close-button {
    line-height: 1;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: min-content;
    height: min-content;
    padding: 10px;
    cursor: pointer;
}

.king-addons-off-canvas-position-left,
.king-addons-off-canvas-position-right {
    height: 100%;
    width: 100%;
}

.king-addons-off-canvas-position-top,
.king-addons-off-canvas-position-bottom {
    width: 100%;
}

.king-addons-off-canvas-position-top,
.king-addons-off-canvas-position-left {
    top: 0;
    left: 0;
}

.king-addons-off-canvas-position-bottom {
    bottom: 0;
    left: 0;
}

.king-addons-off-canvas-position-right {
    top: 0;
    right: 0;
}

.king-addons-off-canvas-animation-fade {
    opacity: 0;
}

.king-addons-off-canvas-animation-fade.king-addons-off-canvas-active {
    opacity: 1;
}

.king-addons-off-canvas-position-top.king-addons-off-canvas-animation-slide {
    transform: translate3d(0, -100%, 0);
}

.king-addons-off-canvas-position-right.king-addons-off-canvas-animation-slide {
    transform: translate3d(100%, 0, 0);
}

.king-addons-off-canvas-position-bottom.king-addons-off-canvas-animation-slide {
    transform: translate3d(0, 100%, 0);
}

.king-addons-off-canvas-position-left.king-addons-off-canvas-animation-slide {
    transform: translate3d(-100%, 0, 0);
}

.king-addons-off-canvas-position-top.king-addons-off-canvas-animation-slide.king-addons-off-canvas-active,
.king-addons-off-canvas-position-right.king-addons-off-canvas-animation-slide.king-addons-off-canvas-active,
.king-addons-off-canvas-position-bottom.king-addons-off-canvas-animation-slide.king-addons-off-canvas-active,
.king-addons-off-canvas-position-left.king-addons-off-canvas-animation-slide.king-addons-off-canvas-active {
    transform: translate3d(0, 0, 0);
}

.king-addons-off-canvas-button {
    display: inline-block;
    transition: all .3s;
}