/* Shared Param form controls — PHP 8.0+, WordPress 6.0+, WooCommerce 8.0+. */
:is(.param-dashboard.param-dashboard,.param-view.param-view) {
	--param-control-height:3.125rem;
	--param-control-border:#d8d5cc;
	--param-control-radius:.8rem;
	--param-control-focus:#9bc47d;
	--param-control-text:#282822;
	--param-control-placeholder:#a09c93;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]),select,textarea) {
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	min-width:0;
	min-height:var(--param-control-height);
	margin:0;
	padding:.7rem .9rem;
	border:1px solid var(--param-control-border);
	border-radius:var(--param-control-radius);
	outline:0;
	color:var(--param-control-text);
	background-color:#fff;
	box-shadow:none;
	font:inherit;
	line-height:1.5;
	vertical-align:middle;
	color-scheme:light;
	transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) select {
	padding-inline:.9rem 2.6rem;
	appearance:none;
	-webkit-appearance:none;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23666b61' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position:left .9rem center;
	background-size:.75rem .5rem;
	background-repeat:no-repeat;
	cursor:pointer;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus {
	border-color:var(--param-control-focus);
	box-shadow:0 0 0 4px rgb(155 196 125 / 16%);
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input,textarea)::placeholder {
	color:var(--param-control-placeholder);
	opacity:1;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input,select,textarea):disabled {
	color:#8e8a82;
	background-color:#f2f1ed;
	cursor:not-allowed;
	opacity:.8;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input,textarea)[readonly] { background-color:#f7f6f2; }
:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input[type="checkbox"],input[type="radio"]) {
	width:1.1rem;
	height:1.1rem;
	margin:0;
	accent-color:var(--param-control-focus);
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) textarea { min-height:8rem; resize:vertical; }
:is(.param-dashboard.param-dashboard,.param-view.param-view) .param-jalali-input-wrap {
	display:flex;
	width:100%;
	max-width:100%;
	min-width:0;
	flex:1 1 auto;
	align-items:center;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) .param-jalali-input {
	width:100%;
	min-width:0;
	padding-right:2.75rem!important;
	padding-left:.9rem!important;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) input[type="date"] {
	direction:ltr;
	padding-right:2.75rem!important;
	padding-left:.9rem!important;
	text-align:right;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) .param-label-caption {
	display:inline-flex;
	min-width:0;
	align-items:center;
	justify-self:start;
	gap:.25rem;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) .param-required-marker {
	color:#a9362d;
	font-size:.95rem;
	font-weight:700;
	line-height:1;
}
:is(.param-dashboard.param-dashboard,.param-view.param-view) .param-dashboard-filter > label {
	min-width:min(100%,11rem);
	flex:1 1 11rem;
}
@media (prefers-reduced-motion:reduce) {
	:is(.param-dashboard.param-dashboard,.param-view.param-view) :where(input,select,textarea) { transition:none; }
}
