html.dfmp-open,
html.dfmp-open body {
	overflow: hidden;
}

.dfmp,
.dfmp * {
	box-sizing: border-box;
}

.dfmp[hidden] {
	display: none;
}

.dfmp {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding:
		max(0.75rem, env(safe-area-inset-top))
		max(0.75rem, env(safe-area-inset-right))
		max(0.75rem, env(safe-area-inset-bottom))
		max(0.75rem, env(safe-area-inset-left));
}

.dfmp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 7, 10, 0.72);
}

.dfmp__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(26rem, 100%);
	max-height: calc(100svh - 4rem);
	min-height: 0;
	overflow: hidden;
	background: #17191e;
	color: #efeae2;
	border: 1px solid rgba(239, 234, 226, 0.16);
	box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.35);
}

.dfmp__head {
	flex: 0 0 auto;
	padding: 0.9rem 3rem 0 1rem;
}

.dfmp__form {
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
	min-height: 0;
	overflow: hidden;
}

body.admin-bar .dfmp__dialog {
	max-height: calc(100svh - 4rem - 32px);
}

.dfmp__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0.55rem 1rem 0.15rem;
}

.dfmp__actions {
	flex: 0 0 auto;
	padding: 0.55rem 1rem 0.85rem;
}

.dfmp__close {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	z-index: 1;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: transparent;
	color: #efeae2;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.dfmp__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1490e8;
}

.dfmp__dialog h2 {
	margin: 0 0 0.35rem;
	font-family: Syne, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: clamp(1.2rem, 2.4vw, 1.45rem);
	line-height: 1.05;
}

.dfmp__to {
	margin: 0;
	color: #b7b2a8;
	line-height: 1.45;
}

.dfmp__status {
	margin: 0 0 0.75rem;
	color: #b7b2a8;
	line-height: 1.45;
}

.dfmp__status:empty {
	display: none;
}

.dfmp__required {
	margin: 0 0 0.45rem;
	color: #b7b2a8;
	font-size: 0.92rem;
}

.dfmp__star {
	color: #e84820;
}

.dfmp__field {
	display: block;
	margin: 0 0 0.45rem;
	font-weight: 600;
}

.dfmp__field input,
.dfmp__field textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(239, 234, 226, 0.2);
	border-radius: 0.4rem;
	background: #0e0f12;
	color: #efeae2;
	font: inherit;
	font-weight: 400;
}

.dfmp__field textarea {
	min-height: 4.25rem;
	max-height: 8rem;
	resize: vertical;
}

.dfmp__send {
	min-height: 3rem;
	padding: 0.7rem 1.2rem;
	border: 0;
	border-radius: 0.4rem;
	background: #e84820;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.dfmp__send:disabled {
	opacity: 0.6;
	cursor: progress;
}

.dfmp__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

@media (max-width: 599px) {
	.dfmp__send {
		width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar .dfmp__dialog {
		max-height: calc(100svh - 4rem - 46px);
	}
}

@media (max-height: 760px) {
	.dfmp__field textarea {
		min-height: 3.5rem;
	}
}
