/* B2 WhatsApp Lead Modal - Frontend */
.b2wlm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: none;
	background: rgba(0, 0, 0, .63);
	font-family: Arial, Helvetica, sans-serif;
}

.b2wlm-overlay.is-open {
	display: block;
}

.b2wlm-modal {
	position: fixed;
	right: 22px;
	bottom: 96px;
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 116px);
	overflow-y: auto;
	background: #ece7e0;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .32);
}

.b2wlm-header {
	position: relative;
	padding: 17px 44px 16px 20px;
	background: #205e56;
	color: #fff;
}

.b2wlm-header h2 {
	margin: 0;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.42;
}

.b2wlm-close {
	position: absolute;
	top: 8px;
	right: 11px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 33px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.b2wlm-close:hover,
.b2wlm-close:focus {
	color: #fff;
	background: transparent;
	opacity: .82;
}

.b2wlm-body {
	padding: 21px 15px 20px;
}

.b2wlm-form-fields > input:not([type="radio"]) {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	margin: 0 0 10px;
	padding: 7px 8px;
	border: 1px solid #c7c8ce;
	border-radius: 5px;
	background: #fff;
	color: #454545;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	box-shadow: none;
}

.b2wlm-form-fields > input:focus {
	border-color: #21736a;
	outline: 1px solid #21736a;
}

.b2wlm-form-fields > input::placeholder {
	color: #777d88;
	opacity: 1;
}

.b2wlm-purpose {
	margin: 1px 0 19px;
	padding: 0;
	border: 0;
	color: #3e4650;
	font-size: 14px;
	line-height: 1.42;
}

.b2wlm-purpose legend {
	display: block;
	margin: 0 0 1px;
	padding: 0;
	color: #35404a;
	font-size: 14px;
	font-weight: 400;
}

.b2wlm-purpose label {
	display: block;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.b2wlm-purpose input[type="radio"] {
	width: auto;
	height: auto;
	margin: 0 4px 0 0;
	vertical-align: middle;
	accent-color: #4caf50;
}

.b2wlm-submit {
	display: block;
	width: calc(100% - 10px);
	min-height: 48px;
	margin: 0 5px;
	padding: 12px;
	border: 0;
	border-radius: 5px;
	background: #4caf50;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease;
}

.b2wlm-submit:hover,
.b2wlm-submit:focus {
	background: #429a47;
	color: #fff;
}

.b2wlm-submit:disabled {
	opacity: .7;
	cursor: wait;
}

.b2wlm-form-fields.is-hidden {
	display: none;
}

.b2wlm-response {
	display: none;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

.b2wlm-response.is-success {
	display: block;
	position: relative;
	margin: 4px 0 6px;
	padding: 78px 30px 34px;
	border: 1px solid #b8dfbf;
	border-radius: 9px;
	background: #e4f5e7;
	color: #176329;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	box-shadow: 0 1px 4px rgba(23, 99, 41, .09);
}

.b2wlm-response.is-success::before {
	content: "✓";
	position: absolute;
	top: 25px;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: -20px;
	border-radius: 50%;
	background: #4caf50;
	color: #fff;
	font-size: 25px;
	font-weight: bold;
	line-height: 1;
}

.b2wlm-response.is-error {
	display: block;
	margin: 0 5px 14px;
	padding: 12px 14px;
	border-radius: 5px;
	background: #f8dddd;
	color: #8d1b1b;
	font-size: 13px;
	line-height: 1.4;
}

.b2wlm-floating-button {
	position: fixed;
	right: 23px;
	bottom: 22px;
	z-index: 999997;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 5px solid #fff;
	border-radius: 50%;
	background: #27d366;
	color: #fff;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.b2wlm-floating-button:hover,
.b2wlm-floating-button:focus {
	background: #20bd59;
	color: #fff;
	transform: scale(1.04);
}

.b2wlm-offscreen-fields {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.b2wlm-screenreader {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

body.b2wlm-modal-open {
	overflow: hidden;
}

@media (max-width: 520px) {
	.b2wlm-modal {
		right: 16px;
		bottom: 90px;
		width: calc(100vw - 32px);
		max-height: calc(100vh - 108px);
	}
	.b2wlm-desktop-break {
		display: none;
	}
	.b2wlm-floating-button {
		right: 16px;
		bottom: 16px;
	}
}
