.uhte-whatsapp {
	--uhte-wa-h-offset: 24px;
	--uhte-wa-v-offset: 24px;
	--uhte-wa-panel-width: 360px;
	--uhte-wa-panel-gap: 12px;
	--uhte-wa-content-gap: 12px;
	--uhte-wa-launcher-radius: 999px;
	--uhte-wa-close-size: 32px;
	box-sizing: border-box;
	font-family: inherit;
}

.uhte-whatsapp *,
.uhte-whatsapp *::before,
.uhte-whatsapp *::after {
	box-sizing: border-box;
}

.uhte-whatsapp.is-fixed {
	position: fixed;
}

.uhte-whatsapp.is-fixed.is-right {
	right: var(--uhte-wa-h-offset);
}

.uhte-whatsapp.is-fixed.is-left {
	left: var(--uhte-wa-h-offset);
}

.uhte-whatsapp.is-fixed.is-bottom {
	bottom: var(--uhte-wa-v-offset);
}

.uhte-whatsapp.is-fixed.is-top {
	top: var(--uhte-wa-v-offset);
}

.uhte-whatsapp.is-inline {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
}

.uhte-whatsapp__launcher,
.uhte-whatsapp__close,
.uhte-whatsapp__question,
.uhte-whatsapp__send {
	appearance: none;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.uhte-whatsapp .uhte-whatsapp__launcher {
	--uhte-wa-icon-display: inline-flex;
	--uhte-wa-text-display: inline-flex;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	max-width: none;
	max-height: none;
	padding: 10px 16px;
	column-gap: 8px;
	border: 0;
	border-radius: var(--uhte-wa-launcher-radius);
	white-space: nowrap;
	line-height: 1.2;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.uhte-whatsapp.is-launcher-icon .uhte-whatsapp__launcher {
	--uhte-wa-icon-display: inline-flex;
	--uhte-wa-text-display: none;
}

.uhte-whatsapp.is-launcher-icon_text .uhte-whatsapp__launcher {
	--uhte-wa-icon-display: inline-flex;
	--uhte-wa-text-display: inline-flex;
}

.uhte-whatsapp.is-launcher-text .uhte-whatsapp__launcher {
	--uhte-wa-icon-display: none;
	--uhte-wa-text-display: inline-flex;
}

.uhte-whatsapp__launcher-text {
	display: var(--uhte-wa-text-display, inline-flex);
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

.uhte-whatsapp__launcher-icon {
	display: var(--uhte-wa-icon-display, inline-flex);
}

.uhte-whatsapp__launcher:hover {
	transform: translateY(-2px);
}

.uhte-whatsapp__launcher:focus-visible,
.uhte-whatsapp__close:focus-visible,
.uhte-whatsapp__question:focus-visible,
.uhte-whatsapp__send:focus-visible,
.uhte-whatsapp__message:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.uhte-whatsapp__launcher-icon,
.uhte-whatsapp__question-icon,
.uhte-whatsapp__send-icon {
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.uhte-whatsapp__question-icon,
.uhte-whatsapp__send-icon {
	display: inline-flex;
}

.uhte-whatsapp__launcher-icon svg,
.uhte-whatsapp__question-icon svg,
.uhte-whatsapp__send-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.uhte-whatsapp__panel {
	position: absolute;
	width: min(var(--uhte-wa-panel-width), calc(100vw - 24px));
	max-height: min(72vh, 620px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: var(--uhte-wa-content-gap);
	background-color: #fff;
	transform-origin: bottom right;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px) scale(.985);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.uhte-whatsapp.is-open .uhte-whatsapp__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.uhte-whatsapp.is-right .uhte-whatsapp__panel {
	right: 0;
}

.uhte-whatsapp.is-left .uhte-whatsapp__panel {
	left: 0;
	transform-origin: bottom left;
}

.uhte-whatsapp.opens-above .uhte-whatsapp__panel {
	bottom: calc(100% + var(--uhte-wa-panel-gap));
}

.uhte-whatsapp.opens-below .uhte-whatsapp__panel {
	top: calc(100% + var(--uhte-wa-panel-gap));
	transform-origin: top right;
}

.uhte-whatsapp.is-left.opens-below .uhte-whatsapp__panel {
	transform-origin: top left;
}

.uhte-whatsapp__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.uhte-whatsapp__header-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.uhte-whatsapp__heading {
	font-weight: 700;
	line-height: 1.25;
}

.uhte-whatsapp__description {
	margin-top: 4px;
	line-height: 1.45;
}

.uhte-whatsapp .uhte-whatsapp__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--uhte-wa-close-size);
	height: var(--uhte-wa-close-size);
	min-width: var(--uhte-wa-close-size);
	min-height: var(--uhte-wa-close-size);
	max-width: none;
	max-height: none;
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	line-height: 1;
	text-indent: 0;
	box-shadow: none;
	overflow: hidden;
}

.uhte-whatsapp__questions-heading {
	font-weight: 650;
	line-height: 1.3;
}

.uhte-whatsapp__questions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uhte-whatsapp__question {
	display: flex;
	align-items: center;
	width: 100%;
	column-gap: 9px;
	border: 1px solid currentColor;
	background-color: transparent;
	text-align: start;
	line-height: 1.35;
}

.uhte-whatsapp__question-label {
	min-width: 0;
	flex: 1 1 auto;
}

.uhte-whatsapp__message {
	display: block;
	width: 100%;
	resize: vertical;
	border: 1px solid currentColor;
	background-color: #fff;
	font: inherit;
	line-height: 1.45;
}

.uhte-whatsapp__send {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	column-gap: 8px;
	border: 0;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
}

.uhte-whatsapp__editor-note {
	font-size: 12px;
	line-height: 1.35;
	opacity: .75;
}

@media (max-width: 767px) {
	.uhte-whatsapp {
		--uhte-wa-h-offset: 14px;
		--uhte-wa-v-offset: 14px;
		--uhte-wa-panel-width: calc(100vw - 28px);
	}

	.uhte-whatsapp__panel {
		max-height: min(70vh, 520px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.uhte-whatsapp__launcher,
	.uhte-whatsapp__panel {
		transition: none;
	}

	.uhte-whatsapp__launcher:hover {
		transform: none;
	}
}
