[v-cloak] {
	display: none !important;
}

.ui-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 1.5rem;
	overflow: hidden;
}

.ui-modal__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	margin: 0;
	background-color: rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.ui-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100dvh - 3rem);
	min-height: 0;
}

.ui-modal__panel {
	position: relative;
	width: 100%;
	min-height: 0;
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	flex-direction: column;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex-wrap: nowrap;
}

.ui-modal__panel::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

@media screen and (max-width: 63.99875rem) {
	.ui-modal {
		--ui-modal-gutter: 0.75rem;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 100%;
		max-width: 100vw;
		padding-top: calc(var(--ui-modal-gutter) + 3.125rem);
		padding-bottom: var(--ui-modal-gutter);
		padding-inline: 0;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.ui-modal .ui-modal__dialog {
		width: calc(100% - (var(--ui-modal-gutter) * 2));
		max-width: calc(100vw - (var(--ui-modal-gutter) * 2));
		min-width: 0;
		margin-inline: var(--ui-modal-gutter);
		max-height: calc(100dvh - (var(--ui-modal-gutter) * 2) - 3.125rem);
		overflow: visible;
	}

	.ui-modal .ui-modal__panel {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		max-height: calc(100dvh - (var(--ui-modal-gutter) * 2) - 3.125rem);
		overflow-x: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.ui-modal {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.ui-modal::-webkit-scrollbar,
	.ui-modal .ui-modal__panel::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.ui-modal.--swipe-dragging .ui-modal__dialog {
		touch-action: none;
		user-select: none;
		-webkit-user-select: none;
	}

	.ui-modal.--swipe-dragging .ui-modal__panel {
		overflow: hidden;
	}
}
