.mcco-customize-fields {
	margin: 1.5em 0;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fafafa;
}

.mcco-customize-fields h3 {
	margin-top: 0;
	font-size: 1em;
}

.mcco-customize-fields .mcco-field {
	margin-bottom: 1em;
}

.mcco-customize-fields label,
.mcco-customize-fields .mcco-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.mcco-customize-fields .required {
	color: #c0392b;
}

.mcco-customize-fields .description {
	display: block;
	font-size: 0.85em;
	color: #666;
	margin-top: 0.25em;
}

.mcco-customize-fields input[type="text"],
.mcco-customize-fields select {
	width: 100%;
}

.mcco-hidden {
	display: none !important;
}

/* ---------- Photo upload + preview, side by side ---------- */

.mcco-photo-row {
	display: flex;
	align-items: stretch;
	gap: 1em;
	margin-top: 0.5em;
}

.mcco-photo-upload-col {
	flex: 0 0 calc(50% - 0.5em);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.mcco-photo-preview-col {
	flex: 0 0 calc(50% - 0.5em);
	min-width: 0;
}

/* A shared fixed height so the uploader and the preview line up. */
.mcco-dropzone,
.mcco-photo-button-box,
.mcco-photo-preview {
	height: 250px;
	box-sizing: border-box;
}

.mcco-dropzone {
	position: relative;
	border: 2px dashed #ccc;
	border-radius: 8px;
	padding: 1em 1.25em;
	text-align: center;
	background: #fff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mcco-dropzone.mcco-dragover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.mcco-dropzone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #999;
	margin-bottom: 0.4em;
}

.mcco-dropzone-text {
	margin: 0 0 0.6em;
	color: #333;
	font-size: 1.05em;
}

.mcco-dropzone-divider {
	display: flex;
	align-items: center;
	gap: 0.75em;
	max-width: 260px;
	width: 100%;
	margin: 0 auto 0.6em;
	color: #999;
	font-style: italic;
	font-size: 0.9em;
}

.mcco-dropzone-divider span {
	flex: 1;
	height: 1px;
	background: #ddd;
}

.mcco-dropzone .mcco-browse-btn {
	position: relative;
	z-index: 1;
}

.mcco-dropzone .mcco-hidden-input {
	display: none;
}

.mcco-dropzone-caption {
	margin: 0.6em 0 0 !important;
	background: transparent;
	font-size: 0.75em !important;
}

/* Simple-button upload style, boxed to match the preview's height */
.mcco-photo-button-box {
	border: 1px dashed #ccc;
	border-radius: 8px;
	background: #fff;
	padding: 1em 1.25em;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Photo status line (uploading / uploaded / error) */
.mcco-photo-status {
	font-size: 0.85em;
	color: #666;
	min-height: 1.2em;
	margin: 0.5em 0 0;
}

.mcco-photo-status.mcco-status-error {
	color: #c0392b;
}

/* Photo preview box: fixed size, image scaled to fit without stretching */
.mcco-photo-preview {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.mcco-photo-preview-placeholder {
	color: #ccc;
	font-size: 2.5em;
	line-height: 1;
}

.mcco-photo-preview-placeholder .dashicons {
	width: 1em;
	height: 1em;
	font-size: 1em;
}

.mcco-photo-preview img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
}

.mcco-photo-preview-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em;
	font-size: 0.85em;
	color: #444;
	text-align: center;
	word-break: break-word;
}

.mcco-remove-photo {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	line-height: 22px;
	border-radius: 50%;
	background: #c0392b;
	color: #fff;
	border: 2px solid #fff;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
}

/* ---------- Custom text + font, 70/30 ---------- */

.mcco-text-font-row {
	display: flex;
	align-items: flex-start;
}

.mcco-text-font-row .mcco-field-text {
	width: 70%;
	padding-right: 1em;
	box-sizing: border-box;
}

.mcco-text-font-row .mcco-field-font {
	width: 30%;
	box-sizing: border-box;
}

/* If fonts are off, the text field alone still fills the row naturally
   since it's the only flex item present. */

/* Custom text live preview */
.mcco-text-preview {
	margin-top: 0.5em;
	padding: 1em 1.25em;
	border: 1px dashed #ccc;
	border-radius: 4px;
	background: #fff;
	font-size: 2.25em;
	line-height: 1.3;
	min-height: 1.4em;
	word-break: break-word;
}
