.icu-modal {
	text-align: center;
}

.icu-message {
	margin-bottom: 12px;
}

.icu-preview-wrap {
	display: flex;
	justify-content: center;
	margin: 8px auto 0;
	background: #e8edf1;
	padding: 12px;
	border-radius: 14px;
	overflow: hidden;
}

.icu-preview {
	position: relative;
	width: 100%;
	max-width: 392px;
	overflow: hidden;
	background:
		linear-gradient(45deg, #d5dee6 25%, transparent 25%),
		linear-gradient(-45deg, #d5dee6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #d5dee6 75%),
		linear-gradient(-45deg, transparent 75%, #d5dee6 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-color: #eef2f5;
	border-radius: 10px;
}

.icu-crop-frame {
	position: absolute;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 2;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(37, 77, 104, 0.45);
}

.icu-crop-frame.icu-preview--circle {
	border-radius: 50%;
}

.icu-crop-frame.icu-preview--rounded {
	border-radius: 16px;
}

.icu-crop-frame.icu-preview--square,
.icu-crop-frame.icu-preview--rectangle {
	border-radius: 8px;
}

.icu-preview canvas {
	display: block;
	width: 100%;
	height: auto;
	cursor: grab;
	touch-action: none;
}

.icu-preview canvas.icu-dragging {
	cursor: grabbing;
}

.icu-drag-hint {
	margin: 12px 0 8px;
	font-size: 12px;
	color: #616f7b;
}

.icu-controls {
	max-width: 340px;
	margin: 0 auto 16px;
}

.icu-control-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
}

.icu-control-row label {
	margin: 0;
	font-size: 12px;
	color: #616f7b;
	min-width: 42px;
	text-align: left;
}

.icu-zoom-slider {
	flex: 1;
	max-width: 180px;
	accent-color: #28a745;
}

.icu-pan-grid {
	display: grid;
	grid-template-columns: repeat(3, 42px);
	grid-template-rows: repeat(3, 36px);
	gap: 4px;
	justify-content: center;
}

.icu-pan-grid .icu-btn {
	min-width: 42px;
	padding: 6px 0;
}

.icu-btn {
	min-width: 38px;
}

.icu-hint {
	font-size: 12px;
	color: #616f7b;
	margin-bottom: 14px;
}

.icu-file-row .custom-file-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.icu-empty-state {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-size: 13px;
	color: #888;
	text-align: center;
	pointer-events: none;
	z-index: 3;
}

.icu-preview.has-image .icu-empty-state {
	display: none;
}
