/**
 * EGGIO China-site construction/review mode.
 * All components remain in normal document flow except the dismissible entry notice.
 */

.eggio-cn-construction-status {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 34px;
	padding: 0 16px;
	overflow: hidden;
	background: #fff6d8;
	border-bottom: 1px solid #f0d986;
	color: #5f4b08;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * RiPro V5 places its header at absolute top:0 even when wp_body_open() has
 * already emitted content. Keep the header below this normal-flow status bar;
 * once RiPro makes the header sticky, it returns to the viewport top.
 */
.eggio-cn-construction-status ~ .site-header {
	top: 34px;
}

.eggio-cn-construction-status ~ .site-header.navbar-sticky {
	top: 0;
}

.eggio-cn-projects-hidden-notice {
	position: relative;
	z-index: 9;
	width: min(1120px, calc(100% - 32px));
	margin: 14px auto;
	padding: 14px 18px;
	background: #f5f7fa;
	border: 1px solid #dfe4ea;
	border-radius: 10px;
	color: #4d5663;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.65;
	text-align: center;
}

.eggio-cn-construction-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, .64);
}

.eggio-cn-construction-modal[hidden] {
	display: none !important;
}

.eggio-cn-construction-modal__panel {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 32px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 72px rgba(0, 0, 0, .24);
	color: #374151;
}

.eggio-cn-construction-modal__panel h2 {
	margin: 0 38px 14px 0;
	color: #111827;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
}

.eggio-cn-construction-modal__panel > p:not(.eggio-cn-construction-modal__eyebrow) {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
}

.eggio-cn-construction-modal__eyebrow {
	margin: 0 0 8px;
	color: #99751a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.eggio-cn-construction-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f5;
	color: #4b5563;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.eggio-cn-construction-modal__confirm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 22px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.eggio-cn-hidden-project {
	min-height: 45vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 18px;
}

.eggio-cn-hidden-project-card {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 32px;
	background: #fff;
	border: 1px solid #e3e7ec;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(17, 24, 39, .06);
	color: #4b5563;
	text-align: center;
}

.eggio-cn-hidden-project-card h1 {
	margin: 0 0 12px;
	color: #111827;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.35;
}

.eggio-cn-hidden-project-card p {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

@media (max-width: 575.98px) {
	.eggio-cn-construction-status {
		height: 32px;
		padding: 0 12px;
		font-size: 12px;
	}

	.eggio-cn-construction-status ~ .site-header {
		top: 32px;
	}

	.eggio-cn-construction-status ~ .site-header.navbar-sticky {
		top: 0;
	}

	.eggio-cn-projects-hidden-notice {
		width: calc(100% - 24px);
		margin: 10px auto;
		padding: 12px 14px;
		font-size: 13px;
	}

	.eggio-cn-construction-modal {
		align-items: flex-end;
		padding: 12px;
	}

	.eggio-cn-construction-modal__panel {
		max-height: calc(100vh - 24px);
		padding: 26px 22px 24px;
		border-radius: 16px;
	}

	.eggio-cn-construction-modal__panel h2 {
		font-size: 20px;
	}

	.eggio-cn-construction-modal__panel > p:not(.eggio-cn-construction-modal__eyebrow) {
		font-size: 14px;
	}

	.eggio-cn-hidden-project-card {
		padding: 26px 20px;
	}

	.eggio-cn-hidden-project-card h1 {
		font-size: 24px;
	}
}
