#messagebox {
	background-color: #F7FDFE;
	display: none;
	cursor: default;
	width: 380px;
	height: auto;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -230px;
	margin-top: -125px;
	border-radius: 10px;
	text-align: center;
	padding: 5px;
}
#messageboxtitle {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 380px;
	height: 40px;
	background-color: #e5e5e5;
	border-radius: 15px;
	line-height: 40px;
	text-align: left;
	padding-left: 10px;
}
/* 訊息區與按鈕列走自然流動：高度隨內容長（min-height 保底），長訊息不裁切、按鈕永遠在訊息下方；
   flex 垂直置中讓短訊息維持置中視覺、長訊息不再於頂部留死空間 */
#messageboxcontant {
	width: auto;
	min-height: 100px;
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	font-size: 1.1em;
	padding: 15px 5px;
}
/* 修掉訊息內容首尾元素自帶的外邊距（h4/p 等隨資料而異），置中後上下留白才對稱 */
#messageboxcontant > :first-child {
	margin-top: 0;
}
#messageboxcontant > :last-child {
	margin-bottom: 0;
}
#messageboxbutton {
	width: auto;
	height: 40px;
	padding: 5px;
	padding-right: 30px;
	text-align: right;
	line-height: 30px;
}
.datacacher {
	display: none;
}
#btnaccept {
	width: 100px;
	font-size: 0.85em;
}

/* RWD：手機時對話框收斂在視窗內（桌機維持 380px 原樣）。
   blockUI 會在包裹層塞 inline 尺寸、#messagebox 又用負 margin 置中，
   手機改 fixed 定位直接對視窗置中，用 !important 蓋過 inline。 */
@media only screen and (max-width: 480px) {
	#messagebox {
		position: fixed !important;
		width: calc(100vw - 30px) !important;
		left: 15px !important;
		top: 50% !important;
		margin-left: 0 !important;
		margin-top: -125px !important;
	}
	#messageboxtitle {
		width: calc(100vw - 40px);
	}
}
