/**
 * FTM Dialog base styles for native <dialog>.
 */

dialog.ftm-dialog {
	background: var(--color-surface, #fff);
	border: none;
	border-radius: 0;
	padding: 0;
	width: 90%;
	max-width: 760px;
	max-height: 90dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
	margin: auto;
}

dialog.ftm-dialog[open] {
	display: flex;
	flex-direction: column;
}

dialog.ftm-dialog::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.ftm-dialog-close {
	align-self: flex-end;
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 2em;
	line-height: 1;
	z-index: 10;
	padding: 0;
	color: inherit;
	text-decoration: none;
}

.ftm-dialog-content {
	padding: var(--space-xlarge, 2rem) var(--space-large, 1.5rem);
}
