/* WhatsApp Partenaires — button and form window. Same look as the Click to Chat form of the blogs. */

.mvcwa-place {
	display: flex;
	justify-content: center;
	margin: 0 0 30px;
}
.mvcwa-place.mvcwa-align-left {
	justify-content: flex-start;
}
.mvcwa-place.mvcwa-align-right {
	justify-content: flex-end;
}

.mvcwa-bouton {
	display: inline-flex;
	align-items: center;
	column-gap: 0.5em;
	padding: 10px 20px;
	border: solid 2px var(--mvcwa-button, #00a7a7);
	border-radius: 4px;
	background: var(--mvcwa-button, #00a7a7);
	color: #fff;
	font-family: "Source sans 3", inherit;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.mvcwa-bouton:hover,
.mvcwa-bouton:focus {
	background: #fff;
	color: var(--mvcwa-button, #00a7a7);
	text-decoration: none;
}
.mvcwa-icon {
	flex: none;
}

.mvcwa-modal[hidden] {
	display: none !important;
}
.mvcwa-modal {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999999;
	width: 360px;
	max-width: calc(100vw - 32px);
}
.mvcwa-panel {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 48px);
	overflow: hidden;
	border-radius: 12px;
	background: var(--mvcwa-body, #ece5dd);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	line-height: 1.4;
	color: #393939;
	text-align: left;
}
.mvcwa-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 14px 20px;
	background: var(--mvcwa-head, #00a7a7);
	color: #fff;
}
.mvcwa-title {
	font-size: 17px;
	font-weight: 500;
}
.mvcwa-panel .mvcwa-close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.mvcwa-panel .mvcwa-close:hover,
.mvcwa-panel .mvcwa-close:focus {
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
}
.mvcwa-body {
	overflow-x: hidden;
	overflow-y: auto;
	padding: 12px 20px 16px;
}
.mvcwa-intro {
	margin: 4px 0 14px;
	font-weight: 600;
	text-align: center;
}
.mvcwa-field {
	min-width: 0;
	margin: 0 0 12px;
}
.mvcwa-field label {
	display: block;
	margin: 0 0 4px;
}
.mvcwa-panel .mvcwa-field input,
.mvcwa-panel .mvcwa-field textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #393939;
	font: inherit;
}
/* iPhone: the date field has a system minimum width and widens once filled; drawn as a plain field instead. */
.mvcwa-panel .mvcwa-field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	text-align: left;
}
.mvcwa-panel .mvcwa-field input[type="date"]::-webkit-date-and-time-value {
	margin: 0;
	text-align: left;
}
.mvcwa-field textarea {
	min-height: 70px;
	resize: vertical;
}
.mvcwa-consent {
	margin: 4px 0 12px;
	font-size: 14px;
}
.mvcwa-consent input {
	margin-right: 6px;
}
.mvcwa-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mvcwa-actions {
	margin: 0;
	text-align: center;
}
.mvcwa-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	column-gap: 0.5em;
	min-width: 70%;
	margin: 0;
	padding: 10px 24px;
	border: 0;
	border-radius: 30px;
	background: var(--mvcwa-head, #00a7a7);
	color: #fff;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}
.mvcwa-submit:hover,
.mvcwa-submit:focus {
	background: var(--mvcwa-head, #00a7a7);
	color: #fff;
	filter: brightness(0.92);
}
.mvcwa-foot {
	padding: 6px 12px;
	background: #fff;
	font-size: 13px;
	text-align: center;
}
.mvcwa-foot a {
	color: #393939;
	text-decoration: none;
}

@media (max-width: 600px) {
	.mvcwa-modal {
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		max-width: none;
	}
	.mvcwa-panel {
		max-height: 100vh;
		max-height: 100dvh;
		border-radius: 12px 12px 0 0;
	}
	/* Below 16px, Safari on iPhone zooms in on the field being filled and the page slides sideways. */
	.mvcwa-panel .mvcwa-field input,
	.mvcwa-panel .mvcwa-field textarea {
		font-size: 16px;
	}
	.mvcwa-panel .mvcwa-close {
		width: 40px;
		height: 40px;
		font-size: 28px;
	}
}
