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

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

.jno-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.jno-popup__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1d2327;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	max-width: 480px;
	width: calc(100% - 40px);
	max-height: calc(100vh - 40px);
}

@media (min-width: 782px) {
	.jno-popup__dialog {
		max-width: 640px;
	}
}

.jno-popup__scroll {
	overflow-y: auto;
	padding: 40px 24px 24px;
}

.jno-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	background: transparent;
	border: 0;
	border-radius: 4px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
	color: inherit;
	transition: background-color 0.15s ease-in-out;
}

.jno-popup__close:hover,
.jno-popup__close:focus {
	background: var(--jno-popup-close-hover-bg, #f0f0f1);
	color: var(--jno-popup-close-hover-color, inherit);
}

.jno-popup__content {
	margin-bottom: 20px;
}

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

.jno-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.jno-popup__button:hover,
.jno-popup__button:focus {
	background: #135e96;
	color: #fff;
}
