/* Microsoft系メール到達のお知らせ（CF7） — モーダル */

body.cf7-ms-edn-modal-open {
	overflow: hidden;
	touch-action: none;
}

.cf7-ms-edn-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.45);
	/* 枠外クリックで閉じない — オーバーレイに閉じる処理は付けない */
}

.cf7-ms-edn-dialog {
	width: 100%;
	max-width: min(100%, 420px);
	margin: 0;
	padding: 1.25rem 1.25rem 1rem;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
}

.cf7-ms-edn-message {
	margin: 0 0 1.25rem;
	word-break: break-word;
	line-height: 1.65;
}

.cf7-ms-edn-intro {
	margin: 0 0 0.65rem;
	font-weight: 600;
}

.cf7-ms-edn-domain-list {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
	list-style-type: disc;
}

.cf7-ms-edn-domain-list li {
	margin: 0.2rem 0;
}

.cf7-ms-edn-sentence {
	margin: 0 0 0.85rem;
}

.cf7-ms-edn-line2 {
	margin: 0;
}

.cf7-ms-edn-domain,
.cf7-ms-edn-emphasis {
	color: #c62828;
}

.cf7-ms-edn-domain {
	font-weight: inherit;
}

.cf7-ms-edn-emphasis {
	font-weight: 700;
}

.cf7-ms-edn-actions {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.cf7-ms-edn-ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	margin: 0;
	border: none;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.cf7-ms-edn-ok:hover,
.cf7-ms-edn-ok:focus-visible {
	background: #135e96;
	outline: none;
}

.cf7-ms-edn-ok:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
}

@media (max-width: 480px) {
	.cf7-ms-edn-dialog {
		max-width: 100%;
		font-size: 0.9rem;
	}

	.cf7-ms-edn-ok {
		width: 100%;
		min-height: 48px;
	}
}
