.epow-fields-wrap {
	margin: 20px 0;
	padding: 15px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
}
.epow-field {
	margin-bottom: 16px;
}
.epow-field:last-of-type {
	margin-bottom: 8px;
}
.epow-label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}
.epow-required {
	color: #c0392b;
}
.epow-choice-price {
	font-weight: normal;
	color: #2b7a3d;
	font-size: 0.9em;
}
.epow-field input[type="text"],
.epow-field input[type="email"],
.epow-field input[type="url"],
.epow-field input[type="tel"],
.epow-field input[type="password"],
.epow-field input[type="number"],
.epow-field input[type="date"],
.epow-field input[type="time"],
.epow-field textarea,
.epow-field select {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
.epow-field textarea {
	min-height: 80px;
}
.epow-description {
	margin: 4px 0 0;
	font-size: 0.85em;
	color: #666;
}
.epow-heading {
	margin: 10px 0 4px;
}
.epow-paragraph {
	color: #444;
}
.epow-separator {
	border: none;
	border-top: 1px solid #ddd;
	margin: 18px 0;
}
.epow-radio-group label,
.epow-checkbox-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: normal;
}
.epow-checkbox-single,
.epow-switch-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}
.epow-range-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 420px;
}
.epow-range-wrap input[type="range"] {
	flex: 1 1 auto;
}
.epow-range-output {
	min-width: 40px;
	text-align: right;
	font-weight: 600;
}
.epow-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
}
.epow-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.epow-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #ccc;
	transition: 0.2s;
	border-radius: 22px;
}
.epow-switch-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.2s;
	border-radius: 50%;
}
.epow-switch input:checked + .epow-switch-slider {
	background-color: #2b7a3d;
}
.epow-switch input:checked + .epow-switch-slider:before {
	transform: translateX(18px);
}
.epow-total-row {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px dashed #ccc;
	font-weight: 700;
}

/* AJAX file upload preview */
.epow-file-upload-wrap {
	margin-top: 4px;
}
.epow-file-status {
	font-size: 0.9em;
	color: #666;
	margin-top: 6px;
}
.epow-file-preview {
	margin-top: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.epow-file-preview .epow-file-link a {
	color: #2271b1;
	text-decoration: underline;
	word-break: break-all;
}
.epow-file-remove {
	cursor: pointer;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 2px 8px;
	font-size: 0.85em;
	color: #a00;
}
.epow-file-remove:hover {
	background: #f8e8e8;
}

/* Image select */
.epow-image-select {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}
.epow-image-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 110px;
	cursor: pointer;
	border: 2px solid #e2e2e2;
	border-radius: 8px;
	padding: 8px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	position: relative;
}
.epow-image-option:hover {
	border-color: #aaa;
}
.epow-image-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.epow-image-option:has(input:checked) {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}
.epow-image-option-media {
	width: 90px;
	height: 90px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f3f3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.epow-image-option-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.epow-image-option-placeholder {
	font-size: 11px;
	color: #999;
	text-align: center;
	padding: 4px;
}
.epow-image-option-label {
	margin-top: 6px;
	font-size: 12px;
	text-align: center;
	line-height: 1.3;
	word-break: break-word;
}
