.ic-dementor {
	margin: 0 0 14px;
	max-width: 100%;
}

.ic-dementor__veil {
	position: relative;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #f9fafb;
	box-shadow: 0 4px 14px rgba(30, 58, 95, 0.08);
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* Обманки: в DOM для ботів, люди не бачать */
.ic-dementor__trap,
.ic-dementor__trap-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ic-dementor__row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 12px;
	max-width: 100%;
	min-width: 0;
}

.ic-dementor__sigils {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 0.5rem;
	background: #fff;
	border: 1px dashed #d1d5db;
	flex: 0 1 auto;
	min-width: 0;
	max-width: calc(100% - 116px);
	overflow: hidden;
}

.ic-dementor__mark {
	display: block;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.ic-dementor__echo-slot {
	position: relative;
	flex: 0 0 104px;
	width: 104px;
	min-width: 104px;
	max-width: 104px;
	height: 42px;
}

.wpcf7-form .ic-dementor__echo-slot .ic-dementor__echo--real {
	display: block;
	position: static;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 7px 10px !important;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 1rem;
	line-height: 1.2;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	flex: none;
}

.ic-dementor__echo--real:focus {
	outline: none;
	border-color: #2d5a87 !important;
	box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.15) !important;
}

.wpcf7-form .ic-dementor-wrap {
	display: block;
	max-width: 100%;
	min-width: 0;
}

.wpcf7-form .ic-dementor-wrap + p:has(.wpcf7-submit),
.wpcf7-form p:has(.ic-dementor-wrap) + p:has(.wpcf7-submit) {
	margin-top: 0;
}

@media (max-width: 480px) {
	.ic-dementor__row {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.ic-dementor__sigils {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.ic-dementor__echo-slot {
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		height: 42px;
	}
}
