/* Manum — generic modal. All rules are scoped to .manum-modal. */
html.manum-modal-open {
	overflow: hidden;
}

.manum-modal {
	box-sizing: border-box;
	width: min(640px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 32px;
	background: #fff;
	color: inherit;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	overflow: auto;
	overscroll-behavior: contain;
}

.manum-modal::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.manum-modal__bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem 0;
	pointer-events: none;
}

.manum-modal__bar > button {
	pointer-events: auto;
}

.manum-modal .manum-modal__close,
.manum-modal .manum-modal__back {
	margin: 0;
	padding: 0.25rem 0.6rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.manum-modal .manum-modal__close {
	margin-left: auto;
	font-size: 1.75rem;
}

.manum-modal__content {
	padding: 0 2.5rem 2.5rem;
}

.manum-modal__content.is-loading {
	min-height: 12rem;
	position: relative;
}

.manum-modal__content.is-loading::after {
	content: attr(data-loading-label);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
}

.manum-modal__content.is-loading > .manum-modal__step {
	visibility: hidden;
}

.manum-modal__error {
	color: #b00020;
}

@media (max-width: 600px) {
	.manum-modal {
		border-radius: 20px;
	}

	.manum-modal__content {
		padding: 0 1.25rem 1.5rem;
	}
}
