.ppg-wa-legacy-hidden,
.ppg-wa [hidden] {
	display: none !important;
}

.ppg-wa {
	--ppg-wa-green: #075e54;
	--ppg-wa-accent: #087956;
	--ppg-wa-edge: max(16px, env(safe-area-inset-bottom, 0px));
	--ppg-wa-launcher-height: 54px;
	position: fixed;
	inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
	bottom: max(var(--ppg-wa-edge), calc(var(--ppg-wa-keyboard-inset, 0px) + 12px));
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	width: max-content;
	max-width: calc(100vw - max(16px, env(safe-area-inset-left, 0px)) - max(16px, env(safe-area-inset-right, 0px)));
	color: #152b25;
	font: 400 15px/1.4 system-ui, sans-serif;
	text-align: start;
}

.ppg-wa *,
.ppg-wa *::before,
.ppg-wa *::after {
	box-sizing: border-box;
}

.ppg-wa button {
	margin: 0;
	border: 0;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ppg-wa button:focus-visible,
.ppg-wa textarea:focus-visible,
.ppg-wa a:focus-visible {
	outline: 2px solid #14375a;
	outline-offset: 3px;
}

.ppg-wa button.ppg-wa__launcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--ppg-wa-launcher-height);
	padding: 0 18px;
	border-radius: 999px;
	background: var(--ppg-wa-accent);
	color: #fff;
	box-shadow: 0 5px 18px rgb(10 53 41 / 28%);
	font-weight: 700;
	transition: background-color 150ms ease, box-shadow 150ms ease;
}

.ppg-wa button.ppg-wa__launcher:hover,
.ppg-wa button.ppg-wa__launcher[aria-expanded="true"] {
	background: var(--ppg-wa-green);
	box-shadow: 0 7px 22px rgb(10 53 41 / 34%);
}

.ppg-wa__panel {
	width: 360px;
	max-width: 100%;
	max-height: calc(var(--ppg-wa-viewport-height, 100vh) - var(--ppg-wa-launcher-height) - var(--ppg-wa-edge) - 25px);
	overflow: auto;
	border: 1px solid rgb(18 56 45 / 14%);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 40px rgb(19 37 29 / 24%);
	overscroll-behavior: contain;
}

@supports (height: 100dvh) {
	.ppg-wa__panel {
		max-height: calc(var(--ppg-wa-viewport-height, 100dvh) - var(--ppg-wa-launcher-height) - var(--ppg-wa-edge) - 25px);
	}
}

.ppg-wa__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px;
	background: var(--ppg-wa-green);
	color: #fff;
}

.ppg-wa__avatar {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: #e1f4e9;
	color: #075e54;
	font-size: 13px;
	font-weight: 800;
}

.ppg-wa__identity {
	flex: 1 1 auto;
	min-width: 0;
}

.ppg-wa__identity h2 {
	margin: 0;
	color: inherit;
	font: 700 16px/1.3 system-ui, sans-serif;
}

.ppg-wa__identity p {
	margin: 2px 0 0;
	color: #ddf3ea;
	font-size: 12px;
}

.ppg-wa button.ppg-wa__close {
	display: grid;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	color: #fff;
}

.ppg-wa button.ppg-wa__close:hover {
	background: rgb(255 255 255 / 16%);
}

.ppg-wa button.ppg-wa__close:focus-visible {
	outline-color: #fff;
	outline-offset: -3px;
}

.ppg-wa__body {
	min-height: 92px;
	padding: 18px 15px 20px;
	background-color: #f0eae1;
	background-image: radial-gradient(#cabab0 0.7px, transparent 0.7px);
	background-size: 14px 14px;
}

.ppg-wa p.ppg-wa__welcome {
	width: fit-content;
	max-width: 94%;
	margin: 0;
	padding: 10px 12px;
	border-radius: 3px 12px 12px;
	background: #fff;
	box-shadow: 0 2px 6px rgb(72 52 30 / 12%);
}

.ppg-wa__form {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 13px;
	background: #fff;
}

.ppg-wa__form textarea {
	display: block;
	width: 100%;
	min-height: 56px;
	max-height: 138px;
	margin: 0;
	padding: 9px 11px;
	resize: vertical;
	border: 1px solid #a1b1a8;
	border-radius: 12px;
	background: #f7faf8;
	color: #152b25;
	font: 400 16px/1.35 system-ui, sans-serif;
}

.ppg-wa__form textarea::placeholder {
	color: #53655d;
	opacity: 1;
}

.ppg-wa button.ppg-wa__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	gap: 7px;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ppg-wa-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.ppg-wa button.ppg-wa__submit:not(:disabled):hover {
	background: var(--ppg-wa-green);
}

.ppg-wa button.ppg-wa__submit:disabled {
	background: #e5eee9;
	color: #52655b;
	cursor: default;
}

.ppg-wa p.ppg-wa__hint,
.ppg-wa p.ppg-wa__handoff {
	margin: 0;
	color: #52635a;
	font-size: 12px;
}

.ppg-wa a.ppg-wa__fallback {
	color: var(--ppg-wa-green);
	font-weight: 700;
	text-decoration: underline;
}

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

@media (max-width: 480px) {
	.ppg-wa {
		--ppg-wa-launcher-height: 50px;
	}

	.ppg-wa button.ppg-wa__launcher {
		width: var(--ppg-wa-launcher-height);
		justify-content: center;
		padding: 0;
	}

	.ppg-wa__launcher span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppg-wa button.ppg-wa__launcher {
		transition: none;
	}
}
