.jak-tlc {
	--jak-tlc-bg: #ffffff;
	--jak-tlc-ink: #111827;
	--jak-tlc-muted: #5f6b7a;
	--jak-tlc-border: #d7dee8;
	--jak-tlc-panel: #f5f7fa;
	--jak-tlc-operator: #ffffff;
	--jak-tlc-visitor: #e7f2ff;
	--jak-tlc-warning: #fff7df;
	--jak-tlc-warning-border: #f2c94c;
	--jak-tlc-header: #101927;
	--jak-tlc-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
	box-sizing: border-box;
	color: var(--jak-tlc-ink);
	font-family: inherit;
	font-size: 14px;
	letter-spacing: 0;
}

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

.jak-tlc--floating {
	bottom: 22px;
	position: fixed;
	right: 22px;
	z-index: 99999;
}

.jak-tlc__panel[hidden],
.jak-tlc__badge[hidden],
.jak-tlc__form[hidden] {
	display: none !important;
}

.jak-tlc__launcher {
	align-items: center;
	background: var(--jak-tlc-accent);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	box-shadow: var(--jak-tlc-shadow);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	gap: 8px;
	min-height: 46px;
	padding: 0 17px;
	position: relative;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.jak-tlc__launcher:hover {
	box-shadow: 0 20px 52px rgba(15, 23, 42, 0.22);
	transform: translateY(-1px);
}

.jak-tlc__launcher-dot {
	background: #2fe078;
	border: 2px solid #ffffff;
	border-radius: 999px;
	display: inline-block;
	flex: 0 0 auto;
	height: 12px;
	width: 12px;
}

.jak-tlc__badge {
	align-items: center;
	background: #d92d20;
	border: 2px solid #ffffff;
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	height: 21px;
	justify-content: center;
	min-width: 21px;
	padding: 0 5px;
	position: absolute;
	right: -5px;
	top: -6px;
}

.jak-tlc__panel {
	background: var(--jak-tlc-bg);
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 8px;
	box-shadow: var(--jak-tlc-shadow);
	display: flex;
	flex-direction: column;
	max-height: min(650px, calc(100vh - 96px));
	overflow: hidden;
	width: min(360px, calc(100vw - 28px));
}

.jak-tlc--floating .jak-tlc__panel {
	bottom: 60px;
	position: absolute;
	right: 0;
}

.jak-tlc--inline .jak-tlc__panel {
	box-shadow: none;
	max-height: none;
	width: 100%;
}

.jak-tlc__header {
	align-items: center;
	background: var(--jak-tlc-header);
	color: #ffffff;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
	min-height: 58px;
	padding: 13px 14px;
}

.jak-tlc__header strong,
.jak-tlc__header span {
	display: block;
	letter-spacing: 0;
}

.jak-tlc__header strong {
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.jak-tlc__header span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	line-height: 1.25;
	margin-top: 3px;
}

.jak-tlc__close {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	height: 34px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	width: 34px;
}

.jak-tlc__close:hover {
	background: rgba(255, 255, 255, 0.16);
}

.jak-tlc__messages {
	background: var(--jak-tlc-panel);
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 9px;
	min-height: 118px;
	overflow-y: auto;
	padding: 14px;
}

.jak-tlc__message {
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.42;
	max-width: 88%;
	overflow-wrap: anywhere;
	padding: 10px 12px;
	text-align: left;
	white-space: pre-wrap;
}

.jak-tlc__message--operator {
	align-self: flex-start;
	background: var(--jak-tlc-operator);
	border: 1px solid var(--jak-tlc-border);
	color: var(--jak-tlc-ink);
}

.jak-tlc__message--visitor {
	align-self: flex-end;
	background: var(--jak-tlc-visitor);
	border: 1px solid #b9d8f5;
	color: var(--jak-tlc-ink);
}

.jak-tlc__warning {
	background: var(--jak-tlc-warning);
	border-bottom: 1px solid var(--jak-tlc-warning-border);
	border-top: 1px solid rgba(242, 201, 76, 0.45);
	color: #5c4300;
	font-size: 12px;
	line-height: 1.35;
	padding: 9px 14px;
}

.jak-tlc__form {
	background: #ffffff;
	border-top: 1px solid var(--jak-tlc-border);
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 13px 14px 14px;
}

.jak-tlc__form label {
	color: var(--jak-tlc-ink);
	display: flex;
	flex-direction: column;
	font-size: 12px;
	font-weight: 700;
	gap: 5px;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.jak-tlc__field-grid {
	display: grid;
	gap: 9px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jak-tlc__form input,
.jak-tlc__form textarea {
	appearance: none;
	background: #ffffff;
	border: 1px solid #cfd8e3;
	border-radius: 6px;
	box-shadow: none;
	color: var(--jak-tlc-ink);
	font: inherit;
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	min-height: 38px;
	padding: 8px 10px;
	width: 100%;
}

.jak-tlc__form textarea {
	min-height: 82px;
	resize: vertical;
}

.jak-tlc__form input:focus,
.jak-tlc__form textarea:focus,
.jak-tlc__launcher:focus,
.jak-tlc__close:focus,
.jak-tlc__submit:focus,
.jak-tlc__send:focus {
	border-color: var(--jak-tlc-accent);
	outline: 3px solid rgba(20, 92, 158, 0.18);
	outline-offset: 1px;
}

.jak-tlc__privacy {
	color: var(--jak-tlc-muted);
	font-size: 11px;
	line-height: 1.35;
	margin: 0;
}

.jak-tlc__submit,
.jak-tlc__send {
	align-items: center;
	appearance: none;
	background: var(--jak-tlc-accent);
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-height: 40px;
	padding: 0 14px;
	width: 100%;
}

.jak-tlc__submit:hover,
.jak-tlc__send:hover {
	filter: brightness(0.96);
}

.jak-tlc__submit:disabled,
.jak-tlc__send:disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

.jak-tlc__form--reply {
	align-items: end;
	display: grid;
	gap: 9px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.jak-tlc__reply-label {
	width: 100%;
}

.jak-tlc__form--reply textarea {
	min-height: 42px;
}

.jak-tlc__send {
	height: 42px;
	min-width: 86px;
	width: auto;
}

.jak-tlc__status {
	background: #ffffff;
	color: var(--jak-tlc-muted);
	font-size: 11px;
	line-height: 1.3;
	min-height: 16px;
	padding: 0 14px 12px;
}

.jak-tlc__hp {
	height: 1px !important;
	left: -9999px !important;
	opacity: 0 !important;
	position: absolute !important;
	width: 1px !important;
}

@media (max-width: 560px) {
	.jak-tlc--floating {
		bottom: 14px;
		right: 14px;
	}

	.jak-tlc--floating .jak-tlc__panel {
		bottom: 58px;
	}

	.jak-tlc__panel {
		max-height: min(640px, calc(100vh - 86px));
		width: min(350px, calc(100vw - 28px));
	}

	.jak-tlc__field-grid,
	.jak-tlc__form--reply {
		grid-template-columns: 1fr;
	}

	.jak-tlc__send {
		width: 100%;
	}
}
