/* WC Product Customizer — front end designer */

.wcpc-designer {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0 0 24px;
	align-items: flex-start;
}

.wcpc-stage-wrap {
	flex: 1 1 320px;
	min-width: 280px;
	max-width: 520px;
}

.wcpc-stage {
	position: relative;
	display: inline-block;
	width: 100%;
	line-height: 0;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	background: #fafafa;
	user-select: none;
}

.wcpc-base {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-drag: none;
}

.wcpc-bounds {
	position: absolute;
	box-sizing: border-box;
	outline: 2px dashed rgba( 0, 0, 0, 0.35 );
	outline-offset: -2px;
	overflow: hidden;
}

.wcpc-bounds::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba( 80, 120, 255, 0.06 );
	pointer-events: none;
}

.wcpc-layer {
	position: absolute;
	cursor: grab;
	line-height: 1.1;
	white-space: nowrap;
	touch-action: none;
}

.wcpc-layer:active {
	cursor: grabbing;
}

.wcpc-layer-text {
	padding: 2px 4px;
}

.wcpc-layer-image img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	-webkit-user-drag: none;
}

.wcpc-layer.is-selected {
	outline: 1px solid #2271b1;
	outline-offset: 2px;
	box-shadow: 0 0 0 3px rgba( 34, 113, 177, 0.18 );
}

/* Controls / inspector */

.wcpc-controls {
	flex: 1 1 260px;
	min-width: 240px;
	max-width: 360px;
}

.wcpc-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.wcpc-inspector {
	background: #f7f7f8;
	border: 1px solid #ececef;
	border-radius: 8px;
	padding: 16px;
}

.wcpc-empty-hint {
	margin: 0;
	font-size: 13px;
	color: #6b6b76;
	line-height: 1.5;
}

.wcpc-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wcpc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcpc-field-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b6b76;
}

.wcpc-input,
.wcpc-range,
.wcpc-color {
	width: 100%;
	box-sizing: border-box;
}

.wcpc-input {
	padding: 8px 10px;
	border: 1px solid #d0d0d6;
	border-radius: 6px;
	font-size: 14px;
}

.wcpc-color {
	height: 38px;
	padding: 2px;
	border: 1px solid #d0d0d6;
	border-radius: 6px;
	cursor: pointer;
}

.wcpc-delete {
	align-self: flex-start;
	margin-top: 4px;
	color: #b32d2e;
}

/* Cart preview thumbnail swap */
.wcpc-cart-preview {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
