/* ── Print on Demand Configurator ─────────────────────────────────────────── */

.pod-configurator {
	max-width: 820px;
	margin: 1.5em 0 2em;
}

/* ── Step indicator ──────────────────────────────────────────────────────── */
.pod-steps {
	display: flex;
	gap: 3px;
	margin-bottom: 1.75em;
}

.pod-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px 6px;
	background: #f0f0f0;
	border-radius: 5px;
	font-size: 0.78em;
	color: #888;
	transition: background 0.2s, color 0.2s;
	line-height: 1.3;
}

.pod-step.active    { background: #0073aa; color: #fff; }
.pod-step.completed { background: #00a32a; color: #fff; }

.pod-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid currentColor;
	font-weight: 700;
	margin-bottom: 3px;
	font-size: 1.05em;
}

/* ── Price bar ───────────────────────────────────────────────────────────── */
#pod-price-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0f8ff;
	border: 1px solid #b3d9f0;
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 1.25em;
	font-size: 0.95em;
}

.pod-pb-item { color: #444; }
.pod-pb-item strong { color: #0073aa; margin-left: 4px; }
.pod-pb-sep { color: #bbb; }

/* ── Panels ──────────────────────────────────────────────────────────────── */
.pod-panel { display: none; }
.pod-panel.active { display: block; }

.pod-panel h3 {
	margin: 0 0 1em;
	font-size: 1.15em;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.pod-nav {
	display: flex;
	gap: 10px;
	margin-top: 1.5em;
	align-items: center;
}

.pod-nav .pod-btn-next { margin-left: auto; }

.pod-nav .button {
	padding: 10px 22px;
	font-size: 1em;
	height: auto;
	line-height: 1.4;
}

.pod-crop-actions .button {
	padding: 9px 18px;
	font-size: 0.95em;
	height: auto;
	line-height: 1.4;
}

/* ── Field row ───────────────────────────────────────────────────────────── */
.pod-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.pod-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-width: 110px;
}

.pod-field--qty { flex: 0 0 110px; }

.pod-field label {
	font-weight: 600;
	font-size: 0.9em;
}

.pod-field input[type="number"] {
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	width: 100%;
	box-sizing: border-box;
}

.pod-hint {
	font-size: 0.8em;
	color: #777;
}

/* ── Select dropdowns ────────────────────────────────────────────────────── */
.pod-select {
	width: 100%;
	max-width: 420px;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
	margin: 0.5em 0 0.4em;
	display: block;
}

.pod-select-desc {
	font-size: 0.82em;
	color: #666;
	line-height: 1.5;
	min-height: 1.2em;
	margin-bottom: 0.6em;
}

/* ── Upload zone ─────────────────────────────────────────────────────────── */
#pod-upload-zone {
	border: 2px dashed #ccc;
	border-radius: 8px;
	padding: 36px 20px;
	text-align: center;
	background: #fafafa;
	margin: 0.5em 0 0.75em;
	cursor: pointer;
	transition: border-color 0.2s;
}

#pod-upload-zone:hover { border-color: #0073aa; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.pod-progress {
	height: 7px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	margin: 1em 0 0.5em;
}

.pod-progress-fill {
	height: 100%;
	background: #0073aa;
	width: 0;
	transition: width 0.15s;
}

/* ── Cropper ─────────────────────────────────────────────────────────────── */
.pod-crop-canvas {
	max-width: 100%;
	margin: 0.75em 0;
	max-height: 480px;
	overflow: hidden;
}

.pod-crop-canvas img { max-width: 100%; display: block; }

.pod-crop-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 0.5em;
}

/* ── Cropped preview ─────────────────────────────────────────────────────── */
#pod-cropped-img {
	max-width: 280px;
	max-height: 280px;
	border: 1px solid #ccc;
	border-radius: 5px;
	display: block;
	margin: 0.5em 0 0.75em;
}

/* ── Review ──────────────────────────────────────────────────────────────── */
.pod-review {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.5em;
	align-items: start;
	margin: 0.75em 0 1em;
}

.pod-review-img-wrap img {
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #ccc;
}

.pod-review-table {
	width: 100%;
	border-collapse: collapse;
}

.pod-review-table th,
.pod-review-table td {
	padding: 7px 10px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.pod-review-table th {
	font-weight: 600;
	color: #555;
	width: 110px;
	white-space: nowrap;
}

.pod-review-unit th,
.pod-review-unit td  { font-size: 1.05em; }

.pod-review-total th,
.pod-review-total td {
	font-size: 1.2em;
	font-weight: 700;
	color: #222;
	border-top: 2px solid #ddd;
}

/* ── DPI indicator ───────────────────────────────────────────────────────── */
#pod-dpi-info {
	margin: 8px 0 10px;
}

.pod-dpi {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 4px;
	font-size: 0.88em;
	font-weight: 600;
}

.pod-dpi--good {
	background: #edfaef;
	color: #1a7a2e;
	border: 1px solid #a8ddb0;
}

.pod-dpi--ok {
	background: #fff8e5;
	color: #7a5a00;
	border: 1px solid #f0d080;
}

.pod-dpi--warn {
	background: #fde8e8;
	color: #a00;
	border: 1px solid #f5a0a0;
}

/* ── Error messages ──────────────────────────────────────────────────────── */
.pod-error {
	color: #d63638;
	font-size: 0.88em;
	padding: 7px 11px;
	background: #fde8e8;
	border-left: 3px solid #d63638;
	border-radius: 3px;
	margin: 6px 0;
}

/* ── Cart photo preview ──────────────────────────────────────────────────── */
.pod-cart-photo {
	margin-top: 8px;
}

.pod-cart-thumb {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
}

/* ── Hide standard WC add-to-cart on POD product pages ──────────────────── */
/* Covers themes that render the button outside the woocommerce_single_product_summary hook */
.pod-product form.cart:not(#pod-cart-form),
.pod-product .woocommerce-variation-add-to-cart,
.pod-product .single_add_to_cart_button:not(.pod-add-to-cart) {
	display: none !important;
}

/* ── required asterisk ───────────────────────────────────────────────────── */
.required { color: #d63638; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.pod-steps { font-size: 0.7em; }
	.pod-review { grid-template-columns: 1fr; }
	.pod-review-img-wrap img { width: 100%; height: 200px; }
}
