.gwc-root {
	--gwc-accent: #18b985;
	--gwc-ink: #14221e;
	--gwc-muted: #5d6d68;
	--gwc-panel: #f4f7f6;
	--gwc-surface: #ffffff;
	--gwc-line: #dce6e2;
	--gwc-shadow: 0 30px 75px rgba(9, 44, 35, 0.2), 0 8px 26px rgba(9, 44, 35, 0.11);
	position: fixed;
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 2147483000;
	color: var(--gwc-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.gwc-position-right {
	right: max(22px, env(safe-area-inset-right));
}

.gwc-position-left {
	left: max(22px, env(safe-area-inset-left));
}

.gwc-root *,
.gwc-root *::before,
.gwc-root *::after {
	box-sizing: border-box;
}

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

@media (min-width: 783px) {
	.gwc-root.gwc-hide-desktop {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.gwc-root.gwc-hide-mobile {
		display: none !important;
	}
}

.gwc-backdrop[hidden],
.gwc-panel[hidden],
.gwc-message[hidden],
.gwc-typing[hidden] {
	display: none !important;
}

.gwc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(8, 29, 23, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.gwc-root[data-gwc-state="open"] .gwc-backdrop {
	opacity: 1;
}

.gwc-panel {
	position: fixed;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	z-index: 1;
	display: flex;
	width: min(500px, calc(100vw - 32px));
	max-height: calc(100dvh - 40px);
	flex-direction: column;
	overflow: hidden;
	background: var(--gwc-panel);
	border: 1px solid rgba(19, 64, 52, 0.15);
	border-radius: 18px;
	box-shadow: var(--gwc-shadow);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, calc(-50% + 24px)) scale(0.965);
	transform-origin: center;
	transition: opacity 190ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gwc-root[data-gwc-state="open"] .gwc-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

.gwc-panel::after {
	position: absolute;
	inset: 0;
	border: 2px solid var(--gwc-accent);
	border-radius: inherit;
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: scale(0.985);
}

.gwc-panel.gwc-panel-notice::after {
	animation: gwc-panel-notice 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gwc-profile {
	position: relative;
	display: grid;
	min-height: 174px;
	flex: 0 0 auto;
	grid-template-columns: 148px minmax(0, 1fr);
	align-items: stretch;
	gap: 20px;
	padding: 14px 54px 14px 14px;
	background: #eaf2ef;
	border-bottom: 1px solid var(--gwc-line);
}

.gwc-profile-photo {
	min-width: 0;
	overflow: hidden;
	background: #d7e6e0;
	border: 3px solid rgba(255, 255, 255, 0.92);
	border-radius: 16px;
	box-shadow: 0 9px 24px rgba(12, 56, 45, 0.13);
}

.gwc-avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 26%;
}

.gwc-agent-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.gwc-availability {
	display: flex;
	max-width: 100%;
	align-items: center;
	gap: 7px;
	margin: 0 0 11px;
	color: #46645b;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.gwc-availability i,
.gwc-launcher-photo i {
	display: inline-block;
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	background: var(--gwc-accent);
	border: 2px solid var(--gwc-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(11, 99, 73, 0.15);
}

.gwc-agent-copy strong {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--gwc-ink);
	font-size: 25px;
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.08;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gwc-human-label {
	display: block;
	margin-top: 7px;
	color: var(--gwc-muted);
	font-size: 13px;
	font-weight: 560;
}

.gwc-close {
	position: absolute;
	top: 13px;
	right: 13px;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	color: #51645e;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(19, 64, 52, 0.12);
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(10, 50, 40, 0.07);
	cursor: pointer;
	transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.gwc-close:hover {
	color: var(--gwc-ink);
	background: #ffffff;
	transform: translateY(-1px);
}

.gwc-close:active,
.gwc-whatsapp:active,
.gwc-launcher:active {
	transform: translateY(1px) scale(0.985);
}

.gwc-close svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.gwc-body {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 18px 16px;
}

.gwc-conversation {
	min-height: 96px;
	max-height: 278px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 2px 5px 2px 1px;
	scrollbar-color: #afc2bb transparent;
	scrollbar-width: thin;
}

.gwc-message,
.gwc-typing {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: end;
	gap: 10px;
	margin: 0 0 12px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 220ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gwc-message.is-visible,
.gwc-typing.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gwc-message img,
.gwc-typing img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: cover;
	object-position: center 24%;
	background: #d7e6e0;
	border: 2px solid var(--gwc-surface);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(10, 51, 41, 0.1);
}

.gwc-bubble {
	position: relative;
	padding: 13px 15px;
	background: var(--gwc-surface);
	border: 1px solid var(--gwc-line);
	border-radius: 16px 16px 16px 5px;
	box-shadow: 0 5px 18px rgba(13, 50, 41, 0.05);
}

.gwc-bubble p {
	margin: 0;
	color: var(--gwc-ink);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.006em;
	line-height: 1.52;
}

.gwc-message.is-new .gwc-bubble {
	animation: gwc-bubble-pop 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .gwc-bubble {
	border-radius: 16px 16px 5px;
}

.gwc-typing {
	align-items: center;
}

.gwc-typing-dots {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 5px;
	min-height: 42px;
	padding: 0 16px;
	background: var(--gwc-surface);
	border: 1px solid var(--gwc-line);
	border-radius: 16px 16px 16px 5px;
}

.gwc-typing-dots i {
	width: 6px;
	height: 6px;
	background: #7f918b;
	border-radius: 50%;
	animation: gwc-typing 900ms ease-in-out infinite;
}

.gwc-typing-dots i:nth-child(2) {
	animation-delay: 120ms;
}

.gwc-typing-dots i:nth-child(3) {
	animation-delay: 240ms;
}

.gwc-action {
	flex: 0 0 auto;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--gwc-line);
}

.gwc-whatsapp {
	display: flex;
	min-height: 58px;
	align-items: center;
	gap: 11px;
	padding: 13px 16px;
	color: #ffffff !important;
	text-decoration: none !important;
	background: #087a5d;
	background: color-mix(in srgb, var(--gwc-accent) 70%, #053c2e);
	border: 1px solid #076e54;
	border-color: color-mix(in srgb, var(--gwc-accent) 60%, #053c2e);
	border-radius: 16px;
	box-shadow: 0 12px 25px rgba(7, 97, 73, 0.24);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gwc-whatsapp:hover {
	color: #ffffff !important;
	box-shadow: 0 15px 30px rgba(7, 97, 73, 0.31);
	filter: brightness(1.05);
	transform: translateY(-2px);
}

.gwc-whatsapp:focus-visible,
.gwc-close:focus-visible,
.gwc-launcher:focus-visible {
	outline: 3px solid rgba(15, 135, 100, 0.34);
	outline-offset: 3px;
}

.gwc-whatsapp > svg:first-child {
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	fill: currentColor;
}

.gwc-whatsapp span {
	flex: 1;
}

.gwc-arrow {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms ease;
}

.gwc-whatsapp:hover .gwc-arrow {
	transform: translateX(3px);
}

[dir="rtl"] .gwc-arrow {
	transform: scaleX(-1);
}

[dir="rtl"] .gwc-whatsapp:hover .gwc-arrow {
	transform: translateX(-3px) scaleX(-1);
}

.gwc-human-note {
	margin: 9px 0 0;
	color: #71817c;
	font-size: 11px;
	font-weight: 520;
	text-align: center;
}

.gwc-launcher {
	position: relative;
	z-index: 2;
	display: flex;
	width: 196px;
	height: 76px;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-left: auto;
	padding: 6px 7px 6px 16px;
	color: var(--gwc-ink);
	text-align: left;
	background: var(--gwc-surface);
	border: 1px solid rgba(13, 64, 51, 0.16);
	border-radius: 18px;
	box-shadow: 0 17px 40px rgba(8, 49, 39, 0.2), 0 4px 13px rgba(8, 49, 39, 0.11);
	cursor: pointer;
	isolation: isolate;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.gwc-position-left .gwc-launcher {
	margin-right: auto;
	margin-left: 0;
}

.gwc-launcher:hover {
	box-shadow: 0 21px 48px rgba(8, 49, 39, 0.24), 0 5px 15px rgba(8, 49, 39, 0.13);
	transform: translateY(-2px);
}

.gwc-launcher-copy {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	line-height: 1.2;
}

.gwc-launcher-copy strong {
	overflow: hidden;
	font-size: 15px;
	font-weight: 760;
	letter-spacing: -0.015em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gwc-launcher-copy span {
	margin-top: 5px;
	overflow: hidden;
	color: var(--gwc-muted);
	font-size: 11px;
	font-weight: 570;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gwc-launcher-photo {
	position: relative;
	display: block;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
}

.gwc-launcher-photo img {
	display: block;
	width: 62px;
	height: 62px;
	object-fit: cover;
	object-position: center 24%;
	background: #d7e6e0;
	border-radius: 14px;
}

.gwc-launcher-photo i {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 14px;
	height: 14px;
	border-width: 3px;
}

.gwc-launcher-ring {
	position: absolute;
	inset: -5px;
	z-index: -1;
	border: 1px solid rgba(24, 185, 133, 0.38);
	border-radius: 22px;
	animation: gwc-ring 2.8s ease-out 1.2s 3;
}

.gwc-notification {
	position: absolute;
	top: -8px;
	right: -8px;
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	color: #ffffff;
	background: #d84d43;
	border: 3px solid var(--gwc-surface);
	border-radius: 50%;
	font-size: 10px;
	font-weight: 800;
	transition: opacity 160ms ease, transform 160ms ease;
}

.gwc-position-left .gwc-notification {
	right: auto;
	left: -8px;
}

.gwc-has-opened .gwc-notification {
	opacity: 0;
	transform: scale(0.65);
}

@keyframes gwc-ring {
	0% { opacity: 0; transform: scale(0.96); }
	28% { opacity: 0.75; }
	100% { opacity: 0; transform: scale(1.08); }
}

@keyframes gwc-panel-notice {
	0% { opacity: 0; transform: scale(0.985); }
	32% { opacity: 0.7; transform: scale(1); }
	100% { opacity: 0; transform: scale(1); }
}

@keyframes gwc-bubble-pop {
	0% { opacity: 0.25; transform: translateY(8px) scale(0.98); }
	100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gwc-typing {
	0%, 70%, 100% { opacity: 0.42; transform: translateY(0); }
	35% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-color-scheme: dark) {
	.gwc-root {
		--gwc-ink: #edf5f2;
		--gwc-muted: #a8b9b3;
		--gwc-panel: #14201d;
		--gwc-surface: #22302c;
		--gwc-line: #354640;
		--gwc-shadow: 0 30px 75px rgba(2, 10, 8, 0.55), 0 8px 26px rgba(2, 10, 8, 0.34);
	}

	.gwc-panel {
		border-color: #354640;
	}

	.gwc-profile {
		background: #1b2925;
	}

	.gwc-profile-photo,
	.gwc-message img,
	.gwc-typing img,
	.gwc-launcher-photo img {
		background: #2a3b35;
		border-color: #31443d;
	}

	.gwc-availability {
		color: #b3c7c0;
	}

	.gwc-close {
		color: #c3d1cc;
		background: #263631;
		border-color: #3a4d46;
	}

	.gwc-close:hover {
		color: #f2f8f6;
		background: #30413b;
	}

	.gwc-human-note {
		color: #9aaba5;
	}

	.gwc-launcher {
		border-color: #3b4d47;
	}

	.gwc-notification {
		background: #c84a42;
	}
}

@media (max-width: 520px) {
	.gwc-root {
		bottom: max(12px, env(safe-area-inset-bottom));
	}

	.gwc-position-right {
		right: max(12px, env(safe-area-inset-right));
	}

	.gwc-position-left {
		left: max(12px, env(safe-area-inset-left));
	}

	.gwc-panel {
		top: 50%;
		right: auto !important;
		bottom: auto;
		left: 50% !important;
		width: calc(100vw - 20px);
		max-height: calc(100dvh - 24px);
		transform-origin: center !important;
	}

	.gwc-profile {
		min-height: 132px;
		grid-template-columns: 106px minmax(0, 1fr);
		gap: 14px;
		padding: 12px 51px 12px 12px;
	}

	.gwc-profile-photo {
		min-height: 106px;
	}

	.gwc-agent-copy strong {
		font-size: 21px;
	}

	.gwc-availability {
		margin-bottom: 8px;
		font-size: 11px;
	}

	.gwc-human-label {
		margin-top: 5px;
		font-size: 12px;
	}

	.gwc-close {
		top: 11px;
		right: 11px;
	}

	.gwc-body {
		padding: 14px 13px 13px;
	}

	.gwc-conversation {
		max-height: min(286px, calc(100dvh - 330px));
	}

	.gwc-bubble {
		padding: 12px 13px;
	}

	.gwc-bubble p {
		font-size: 14px;
	}

	.gwc-whatsapp {
		min-height: 56px;
		font-size: 14px;
	}

	.gwc-launcher {
		width: 72px;
		height: 72px;
		padding: 5px;
	}

	.gwc-launcher-copy {
		display: none;
	}

	.gwc-launcher-photo,
	.gwc-launcher-photo img {
		width: 60px;
		height: 60px;
	}
}

@media (max-width: 360px) {
	.gwc-profile {
		min-height: 118px;
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.gwc-profile-photo {
		min-height: 94px;
	}

	.gwc-agent-copy strong {
		font-size: 19px;
	}

	.gwc-availability {
		line-height: 1.25;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwc-root *,
	.gwc-root *::before,
	.gwc-root *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}
