.wx-lw-dialog {
	position: fixed;
	inset: auto 1.25rem 5.75rem auto;
	box-sizing: border-box;
	width: min(calc(100vw - 2.5rem), 25rem);
	max-width: none;
	max-height: calc(100dvh - 7rem);
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 1rem;
	background: #eee8df;
	box-shadow: 0 1.5rem 4rem rgb(22 45 38 / 28%);
	color: #17352d;
	font: inherit;
}

.wx-lw-dialog[open] { animation: wx-lw-enter 180ms cubic-bezier(.22, 1, .36, 1); }
.wx-lw-dialog::backdrop { background: rgb(9 25 20 / 48%); }
.wx-lw-form { display: flex; max-height: calc(100dvh - 7rem); flex-direction: column; margin: 0; padding: 0; }

.wx-lw-chat-header {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) 2.75rem;
	gap: .75rem;
	align-items: center;
	padding: 1rem;
	background: #096b5c;
	color: #f4fffb;
}

.wx-lw-avatar {
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	overflow: hidden;
	border: 2px solid rgb(244 255 251 / 88%);
	border-radius: 50%;
	background: #1fc76a;
}

.wx-lw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wx-lw-avatar .wx-lw-whatsapp-mark { width: 1.85rem; height: 1.85rem; object-fit: contain; }
.wx-lw-identity { min-width: 0; }
.wx-lw-identity h2 { margin: 0; color: inherit; font: inherit; font-size: 1.05rem; font-weight: 750; line-height: 1.2; }
.wx-lw-identity p { display: flex; gap: .4rem; align-items: center; margin: .2rem 0 0; color: #d9f4eb; font-size: .82rem; line-height: 1.25; }
.wx-lw-identity p span { width: .45rem; height: .45rem; flex: 0 0 auto; border-radius: 50%; background: #72e69b; box-shadow: 0 0 0 3px rgb(114 230 155 / 18%); }

.wx-lw-close {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	justify-self: end;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #f4fffb;
	font: inherit;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.wx-lw-close:hover { background: rgb(244 255 251 / 12%); }

.wx-lw-chat-body {
	display: grid;
	gap: .8rem;
	min-height: 0;
	padding: 1rem;
	overflow-y: auto;
	background-color: #eee8df;
	background-image: linear-gradient(rgb(238 232 223 / 88%), rgb(238 232 223 / 88%)), var(--wx-lw-chat-pattern);
	background-position: center;
	background-size: auto, 22rem auto;
}

.wx-lw-chat-bubble {
	position: relative;
	max-width: 92%;
	margin: 0;
	padding: .8rem .9rem;
	border-radius: .2rem .85rem .85rem .85rem;
	background: #fbfdfb;
	box-shadow: 0 .2rem .75rem rgb(28 45 38 / 9%);
	color: #263f37;
	font-size: .96rem;
	line-height: 1.45;
}

.wx-lw-chat-bubble::before {
	position: absolute;
	top: 0;
	left: -.42rem;
	width: .65rem;
	height: .65rem;
	background: #fbfdfb;
	clip-path: polygon(100% 0, 100% 100%, 0 0);
	content: "";
}

.wx-lw-fields { display: grid; gap: .65rem; margin-top: .1rem; }
.wx-lw-field { display: grid; gap: .28rem; }
.wx-lw-phone-fields { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .55rem; }
.wx-lw-field label { color: #2c463e; font-size: .78rem; font-weight: 700; line-height: 1.25; }

.wx-lw-visually-hidden {
	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;
}

.wx-lw-field input:not([type="checkbox"]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.85rem;
	padding: .65rem .75rem;
	border: 1px solid #c7d4ce;
	border-radius: .62rem;
	outline: 0;
	background: #f8fffa;
	color: #17352d;
	font: inherit;
	font-size: 1rem;
	transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.wx-lw-field input:hover { border-color: #8ea79e; }
.wx-lw-field input:focus { border-color: #087f5f; background: #fff; box-shadow: 0 0 0 3px rgb(8 127 95 / 16%); }

.wx-lw-check {
	display: grid;
	grid-template-columns: 1.1rem minmax(0, 1fr);
	gap: .55rem;
	align-items: start;
	color: #355149;
	font-size: .78rem;
	line-height: 1.4;
}

.wx-lw-check input { width: 1.1rem; height: 1.1rem; margin: .05rem 0 0; accent-color: #087f5f; }
.wx-lw-check a { color: #075e54; text-decoration-thickness: .08em; text-underline-offset: .16em; }

.wx-lw-submit,
.wx-lw-retry {
	min-height: 3rem;
	padding: .75rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #087f5f;
	color: #f4fffb;
	font: inherit;
	font-size: .94rem;
	font-weight: 750;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background-color 120ms ease, transform 120ms ease;
}

.wx-lw-submit:hover, .wx-lw-retry:hover { background: #06684e; transform: translateY(-1px); }
.wx-lw-submit:active, .wx-lw-retry:active { transform: translateY(0); }
.wx-lw-retry { border: 1px solid #087f5f; background: transparent; color: #075e54; }

.wx-lw-error {
	padding: .75rem .85rem;
	border: 1px solid #e8aba4;
	border-radius: .62rem;
	background: #fff2f0;
	color: #8d241b;
	font-size: .85rem;
	line-height: 1.4;
}

.wx-lw-cta,
.wx-lw-submit,
.wx-lw-retry,
.wx-lw-close { -webkit-tap-highlight-color: transparent; }
.wx-lw-cta:focus-visible, .wx-lw-submit:focus-visible, .wx-lw-retry:focus-visible, .wx-lw-close:focus-visible, .wx-lw-check a:focus-visible { outline: 3px solid #f4b942; outline-offset: 3px; }

.wx-lw-cta--inline {
	min-height: 2.75rem;
	padding: .7rem 1rem;
	border: 0;
	border-radius: .45rem;
	background: #087f5f;
	color: #f4fffb;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wx-lw-floating { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9990; }
.wx-lw-cta--floating {
	position: relative;
	display: grid;
	width: 3.75rem;
	height: 3.75rem;
	place-items: center;
	padding: 0;
	border: 3px solid #f4fffb;
	border-radius: 50%;
	background: #20bd5f;
	box-shadow: 0 .7rem 1.8rem rgb(16 74 51 / 28%);
	color: #f4fffb;
	cursor: pointer;
	transition: transform 150ms cubic-bezier(.22, 1, .36, 1), background-color 150ms ease;
}

.wx-lw-cta--floating:hover { background: #18a951; transform: translateY(-2px) scale(1.025); }
.wx-lw-cta--floating .wx-lw-whatsapp-mark { width: 2rem; height: 2rem; object-fit: contain; }
.wx-lw-floating-label { display: none; }
.wx-lw-cta--floating::before {
	position: absolute;
	right: calc(100% + .65rem);
	width: max-content;
	max-width: 12rem;
	padding: .45rem .65rem;
	border-radius: .45rem;
	background: #17352d;
	color: #f4fffb;
	content: attr(aria-label);
	font-size: .76rem;
	font-weight: 650;
	opacity: 0;
	pointer-events: none;
	transform: translateX(.35rem);
	transition: opacity 120ms ease, transform 120ms ease;
}

.wx-lw-cta--floating:hover::before, .wx-lw-cta--floating:focus-visible::before { opacity: 1; transform: translateX(0); }
.wx-lw-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.wx-lw-dialog [hidden] { display: none !important; }
.wx-lw-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@keyframes wx-lw-enter {
	from { opacity: 0; transform: translateY(.75rem) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 30rem) {
	.wx-lw-dialog { inset: auto 0 0; width: 100%; max-height: 92dvh; border-radius: 1rem 1rem 0 0; }
	.wx-lw-form { max-height: 92dvh; }
	.wx-lw-chat-header { padding: .85rem 1rem; }
	.wx-lw-chat-body { padding: .9rem 1rem max(1rem, env(safe-area-inset-bottom)); }
	.wx-lw-floating { right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); }
	.wx-lw-cta--floating { width: 3.5rem; height: 3.5rem; }
	.wx-lw-cta--floating::before { display: none; }
	.wx-lw-phone-fields { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .45rem; }
}

@media (max-width: 48rem) {
	.wx-lw-floating--mobile-bar { right: 0; bottom: 0; left: 0; }
	.wx-lw-floating--mobile-bar .wx-lw-cta--floating {
		display: flex;
		gap: .65rem;
		justify-content: center;
		width: 100%;
		height: auto;
		min-height: 3.75rem;
		padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom));
		padding-right: max(1rem, env(safe-area-inset-right));
		padding-left: max(1rem, env(safe-area-inset-left));
		border: 0;
		border-radius: 0;
		background: #087f5f;
		box-shadow: 0 -.45rem 1.4rem rgb(16 74 51 / 20%);
		font: inherit;
		font-size: 1rem;
		font-weight: 750;
	}
	.wx-lw-floating--mobile-bar .wx-lw-cta--floating:hover { background: #06684e; transform: none; }
	.wx-lw-floating--mobile-bar .wx-lw-cta--floating::before { display: none; }
	.wx-lw-floating--mobile-bar .wx-lw-whatsapp-mark { width: 1.55rem; height: 1.55rem; }
	.wx-lw-floating--mobile-bar .wx-lw-floating-label { display: inline; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
	.wx-lw-dialog[open] { animation: none; }
	.wx-lw-cta--floating, .wx-lw-submit, .wx-lw-retry { transition: none; }
}
