.tableTool {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	border: 1px solid #ccc;
	font-family: inherit;
	padding: 16px;
	box-sizing: border-box;
}

.tableImage {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	aspect-ratio: 3 / 2;
}

.tableBase,
.tableclothOverlay,
.napkinOverlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: top left;
}

.tableThumbnailArea {
	flex: 0 0 300px;
	width: 300px;
}

.tdt-group-label {
	font-weight: 600;
	font-size: 16px;
	color: #0a3161;
	margin-bottom: 10px;
}

.tdt-thumb-group + .tdt-group-label {
	margin-top: 20px;
}

.tdt-thumb-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tdt-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 3px;
	margin: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.tdt-thumb:hover {
	transform: scale(1.06);
}

.tdt-thumb.is-selected {
	cursor: default;
	border-color: #0a3161;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media screen and (max-width: 780px) {
	.tableTool {
		flex-direction: column;
	}
	.tableThumbnailArea {
		flex: 1 1 auto;
		width: 100%;
	}
}