/**
 * Lithophane maker.
 */

.rb3d-lithophane .form-field {
	position: relative;
}

.rb3d-lithophane .form-field select,
.rb3d-lithophane .form-field input[type='file'],
.rb3d-lithophane .form-field input[type='range'] {
	width: 100%;
}

.rb3d-lithophane .form-field select,
.rb3d-lithophane .form-field input[type='file'] {
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--rb3d-border);
	border-radius: var(--rb3d-radius);
	font-family: var(--rb3d-font-sans);
	font-size: 0.875rem;
	color: var(--rb3d-text);
	background: var(--rb3d-surface);
}

.rb3d-lithophane .form-field select:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.rb3d-lithophane .form-field input[type='range'] {
	accent-color: var(--rb3d-accent);
	margin: 0;
}

.rb3d-lithophane__fields {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.rb3d-lithophane__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rb3d-lithophane__fields .form-field--full {
		grid-column: 1 / -1;
	}
}

.rb3d-lithophane__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--rb3d-muted);
}

.rb3d-lithophane__range-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.rb3d-lithophane__range-head label {
	margin: 0;
}

.rb3d-lithophane__range-val {
	flex-shrink: 0;
	min-width: 2.25rem;
	padding: 0.15rem 0.4rem;
	border-radius: var(--rb3d-radius);
	background: var(--rb3d-surface-low, #eceae4);
	border: 1px solid var(--rb3d-border);
	font-family: var(--rb3d-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--rb3d-text);
}

.rb3d-lithophane__check label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--rb3d-font-sans);
	font-size: 0.875rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--rb3d-text);
	cursor: pointer;
}

.rb3d-lithophane__check input[type='checkbox'] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--rb3d-accent);
}

.rb3d-lithophane .rb3d-maker__actions {
	flex-wrap: wrap;
}

.rb3d-maker__canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.rb3d-tool__status.is-error {
	color: var(--rb3d-accent-dark);
}
