.agersoe-image-cropper-open {
	overflow: hidden;
}

.agersoe-image-cropper {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.74);
}

.agersoe-image-cropper__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 24px;
	border: 1px solid #d7e1e6;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
	color: #20313c;
}

.agersoe-image-cropper__title {
	margin: 0 48px 18px 0;
	font-size: 22px;
	line-height: 1.25;
}

.agersoe-image-cropper__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #cbd8de;
	border-radius: 50%;
	background: #fff;
	color: #20313c;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.agersoe-image-cropper__close:hover,
.agersoe-image-cropper__close:focus-visible {
	background: #eef4f6;
}

.agersoe-image-cropper__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	border: 1px solid #708995;
	border-radius: 8px;
	background: #122631;
	cursor: grab;
	touch-action: none;
}

.agersoe-image-cropper__viewport.is-dragging {
	cursor: grabbing;
}

.agersoe-image-cropper__image {
	position: absolute;
	max-width: none;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.agersoe-image-cropper__frame {
	position: absolute;
	inset: 0;
	border: 2px solid rgba(255, 255, 255, 0.92);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.28);
	pointer-events: none;
}

.agersoe-image-cropper__controls {
	display: grid;
	gap: 8px;
	margin-top: 18px;
}

.agersoe-image-cropper__zoom-label {
	display: grid;
	gap: 8px;
	font-weight: 600;
}

.agersoe-image-cropper__zoom-label input {
	width: 100%;
	accent-color: #176fa7;
}

.agersoe-image-cropper__feedback {
	margin: 0;
	color: #b42318;
	font-size: 14px;
}

.agersoe-image-cropper__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.agersoe-image-cropper__button {
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 700;
}

.agersoe-image-cropper__button--secondary {
	border-color: #b9cbd3;
	background: #fff;
	color: #20313c;
}

.agersoe-image-cropper__button--primary {
	background: #176fa7;
	color: #fff;
}

.agersoe-image-cropper__button:hover,
.agersoe-image-cropper__button:focus-visible {
	filter: brightness(0.96);
}

.agersoe-image-cropper__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 600px) {
	.agersoe-image-cropper {
		padding: 12px;
	}

	.agersoe-image-cropper__dialog {
		max-height: calc(100vh - 24px);
		padding: 16px;
	}

	.agersoe-image-cropper__actions {
		flex-direction: column-reverse;
	}

	.agersoe-image-cropper__button {
		width: 100%;
	}
}
