/**
 * Editor-only styles of the widget block (`editorStyle` → `build/index.css`).
 *
 * The editor preview is a still of the front-end form, so it borrows the same
 * `tci-widget*` names and stays deliberately quiet: `ui` greys, one dashed
 * frame, no theme colours.
 */

.tci-widget-block-editor {
	padding: 12px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	background: #fff;

	p {
		margin: 0 0 4px;
	}

	.tci-widget-block-editor__title {
		font-weight: 600;
	}

	.tci-widget-block-editor__product {
		margin-bottom: 8px;
		color: #50575e;

		&.is-muted {
			font-style: italic;
			opacity: 0.75;
		}
	}

	.tci-widget-block-editor__button {
		display: inline-block;
		padding: 4px 12px;
		border-radius: 3px;
		background: #f6f7f7;
		color: #50575e;
		font-size: 13px;
		line-height: 1.6;
	}

	.tci-widget-block-editor__fields {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		align-items: center;
		margin: 0;
	}

	.tci-widget-block-editor__field {
		display: inline-block;
		padding: 4px 12px;
		border: 1px solid #dcdcde;
		border-radius: 3px;
		color: #50575e;
		font-size: 13px;
		line-height: 1.6;
	}
}

/* Note printed in the inspector's Style panel on a Free site. */
.tci-widget-style-locked {
	margin: 0 0 12px;
	color: #757575;
	font-size: 12px;
	font-style: italic;
}

/* Inspector: "Field order" rows (plan §2 п.20). One row per field, the label
 * takes the leftover width and the two arrows stay next to it, so a move is a
 * single click wherever the row is. */
.tci-field-order {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tci-field-order__row {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tci-field-order__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: #1e1e1e;
	font-size: 12px;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Inspector: "Field widths" (plan §2 п.21). One width select per field, stacked
 * so the four labels line up and the control keeps the inspector's full width. */
.tci-field-widths {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
