/* MaCommune Chatbot */
.cm-chatbot-widget,
.cm-chatbot-widget * {
	box-sizing: border-box;
}

.cm-chatbot-icon {
	position: fixed;
	right: 5%;
	bottom: 5%;
	z-index: 9999;
	display: block;
	width: 150px;
	height: 150px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.cm-chatbot-icon img {
	display: block;
	width: 150px;
	height: 150px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.cm-chatbot-icon,
	.cm-chatbot-icon img {
		width: 100px;
		height: 100px;
	}
}

@keyframes cm-chatbot-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	25% {
		transform: translateY(-10px);
	}
	50% {
		transform: translateY(0);
	}
	75% {
		transform: translateY(-5px);
	}
}

.cm-chatbot-bounce {
	animation: cm-chatbot-bounce 1s ease;
}

.cm-chatbot-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	background: rgba(0, 0, 0, 0.5);
}

.cm-chatbot-popup.is-open {
	display: flex;
}

.cm-chatbot-popup-content {
	position: relative;
	width: 90%;
	max-width: 400px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 20px;
	border-radius: 10px;
	background-color: #7B1113;
	color: #fff;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.cm-chatbot-popup-content a {
	color: #fff;
	text-decoration: underline;
}

.cm-chatbot-phone {
	margin: 0 35px 15px 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
}

.cm-chatbot-phone a {
	display: inline-block;
	margin-top: 6px;
}

.cm-chatbot-close {
	position: absolute;
	top: 7px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 36px;
	cursor: pointer;
}

.cm-chatbot-close:focus-visible,
.cm-chatbot-icon:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Harmonisation minimale du formulaire CF7 dans le popup */
.cm-chatbot-form {
	color: #fff;
}

.cm-chatbot-form label {
	color: #fff;
}

.cm-chatbot-form input:not([type="submit"]),
.cm-chatbot-form textarea,
.cm-chatbot-form select {
	width: 100%;
	max-width: 100%;
}

.cm-chatbot-form .wpcf7-submit {
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.cm-chatbot-no-scroll {
	overflow: hidden;
}
