.cp-photo-cropper-status {
	margin-top: 10px;
	color: #17486f;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.cp-photo-cropper-status.is-preview {
	margin: 14px auto 0;
	width: min(220px, 100%);
}

.cp-photo-cropper-preview {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border: 1px solid #c9d8e6;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(25, 45, 120, 0.16);
}

.cp-photo-cropper-is-open,
.cp-photo-cropper-is-open body {
	overscroll-behavior: none;
	touch-action: none;
}

.cp-photo-cropper-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(8, 22, 36, 0.72);
}

.cp-photo-cropper-modal.is-open {
	display: flex;
}

.cp-photo-cropper-dialog {
	width: min(640px, 100%);
	max-height: calc(100vh - 36px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 14px;
	background: #0c1018;
	box-shadow: 0 28px 80px rgba(5, 16, 28, 0.34);
	color: #ffffff;
}

.cp-photo-cropper-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 18px 12px;
	background: #0c1018;
	color: #ffffff;
}

.cp-photo-cropper-title {
	margin: 0;
	color: #ffffff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none !important;
}

.cp-photo-cropper-help {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 14px;
	line-height: 1.45;
}

.cp-photo-cropper-close,
.cp-photo-cropper-icon-button {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

.cp-photo-cropper-close {
	font-size: 24px;
}

.cp-photo-cropper-icon-button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.cp-photo-cropper-close:hover,
.cp-photo-cropper-close:focus,
.cp-photo-cropper-icon-button:hover,
.cp-photo-cropper-icon-button:focus {
	background: rgba(255, 255, 255, 0.2);
}

.cp-photo-cropper-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 380px;
	max-height: min(64vh, 620px);
	padding: 0 18px;
	background:
		linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
		#07090d;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
}

.cp-photo-cropper-frame {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
	overflow: hidden;
	border-radius: 12px;
	background: #07090d;
}

.cp-photo-cropper-stage img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.cp-photo-cropper-toolrow {
	display: flex;
	justify-content: center;
	gap: 18px;
	padding: 14px 18px 8px;
	background: #0c1018;
}

.cp-photo-cropper-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 10px 18px 18px;
	background: #0c1018;
}

.cp-photo-cropper-button {
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}

.cp-photo-cropper-button:hover,
.cp-photo-cropper-button:focus {
	background: rgba(255, 255, 255, 0.2);
}

.cp-photo-cropper-button--primary {
	background: #2e86de;
	color: #ffffff;
}

.cp-photo-cropper-button--primary:hover,
.cp-photo-cropper-button--primary:focus {
	background: #1f75c9;
}

.cp-photo-cropper-modal .cropper-container,
.cp-photo-cropper-modal .cropper-wrap-box,
.cp-photo-cropper-modal .cropper-canvas,
.cp-photo-cropper-modal .cropper-drag-box,
.cp-photo-cropper-modal .cropper-crop-box {
	touch-action: none;
}

.cp-photo-cropper-modal .cropper-view-box {
	outline: 2px solid rgba(255, 255, 255, 0.95);
	outline-offset: -1px;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52);
}

.cp-photo-cropper-modal .cropper-face {
	background: transparent;
}

.cp-photo-cropper-modal .cropper-line,
.cp-photo-cropper-modal .cropper-point {
	display: none;
}

@media (max-width: 640px) {
	.cp-photo-cropper-modal {
		align-items: stretch;
		justify-content: stretch;
		padding: 0;
		background: #0c1018;
	}

	.cp-photo-cropper-dialog {
		width: 100%;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
		box-shadow: none;
	}

	.cp-photo-cropper-header {
		padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
	}

	.cp-photo-cropper-title {
		font-size: 18px;
	}

	.cp-photo-cropper-help {
		max-width: 260px;
		font-size: 13px;
	}

	.cp-photo-cropper-close,
	.cp-photo-cropper-icon-button {
		width: 44px;
		height: 44px;
	}

	.cp-photo-cropper-stage {
		min-height: 0;
		max-height: none;
		flex: 1 1 auto;
		padding: 0;
	}

	.cp-photo-cropper-frame {
		min-height: 100%;
		border-radius: 0;
	}

	.cp-photo-cropper-toolrow {
		padding: 12px 16px 8px;
	}

	.cp-photo-cropper-actions {
		padding: 8px 16px calc(14px + env(safe-area-inset-bottom));
	}

	.cp-photo-cropper-button {
		min-height: 50px;
		border-radius: 14px;
		font-size: 16px;
	}
}
