/**
 * ایزوله‌سازی صفحات عمومی نظرسنجی در برابر تم و افزونه‌های دیگر.
 * این فایل بلافاصله بعد از wp_head() بارگذاری می‌شود؛ سپس feedback-preview.css اعمال می‌شود.
 */

/* جلوگیری از بیرون‌زدگی افقی تم */
html:where(:has(body.cfs-isolated-body)) {
	overflow-x: clip;
}

@supports not selector(:has(a)) {
	html {
		overflow-x: hidden;
	}
}

body.cfs-isolated-body {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
	position: relative !important;
	overflow-x: hidden !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	transform: none !important;
	filter: none !important;
}

/* نوار مدیریت وردپرس روی محتوای تمام‌صفحه قاطی نشود */
body.cfs-isolated-body #wpadminbar {
	position: fixed !important;
	z-index: 999999 !important;
}

body.cfs-isolated-body .cfs-isolated-root {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-height: inherit !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: both !important;
	position: relative !important;
	z-index: 0;
	isolation: isolate;
	contain: layout style paint;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.cfs-isolated-body .cfs-isolated-root *,
body.cfs-isolated-body .cfs-isolated-root *::before,
body.cfs-isolated-body .cfs-isolated-root *::after {
	box-sizing: border-box !important;
}

/* خنثی‌سازی الگوهای رایج تم روی تعاملات */
body.cfs-isolated-body .cfs-isolated-root a {
	text-decoration: none !important;
	background-image: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

body.cfs-isolated-body .cfs-isolated-root button,
body.cfs-isolated-body .cfs-isolated-root input[type="submit"],
body.cfs-isolated-body .cfs-isolated-root input[type="button"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	font-family: inherit !important;
	box-shadow: none !important;
	border-style: solid !important;
}

body.cfs-isolated-body .cfs-isolated-root input[type="radio"],
body.cfs-isolated-body .cfs-isolated-root input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
}

body.cfs-isolated-body .cfs-isolated-root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.cfs-isolated-body .cfs-isolated-root textarea,
body.cfs-isolated-body .cfs-isolated-root select {
	font: inherit !important;
	line-height: inherit !important;
	max-width: 100% !important;
}

body.cfs-isolated-body .cfs-isolated-root textarea {
	resize: vertical !important;
}

body.cfs-isolated-body .cfs-isolated-root img,
body.cfs-isolated-body .cfs-isolated-root svg {
	max-width: 100% !important;
	height: auto !important;
	vertical-align: middle !important;
}

body.cfs-isolated-body .cfs-isolated-root label {
	cursor: pointer !important;
	font-weight: inherit !important;
}

body.cfs-isolated-body .cfs-isolated-root table {
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	width: auto !important;
}
