.drawer {
	display: none;
}

.drawer__overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 200;
	opacity: 0;

	transition: opacity 0.3s;
	will-change: opacity;
	background-color: #000;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.drawer__header {
	/* Optional */
	padding: 1.5rem;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.drawer__close {
	/* Optional */
	margin: 0;
	padding: 0;
	border: none;
	background-color: transparent !important;
	cursor: pointer;
	width: 25px;
	height: 25px;
	flex-shrink: 0;
	margin-left: 1rem;
}

.drawer__wrapper {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	max-width: 100%;
	z-index: 9999;
	overflow: auto;
	transition: transform 0.3s;
	will-change: transform;
	background-color: #111;

	display: flex;
	flex-direction: column;

	-webkit-transform: translate3d(103%, 0, 0);
	transform: translate3d(103%, 0, 0);
	/* extra 3% because of box-shadow */

	-webkit-overflow-scrolling: touch;
	/* enables momentum scrolling in iOS overflow elements */

	/* Optional */
	/* box-shadow: 0 2px 6px #777; */
}

.drawer__content {
	position: relative;
	overflow-x: hidden;
	overflow-y: scroll;
	height: 90vh;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Optional */
	padding: 1.5rem;
}

.drawer--left .drawer__wrapper {
	left: 0;
	right: auto;
	-webkit-transform: translate3d(-100%, 0, 0);
	transform: translate3d(-100%, 0, 0);
}

.drawer.is-active {
	display: block;
}

.drawer.is-visible .drawer__wrapper {
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.drawer.is-visible .drawer__overlay {
	opacity: 0.5;
}
