.jsm-cropper-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
}

.jsm-cropper-modal[hidden] {
	display: none;
}

.jsm-cropper-panel {
	width: min(760px, 100%);
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
	overflow: hidden;
}

.jsm-cropper-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #0f172a, #0f766e);
	color: #ffffff;
}

.jsm-cropper-head h3 {
	margin: 0 0 4px;
	color: #ffffff;
	font-size: 20px;
	line-height: 1.2;
}

.jsm-cropper-head p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

.jsm-cropper-close {
	border: 0;
	border-radius: 999px;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.jsm-cropper-body {
	padding: 18px 20px 20px;
}

.jsm-cropper-canvas-wrap {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: #0f172a;
	border: 1px solid #dbeafe;
	touch-action: none;
}

.jsm-cropper-canvas {
	display: block;
	width: 100%;
	height: auto;
	cursor: grab;
}

.jsm-cropper-canvas.is-dragging {
	cursor: grabbing;
}

.jsm-cropper-controls {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	align-items: center;
	margin-top: 16px;
}

.jsm-cropper-controls label {
	display: grid;
	gap: 6px;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
}

.jsm-cropper-controls input[type="range"] {
	width: 100%;
}

.jsm-cropper-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 16px;
}

.jsm-cropper-actions button {
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 800;
}

.jsm-cropper-use {
	background: #1d4ed8;
	color: #ffffff;
}

.jsm-cropper-original {
	background: #e0f2fe;
	color: #075985;
}

.jsm-cropper-cancel {
	background: #f1f5f9;
	color: #334155;
}

.jsm-cropper-ready {
	margin-top: 8px;
	color: #0f766e;
	font-size: 12px;
	font-weight: 800;
}

@media (max-width: 640px) {
	.jsm-cropper-modal {
		align-items: flex-end;
		padding: 10px;
	}

	.jsm-cropper-panel {
		border-radius: 20px;
	}

	.jsm-cropper-head,
	.jsm-cropper-body {
		padding: 15px;
	}

	.jsm-cropper-controls {
		grid-template-columns: 1fr;
	}

	.jsm-cropper-actions {
		display: grid;
		grid-template-columns: 1fr;
	}
}
