.pp-no-trans {
    transition: none;
}

.pp-icon {
	display: inline-block;
	line-height: 1;
	text-align: center;
    transition: all .3s;
}

.pp-icon i,
.pp-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}

.pp-offcanvas-hide {
    display: none !important;
}

.pp-floating-element {
	position: fixed;
	z-index: 999;

	.pp-floating-element-align-top-left & {
		top: 0;
		inset-inline-start: 0;
	}

	.pp-floating-element-align-top-right & {
		top: 0;
		inset-inline-end: 0;
	}

	.pp-floating-element-align-top-center & {
		top: 0;
		inset-inline-start: 50%;
		transform: translateX(-50%);
	}

	.pp-floating-element-align-middle-left & {
		top: 50%;
		inset-inline-start: 0;
		transform: translateY(-50%);
	}

	.pp-floating-element-align-middle-right & {
		top: 50%;
		inset-inline-end: 0;
		transform: translateY(-50%);
	}

	.pp-floating-element-align-bottom-left & {
		bottom: 0;
		inset-inline-start: 0;
	}

	.pp-floating-element-align-bottom-right & {
		bottom: 0;
		inset-inline-end: 0;
	}

	.pp-floating-element-align-bottom-center & {
		bottom: 0;
		inset-inline-start: 50%;
		transform: translateX(-50%);
	}
}

.pp-offcanvas-open.pp-offcanvas-top.pp-offcanvas-reset,
.pp-offcanvas-open.pp-offcanvas-bottom.pp-offcanvas-reset {
	margin-top: 0 !important;
}

.pp-offcanvas-toggle {
	cursor: pointer;
}

.pp-offcanvas-container {
	position: relative;
    inset-inline-start: 0;
    z-index: 99;
    transition: transform 0.5s;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        inset-inline-end: 0;
        width: 0;
        height: 0;
        background: rgba(0,0,0,0.2);
        opacity: 0;
        transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
    }
}

.pp-offcanvas-open {
	overflow: hidden;

    .pp-offcanvas-container::after {
        width: 100%;
        height: 100%;
        opacity: 1;
        transition: opacity 0.5s;
        z-index: 100001;
    }
}

.pp-offcanvas-content {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 100;
    visibility: hidden;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
    transition: all 0.5s;

    &.pp-offcanvas-right {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }

    &.pp-offcanvas-top,
    &.pp-offcanvas-bottom {
        width: 100%;
        height: 300px;
    }

    &.pp-offcanvas-bottom {
        top: auto;
        bottom: 0;
    }

    .pp-offcanvas-header {
        padding: 20px;
        text-align: end;
    }

    .pp-offcanvas-close {
        position: relative;
        cursor: pointer;
        display: inline-block;
        line-height: 1;
        z-index: 1;
        font-style: normal;
        font-family: Helvetica, Arial, sans-serif;
        font-weight: 100;
        font-size: 24px;
		margin: 0;
    }

    .pp-offcanvas-body {
        padding-inline-start: 20px;
        padding-inline-end: 20px;
    }
}

.pp-offcanvas-toggle-wrap {

    .pp-offcanvas-toggle {
        display: inline-flex;
        align-items: center;
    }
}

.pp-offcanvas-icon-before {

    .pp-offcanvas-toggle-icon {
        margin-inline-end: 5px;
    }
}

.pp-offcanvas-icon-after {

    .pp-offcanvas-toggle-icon {
        order: 2;
        margin-inline-start: 5px;
    }
}

.pp-offcanvas-content.pp-offcanvas-slide {
	transform: translate3d(-100%, 0, 0);

	&.pp-offcanvas-right {
		transform: translate3d(100%, 0, 0);
	}

	&.pp-offcanvas-top {
		transform: translate3d(0, -100%, 0);
	}

	&.pp-offcanvas-bottom {
		transform: translate3d(0, 100%, 0);
	}
}

.pp-offcanvas-content.pp-offcanvas-reveal {
	z-index: 1;
}

.pp-offcanvas-content-slide {

    &.pp-offcanvas-open {

        .pp-offcanvas-content.pp-offcanvas-visible {
            visibility: visible;
            transform: translate3d(0, 0, 0);
        }
    }
}

.pp-offcanvas-left.pp-offcanvas-push {
	transform: translate3d(-100%, 0, 0);
}

.pp-offcanvas-right.pp-offcanvas-push {
	transform: translate3d(100%, 0, 0);
}

.pp-offcanvas-top.pp-offcanvas-push {
	transform: translate3d(0, -100%, 0);
}

.pp-offcanvas-bottom.pp-offcanvas-push {
	transform: translate3d(0, 100%, 0);
}

