/* ============================================================
   mr-blur.css  —  閲覧制限 & ペイウォール型アンロックUI
   ============================================================ */

/* 1. 口コミの箱（下にビヨーンと伸びるのを強制的に防ぐ） */
.mr-blur-content {
    position: relative !important;
    max-height: 250px !important;
    overflow: hidden !important;
    filter: none !important; /* 親要素のfilterは解除（子要素のぼやけ防止） */
}

/* .mr-blur-body も同様に強制（HTML で使用している実クラス） */
.mr-review.restricted-review .mr-blur-body {
    position: relative !important;
    max-height: 250px !important;
    overflow: hidden !important;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.mr-review.restricted-review .mr-blur-body > :not(.mr-unlock-overlay) {
    pointer-events: none;
}

/* 2. オーバーレイ全体（ここで背景だけを 6px ぼかす） */
.mr-unlock-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* 縦の中央 */
    align-items: center !important;     /* 横の中央 */

    /* 背景に半透明の白を敷きつつ、後ろの文字を 6px ぼかす（すりガラス効果） */
    background: rgba(255, 255, 255, 0.4) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 10 !important;
}

/* 3. フォームの枠（白背景を完全に消し去る） */
.mr-unlock-overlay-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* ─── フォーム要素（タイトル・説明・入力・ボタン） ─── */

.mr-unlock-overlay-title {
	font-size: 1em;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0 0 6px;
	line-height: 1.4;
}

.mr-unlock-overlay-desc {
	font-size: 0.82em;
	color: #555;
	line-height: 1.6;
	margin: 0 0 8px;
}

.mr-unlock-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.mr-unlock-email-input {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.9em;
	width: 100%;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: rgba(255, 255, 255, 0.9);
}

.mr-unlock-email-input:focus {
	border-color: #33A8DE;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(51, 168, 222, 0.25);
}

.mr-unlock-submit {
	background: #33A8DE;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 12px 18px;
	font-size: 0.9em;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.2s, transform 0.1s;
	letter-spacing: 0.02em;
	min-height: 44px;
}

.mr-unlock-submit:hover {
	background: #2591c7;
}

.mr-unlock-submit:active {
	background: #1e7eae;
	transform: scale(0.98);
}

.mr-unlock-submit:disabled {
	background: #aaa;
	cursor: not-allowed;
	transform: none;
}

.mr-unlock-message {
	font-size: 0.8em;
	color: #e74c3c;
	margin: 2px 0 0;
	min-height: 0;
	text-align: center;
}

.mr-unlock-message.is-success {
	color: #33A8DE;
}

/* 送信完了後: オーバーレイの白背景・すりガラスを除去してメッセージのみ表示 */
.mr-unlock-overlay.is-submitted {
	background: transparent !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

/* 送信完了後のメッセージ（「メールを送信しました」） */
.mr-unlock-message.is-submitted {
	color: #1a1a1a;
	font-size: 0.85em;
	font-weight: bold;
	line-height: 1.7;
	margin-top: 0;
	text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}

/* ─── アンロック後: オーバーレイを非表示 ─── */

.mr-review:not(.restricted-review) .mr-unlock-overlay {
	display: none;
}

/* ─── スマホ対応: iOS でズームインを防ぐ ─── */

@media (max-width: 768px) {
	.mr-unlock-email-input {
		font-size: 16px;
	}
}
