/**
 * CD Hole Measure – front-end styles.
 * Scoped to .cd-hm-* classes only. Theme handles h4 and p styling.
 */

.cd-hm-wrapper {
	display:   block;
	max-width: 100%;
}

.cd-hm-wrapper h4 {
	margin-bottom: 5px;
}

.cd-hm-canvas-wrap {
	position:    relative;
	display:     inline-block;
	max-width:   100%;
	cursor:      crosshair;
	line-height: 0;
}

.cd-hm-canvas {
	display:   block;
	max-width: 100%;
	height:    auto;
}

.cd-hm-svg {
	position:       absolute;
	top:            0;
	left:           0;
	pointer-events: none;
	overflow:       visible;
}

.cd-hm-readout {
	position:       absolute;
	background:     rgba(0, 0, 0, 0.78);
	color:          #ffffff;
	padding:        12px 8px;
	border-radius:  20px;
	font-size:      18px;
	font-weight:    700;
	white-space:    nowrap;
	pointer-events: none;
	z-index:        10;
	transform:      translateX(-50%);
	box-shadow:     0 0 0 2px #ffffff, 0 2px 8px rgba(0,0,0,0.4);
}

.cd-hm-disclaimer {
	font-size:  85%;
	font-style: italic;
}

.cd-hm-error {
	padding:       8px 12px;
	background:    #fff3f3;
	border:        1px solid #f99;
	border-radius: 4px;
}
