.tfwc-widget,
.tfwc-widget * {
	box-sizing: border-box;
}

.tfwc-widget {
	--tfwc-button-color: #25d366;
	--tfwc-header-color: #075e54;
	--tfwc-panel-width: 340px;
	position: fixed;
	bottom: 24px;
	z-index: 2147483000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	color: #1f2933;
	text-align: right;
}

.tfwc-position-bottom-right {
	right: 24px;
}

.tfwc-position-bottom-left {
	left: 24px;
}

.tfwc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--tfwc-button-color);
	color: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tfwc-button:hover,
.tfwc-button:focus-visible {
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.tfwc-button:focus-visible,
.tfwc-panel__close:focus-visible,
.tfwc-compose__send:focus-visible,
.tfwc-compose__input:focus-visible {
	outline: 3px solid rgba(37, 211, 102, 0.35);
	outline-offset: 3px;
}

.tfwc-icon {
	display: block;
	width: 34px;
	height: 34px;
}

.tfwc-panel {
	position: absolute;
	bottom: 80px;
	width: min(var(--tfwc-panel-width), calc(100vw - 32px));
	overflow: hidden;
	border-radius: 14px;
	background: #f2eee7;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transform-origin: bottom center;
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
}

.tfwc-position-bottom-right .tfwc-panel {
	right: 0;
}

.tfwc-position-bottom-left .tfwc-panel {
	left: 0;
}

.tfwc-widget--open .tfwc-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.tfwc-panel__header {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 68px;
	padding: 14px 16px;
	background: var(--tfwc-header-color);
	color: #fff;
}

.tfwc-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.tfwc-panel__icon .tfwc-icon {
	width: 25px;
	height: 25px;
}

.tfwc-panel__identity {
	display: grid;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.tfwc-panel__identity strong,
.tfwc-panel__identity span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tfwc-panel__identity strong {
	font-size: 16px;
	line-height: 1.25;
	font-weight: 700;
}

.tfwc-panel__identity span {
	font-size: 12px;
	line-height: 1.2;
	opacity: 0.86;
}

.tfwc-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 140ms ease;
}

.tfwc-panel__close:hover {
	background: rgba(255, 255, 255, 0.14);
}

.tfwc-panel__body {
	position: relative;
	min-height: 156px;
	padding: 18px 16px;
	background:
		linear-gradient(rgba(242, 238, 231, 0.88), rgba(242, 238, 231, 0.88)),
		repeating-linear-gradient(45deg, rgba(7, 94, 84, 0.08) 0 1px, transparent 1px 12px);
}

.tfwc-message-bubble {
	display: inline-block;
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 12px 12px 2px 12px;
	background: #fff;
	color: #17212b;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	overflow-wrap: anywhere;
}

.tfwc-compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px;
	background: #f7f7f7;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tfwc-compose__input {
	width: 100%;
	min-height: 42px;
	max-height: 120px;
	padding: 10px 12px;
	resize: none;
	border: 1px solid #d8dee4;
	border-radius: 999px;
	background: #fff;
	color: #17212b;
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: none;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.tfwc-compose__input:focus {
	border-color: var(--tfwc-button-color);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.tfwc-compose__input--invalid {
	border-color: #d92d20;
}

.tfwc-compose__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--tfwc-button-color);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: filter 140ms ease, transform 140ms ease;
}

.tfwc-compose__send:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
}

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

.tfwc-inline-wrap,
.tfwc-inline-wrap * {
	box-sizing: border-box;
}

.tfwc-inline-wrap {
	display: flex;
	width: 100%;
	margin: 18px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.tfwc-inline-align-center {
	justify-content: center;
}

.tfwc-inline-align-right {
	justify-content: flex-end;
}

.tfwc-inline-align-left {
	justify-content: flex-start;
}

.tfwc-inline-button {
	--tfwc-inline-bg: #2fbd46;
	--tfwc-inline-color: #ffffff;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 300px;
	max-width: min(100%, 360px);
	min-height: 66px;
	padding: 10px 26px 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--tfwc-inline-bg);
	color: var(--tfwc-inline-color);
	text-align: left;
	text-decoration: none;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tfwc-inline-wrap .tfwc-inline-button,
.tfwc-inline-wrap .tfwc-inline-button *,
.tfwc-inline-wrap .tfwc-inline-button:hover,
.tfwc-inline-wrap .tfwc-inline-button:focus,
.tfwc-inline-wrap .tfwc-inline-button:hover *,
.tfwc-inline-wrap .tfwc-inline-button:focus * {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.tfwc-inline-button:hover,
.tfwc-inline-button:focus {
	color: var(--tfwc-inline-color);
	text-decoration: none;
}

.tfwc-inline-button:hover,
.tfwc-inline-button:focus-visible {
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 11px 20px rgba(0, 0, 0, 0.18);
}

.tfwc-inline-button:focus-visible {
	outline: 3px solid rgba(47, 189, 70, 0.28);
	outline-offset: 4px;
}

.tfwc-inline-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	color: var(--tfwc-inline-color);
}

.tfwc-inline-button__icon .tfwc-icon {
	width: 42px;
	height: 42px;
}

.tfwc-inline-button__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	color: var(--tfwc-inline-color);
}

.tfwc-inline-button__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--tfwc-inline-color);
	font-size: 12px;
	line-height: 1.1;
	font-weight: 700;
	opacity: 0.9;
}

.tfwc-inline-button__badge {
	display: inline-flex;
	align-items: center;
	min-height: 14px;
	padding: 1px 4px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.28);
	color: var(--tfwc-inline-color);
	font-size: 9px;
	line-height: 1;
}

.tfwc-inline-button strong {
	display: block;
	color: var(--tfwc-inline-color);
	font-size: 16px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.tfwc-hide-desktop {
		display: none;
	}
}

@media (max-width: 767px) {
	.tfwc-widget {
		bottom: 16px;
	}

	.tfwc-position-bottom-right {
		right: 16px;
	}

	.tfwc-position-bottom-left {
		left: 16px;
	}

	.tfwc-button {
		width: 58px;
		height: 58px;
	}

	.tfwc-button .tfwc-icon {
		width: 31px;
		height: 31px;
	}

	.tfwc-panel {
		bottom: 74px;
	}

	.tfwc-hide-mobile {
		display: none;
	}

	.tfwc-inline-button {
		min-width: 280px;
		min-height: 62px;
		padding: 9px 22px 9px 14px;
	}

	.tfwc-inline-button__icon,
	.tfwc-inline-button__icon .tfwc-icon {
		width: 40px;
		height: 40px;
	}
}
