.cpo-fields {
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cpo-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cpo-label {
	font-weight: 600;
}

.cpo-field .required {
	color: #c0392b;
	border: none;
	text-decoration: none;
}

.cpo-input {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
}

.cpo-input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

textarea.cpo-input {
	min-height: 80px;
	resize: vertical;
}

.cpo-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.cpo-checkbox-label .cpo-input {
	width: auto;
	max-width: none;
}

.cpo-help {
	color: #646970;
	font-size: 13px;
}

/* File upload (drag & drop) */
.cpo-dropzone {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	border: 2px dashed #cfd4da;
	border-radius: 8px;
	background: #fafbfc;
	padding: 22px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	max-width: 420px;
	box-sizing: border-box;
}

.cpo-dropzone:hover,
.cpo-dropzone.cpo-dragover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.cpo-dropzone .cpo-file-input {
	/* Hidden: the dropzone handles clicks and opens this input via JS once.
	   (An opacity:0 overlay caused the native click + JS click to open the
	   file chooser twice.) */
	display: none !important;
}

.cpo-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	pointer-events: none;
	color: #50575e;
}

.cpo-dropzone-text {
	display: block;
	width: 100%;
	text-align: center;
	line-height: 1.4;
	font-size: 14px;
}

.cpo-dropzone-inner .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: #2271b1;
}

.cpo-file-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 420px;
}

.cpo-file-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
}

.cpo-file-chip.cpo-file-pending {
	color: #646970;
	font-style: italic;
}

.cpo-file-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpo-file-remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #f0f0f1;
	color: #b32d2e;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	padding: 0;
	margin: 0;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	font-family: inherit;
}

.cpo-file-remove:hover {
	background: #b32d2e;
	color: #fff;
}

.cpo-upload-error {
	margin: 8px 0 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fcf0f1;
	border: 1px solid #f0c0c2;
	color: #b32d2e;
	font-size: 13px;
	max-width: 420px;
}
