/* BCP Designer — upload/place artwork UI (The Press palette). Mobile-first. */

.bcp-designer {
	--bcp-ink: #16161A;
	--bcp-paper: #FAFAF7;
	--bcp-orange: #FF5A1F;
	--bcp-gray: #8E8A86;

	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 24px;
	padding: 16px;
	background: var(--bcp-paper);
	border: 1px solid #e4e2dc;
	border-radius: 10px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: var(--bcp-ink);
}

.bcp-designer *,
.bcp-designer *::before,
.bcp-designer *::after {
	box-sizing: border-box;
}

.bcp-designer__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--bcp-ink);
}

/* Tabs */
.bcp-designer__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.bcp-designer__tab {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #d8d5cf;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--bcp-ink);
	cursor: pointer;
}

.bcp-designer__tab.is-active {
	background: var(--bcp-ink);
	border-color: var(--bcp-ink);
	color: var(--bcp-paper);
}

.bcp-designer__tab.has-art::after {
	content: " \2713";
	color: var(--bcp-orange);
}

.bcp-designer__tab.is-active.has-art::after {
	color: var(--bcp-orange);
}

/* Stage / mockup */
.bcp-designer__stage {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.bcp-designer__mockup {
	position: relative;
	width: 100%;
	max-width: 420px;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.bcp-designer__garment {
	width: 100%;
	display: block;
	line-height: 0;
}

.bcp-designer__garment svg {
	width: 100%;
	height: auto;
	display: block;
}

.bcp-designer__area {
	position: absolute;
	border: 2px dashed var(--bcp-gray);
	background: rgba(255, 90, 31, 0.04);
	overflow: hidden;
}

.bcp-designer__area.is-left-chest {
	border-color: var(--bcp-orange);
}

.bcp-designer__art-slot {
	position: relative;
	width: 100%;
	height: 100%;
}

.bcp-designer__art {
	position: absolute;
	touch-action: none;
	cursor: grab;
	outline: 1px solid rgba(22, 22, 26, 0.25);
}

.bcp-designer__art:active {
	cursor: grabbing;
}

.bcp-designer__art img {
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.bcp-designer__art-handle {
	position: absolute;
	right: -14px;
	bottom: -14px;
	width: 28px;
	height: 28px;
	min-width: 44px;
	min-height: 44px;
	margin: -8px;
	background: var(--bcp-orange);
	border: 2px solid var(--bcp-paper);
	border-radius: 50%;
	cursor: nwse-resize;
	touch-action: none;
}

/* Controls */
.bcp-designer__controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.bcp-designer__upload-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	background: var(--bcp-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
}

.bcp-designer__upload-btn:hover {
	background: #e64f19;
}

.bcp-designer__uploading {
	font-size: 14px;
	color: var(--bcp-gray);
}

.bcp-designer__dpi-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}

.bcp-designer__dpi-badge.is-green {
	background: #2e8b45;
}

.bcp-designer__dpi-badge.is-amber {
	background: #b8860b;
}

.bcp-designer__dpi-badge.is-red {
	background: #c62828;
}

.bcp-designer__hint {
	margin: 4px 0;
	font-size: 13px;
	color: var(--bcp-gray);
}

.bcp-designer__error {
	margin: 4px 0;
	font-size: 13px;
	font-weight: 600;
	color: #c62828;
}

.bcp-designer__price-line {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e4e2dc;
	font-size: 16px;
}

.bcp-designer__price-label {
	color: var(--bcp-gray);
	margin-right: 6px;
}

.bcp-designer__price-value {
	font-weight: 800;
	color: var(--bcp-ink);
}

/* Mobile-first is the default above (single column, stacked). At >= 600px
   give the mockup a bit more breathing room since it's no longer competing
   with a narrow viewport. */
@media (min-width: 600px) {
	.bcp-designer {
		padding: 20px;
	}

	.bcp-designer__mockup {
		max-width: 480px;
	}
}

/* At 390px (and below), the designer is expected to render ABOVE the
   variation/add-to-cart form (per woocommerce_before_add_to_cart_form),
   already stacking naturally in normal document flow — no extra rules
   needed beyond ensuring touch targets stay >= 44px, handled above. */
