/* Speak to an Expert — site-wide modal */
.ak-ee-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ak-ee-modal[hidden] {
	display: none;
}

.ak-ee-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.72);
}

.ak-ee-modal__dialog {
	position: relative;
	width: min(1150px, 94vw);
	height: min(700px, 94vh);
	background: #FFFFFF;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
	overflow: hidden;
}

.ak-ee-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #FFFFFF;
}

.ak-ee-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1A1A1A;
	font-size: 24px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease;
}

.ak-ee-modal__close:hover,
.ak-ee-modal__close:focus {
	background: #FFFFFF;
	color: #AA5432;
}

html.ak-ee-modal-open,
html.ak-ee-modal-open body {
	overflow: hidden !important;
}

/* 弹窗内嵌页：填满 iframe，去掉主题遗留间距 */
body.ak-ee-embed {
	margin: 0;
	background: #FFFFFF;
}

body.ak-ee-embed #wpadminbar,
body.ak-ee-embed .ast-above-header-wrap,
body.ak-ee-embed #masthead,
body.ak-ee-embed #colophon,
body.ak-ee-embed .site-footer {
	display: none !important;
}

body.ak-ee-embed .site-content,
body.ak-ee-embed .ast-container,
body.ak-ee-embed .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

@media (min-width: 1025px) {
	body.ak-ee-embed .ak-ee-wrap {
		min-height: 100vh;
	}
	body.ak-ee-embed .ak-ee-left {
		min-height: 100vh;
	}
}

@media (max-width: 1024px) {
	.ak-ee-modal {
		align-items: stretch;
		justify-content: stretch;
	}
	.ak-ee-modal__dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
	}
}
