/* Chn2Ukr FAQ (/faq/), the minimal Telegraph-like look: the contents at hand, search, coloured sections, the ШІ-асистент. */
/* ---------- the page itself, Telegraph-like (it used to sit in the page as code; now the page is plain blocks) ---------- */
html body .tgfaq{max-width:732px;margin:0 auto;padding:28px 0 56px;color:#000;font-family:Georgia,Cambria,'Times New Roman',serif;font-size:18px;line-height:1.58}
html body .tgfaq *{box-sizing:border-box}
html body .tgfaq > *{max-width:none}
html body .tgfaq h1,html body .tgfaq h3,html body .tgfaq h4,html body .tgfaq .tg-by,html body .tgfaq .tg-sec{font-family:'Lucida Grande','Helvetica Neue',Arial,sans-serif;text-transform:none;letter-spacing:0}
html body .tgfaq h1{font-size:32px;line-height:34px;font-weight:700;margin:21px 21px 12px;color:#000}
html body .tgfaq .tg-by{font-size:15px;line-height:18px;color:#79828B;margin:12px 21px 28px}
html body .tgfaq .tg-by a{color:#79828B;border:0}
html body .tgfaq h3{font-size:28px;line-height:1.2;font-weight:700;margin:36px 21px 9px;color:#000}
html body .tgfaq h4{font-size:24px;line-height:1.25;font-weight:700;margin:28px 21px 7px;color:#000;scroll-margin-top:96px}
html body .tgfaq p{margin:0 21px 12px;word-wrap:break-word;font-size:inherit;line-height:inherit;color:inherit}
html body .tgfaq .tg-sec{font-size:16px;font-weight:700;margin:18px 21px 6px}
html body .tgfaq ol,html body .tgfaq ul{margin:0 21px 12px;padding-left:28px}
html body .tgfaq li{margin:0 0 4px;padding-left:3px;font-size:inherit;line-height:inherit}
html body .tgfaq a[href]{color:inherit;text-decoration:none;border-bottom:.1em solid rgba(0,0,0,.7)}
html body .tgfaq a[href]:hover{border-bottom-color:#000}
html body .tgfaq strong,html body .tgfaq b{font-weight:700}
@media (max-width:600px){html body .tgfaq{font-size:17px}html body .tgfaq h1{font-size:28px;line-height:31px}html body .tgfaq h3{font-size:24px}html body .tgfaq h4{font-size:21px}}
body:has(.tgfaq){background:#fff}
body:has(.tgfaq) .hero-section,body:has(.tgfaq) .entry-header,body:has(.tgfaq) .page-title{display:none!important}


:root {
	--tgs-top: 78px;
	--tgs-sans: 'Lucida Grande', 'Helvetica Neue', Arial, sans-serif;
	--tgs-serif: Georgia, Cambria, 'Times New Roman', serif;
	--tgs-line: #dfe2e6;
	--tgs-gray: #79828B;
	--tgs-soft: #f2f3f5;
}

/* ---------- the contents on the left (wide screens) ---------- */
.tgs-side {
	position: fixed;
	top: calc(var(--tgs-top) + 24px);
	left: max(16px, calc(50% - 366px - 300px));
	z-index: 40;
	display: flex;
	flex-direction: column;
	width: 264px;
	max-height: calc(100vh - var(--tgs-top) - 48px);
	box-sizing: border-box;
	font-family: var(--tgs-sans);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

html.tgs-on .tgs-side {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.tgs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 10px;
	color: var(--tgs-gray);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.tgs-x,
.tgs-bar,
.tgs-shade {
	display: none;
}

.tgs-nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 6px;
	scrollbar-width: thin;
}

.tgs-nav .tgs-sec {
	margin: 14px 0 4px !important;
	color: #000;
	font-family: var(--tgs-sans);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.tgs-nav .tgs-sec:first-child {
	margin-top: 0 !important;
}

.tgs-nav a,
.tgs-nav a:visited {
	display: block;
	padding: 4px 0 4px 10px;
	border-left: 2px solid transparent;
	color: #4a4f55 !important;
	font-family: var(--tgs-sans);
	font-size: 13.5px;
	line-height: 1.35;
	text-decoration: none !important;
}

.tgs-nav a:hover {
	color: #000 !important;
}

.tgs-nav a.on {
	border-left-color: #000;
	color: #000 !important;
	font-weight: 700;
}

/* ---------- ШІ-асистент: the box under the title and the buttons ---------- */
.tgfaq .tg-ai {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 21px 28px;
	padding: 14px 16px;
	border: 1px solid var(--tgs-line);
	border-radius: 10px;
	font-family: var(--tgs-sans);
}

button.tg-ai-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 9px 14px;
	border: 0;
	border-radius: 8px;
	background: #000 !important;
	color: #fff !important;
	font-family: var(--tgs-sans) !important;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

button.tg-ai-open:hover {
	background: #333 !important;
}

.tgfaq .tg-ai-note {
	flex: 1 1 240px;
	margin: 0 !important;
	color: var(--tgs-gray);
	font-family: var(--tgs-sans);
	font-size: 14px;
	line-height: 1.5;
}

.tgfaq .tg-ai-note a[href] {
	color: var(--tgs-gray);
	border-bottom-color: rgba(121, 130, 139, .6);
}

button.tgs-ai {
	width: 100%;
	margin: 0 0 14px;
}

/* ---------- the chat window ---------- */
.tg-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1002;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 40px));
	height: min(620px, calc(100vh - var(--tgs-top) - 40px));
	overflow: hidden;
	border: 1px solid var(--tgs-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
	font-family: var(--tgs-sans);
}

.tg-chat[hidden] {
	display: none !important;
}

.tg-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 10px 16px;
	border-bottom: 1px solid var(--tgs-line);
	color: #000;
	font-size: 15px;
}

.tg-chat button.tg-chat-x,
.tgs-side button.tgs-x {
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--tgs-soft) !important;
	color: #000 !important;
	font-size: 14px;
	cursor: pointer;
}

.tg-chat-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px;
}

.tg-msg {
	max-width: 92%;
	margin: 0 0 10px;
	padding: 10px 13px;
	border-radius: 12px;
	background: var(--tgs-soft);
	color: #000;
	font-family: var(--tgs-serif);
	font-size: 15.5px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.tg-msg p {
	margin: 0 0 6px !important;
}

.tg-msg > :last-child {
	margin-bottom: 0 !important;
}

.tg-msg ul {
	margin: 4px 0 6px !important;
	padding-left: 18px !important;
}

.tg-msg blockquote {
	margin: 6px 0 !important;
	padding: 2px 0 2px 10px !important;
	border-left: 3px solid #000;
	font-style: italic;
}

.tg-msg a[href] {
	color: inherit;
	text-decoration: none;
	border-bottom: .1em solid rgba(0, 0, 0, .7);
}

.tg-msg.me {
	margin-left: auto;
	background: #000;
	color: #fff;
	font-family: var(--tgs-sans);
}

.tg-msg.wait {
	color: var(--tgs-gray);
	font-style: italic;
}

.tg-msg.err {
	background: #fff4e0;
}

.tg-chat-form {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border-top: 1px solid var(--tgs-line);
}

.tg-chat-form textarea {
	flex: 1 1 auto;
	height: 52px !important;
	min-height: 0 !important;
	max-height: 52px !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid var(--tgs-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #000 !important;
	font-family: var(--tgs-sans) !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	resize: none;
}

.tg-chat-form textarea:focus {
	outline: 2px solid #000 !important;
	border-color: transparent !important;
}

.tg-chat-form button {
	flex: none;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: #000 !important;
	color: #fff !important;
	font-family: var(--tgs-sans) !important;
	font-size: 14px !important;
	font-weight: 700;
	cursor: pointer;
}

.tg-chat-form button:disabled {
	opacity: .5;
	cursor: default;
}

/* ---------- narrower screens: a slim bar under the header, the contents as a drawer, the chat full screen ---------- */
@media (max-width: 1319px) {
	.tgs-side {
		top: var(--tgs-top);
		bottom: 0;
		left: 0;
		z-index: 1001;
		width: min(320px, 86vw);
		max-height: none;
		padding: 16px 16px 24px;
		background: #fff;
		box-shadow: 0 0 40px rgba(0, 0, 0, .2);
		opacity: 1;
		visibility: hidden;
		transform: translateX(-105%);
	}

	html.tgs-on .tgs-side {
		opacity: 1;
		visibility: hidden;
		transform: translateX(-105%);
	}

	html.tgs-open-side .tgs-side,
	html.tgs-on.tgs-open-side .tgs-side {
		visibility: visible;
		transform: none;
	}

	.tgs-side button.tgs-x {
		display: inline-block;
	}

	.tgs-bar {
		position: fixed;
		top: var(--tgs-top);
		right: 0;
		left: 0;
		z-index: 39;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 8px 16px;
		border-bottom: 1px solid var(--tgs-line);
		background: rgba(255, 255, 255, .97);
		font-family: var(--tgs-sans);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-110%);
		transition: transform .2s, opacity .2s;
	}

	html.tgs-on .tgs-bar {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.tgs-bar button.tgs-open {
		flex: none;
		margin: 0;
		padding: 7px 12px;
		border: 0;
		border-radius: 8px;
		background: #000 !important;
		color: #fff !important;
		font-family: var(--tgs-sans) !important;
		font-size: 13px !important;
		font-weight: 700;
		cursor: pointer;
	}

	.tgs-cur {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		color: #000;
		font-size: 12.5px;
		font-weight: 700;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tgs-bar button.tgs-bar-ai {
		padding: 6px 10px;
		background: var(--tgs-soft) !important;
		color: #000 !important;
		font-size: 16px !important;
	}

	html.tgs-open-side .tgs-shade {
		position: fixed;
		top: var(--tgs-top);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		display: block;
		background: rgba(0, 0, 0, .3);
	}

	.tg-chat {
		top: var(--tgs-top);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1003;
		width: auto;
		height: auto;
		border: 0;
		border-radius: 0;
	}

	.tg-chat-form textarea {
		font-size: 16px !important; /* no zoom on iPhone */
	}
}

/* ---------- 1.8.0: easier reading (tables, boxes, figures), search, «Нагору» ---------- */
.tgfaq h3[id]::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 10px;
	border-radius: 2px;
	background: #DF2020;
}

.tgfaq .tg-qn {
	color: #DF2020;
}

/* tariffs and terms as a small table */
.tgfaq .tg-table {
	width: calc(100% - 42px);
	margin: 6px 21px 16px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--tgs-line);
	border-radius: 10px;
	overflow: hidden;
	font-size: 17px;
}

.tgfaq .tg-table th,
.tgfaq .tg-table td {
	padding: 11px 14px;
	border: 0;
	border-top: 1px solid var(--tgs-line);
	text-align: left;
	vertical-align: top;
}

.tgfaq .tg-table tr:first-child th,
.tgfaq .tg-table tr:first-child td {
	border-top: 0;
}

.tgfaq .tg-table th {
	width: 34%;
	background: #f7f8fa;
	font-family: var(--tgs-sans);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.tgfaq .tg-dash {
	display: none; /* the row itself is the marker; the dash stays in the page text */
}

/* figures that matter */
.tgfaq strong.tg-num {
	padding: 0 3px;
	border-radius: 3px;
	background: linear-gradient(transparent 55%, #ffe68a 55%);
}

/* pluses and minuses */
.tgfaq .tg-box {
	margin: 10px 21px 16px;
	padding: 12px 16px 6px;
	border-radius: 10px;
	border: 1px solid;
}

.tgfaq .tg-pros {
	border-color: #bfe3cb;
	background: #f1faf4;
}

.tgfaq .tg-cons {
	border-color: #f2c7c7;
	background: #fdf2f2;
}

.tgfaq .tg-box p {
	margin: 0 0 8px;
}

.tgfaq .tg-box .tg-box-h {
	font-family: var(--tgs-sans);
	font-size: 16px;
}

.tgfaq p.tg-li {
	position: relative;
	padding-left: 18px;
}

.tgfaq .tg-box p.tg-li {
	margin-right: 0;
}

.tgfaq .tg-dot {
	position: absolute;
	left: 0;
	color: #DF2020;
	font-weight: 700;
}

.tgfaq .tg-pros .tg-dot {
	color: #1f8a4c;
}

/* а) б) в): a round letter */
.tgfaq p.tg-opt {
	position: relative;
	padding-left: 34px;
}

.tgfaq .tg-letter {
	position: absolute;
	top: 2px;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 4px;
	border-radius: 12px;
	background: #000;
	color: #fff;
	font-family: var(--tgs-sans);
	font-size: 12px;
	line-height: 1;
	box-sizing: border-box;
}

/* notes, warnings, examples */
.tgfaq p.tg-note {
	padding-left: 12px;
	border-left: 3px solid var(--tgs-line);
	color: #5f6670;
	font-size: 16px;
}

.tgfaq p.tg-note strong {
	font-weight: 600;
}

.tgfaq p.tg-warn {
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid #f1d39a;
	background: #fff7e8;
}

.tgfaq p.tg-example {
	padding: 12px 16px;
	border-radius: 10px;
	background: #f2f5fa;
}

/* search */
.tgfaq .tg-search {
	position: relative;
	margin: 0 21px 24px;
	font-family: var(--tgs-sans);
}

.tgfaq .tg-search input[type="search"],
.tgs-side input.tgs-search {
	width: 100% !important;
	height: auto !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 11px 14px 11px 38px !important;
	border: 1px solid var(--tgs-line) !important;
	border-radius: 10px !important;
	background: #fff no-repeat 13px 50% / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379828B' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
	color: #000 !important;
	font-family: var(--tgs-sans) !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.tgfaq .tg-search input[type="search"]:focus,
.tgs-side input.tgs-search:focus {
	outline: 2px solid #000 !important;
	border-color: transparent !important;
}

.tgfaq .tg-results {
	margin-top: 8px;
	border: 1px solid var(--tgs-line);
	border-radius: 10px;
	overflow: hidden;
}

.tgfaq .tg-results[hidden],
.tgs-nav [hidden] {
	display: none !important;
}

.tgfaq a.tg-r[href] {
	display: block;
	padding: 10px 14px;
	border-bottom: 1px solid var(--tgs-line);
	color: #000;
	text-decoration: none;
}

.tgfaq a.tg-r:last-child {
	border-bottom: 0;
}

.tgfaq a.tg-r:hover {
	background: #f7f8fa;
}

.tgfaq a.tg-r b {
	display: block;
	font-size: 15px;
	line-height: 1.35;
}

.tgfaq a.tg-r span {
	display: block;
	margin-top: 3px;
	color: #5f6670;
	font-size: 13.5px;
	line-height: 1.45;
}

.tgfaq .tg-r-empty,
.tgs-empty {
	margin: 0 !important;
	padding: 10px 14px;
	color: var(--tgs-gray);
	font-family: var(--tgs-sans);
	font-size: 14px;
}

.tgs-side input.tgs-search {
	margin: 0 0 10px !important;
	padding-top: 9px !important;
	padding-bottom: 9px !important;
	font-size: 14px !important;
}

.tgfaq mark,
.tgfaq mark.tg-mark {
	padding: 0 1px;
	border-radius: 3px;
	background: #ffe68a;
	color: inherit;
}

/* «Нагору» */
button.tg-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 41;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: #000 !important;
	color: #fff !important;
	font-family: var(--tgs-sans) !important;
	font-size: 13.5px !important;
	font-weight: 700;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}

html.tgs-on button.tg-top {
	opacity: 1;
	visibility: visible;
}

.tgs-bar button.tgs-top {
	margin: 0;
	padding: 6px 11px;
	border: 0;
	border-radius: 8px;
	background: var(--tgs-soft) !important;
	color: #000 !important;
	font-size: 15px !important;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 1319px) {
	button.tg-top {
		display: none;
	}
}

@media (max-width: 600px) {
	.tgfaq .tg-table th {
		width: auto;
		white-space: normal;
	}

	.tgfaq .tg-table {
		font-size: 16px;
	}
}

html.tgs-on .tgs-side.tgs-tight {
	opacity: 0;
	visibility: hidden;
}

/* ---------- 1.8.1: sections as softly coloured blocks; the section title stays on top while its text is read ---------- */
.tgfaq hr {
	display: none;
}

.tgfaq .tg-sec-wrap {
	margin: 0 0 28px;
	padding: 0 0 14px;
	border-radius: 16px;
	background: var(--sec-bg, #F2F4F7);
}

.tgfaq .tg-sec-wrap > h3[id] {
	position: sticky;
	top: var(--tgs-stick, 78px);
	z-index: 5;
	margin: 0 !important;
	padding: 14px 21px 12px;
	border-radius: 16px 16px 0 0;
	background: var(--sec-bg, #F2F4F7);
	font-size: 22px;
	line-height: 1.25;
	box-shadow: 0 6px 10px -10px rgba(0, 0, 0, .25);
}

.tgfaq .tg-sec-wrap > h3[id]::after {
	width: 36px;
	margin-top: 8px;
}

.tgfaq .tg-sec-wrap > h4:first-of-type {
	margin-top: 18px;
}

.tgfaq .tg-sec-wrap .tg-table td {
	background: #fff;
}

.tgfaq .tg-sec-wrap .tg-table th {
	background: rgba(255, 255, 255, .55);
}

.tgfaq .tg-sec-wrap p.tg-note {
	border-left-color: rgba(0, 0, 0, .12);
}

.tgfaq .tg-sec-wrap p.tg-example {
	background: rgba(255, 255, 255, .7);
}

/* the section colour as a small mark in the menu */
.tgs-nav .tgs-sec {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tgs-nav .tgs-sec::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 3px;
	background: var(--c, transparent);
}

@media (max-width: 600px) {
	.tgfaq .tg-sec-wrap {
		margin-right: -6px;
		margin-left: -6px;
		border-radius: 12px;
	}

	.tgfaq .tg-sec-wrap > h3[id] {
		padding: 11px 21px 10px;
		border-radius: 12px 12px 0 0;
		font-size: 18px;
	}
}

/* the section name already stays on top of its block: the bar keeps only its buttons */
@media (max-width: 1319px) {
	.tgs-cur {
		visibility: hidden;
	}
}

/* ---------- 1.9.5: a wider, compact top (search + assistant in a row, the contents in columns); answers stay 732px ---------- */
html body .tgfaq {
	max-width: 1040px;
}

html body .tgfaq > .tg-sec-wrap {
	max-width: 732px;
	margin-right: auto;
	margin-left: auto;
}

.tgfaq .tg-top-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
	margin: 0 21px 10px;
}

.tgfaq .tg-top-row .tg-search,
.tgfaq .tg-top-row .tg-ai {
	margin: 0;
}

.tgfaq .tg-top-row .tg-search {
	align-self: start;
}

.tgfaq .tg-top-row .tg-ai {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.tgfaq .tg-top-row .tg-ai-note {
	flex: none;
	width: 100%;
	font-size: 13.5px;
}

.tgfaq .tg-toc {
	column-count: 2; /* questions 1–12 on the left, 13–27 on the right: the order stays easy to follow */
	column-gap: 18px;
	margin: 0 21px 32px;
}

.tgfaq .tg-toc-grp {
	display: inline-block;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px 8px;
	border-radius: 12px;
	background: var(--sec-bg, #F2F4F7);
	break-inside: avoid;
	box-sizing: border-box;
}

html body .tgfaq .tg-toc-grp .tg-sec {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.35;
}

html body .tgfaq .tg-toc-grp ol {
	margin: 0;
	padding-left: 24px;
	font-size: 15.5px;
	line-height: 1.45;
}

html body .tgfaq .tg-toc-grp li {
	margin: 0 0 5px;
}

@media (max-width: 1000px) {
	.tgfaq .tg-toc {
		column-count: 2;
	}
}

@media (max-width: 760px) {
	.tgfaq .tg-top-row {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (max-width: 600px) {
	.tgfaq .tg-toc {
		column-count: 1;
	}
}

/* less empty space above the title */
html body .tgfaq {
	padding-top: 0;
}

html body .tgfaq h1 {
	margin-top: 4px;
}

/* ---------- 1.9.7: the assistant in the empty space on the right (wide screens), a robot button (medium screens),
   «Звʼязатися з менеджером» in the chat ---------- */
.tg-dock {
	position: fixed;
	top: calc(var(--tgs-top) + 24px);
	right: max(16px, calc(50% - 366px - 300px));
	z-index: 40;
	width: 264px;
	box-sizing: border-box;
	padding: 20px 14px 14px;
	border: 1px solid var(--tgs-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
	font-family: var(--tgs-sans);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translateX(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

html.tgs-on .tg-dock {
	opacity: 1;
	visibility: visible;
	transform: none;
}

html.tgs-on.tg-chat-on .tg-dock,
html.tgs-on .tg-dock.tg-dock-off {
	opacity: 0;
	visibility: hidden;
}

.tg-dock button.tg-dock-ask {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none !important;
	color: #000 !important;
	font-family: var(--tgs-sans) !important;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

.tg-dock-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 0 4px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	transition: transform .2s;
}

.tg-dock-ico svg {
	width: 32px;
	height: 32px;
}

.tg-dock button.tg-dock-ask:hover .tg-dock-ico {
	transform: scale(1.06) rotate(-5deg);
}

.tg-dock-t {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.tg-dock-s {
	color: var(--tgs-gray);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

.tg-dock-go {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 9px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.tg-dock button.tg-dock-ask:hover .tg-dock-go {
	background: #333;
}

.tg-dock a.tg-dock-mgr,
.tg-chat .tg-chat-mgr a {
	display: block;
	margin: 8px 0 0;
	padding: 9px 12px;
	border: 1px solid var(--tgs-line) !important;
	border-radius: 9px;
	background: #fff;
	color: #000 !important;
	font-family: var(--tgs-sans);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	transition: background .15s;
}

.tg-dock a.tg-dock-mgr {
	padding: 9px 6px;
	font-size: 13px;
	white-space: nowrap;
}

.tg-dock a.tg-dock-mgr:hover,
.tg-chat .tg-chat-mgr a:hover {
	background: var(--tgs-soft);
}

.tg-chat .tg-chat-mgr {
	flex: none;
	padding: 10px 10px 0;
	border-top: 1px solid var(--tgs-line);
}

.tg-chat .tg-chat-mgr a {
	margin: 0;
}

.tg-chat .tg-chat-mgr + .tg-chat-form {
	padding-top: 8px;
	border-top: 0;
}

button.tg-fab {
	display: none;
}

@media (max-width: 1319px) {
	.tg-dock {
		display: none;
	}
}

@media (min-width: 761px) and (max-width: 1319px) {
	button.tg-fab {
		position: fixed;
		right: 20px;
		bottom: 24px;
		z-index: 41;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 58px;
		height: 58px;
		min-height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #000 !important;
		color: #fff !important;
		line-height: 1;
		box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		transform: scale(.9);
		transition: opacity .2s, transform .2s, visibility .2s;
	}

	html.tgs-on button.tg-fab {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	html.tgs-on.tg-chat-on button.tg-fab {
		opacity: 0;
		visibility: hidden;
	}

	button.tg-fab svg {
		width: 30px;
		height: 30px;
	}
}

/* ---------- 1.9.8: a product photo in the chat ---------- */
.tg-chat-form button.tg-chat-clip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	background: var(--tgs-soft) !important;
	color: #000 !important;
}

.tg-chat-form button.tg-chat-clip svg {
	width: 20px;
	height: 20px;
}

.tg-chat-form button.tg-chat-clip:hover {
	background: #e6e8eb !important;
}

.tg-chat .tg-chat-att {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 0;
	color: var(--tgs-gray);
	font-family: var(--tgs-sans);
	font-size: 13px;
	line-height: 1.35;
}

.tg-chat .tg-chat-att[hidden] {
	display: none;
}

.tg-chat .tg-chat-att img {
	flex: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--tgs-line);
	border-radius: 8px;
	object-fit: cover;
}

.tg-chat .tg-chat-att span {
	flex: 1 1 auto;
	min-width: 0;
}

.tg-chat .tg-chat-att button.tg-att-x {
	flex: none;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--tgs-soft) !important;
	color: #000 !important;
	font-size: 12px;
	cursor: pointer;
}

.tg-chat .tg-chat-mgr + .tg-chat-att + .tg-chat-form {
	padding-top: 8px;
	border-top: 0;
}

.tg-msg img.tg-msg-img {
	display: block;
	max-width: 100%;
	max-height: 200px;
	margin: 0 0 6px;
	border-radius: 8px;
}

.tg-msg img.tg-msg-img:last-child {
	margin-bottom: 0;
}

.tg-msg p.tg-msg-small {
	color: var(--tgs-gray);
	font-family: var(--tgs-sans);
	font-size: 12.5px;
	line-height: 1.45;
}

/* ---------- 2.1.0: answers as short lists; the consent before the first question ---------- */
.tg-msg ul li {
	margin: 0 0 4px !important;
}

.tg-msg ul li:last-child {
	margin-bottom: 0 !important;
}

.tg-chat label.tg-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 9px 11px;
	border: 1px solid var(--tgs-line);
	border-radius: 9px;
	background: #fff;
	color: #000;
	font-family: var(--tgs-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.tg-chat label.tg-consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #000;
	cursor: pointer;
}

.tg-chat label.tg-consent:has(input:not(:checked)) {
	border-color: #DF2020;
	box-shadow: 0 0 0 3px rgba(223, 32, 32, .12);
}

.tg-chat label.tg-consent.tg-shake {
	animation: tg-shake .4s;
}

@keyframes tg-shake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
	.tg-chat label.tg-consent.tg-shake {
		animation: none;
	}
}

.tg-chat-form.tg-locked textarea {
	background: var(--tgs-soft) !important;
	cursor: pointer;
}

/* 2.1.1: consent given for this conversation — shown as done, cannot be unticked */
.tg-chat label.tg-consent.tg-consent-done {
	border-color: var(--tgs-line);
	box-shadow: none;
	background: #f3faf4;
	color: #1d6b2f;
	font-weight: 600;
	cursor: default;
}

.tg-chat label.tg-consent.tg-consent-done input {
	cursor: default;
	opacity: .7;
}
