/* 국문 메인 공지 팝업 — inc/renew/mainPopup.php */
.mainPopupWrap{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:1000000000; /* 기존 최대값(include.css .Ham_common 999999999)보다 위 */
}

.mainPopupWrap[hidden]{
	display:none;
}

.mainPopupDim{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-color:rgba(0,0,0,0.6);
}

.mainPopup{
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	display:flex;
	flex-direction:column;
	width:calc(100% - 80px);
	max-width:600px;
	max-height:calc(100% - 80px);
	padding:60px 40px 28px; /* 위 여백 = X 버튼(top 20 + 32) 아래 — 제목이 없어 본문이 버튼 밑으로 겹치지 않게 */
	box-sizing:border-box;
	background-color:#fff;
	border-radius:16px;
	font-family:'noto sans', sans-serif;
	color:#222;
}

.mainPopupClose{
	position:absolute;
	top:20px;
	right:20px;
	width:32px;
	height:32px;
	padding:0;
	border:0;
	background:none;
	cursor:pointer;
}

.mainPopupClose::before,
.mainPopupClose::after{
	content:'';
	position:absolute;
	top:50%;
	left:50%;
	width:22px;
	height:2px;
	background-color:#222;
}

.mainPopupClose::before{
	transform:translate(-50%,-50%) rotate(45deg);
}

.mainPopupClose::after{
	transform:translate(-50%,-50%) rotate(-45deg);
}

.mainPopupBody{
	flex:1 1 auto;
	min-height:0;
	overflow-y:auto;
	font-size:16px;
	line-height:1.7;
	color:#444;
	word-break:keep-all;
}

.mainPopupBody p{
	margin:0 0 1em;
}

/* 본문 하단 페이드 — 본문이 넘칠 때만 js/renew/mainPopup.js 가 isScrollable 을 붙인다 */
.mainPopupBody.isScrollable::after{
	content:'';
	position:sticky;
	bottom:0;
	display:block;
	height:40px;
	background:linear-gradient(rgba(255,255,255,0), #fff);
	pointer-events:none;
}

.mainPopupFoot{
	flex:none;
	display:flex;
	align-items:center;
	padding-top:20px;
	border-top:1px solid #eee;
	font-size:15px;
	color:#444;
}

.mainPopupFoot input{
	width:18px;
	height:18px;
	margin:0 8px 0 0;
	accent-color:#222;
	cursor:pointer;
}

.mainPopupFoot label{
	cursor:pointer;
}

@media screen and (max-width: 767px) {
	.mainPopup{
		width:calc(100% - 40px);
		max-height:calc(100% - 40px);
		padding:52px 20px 20px; /* X 버튼(top 12 + 32) 아래 */
		border-radius:12px;
	}

	.mainPopupClose{
		top:12px;
		right:12px;
	}

	.mainPopupBody{
		font-size:14px;
	}

	.mainPopupFoot{
		padding-top:16px;
		font-size:14px;
	}
}
