.wm-fse {
	--wm-fse-x: 24px;
	--wm-fse-y: 24px;
	--wm-fse-close-x: -8px;
	--wm-fse-close-y: -8px;
	position: fixed;
	width: 180px;
	max-width: calc(100vw - 20px);
	z-index: 9999;
	box-sizing: border-box;
	line-height: 0;
}

.wm-fse-h-left {
	left: var(--wm-fse-x);
	right: auto;
}

.wm-fse-h-right {
	right: var(--wm-fse-x);
	left: auto;
}

.wm-fse-v-top {
	top: var(--wm-fse-y);
	bottom: auto;
}

.wm-fse-v-bottom {
	bottom: var(--wm-fse-y);
	top: auto;
}

.wm-fse__image-wrap,
.wm-fse__link,
.wm-fse__image {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.wm-fse__image-wrap {
	position: relative;
	overflow: hidden;
}

.wm-fse__link {
	text-decoration: none;
	line-height: 0;
}

.wm-fse__image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0;
}

.wm-fse__close {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	z-index: 2;
}

.wm-fse__close span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

.wm-fse__close-top-right {
	top: var(--wm-fse-close-y);
	right: var(--wm-fse-close-x);
}

.wm-fse__close-top-left {
	top: var(--wm-fse-close-y);
	left: var(--wm-fse-close-x);
}

.wm-fse__close-bottom-right {
	bottom: var(--wm-fse-close-y);
	right: var(--wm-fse-close-x);
}

.wm-fse__close-bottom-left {
	bottom: var(--wm-fse-close-y);
	left: var(--wm-fse-close-x);
}

.wm-fse--hidden {
	display: none !important;
}

/*
 * Elementor editor safety:
 * The element remains visible while editing, even if it was closed in the
 * frontend in the same browser session. Storage logic is disabled by JS.
 */
.elementor-editor-active .wm-fse--hidden,
.wm-fse[data-editor-mode="yes"].wm-fse--hidden {
	display: block !important;
}
