@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

.ct-editor {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}

.ct-editor-form,
.ct-editor-preview {
	flex: 1 1 400px;
	min-width: 320px;
}

.ct-editor-title {
	margin-top: 0;
}

.ct-editor-price {
	display: inline-block;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	background: #f4f4f4;
	border-radius: 6px;
	padding: 8px 16px;
	margin: 0 0 16px;
}

.ct-editor-price:empty {
	display: none;
}

.ct-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ct-field label {
	font-weight: 600;
	font-size: 14px;
}

.ct-field input,
.ct-field textarea {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.ct-upgrades-wrap {
	margin: 4px 0 16px;
	font-size: 14px;
}

.ct-shipping-fields {
	border-top: 1px solid #e5e5e5;
	padding-top: 14px;
	margin-top: 4px;
}

.ct-upgrades-list label {
	cursor: pointer;
}

.ct-format-toggle {
	margin: 4px 0 16px;
	font-size: 14px;
}

.ct-format-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ct-format-toggle label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-right: 18px;
	cursor: pointer;
	font-weight: 400;
}

.ct-delivery-toggle {
	margin: 0 0 16px;
	font-size: 14px;
}

.ct-delivery-toggle label {
	display: block;
	margin: 4px 0;
	cursor: pointer;
	font-weight: 400;
}

.ct-delivery-fields {
	border-top: 1px solid #e5e5e5;
	padding-top: 14px;
	margin-bottom: 16px;
}

.ct-download-btn {
	margin-top: 8px;
	padding: 12px 24px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
}

.ct-download-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ct-editor-status {
	margin-top: 12px;
	font-size: 14px;
}

.ct-preview-canvas-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	line-height: 0;
}

.ct-preview-base-img {
	width: 100%;
	height: auto;
	display: block;
}

.ct-owner-tools {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ct-position-status {
	font-size: 13px;
	color: #50575e;
}

/*
 * While position-edit mode is on, overlays become draggable — normally
 * they're pointer-events:none so they never intercept clicks meant for
 * the page underneath.
 */
.ct-editor.ct-position-edit-mode .ct-overlay-text {
	pointer-events: auto;
	cursor: grab;
	outline: 1px dashed rgba(0, 0, 0, 0.35);
}

.ct-editor.ct-position-edit-mode .ct-overlay-text:active {
	cursor: grabbing;
	outline-color: #d63638;
}

.ct-overlay-text {
	position: absolute;
	white-space: nowrap;
	pointer-events: none;
	font-family: Georgia, serif;
	line-height: 1;
}

.ct-overlay-text[data-font-family="script"] {
	font-family: 'Caveat', cursive;
}
