.pds-epo-wrap { margin: 1.5em 0; }
.pds-epo-rule { padding: 12px 0; border-top: 1px solid #eee; }
.pds-epo-field { margin: 0 0 1em; }
.pds-epo-label { display: block; font-weight: 600; margin-bottom: 4px; }
.pds-epo-label .required { color: #b32d2e; margin-left: 2px; }
.pds-epo-field input[type=text],
.pds-epo-field input[type=number],
.pds-epo-field input[type=date],
.pds-epo-field input[type=color],
.pds-epo-field textarea,
.pds-epo-field select {
	width: 100%;
	max-width: 420px;
	padding: 8px;
	box-sizing: border-box;
}
.pds-epo-field textarea { min-height: 80px; }

.pds-epo-radios label,
.pds-epo-checkbox { display: block; margin: 4px 0; }
.pds-epo-opt-price { color: #555; font-size: 0.9em; }

/* ---------- Swatches ---------- */
.pds-epo-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.pds-epo-swatch {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 2px solid transparent; border-radius: 8px; cursor: pointer;
	position: relative; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
	background-clip: padding-box;
}
.pds-epo-swatch:hover { transform: translateY(-2px); }
.pds-epo-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.pds-epo-swatch-label { position: absolute; left: -9999px; }

/* Plain solid-color swatch (fallback when not using doughnut style) */
.pds-epo-swatches-color.pds-epo-swatches-circle .pds-epo-swatch,
.pds-epo-swatches-color.pds-epo-swatches-square .pds-epo-swatch {
	width: 40px; padding: 0; overflow: hidden; border-color: #e0e0e0;
}
.pds-epo-swatches-color.pds-epo-swatches-circle .pds-epo-swatch,
.pds-epo-swatches-color.round .pds-epo-swatch { border-radius: 50%; }
.pds-epo-swatch-fill { display: block; width: 100%; height: 100%; }

/* Doughnut swatch */
.pds-epo-swatches-doughnut { gap: 14px; }
.pds-epo-swatches-doughnut .pds-epo-swatch {
	width: 64px; height: 64px; padding: 0;
	border-radius: 50%;
	background: transparent;
	overflow: visible;
}
.pds-epo-doughnut {
	width: 100%; height: 100%;
	display: block;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
	transition: transform .15s ease;
}
.pds-epo-swatches-doughnut .pds-epo-swatch:hover .pds-epo-doughnut { transform: rotate(-6deg) scale(1.05); }

/* Selected state */
.pds-epo-swatch.is-selected {
	border-color: #1f7a3a;
	box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.22);
}
.pds-epo-swatches-doughnut .pds-epo-swatch.is-selected {
	border-color: transparent;
	box-shadow: none;
}
.pds-epo-swatches-doughnut .pds-epo-swatch.is-selected .pds-epo-doughnut {
	transform: rotate(-3deg) scale(1.08);
	filter: drop-shadow(0 0 0 #1f7a3a) drop-shadow(0 3px 5px rgba(0,0,0,0.22));
}

/* Text swatches */
.pds-epo-swatches-text .pds-epo-swatch { color: #333; font-weight: 500; border-color: #e0e0e0; }
.pds-epo-swatches-text .pds-epo-swatch.is-selected { color: #1f7a3a; }

/* ---------- File upload ---------- */
.pds-epo-file-wrap { display: grid; gap: 8px; max-width: 480px; }
.pds-epo-file-wrap.is-loading .pds-epo-dropzone { pointer-events: none; opacity: 0.6; }
.visually-hidden {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px); width: 1px; height: 1px;
	overflow: hidden; white-space: nowrap;
}
.pds-epo-dropzone {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 16px;
	border: 2px dashed #cdcdcd;
	border-radius: 8px;
	background: #fafafa;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.pds-epo-dropzone:hover { border-color: #1f7a3a; background: #f4faf6; }
.pds-epo-dropzone.is-dragover {
	border-color: #1f7a3a; background: #eaf6ee;
	transform: scale(1.01);
}
.pds-epo-dropzone-icon {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; color: #1f7a3a;
	border: 1px solid #e0e0e0;
}
.pds-epo-dropzone-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.pds-epo-dropzone-text strong { font-weight: 600; color: #222; }
.pds-epo-dropzone-text small { color: #777; font-size: 12px; margin-top: 2px; }
.pds-epo-dropzone-btn {
	flex: 0 0 auto;
	padding: 8px 14px; border-radius: 6px;
	background: #1f7a3a; color: #fff; font-weight: 600; font-size: 13px;
}
.pds-epo-dropzone:hover .pds-epo-dropzone-btn { background: #166030; }

.pds-epo-file-progress {
	position: relative; height: 6px; background: #eee; border-radius: 3px; overflow: hidden;
}
.pds-epo-file-progress-bar {
	display: block; height: 100%; width: 0%;
	background: #1f7a3a; transition: width .15s linear;
}
.pds-epo-file-progress-label {
	position: absolute; right: 0; top: -18px; font-size: 11px; color: #777;
}

.pds-epo-file-preview {
	display: flex; align-items: center; gap: 12px;
	padding: 10px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff;
}
.pds-epo-file-thumb {
	width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
	border: 1px solid #eee; background: #f5f5f5;
}
.pds-epo-file-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pds-epo-file-name {
	font-weight: 600; color: #222;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pds-epo-file-size { font-size: 12px; color: #888; }
.pds-epo-file-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.pds-epo-file-replace,
.pds-epo-file-remove {
	border: 1px solid #ddd; background: #fff;
	padding: 6px 10px; border-radius: 5px; cursor: pointer;
	font-size: 12px; font-weight: 600;
}
.pds-epo-file-replace:hover { border-color: #1f7a3a; color: #1f7a3a; }
.pds-epo-file-remove { color: #b32d2e; }
.pds-epo-file-remove:hover { border-color: #b32d2e; background: #fdf3f3; }

.pds-epo-file-error {
	color: #b32d2e; font-size: 13px;
	padding: 8px 10px; background: #fdecea; border: 1px solid #f5c2c0; border-radius: 6px;
}

.pds-epo-totals {
	margin-top: 12px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 4px;
}
.pds-epo-totals > div { display: flex; justify-content: space-between; }
.pds-epo-grand-total { font-weight: 700; font-size: 1.1em; }
