/**
 * BTS Messaging Lock Styles
 *
 * Styles pour le verrouillage des messages UM côté annonceur.
 * L'annonceur doit payer ou utiliser un crédit pour voir les messages.
 */

/* ─── Message verrouillé (inline dans la bulle) ─────────────────────────── */

.bts-message-locked {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #FFF;
	font-style: italic;
	font-size: 1em;
}

.bts-message-locked__icon {
	font-style: normal;
	font-size: 1.1em;
}

/* ─── Bouton débloquer dans le header de conversation ───────────────────── */

.bts-messaging-unlock-btn {
	color: #65b891 !important;
	cursor: pointer;
	transition: color 0.2s ease;
}

.bts-messaging-unlock-btn:hover {
	color: #0F5240 !important;
}

/* ─── Overlay de verrouillage sur la zone de réponse ─────────────────────── */

.bts-messaging-lock-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	border-top: 2px solid #E5E7EB;
	padding: 1.5rem;
}

.bts-messaging-lock-overlay__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.bts-messaging-lock-overlay__icon {
	font-size: 1.8rem;
	line-height: 1;
}

.bts-messaging-lock-overlay__text {
	margin: 0;
	color: #374151;
	font-size: 0.9rem;
	line-height: 1.4;
}

.bts-messaging-lock-overlay__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.2rem;
	background: #65b891;
	color: #FFF;
	border: none;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.bts-messaging-lock-overlay__btn:hover {
	background: #0F5240;
}

.bts-messaging-lock-overlay__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ─── Masquer la zone de réponse quand la conversation est verrouillée ──── */

.bts-conversation-locked .um-message-footer {
	display: none !important;
}

/* ─── Positionnement du popup UM pour supporter l'overlay ────────────────── */

.um-message-popup.bts-conversation-locked {
	position: relative;
}
