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

.tsww {
	--tsww-purple: #7e57c2;
	--tsww-purple-dark: #6542a8;
	--tsww-yellow: #fde48a;
	--tsww-ink: #1c1b1b;
	--tsww-muted: #66616f;
	--tsww-green: #25d366;
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: max(24px, env(safe-area-inset-bottom));
	z-index: 999999;
	font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tsww-ink);
	-webkit-font-smoothing: antialiased;
}

.tsww--left {
	right: auto;
	left: max(24px, env(safe-area-inset-left));
}

.tsww__panel {
	position: absolute;
	right: 0;
	bottom: 82px;
	width: min(352px, calc(100vw - 32px));
	padding: 53px 24px 22px;
	overflow: visible;
	background: #fff;
	border: 1px solid rgba(126, 87, 194, 0.18);
	border-radius: 24px;
	box-shadow: 0 22px 70px rgba(28, 27, 27, 0.18), 0 7px 22px rgba(126, 87, 194, 0.12);
	opacity: 0;
	transform: translate3d(0, 14px, 0) scale(0.96);
	transform-origin: right bottom;
	pointer-events: none;
	transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tsww__panel::before {
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 4px;
	background: linear-gradient(90deg, var(--tsww-purple) 0 68%, var(--tsww-yellow) 68% 100%);
	border-radius: 0 0 8px 8px;
	content: "";
}

.tsww__panel::after {
	position: absolute;
	right: 22px;
	bottom: -8px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-right: 1px solid rgba(126, 87, 194, 0.14);
	border-bottom: 1px solid rgba(126, 87, 194, 0.14);
	transform: rotate(45deg);
	content: "";
}

.tsww--left .tsww__panel {
	right: auto;
	left: 0;
	transform-origin: left bottom;
}

.tsww--left .tsww__panel::after {
	right: auto;
	left: 22px;
}

.tsww--open .tsww__panel {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	pointer-events: auto;
}

.tsww__avatar {
	position: absolute;
	top: -39px;
	left: 22px;
	width: 86px;
	height: 86px;
	overflow: hidden;
	background: linear-gradient(145deg, #fff6c9, var(--tsww-yellow));
	border: 5px solid #fff;
	border-radius: 50%;
	box-shadow: 0 10px 28px rgba(28, 27, 27, 0.2);
	transform: translate3d(0, 18px, 0) scale(0.68) rotate(-6deg);
	transition: transform 420ms 60ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tsww--open .tsww__avatar {
	transform: translate3d(0, 0, 0) scale(1) rotate(0);
}

.tsww__avatar img {
	position: absolute;
	top: -2px;
	left: 50%;
	width: 222%;
	max-width: none;
	height: auto;
	margin: 0;
	transform: translateX(-50%);
}

.tsww__status-dot {
	position: absolute;
	right: 3px;
	bottom: 8px;
	width: 14px;
	height: 14px;
	background: var(--tsww-green);
	border: 3px solid #fff;
	border-radius: 50%;
}

.tsww__identity {
	min-height: 38px;
	margin: -37px 38px 22px 94px;
}

.tsww__identity span,
.tsww__identity small {
	display: block;
}

.tsww__identity span {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tsww__identity small {
	margin-top: 3px;
	color: var(--tsww-muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.tsww__close {
	position: absolute;
	top: 15px;
	right: 15px;
	display: grid;
	width: 32px;
	height: 32px;
	padding: 0;
	place-items: center;
	color: #716b78;
	background: #f6f3fa;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

/* Keep Talent Studio's global button states from restyling widget controls. */
#tsww-widget .tsww__close,
#tsww-widget .tsww__close:visited,
#tsww-widget .tsww__close:hover,
#tsww-widget .tsww__close:focus,
#tsww-widget .tsww__close:active {
	min-width: 32px !important;
	min-height: 32px !important;
	color: #716b78 !important;
	background: #f6f3fa !important;
	border: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

#tsww-widget .tsww__close::before,
#tsww-widget .tsww__close::after,
#tsww-widget .tsww__launcher::before,
#tsww-widget .tsww__launcher::after {
	display: none !important;
	content: none !important;
}

.tsww__close:hover {
	color: var(--tsww-ink);
	background: #eee8f6;
	transform: rotate(4deg);
}

.tsww__close svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.tsww__heading {
	margin: 0 0 9px;
	color: var(--tsww-ink);
	font-family: inherit;
	font-size: clamp(21px, 4.4vw, 24px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -0.04em;
}

.tsww__message {
	margin: 0 0 19px;
	color: var(--tsww-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
}

.tsww__cta {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	min-height: 49px;
	padding: 12px 15px;
	align-items: center;
	gap: 10px;
	color: #fff;
	background: var(--tsww-purple);
	border: 1px solid var(--tsww-purple);
	border-radius: 14px;
	box-shadow: 0 9px 22px rgba(126, 87, 194, 0.22);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tsww__cta:hover {
	color: #fff;
	background: var(--tsww-purple-dark);
	border-color: var(--tsww-purple-dark);
	box-shadow: 0 12px 28px rgba(126, 87, 194, 0.3);
	transform: translateY(-1px);
}

.tsww__cta .tsww__whatsapp-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.tsww__cta span {
	flex: 1;
}

.tsww__arrow {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsww__launcher {
	position: relative;
	display: grid;
	width: 64px;
	height: 64px;
	margin-left: auto;
	padding: 0;
	place-items: center;
	color: #fff;
	background: var(--tsww-green);
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 13px 32px rgba(28, 27, 27, 0.24), 0 5px 14px rgba(37, 211, 102, 0.3);
	cursor: pointer;
	isolation: isolate;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

#tsww-widget .tsww__launcher,
#tsww-widget .tsww__launcher:visited,
#tsww-widget .tsww__launcher:hover,
#tsww-widget .tsww__launcher:focus,
#tsww-widget .tsww__launcher:active {
	min-width: 64px !important;
	min-height: 64px !important;
	color: #fff !important;
	background: var(--tsww-green) !important;
	border: 4px solid #fff !important;
	border-radius: 50% !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.tsww--left .tsww__launcher {
	margin-right: auto;
	margin-left: 0;
}

.tsww__launcher:hover {
	box-shadow: 0 16px 36px rgba(28, 27, 27, 0.27), 0 7px 18px rgba(37, 211, 102, 0.36);
	transform: translateY(-2px);
}

.tsww__launcher > .tsww__whatsapp-icon {
	width: 31px;
	height: 31px;
}

.tsww__pulse {
	position: absolute;
	inset: -4px;
	z-index: -1;
	border: 2px solid rgba(37, 211, 102, 0.5);
	border-radius: inherit;
	animation: tsww-pulse 2.6s ease-out infinite;
}

.tsww__launcher-text {
	position: absolute;
	right: calc(100% + 10px);
	padding: 6px 9px;
	color: #fff;
	background: var(--tsww-ink);
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transform: translateX(5px);
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease;
}

.tsww--left .tsww__launcher-text {
	right: auto;
	left: calc(100% + 10px);
	transform: translateX(-5px);
}

.tsww__launcher:hover .tsww__launcher-text,
.tsww__launcher:focus-visible .tsww__launcher-text {
	opacity: 1;
	transform: translateX(0);
}

.tsww__launcher--noscript {
	text-decoration: none;
}

.tsww__launcher:not(.tsww__launcher--noscript) + noscript .tsww__launcher {
	display: none;
}

.tsww__launcher:focus-visible,
.tsww__close:focus-visible,
.tsww__cta:focus-visible {
	outline: 3px solid var(--tsww-yellow);
	outline-offset: 3px;
}

@keyframes tsww-pulse {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(1.3);
	}
}

@media (max-width: 767px) {
	.tsww {
		right: max(16px, env(safe-area-inset-right));
		bottom: max(16px, env(safe-area-inset-bottom));
	}

	.tsww--left {
		right: auto;
		left: max(16px, env(safe-area-inset-left));
	}

	.tsww--hide-mobile {
		display: none !important;
	}

	.tsww__panel {
		bottom: 74px;
		width: min(344px, calc(100vw - 32px));
		padding: 51px 20px 20px;
		border-radius: 21px;
	}

	.tsww__launcher {
		width: 58px;
		height: 58px;
	}

	#tsww-widget .tsww__launcher,
	#tsww-widget .tsww__launcher:visited,
	#tsww-widget .tsww__launcher:hover,
	#tsww-widget .tsww__launcher:focus,
	#tsww-widget .tsww__launcher:active {
		min-width: 58px !important;
		min-height: 58px !important;
	}

	.tsww__launcher > .tsww__whatsapp-icon {
		width: 28px;
		height: 28px;
	}

	.tsww__launcher-text {
		display: none;
	}
}

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