/* FindCaptains shared media image editor */
html.fc-media-editor-open,
html.fc-media-editor-open body {
	overflow: hidden;
}

.fc-media-editor {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0.75rem;
	background: rgba(10, 22, 40, 0.72);
	box-sizing: border-box;
}

.fc-media-editor__panel {
	display: flex;
	flex-direction: column;
	width: min(100%, 40rem);
	max-height: 100%;
	background: #fff;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.fc-media-editor__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 14rem;
	max-height: min(55vh, 28rem);
	background: #111;
	overflow: hidden;
}

.fc-media-editor__stage--circle .cropper-view-box,
.fc-media-editor__stage--circle .cropper-face {
	border-radius: 50%;
}

.fc-media-editor__image {
	display: block;
	max-width: 100%;
}

.fc-media-editor__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	touch-action: pan-y;
}

.fc-media-editor__nav-btn {
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.35rem 0.75rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: #0a1628;
	background: #f3f5f7;
	border: 1px solid rgba(10, 22, 40, 0.2);
	box-shadow: 0 1px 2px rgba(10, 22, 40, 0.08);
}

.fc-media-editor__nav-btn:not([hidden]):hover,
.fc-media-editor__nav-btn:not([hidden]):focus-visible {
	background: #e8ecf0;
	border-color: rgba(10, 22, 40, 0.35);
}

.fc-media-editor__controls,
.fc-media-editor__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.75rem;
	justify-content: center;
}

.fc-media-editor__controls .fc-btn,
.fc-media-editor__actions .fc-btn {
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.fc-media-editor__status {
	margin: 0;
	padding: 0 0.75rem 0.5rem;
	text-align: center;
	font-size: 0.95rem;
}

.fc-media-editor__actions {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 640px) {
	.fc-media-editor {
		padding: 0;
	}

	.fc-media-editor__panel {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.fc-media-editor__stage {
		max-height: none;
		flex: 1 1 auto;
	}
}
