.gpc-customizer {
	margin: 18px 0 22px;
	max-width: 480px;
}

.gpc-field {
	margin-bottom: 18px;
}

.gpc-label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.gpc-required {
	color: #d63638;
	margin-left: 2px;
}

/* ---- Dropzone ---- */
.gpc-dropzone {
	position: relative;
	border: 1.5px dashed #a9b3ff;
	border-radius: 10px;
	background: #fbfbff;
	padding: 28px 16px;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.gpc-dropzone:hover,
.gpc-dropzone.gpc-dragover {
	border-color: #5b6cff;
	background: #f3f4ff;
}

.gpc-dropzone .gpc-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.gpc-choose-btn {
	background: #e7ecff;
	color: #3949d6;
	border: none;
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
	padding: 9px 22px;
	cursor: pointer;
	pointer-events: none; /* click is handled by the overlaying file input */
}

.gpc-drop-text {
	margin: 10px 0 2px;
	font-size: 13.5px;
	color: #333;
	pointer-events: none;
}

.gpc-size-hint {
	margin: 2px 0 0;
	font-size: 12px;
	color: #888;
	pointer-events: none;
}

/* ---- Progress state ---- */
.gpc-dropzone-progress {
	padding: 4px 8px;
}

.gpc-status-text {
	margin: 0 0 10px;
	font-size: 13.5px;
	color: #444;
	font-weight: 500;
}

.gpc-progress-bar-track {
	width: 100%;
	height: 8px;
	background: #e6e6ef;
	border-radius: 6px;
	overflow: hidden;
}

.gpc-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2fbf71, #1fa25c);
	border-radius: 6px;
	transition: width 0.15s ease;
}

.gpc-progress-percent {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
}

/* ---- Done / preview state ---- */
.gpc-dropzone-done {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

.gpc-preview-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	flex-shrink: 0;
}

.gpc-done-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
}

.gpc-done-filename {
	font-size: 13px;
	color: #1a7f37;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 260px;
}

.gpc-done-filename::before {
	content: "✓ ";
}

.gpc-remove-btn {
	align-self: flex-start;
	background: none;
	border: none;
	color: #d63638;
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

/* ---- Error ---- */
.gpc-error-message {
	color: #d63638;
	font-size: 13px;
	margin: 8px 0 0;
}

/* ---- Name field ---- */
.gpc-name-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #d6d6e0;
	border-radius: 8px;
	font-size: 14px;
}

.gpc-name-input:focus {
	outline: none;
	border-color: #5b6cff;
}

.gpc-char-count {
	display: block;
	text-align: right;
	font-size: 11.5px;
	color: #999;
	margin-top: 4px;
}

.gpc-mode-hint {
	font-size: 12.5px;
	color: #5b6cff;
	background: #f0f1ff;
	border-radius: 6px;
	padding: 6px 10px;
	margin: 0 0 12px;
}

@media ( max-width: 480px ) {
	.gpc-customizer {
		max-width: 100%;
	}
}

/* ---- Disabled Add to Cart / Buy Now button ---- */
.single_add_to_cart_button.gpc-disabled,
button[type="submit"].gpc-disabled,
input[type="submit"].gpc-disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none;
	filter: grayscale( 20% );
}