.pp-offcanvas-content-push {

    &.pp-offcanvas-open {

        .pp-offcanvas-content.pp-offcanvas-visible {
			visibility: visible;
			transition: transform 0.5s;
		}

        &.pp-offcanvas-left {

            .pp-offcanvas-container {
                transform: translate3d(300px, 0, 0);
            }
        }

        &.pp-offcanvas-right {

            .pp-offcanvas-container {
                transform: translateX(-300px);
            }
        }

        &.pp-offcanvas-top {

            .pp-offcanvas-container {
                transform: translate3d(0, 300px, 0);
            }
        }

        &.pp-offcanvas-bottom {

            .pp-offcanvas-container {
                transform: translate3d(0, -300px, 0);
            }
        }

        &.pp-offcanvas-left,
        &.pp-offcanvas-right,
        &.pp-offcanvas-top,
        &.pp-offcanvas-bottom {

            .pp-offcanvas-content {
                transform: translate3d(0, 0, 0);
            }
        }
    }
}

.pp-offcanvas-content-reveal {

    .pp-offcanvas-container {
        background: #fff;
        overflow: hidden;
    }

	&.pp-offcanvas-open {
		position: relative;
    	overflow: hidden;

		.pp-offcanvas-content.pp-offcanvas-visible {
			visibility: visible;
			transition: transform 0.5s;
		}

        &.pp-offcanvas-left {

            .pp-offcanvas-container {
                transform: translate3d(300px, 0, 0);
            }
        }

        &.pp-offcanvas-right {

            .pp-offcanvas-container {
                transform: translate3d(-300px, 0, 0);
            }
        }

        &.pp-offcanvas-top {

            .pp-offcanvas-container {
                transform: translate3d(0, 300px, 0);
            }
        }

        &.pp-offcanvas-bottom {

            .pp-offcanvas-container {
                transform: translate3d(0, -300px, 0);
            }
        }
	}

    &.pp-offcanvas-bottom {

        .pp-offcanvas-container {
            height: 100%;
        }
    }
}

.pp-offcanvas-left.pp-offcanvas-slide-along {
	z-index: 1;
	transform: translate3d(-50%, 0, 0);
}

.pp-offcanvas-right.pp-offcanvas-slide-along {
	z-index: 1;
	transform: translate3d(50%, 0, 0);
}

.pp-offcanvas-top.pp-offcanvas-slide-along {
	z-index: 1;
	transform: translate3d(0, -50%, 0);
}

.pp-offcanvas-bottom.pp-offcanvas-slide-along {
	z-index: 1;
	transform: translate3d(0, 50%, 0);
}

.pp-offcanvas-content-slide-along {

    .pp-offcanvas-container {
        background: #fff;
        overflow: hidden;
    }

	&.pp-offcanvas-open {

		.pp-offcanvas-content.pp-offcanvas-visible {
			visibility: visible;
			transition: transform 0.5s;
			transform: translate3d(0, 0, 0);
		}

        &.pp-offcanvas-left {

            .pp-offcanvas-container {
                transform: translate3d(300px, 0, 0);
            }
		}

        &.pp-offcanvas-right {

            .pp-offcanvas-container {
                transform: translate3d(-300px, 0, 0);
            }
		}

        &.pp-offcanvas-top {

            .pp-offcanvas-container {
                transform: translate3d(0, 300px, 0);
            }
        }

        &.pp-offcanvas-bottom {

            .pp-offcanvas-container {
                transform: translate3d(0, -300px, 0);
            }
        }
	}

    &.pp-offcanvas-bottom {

        .pp-offcanvas-container {
            height: 100%;
        }
    }
}

.pp-hamburger-label {
    display: inline-block;
    margin-inline-start: 10px;
}

.admin-bar {

	.pp-offcanvas-left,
	.pp-offcanvas-right {
		top: 32px;
	}
}


/* Nav Menu content type */
.pp-offcanvas-menu {
	list-style: none;
	margin: 0;
	padding: 0;

	li {
		list-style: none;
		margin: 0;
	}

	.menu-item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.menu-item > a {
		flex: 1 1 auto;
		display: block;
		padding: 10px 0;
		text-decoration: none;
		min-width: 0;
	}

	.sub-menu {
		flex: 0 0 100%;
		list-style: none;
		margin: 0;
		padding: 0;
		width: 100%;
	}
}

.pp-offcanvas-menu-indicator {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.pp-offcanvas-menu-accordion {

	.sub-menu {
		display: none;
	}

	.pp-offcanvas-submenu-open > .sub-menu {
		display: block;
	}

	.pp-offcanvas-submenu-open > .pp-offcanvas-menu-indicator {
		transform: rotate(180deg);
	}
}