/* eCompliance お問合せモーダル v1.0.0 */

.eceng-modal[hidden] { display: none !important; }

.eceng-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.eceng-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.eceng-modal__panel {
	position: relative;
	background: #fff;
	color: #222;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 6px;
	padding: 28px 28px 32px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	-webkit-overflow-scrolling: touch;
}

.eceng-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.eceng-modal__close:hover { color: #000; }

.eceng-modal__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.4;
	border: 0;
	padding: 0;
}

.eceng-modal__lead {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}

/* 本文側のフォームCSS（ec-contact-ai）をそのまま使うため、
   モーダル内では余白だけを整える。 */
.eceng-modal__panel .ecca-form { margin: 0; }

html.eceng-lock,
html.eceng-lock body { overflow: hidden; }

@media (max-width: 600px) {
	.eceng-modal { padding: 0; align-items: stretch; }
	.eceng-modal__panel {
		max-width: none;
		max-height: 100vh;
		border-radius: 0;
		padding: 48px 18px 28px;
	}
}

/* ------------------------------------------------------------------ *
 * リアクション（いいね／良くない）
 * ------------------------------------------------------------------ */

.eceng-react {
	margin: 40px 0 8px;
	padding: 20px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
	text-align: center;
}

.eceng-react__q {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: bold;
	color: #333;
}

.eceng-react__btns {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.eceng-react__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 150px;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.eceng-react__btn:hover { border-color: #999; background: #f2f2f2; }
.eceng-react__btn:disabled { opacity: .55; cursor: default; }

.eceng-react__btn.is-on {
	border-color: #c8102e;
	background: #fff5f6;
	color: #c8102e;
	font-weight: bold;
}

.eceng-react__ico { font-size: 16px; line-height: 1; }

.eceng-react__n {
	min-width: 2em;
	padding: 1px 6px;
	border-radius: 10px;
	background: #eee;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.eceng-react__btn.is-on .eceng-react__n { background: #f7dde1; }

.eceng-react__msg {
	margin: 12px 0 0;
	font-size: 13px;
	color: #666;
}

.eceng-react__msg[hidden] { display: none; }

@media (max-width: 480px) {
	.eceng-react__btns { flex-direction: column; }
	.eceng-react__btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
	.eceng-modal__panel { animation: eceng-in .18s ease-out; }
	@keyframes eceng-in {
		from { opacity: 0; transform: translateY(12px); }
		to   { opacity: 1; transform: none; }
	}
}
