/* Fluent Forms digital signature field (standalone asset). */

.ff-signature-field {
	margin-bottom: 0.5rem;
}

.ff-signature-field__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.5rem;
	max-width: 640px;
}

.ff-signature-field__help {
	margin: 0;
	flex: 1;
	font-size: 0.875rem;
	color: rgba(55, 65, 81, 0.75);
	line-height: 1.5;
}

.ff-signature-pad {
	display: block;
	width: 100%;
	max-width: 640px;
	height: 220px;
	min-height: 220px;
	cursor: crosshair;
	pointer-events: auto;
	background: #fff;
	border: 1px dashed #94a3b8;
	border-radius: 8px;
	touch-action: none;
}

.ff-signature-clear {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
	padding: 0.5rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(55, 65, 81, 0.7);
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.ff-signature-clear:hover,
.ff-signature-clear:focus-visible {
	color: #363b90;
	background: rgba(148, 163, 184, 0.12);
	outline: none;
}

.ff-signature-clear__icon {
	font-size: 22px;
}

@media (min-width: 480px) {
	.ff-signature-clear__label {
		display: none;
	}
}

.ff-el-is-error .ff-signature-pad {
	border-color: #e53935;
}

.ff-el-group:has(.ff-signature-field) .ff-el-tooltip {
	display: none !important;
}

.ff-signature-entry-image {
	display: block;
	max-width: 640px;
	height: auto;
	border: 1px solid #d1d5db;
	border-radius: 8px;
}
