:root {
	--tema-whatsapp-green: #08c653;
	--tema-whatsapp-green-hover: #07ad49;
	--tema-whatsapp-white: #ffffff;
	--tema-whatsapp-text: #444444;
	--tema-whatsapp-border: #eeeeee;
	--tema-whatsapp-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
	--tema-whatsapp-radius: 4px;
	--tema-whatsapp-z-index: 99990;
}

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

.tema-whatsapp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: var(--tema-whatsapp-z-index);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: Arial, Helvetica, sans-serif;
}

.tema-whatsapp__trigger,
.tema-whatsapp__close {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: normal;
	margin: 0;
	min-width: 0;
	padding: 0;
	text-align: inherit;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	user-select: none;
}

.tema-whatsapp__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	max-width: calc(100vw - 32px);
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--tema-whatsapp-green);
	color: var(--tema-whatsapp-white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tema-whatsapp__trigger:hover {
	background: var(--tema-whatsapp-green-hover);
	color: var(--tema-whatsapp-white);
	transform: translateY(-1px);
	box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
}

.tema-whatsapp__trigger:focus-visible,
.tema-whatsapp__close:focus-visible,
.tema-whatsapp__contact:focus-visible {
	outline: 3px solid rgba(8, 198, 83, 0.35);
	outline-offset: 3px;
}

.tema-whatsapp__trigger-icon {
	flex: 0 0 auto;
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.tema-whatsapp__trigger-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tema-whatsapp__popup {
	position: absolute;
	right: 0;
	bottom: calc(100% + 18px);
	display: flex;
	flex-direction: column;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: min(620px, calc(100vh - 104px));
	overflow: visible;
	border-radius: var(--tema-whatsapp-radius);
	background: var(--tema-whatsapp-white);
	color: var(--tema-whatsapp-text);
	box-shadow: var(--tema-whatsapp-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(0.985);
	transform-origin: bottom right;
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.tema-whatsapp__popup::after {
	content: "";
	position: absolute;
	right: 24px;
	bottom: -10px;
	width: 20px;
	height: 20px;
	background: var(--tema-whatsapp-white);
	box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.06);
	transform: rotate(45deg);
}

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

.tema-whatsapp__header {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	padding: 17px 48px 17px 20px;
	border-radius: var(--tema-whatsapp-radius) var(--tema-whatsapp-radius) 0 0;
	background: var(--tema-whatsapp-green);
	color: var(--tema-whatsapp-white);
}

.tema-whatsapp__message {
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	max-height: min(190px, 35vh);
	overflow-y: auto;
	line-height: 1.5;
	white-space: pre-line;
}

.tema-whatsapp__close {
	position: absolute;
	top: 9px;
	right: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.72);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	transition: color 160ms ease, background-color 160ms ease;
}

.tema-whatsapp__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--tema-whatsapp-white);
}

.tema-whatsapp__nav {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 12px 10px;
	border-radius: 0 0 var(--tema-whatsapp-radius) var(--tema-whatsapp-radius);
	background: var(--tema-whatsapp-white);
	scrollbar-width: thin;
}

.tema-whatsapp__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tema-whatsapp__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--tema-whatsapp-border);
}

.tema-whatsapp__item:last-child {
	border-bottom: 0;
}

.tema-whatsapp__contact {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 80px;
	padding: 13px 10px;
	border-radius: 3px;
	color: var(--tema-whatsapp-text);
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.tema-whatsapp__contact:hover {
	background: #f7f7f7;
	color: var(--tema-whatsapp-text);
	text-decoration: none;
}

.tema-whatsapp__contact-icon {
	flex: 0 0 52px;
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.tema-whatsapp__contact-title {
	display: block;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

@media (max-width: 767px) {
	.tema-whatsapp {
		right: 16px;
		bottom: 16px;
		left: 16px;
		align-items: flex-end;
	}

	.tema-whatsapp__popup {
		right: 0;
		width: min(360px, 100%);
		max-width: 100%;
		max-height: calc(100vh - 92px);
	}

	.tema-whatsapp__trigger {
		max-width: 100%;
		min-height: 46px;
		padding: 10px 17px;
	}
}

@media (max-width: 420px) {
	.tema-whatsapp__popup {
		width: 100%;
	}

	.tema-whatsapp__header {
		padding: 15px 44px 15px 16px;
	}

	.tema-whatsapp__nav {
		padding-right: 8px;
		padding-left: 8px;
	}

	.tema-whatsapp__contact {
		min-height: 72px;
		padding-right: 8px;
		padding-left: 8px;
	}

	.tema-whatsapp__contact-icon {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.tema-whatsapp__trigger-text {
		max-width: calc(100vw - 100px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tema-whatsapp__trigger,
	.tema-whatsapp__close,
	.tema-whatsapp__contact,
	.tema-whatsapp__popup {
		transition: none;
	}
}
