.thm-vaf-pdf-download {
	margin: 0 0 12px;
}

.thm-vaf-pdf-download a {
	font-weight: 600;
	text-decoration: underline;
}

.thm-vaf-signature {
	box-sizing: border-box;
	max-width: 760px;
	min-width: 0;
	width: 100%;
}

.thm-vaf-signature-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.thm-vaf-signature-toolbar button,
.thm-vaf-signature-apply {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #111827;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	padding: 8px 12px;
}

.thm-vaf-signature-toolbar button:focus-visible,
.thm-vaf-signature-apply:focus-visible,
.thm-vaf-signature-typed:focus-visible,
.thm-vaf-signature-canvas:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.thm-vaf-signature-mode.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

.thm-vaf-signature-clear {
	margin-left: auto;
}

.thm-vaf-signature-pad {
	background: #fff;
	border: 1px solid #94a3b8;
	border-radius: 4px;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	width: 100%;
}

.thm-vaf-signature-canvas {
	box-sizing: border-box;
	display: block;
	height: 190px;
	max-width: 100%;
	min-width: 0;
	overscroll-behavior: contain;
	touch-action: none;
	user-select: none;
	width: 100%;
	-webkit-user-select: none;
}

.thm-vaf-signature-type {
	align-items: stretch;
	display: flex;
	gap: 8px;
	width: 100%;
}

.thm-vaf-signature-type[hidden] {
	display: none;
}

.thm-vaf-signature-typed {
	border: 1px solid #94a3b8;
	border-radius: 4px;
	flex: 1 1 260px;
	font: inherit;
	min-height: 42px;
	padding: 8px 10px;
}

.thm-vaf-signature-error {
	display: none;
	margin-top: 6px;
}

.thm-vaf-signature.has-error .thm-vaf-signature-error {
	display: block;
}

.thm-vaf-signature-entry img {
	background: #fff;
	border: 1px solid #d1d5db;
	display: block;
	height: auto;
	max-width: 460px;
	width: 100%;
}

.thm-vaf-signature-meta {
	color: #4b5563;
	font-size: 13px;
	margin-top: 6px;
}

@media (max-width: 600px) {
	.thm-vaf-signature {
		max-width: none;
	}

	.thm-vaf-signature-canvas {
		height: 180px;
	}

	.thm-vaf-signature-clear {
		margin-left: 0;
	}

	.thm-vaf-signature-type {
		flex-direction: column;
	}

	.thm-vaf-signature-toolbar button,
	.thm-vaf-signature-apply {
		flex: 1 1 auto;
	}
}
