.tdpcm-admin-table input[type="text"] {
	width: 150px;
}

.tdpcm-admin-table input[type="number"] {
	width: 90px;
}

.tdpcm-preview {
	display: inline-block;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	border: 2px solid #bbb;
	border-radius: 50%;
	vertical-align: middle;
}

.tdpcm-add-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.tdpcm-selector {
	clear: both;
	margin: 0 0 20px;
}

.tdpcm-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
}

.tdpcm-swatch-item {
	display: flex;
	max-width: 105px;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	font-size: 12px;
	line-height: 1.2;
}

.tdpcm-swatch-item small {
	color: #777;
}

.tdpcm-swatch {
	position: relative;
	box-sizing: border-box;
	width: 34px;
	height: 34px;
	min-width: 34px;
	padding: 0;
	border: 2px solid #ddd;
	border-radius: 50%;
	background-color: var(--tdpcm-color) !important;
	cursor: pointer;
	box-shadow: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tdpcm-swatch:hover:not(:disabled),
.tdpcm-swatch:focus-visible:not(:disabled) {
	transform: scale(1.08);
}

.tdpcm-swatch.selected {
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, .3);
}

.tdpcm-swatch.is-unavailable {
	opacity: .3;
	filter: grayscale(1);
	cursor: not-allowed;
}

.tdpcm-swatch.is-unavailable::after {
	position: absolute;
	top: 14px;
	left: 1px;
	width: 28px;
	height: 2px;
	background: #111;
	content: "";
	transform: rotate(-45deg);
	transform-origin: center;
}
