.praxis-popup[hidden] {
	display: none;
}

.praxis-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.praxis-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
}

.praxis-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 620px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	color: #333;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 32px;
	outline: none;
}

.praxis-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.praxis-popup__close:hover,
.praxis-popup__close:focus {
	color: #009cff;
}

.praxis-popup__title {
	margin: 0 42px 18px 0;
	font-size: 1.7rem;
	line-height: 1.25;
}

.praxis-popup__content > :first-child {
	margin-top: 0;
}

.praxis-popup__content > :last-child {
	margin-bottom: 0;
}

.praxis-popup__actions {
	margin: 24px 0 0;
}

.praxis-popup__button {
	display: inline-block;
	padding: 10px 18px;
	background: #009cff;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
}

.praxis-popup__button:hover,
.praxis-popup__button:focus {
	color: #fff;
	opacity: 0.85;
}

html.praxis-popup-is-open,
body.praxis-popup-is-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.praxis-popup {
		padding: 12px;
	}

	.praxis-popup__dialog {
		padding: 24px 20px;
	}

	.praxis-popup__title {
		font-size: 1.4rem;
	}
}
