/**
 * Closed: must not cover the page — our display rule must not override [hidden].
 */
.fd-omm-root[hidden] {
	display: none !important;
}

.fd-omm-root:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: stretch;
}

.fd-omm__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(15, 23, 42, 0.55);
	cursor: pointer;
}

.fd-omm__panel {
	position: relative;
	z-index: 1;
	width: min(1100px, 100% - 2rem);
	max-height: min(90vh, 900px);
	margin: auto;
	background: #ffffff;
	color: #0f172a;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.fd-omm__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.fd-omm__close:hover {
	background: #f8fafc;
}

.fd-omm__body {
	padding: 1.75rem 1.75rem 2rem;
	overflow: auto;
}

.fd-omm__loading,
.fd-omm__error {
	margin: 0;
	font-size: 1rem;
}

html.fd-omm--open,
html.fd-omm--open body {
	overflow: hidden;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
