/**
 * IranYekan font — plugin scope only (frontend + WCUF admin pages).
 */

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: bold;
	src: url('../fonts/eot/iranyekanwebbold.eot');
	src: url('../fonts/eot/iranyekanwebbold.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebbold.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebbold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 100;
	src: url('../fonts/eot/iranyekanwebthin.eot');
	src: url('../fonts/eot/iranyekanwebthin.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebthin.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebthin.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 300;
	src: url('../fonts/eot/iranyekanweblight.eot');
	src: url('../fonts/eot/iranyekanweblight.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanweblight.woff') format('woff'),
		 url('../fonts/ttf/iranyekanweblight.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/eot/iranyekanwebregular.eot');
	src: url('../fonts/eot/iranyekanwebregular.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebregular.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebregular.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 500;
	src: url('../fonts/eot/iranyekanwebmedium.eot');
	src: url('../fonts/eot/iranyekanwebmedium.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebmedium.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebmedium.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 800;
	src: url('../fonts/eot/iranyekanwebextrabold.eot');
	src: url('../fonts/eot/iranyekanwebextrabold.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebextrabold.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebextrabold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 900;
	src: url('../fonts/eot/iranyekanwebblack.eot');
	src: url('../fonts/eot/iranyekanwebblack.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebblack.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebblack.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 950;
	src: url('../fonts/eot/iranyekanwebextrablack.eot');
	src: url('../fonts/eot/iranyekanwebextrablack.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/woff/iranyekanwebextrablack.woff') format('woff'),
		 url('../fonts/ttf/iranyekanwebextrablack.ttf') format('truetype');
}

/* Frontend + shortcode: plugin UI only */
[class*="wcuf_"],
[class*="wcuf-"],
[id*="wcuf_"],
[id*="wcuf-"],
#wcuf_file_uploads_container,
.wcuf_single_upload_field_container,
.wcuf_cropper_container,
.wcuf_magnific_popup,
.mfp-wrap.wcuf_magnific_popup,
button[class*="wcuf_"],
.button[class*="wcuf_"],
input[class*="wcuf_"],
textarea[class*="wcuf_"],
select[class*="wcuf_"],
label[class*="wcuf_"],
a[class*="wcuf_"],
.woocommerce [class*="wcuf_"],
.woocommerce [id*="wcuf_"],
.woocommerce-page [class*="wcuf_"],
.woocommerce-page [id*="wcuf_"] {
	font-family: iranyekan, Tahoma, sans-serif !important;
}

/* Admin: WCUF + ACF options pages (not whole wp-admin) */
body[class*="woocommerce-files-upload"] #wpbody-content,
body[class*="upload-files"] #wpbody-content,
body[class*="acf-options-"] #wpbody-content,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content,
#wpbody-content .acf-settings-wrap,
#wpbody-content .acf-fields,
#wpbody-content .acf-field,
#wpbody-content .acf-label,
#wpbody-content .acf-input,
#wpbody-content .acf-button,
body.post-type-shop_order #woocommerce-files-upload,
body.woocommerce_page_wc-orders #woocommerce-files-upload {
	font-family: iranyekan, Tahoma, sans-serif !important;
}

body[class*="woocommerce-files-upload"] #wpbody-content *,
body[class*="upload-files"] #wpbody-content *,
body[class*="acf-options-"] #wpbody-content *,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content *,
#wpbody-content .acf-settings-wrap *,
#wpbody-content .acf-fields *,
body.post-type-shop_order #woocommerce-files-upload *,
body.woocommerce_page_wc-orders #woocommerce-files-upload * {
	font-family: inherit !important;
}

/* ACF true/false toggles — readable labels in both states */
body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch,
body[class*="upload-files"] #wpbody-content .acf-switch,
body[class*="acf-options-"] #wpbody-content .acf-switch,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch,
#wpbody-content .acf-settings-wrap .acf-switch {
	background: #f0f0f1;
	border: 1px solid #8c8f94;
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch .acf-switch-slider,
body[class*="upload-files"] #wpbody-content .acf-switch .acf-switch-slider,
body[class*="acf-options-"] #wpbody-content .acf-switch .acf-switch-slider,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch .acf-switch-slider,
#wpbody-content .acf-settings-wrap .acf-switch .acf-switch-slider {
	background: #fff;
	border-color: #8c8f94;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch:not(.-on) .acf-switch-on,
body[class*="upload-files"] #wpbody-content .acf-switch:not(.-on) .acf-switch-on,
body[class*="acf-options-"] #wpbody-content .acf-switch:not(.-on) .acf-switch-on,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch:not(.-on) .acf-switch-on,
#wpbody-content .acf-settings-wrap .acf-switch:not(.-on) .acf-switch-on,
body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch:not(.-on) .acf-switch-off,
body[class*="upload-files"] #wpbody-content .acf-switch:not(.-on) .acf-switch-off,
body[class*="acf-options-"] #wpbody-content .acf-switch:not(.-on) .acf-switch-off,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch:not(.-on) .acf-switch-off,
#wpbody-content .acf-settings-wrap .acf-switch:not(.-on) .acf-switch-off {
	color: #1d2327;
	text-shadow: none;
	font-weight: 600;
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch.-on,
body[class*="upload-files"] #wpbody-content .acf-switch.-on,
body[class*="acf-options-"] #wpbody-content .acf-switch.-on,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch.-on,
#wpbody-content .acf-settings-wrap .acf-switch.-on {
	background: #2271b1;
	border-color: #2271b1;
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch.-on .acf-switch-on,
body[class*="upload-files"] #wpbody-content .acf-switch.-on .acf-switch-on,
body[class*="acf-options-"] #wpbody-content .acf-switch.-on .acf-switch-on,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch.-on .acf-switch-on,
#wpbody-content .acf-settings-wrap .acf-switch.-on .acf-switch-on {
	color: #fff;
	text-shadow: none;
	font-weight: 600;
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch.-on .acf-switch-off,
body[class*="upload-files"] #wpbody-content .acf-switch.-on .acf-switch-off,
body[class*="acf-options-"] #wpbody-content .acf-switch.-on .acf-switch-off,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch.-on .acf-switch-off,
#wpbody-content .acf-settings-wrap .acf-switch.-on .acf-switch-off {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
}

body[class*="woocommerce-files-upload"] #wpbody-content .acf-switch.-on .acf-switch-slider,
body[class*="upload-files"] #wpbody-content .acf-switch.-on .acf-switch-slider,
body[class*="acf-options-"] #wpbody-content .acf-switch.-on .acf-switch-slider,
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-switch.-on .acf-switch-slider,
#wpbody-content .acf-settings-wrap .acf-switch.-on .acf-switch-slider {
	border-color: #135e96;
}

/* Standard ACF checkboxes */
body[class*="woocommerce-files-upload"] #wpbody-content .acf-field input[type="checkbox"],
body[class*="upload-files"] #wpbody-content .acf-field input[type="checkbox"],
body[class*="acf-options-"] #wpbody-content .acf-field input[type="checkbox"],
body.toplevel_page_woocommerce-files-upload-menu #wpbody-content .acf-field input[type="checkbox"],
#wpbody-content .acf-settings-wrap .acf-field input[type="checkbox"] {
	accent-color: #2271b1;
	min-width: 16px;
	min-height: 16px;
}
