/* The flex minimum is required for the internal offcanvas area to become scrollable. */
.wld-sidebar {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.wld-sidebar .offcanvas-body {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column;
	height: auto !important;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
	/* Keep Bootstrap's drawer positioning; theme.css previously reset it to static. */
	.wld-sidebar.offcanvas-lg {
		bottom: 0;
		left: 0;
		position: fixed !important;
		top: 0;
		width: min(86vw, 330px);
	}

	.wld-main {
		margin-left: 0;
		min-width: 0;
		width: 100%;
	}

	.wld-content {
		overflow-x: hidden;
		width: 100%;
	}

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