/* 관리자 팝업 - 레이어 팝업 (x/y/width/height 반영) */
.layer_popup_root {
	position: fixed;
	inset: 0;
	z-index: 10050;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.layer_popup_item {
	position: absolute;
	pointer-events: auto;
	box-sizing: border-box;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-width: calc(100vw - 1rem);
	max-height: calc(100vh - 1rem);
}

.layer_popup_item__body {
	flex: 1 1 auto;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
	padding: 1rem 1.125rem;
	box-sizing: border-box;
}

.layer_popup_item__body a,
.layer_popup_item__body .layer_popup_media {
	display: block;
	box-sizing: border-box;
	height: 100%;
}

.layer_popup_item__body img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	border-radius: 0.375rem;
}

.layer_popup_item__body .layer_popup_html {
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #222;
	box-sizing: border-box;
	height: 100%;
}

.layer_popup_item__foot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-top: 1px solid #eee;
	background: #fff;
}

.layer_popup_item__cookie {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border: 0;
	background: none;
	padding: 0;
	font-size: 0.8125rem;
	color: #333;
	cursor: pointer;
	user-select: none;
}

.layer_popup_item__cookie:hover,
.layer_popup_item__cookie:active {
	opacity: 0.7;
}

.layer_popup_item__close {
	border: 0;
	background: none;
	padding: 0.25rem 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #222;
	cursor: pointer;
	white-space: nowrap;
}

.layer_popup_item__close:hover,
.layer_popup_item__close:active {
	opacity: 0.7;
}

body.is_layer_popup_open {
	overflow: hidden;
}
