.mjse-widget {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	font-family: inherit;
}

.mjse-widget[data-mjse-global="1"] {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2147483646;
}

.mjse-widget[data-mjse-global="1"][hidden] {
	display: none;
}

@media (max-width: 640px) {
	.mjse-widget[data-mjse-global="1"] {
		right: 12px;
		bottom: 12px;
	}
}

.mjse-trigger {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid #fe2c55;
	border-radius: 7px;
	background: #141922;
	color: #f7f8fb;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.mjse-trigger:hover,
.mjse-trigger:focus-visible {
	background: #202735;
	border-color: #ff5576;
	outline: 2px solid rgba(254, 44, 85, .25);
	outline-offset: 2px;
}

.mjse-trigger:active {
	transform: translateY(1px);
}

.mjse-trigger[aria-busy="true"] {
	cursor: wait;
	opacity: .72;
}

.mjse-trigger-icon {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
}

.mjse-overlay {
	position: fixed;
	top: var(--mjse-offset, 16px);
	left: 50%;
	z-index: 2147483647;
	width: max-content;
	max-width: 94vw;
	transform: translateX(-50%);
	pointer-events: none;
	line-height: 0;
	visibility: visible;
}

.mjse-overlay[data-position="center"] {
	top: 50%;
	transform: translate(-50%, -50%);
}

.mjse-overlay[data-position="bottom"] {
	top: auto;
	bottom: var(--mjse-offset, 16px);
}

.mjse-overlay.is-hidden {
	visibility: hidden;
}

.mjse-overlay canvas {
	display: block;
	width: min(var(--mjse-width, 434px), 94vw);
	height: auto;
	max-height: 86vh;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .18));
}

@media (prefers-reduced-motion: reduce) {
	.mjse-trigger {
		transition: none;
	}
}
