/* Custom drawer: avoids Bootstrap's conflicting Offcanvas data API. */
.wld-sidebar {
	position: fixed;
}

.wld-sidebar .offcanvas-body {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

@media (max-width: 991.98px) {
	.wld-sidebar .offcanvas-header {
		background: #fff;
		border-bottom: 1px solid var(--wld-line);
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 1;
	}

	.wld-sidebar .offcanvas-body {
		top: 57px;
	}

	.wld-sidebar.offcanvas-lg {
		box-shadow: 10px 0 30px rgba(11, 57, 46, .18);
		transform: translateX(-105%) !important;
		transition: transform .24s ease;
		visibility: visible !important;
	}

	.wld-sidebar.offcanvas-lg.is-open {
		pointer-events: auto;
		transform: translateX(0) !important;
	}

	.wld-sidebar.offcanvas-lg:not(.is-open) {
		pointer-events: none;
	}

	body.wld-drawer-open {
		overflow: hidden;
	}

	body.wld-drawer-open::after {
		background: rgba(9, 43, 35, .36);
		content: '';
		inset: 0;
		position: fixed;
		z-index: 1040;
	}

	.wld-sidebar {
		z-index: 1050;
	}

	/* The primary sidebar navigation already contains these links. */
	.wld-sidebar-footer {
		display: none;
	}
}
