/* Eraser editor styles: 2026-07-23 v1 */

#canvas_id {
	max-width: 100%;
	height: auto;
	touch-action: none;
}

.bk-canvas-zoom-viewport {
	position: relative;
	overflow: hidden;
	max-width: 100%;
	margin: 0 auto;
	line-height: 0;
}

/* image-wrapperの左右余白をViewportの幅計算に含めないための内側要素。 */
.bk-canvas-viewport-host {
	width: 100%;
	margin: 0;
	padding: 0;
}

.bk-canvas-zoom-stage {
	position: relative;
	transform-origin: 0 0;
	will-change: transform;
}

.bk-canvas-pan-mode {
	touch-action: none;
}

#eraser_zoom_toolbar {
	padding-bottom: 15px;
}

.bk-eraser-line-toggle-group {
	display: inline-flex;
	gap: 8px;
}

.bk-eraser-line-toggle.is-active {
	border-color: #f0ad4e;
	background: #fff7e8;
	color: #8a5a00;
	box-shadow: none;
}

#eraser_size_toolbar .form-group {
	margin-bottom: 0;
}

.bk-range-stepper {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

.bk-range-stepper .bk-range-value {
	min-width: 64px;
	border-left: 1px solid #ccc;
}

.bk-range-step-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 0 12px;
	border: 0;
	border-left: 1px solid #ccc;
	background: #fff;
	color: #333;
	font-size: 18px;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.bk-range-step-button:hover:not(:disabled),
.bk-range-step-button:focus {
	background: #e6e6e6;
}

.bk-range-step-button:disabled {
	color: #aaa;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.bk-range-step-button {
		min-width: 42px;
		padding: 0 10px;
	}

	.bk-range-stepper .bk-range-value {
		min-width: 58px;
		padding-right: 8px;
		padding-left: 8px;
	}
}

.bk-zoom-controls {
	margin: 0 auto 8px;
	max-width: 100%;
}

.bk-zoom-controls.row,
.bk-canvas-mode-controls.row {
	margin-left: -4px;
	margin-right: -4px;
}

.bk-zoom-controls > [class*="col-xs-"],
.bk-canvas-mode-controls > [class*="col-xs-"] {
	padding-left: 4px;
	padding-right: 4px;
}

.bk-canvas-mode-controls {
	max-width: none;
	margin: 0 auto;
}

.bk-zoom-icon {
	min-width: 0;
}

.bk-zoom-value {
	display: block;
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #555;
	line-height: 20px;
	text-align: center;
}

.bk-zoom-pan.active,
.bk-zoom-pan:hover:not(:disabled),
.bk-zoom-pan:focus,
.bk-drawing-edit-mode.active,
.bk-drawing-edit-mode:hover:not(:disabled),
.bk-drawing-edit-mode:focus {
	border-color: #1a84b3;
	background: #3fb1e4;
	background: linear-gradient(to bottom, #3fb1e4 0%, #3fb1e4 50%, #2daae1 51%, #2daae1 100%);
	color: #fff;
}

.bk-restore-label-short {
	display: none;
}

@media (max-width: 999px) {
	.bk-restore-label-full {
		display: none;
	}

	.bk-restore-label-short {
		display: inline;
	}
}
