/* findAccount iframe 모달 — 부모 페이지(로그인 등)에 포함 */

.fa-modal-host {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10050;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.45);
}

.fa-modal-host.is-open {
	display: flex;
}

.fa-modal-host__panel {
	position: relative;
	width: 100%;
	max-width: var(--fa-modal-max-width, 520px);
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fa-modal-host__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e5e5;
	background: #fafafa;
	flex: 0 0 auto;
}

.fa-modal-host__title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #222;
}

.fa-modal-host__close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #666;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.fa-modal-host__close:hover {
	background: #eee;
	color: #111;
}

.fa-modal-host__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #fff;
}

.fa-modal-host__iframe {
	display: block;
	width: 100%;
	height: 520px;
	max-height: calc(100vh - 120px);
	border: 0;
	vertical-align: top;
}

@media (max-width: 520px) {
	.fa-modal-host {
		padding: 0;
		align-items: stretch;
	}

	.fa-modal-host__panel {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}

	.fa-modal-host__iframe {
		height: calc(100vh - 49px);
	}
}
