.mzha-handwriting {
	--mzha-stroke-color: #fff;
	--mzha-stroke-width: 3px;
	--mzha-fill-color: #fff;
	--mzha-linecap: round;
	--mzha-linejoin: round;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	position: relative;
	overflow: hidden;
}

.mzha-handwriting[role="button"] {
	cursor: pointer;
}

.mzha-handwriting[role="button"]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.mzha-handwriting__svg {
	display: block;
	max-width: 100%;
	height: auto;
	overflow: visible;
	shape-rendering: geometricPrecision;
	text-rendering: geometricPrecision;
}

.mzha-handwriting .mzha-drawable {
	stroke-linecap: var(--mzha-linecap) !important;
	stroke-linejoin: var(--mzha-linejoin) !important;
	will-change: stroke-dashoffset, opacity;
	backface-visibility: hidden;
}

.mzha-handwriting.is-line-engine .mzha-drawable {
	stroke: var(--mzha-stroke-color) !important;
	stroke-width: var(--mzha-stroke-width) !important;
	vector-effect: non-scaling-stroke;
}

.mzha-handwriting.is-prepared-engine .mzha-drawable.is-custom-width {
	stroke: var(--mzha-fill-color) !important;
	stroke-width: var(--mzha-stroke-width) !important;
	vector-effect: non-scaling-stroke;
}

.mzha-handwriting.is-prepared-engine .mzha-drawable.is-auto-width {
	stroke: var(--mzha-fill-color) !important;
	stroke-width: var(--mzha-auto-stroke-width) !important;
	vector-effect: none;
}

.mzha-handwriting.is-prepared-engine .mzha-drawable.is-preserve-width {
	stroke: var(--mzha-fill-color) !important;
}

.mzha-handwriting .mzha-fill-guide {
	fill: none !important;
	stroke: var(--mzha-guide-color, var(--mzha-fill-color)) !important;
	stroke-width: var(--mzha-auto-stroke-width) !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	vector-effect: none;
	pointer-events: none;
}

.mzha-handwriting .mzha-fill-final {
	will-change: opacity;
}

.mzha-handwriting.is-custom-fill .mzha-fill-final,
.mzha-handwriting.is-custom-fill .mzha-drawable.is-draw-complete:not(.mzha-fill-guide) {
	fill: var(--mzha-fill-color) !important;
}

.mzha-handwriting__notice {
	direction: rtl;
	padding: 16px;
	border: 1px dashed #9ca3af;
	border-radius: 8px;
	background: #f8fafc;
	color: #475569;
	font-size: 13px;
	text-align: center;
}
