#svt-practice-chat {
	--svt-chat-gradient: linear-gradient(to right, #007395, #128eb2);
	--svt-chat-launcher-fill: linear-gradient(45deg, #007395 28%, #128eb2 66%);
	--svt-chat-launcher-size: 52px;
	--svt-chat-launcher-right: max(20px, env(safe-area-inset-right));
	--svt-chat-launcher-bottom: calc(20px + env(safe-area-inset-bottom));
	--svt-chat-panel-right: max(40px, env(safe-area-inset-right));
	--svt-chat-panel-bottom: calc(106px + env(safe-area-inset-bottom));
	--svt-chat-panel-width: 360px;
	--svt-chat-panel-height: 594px;
	font: 400 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #3d4143;
}

#svt-practice-chat *, #svt-practice-chat *::before, #svt-practice-chat *::after { box-sizing: border-box; }
#svt-practice-chat [hidden] { display: none !important; }

#svt-practice-chat button {
	display: inline-grid;
	flex: none;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

#svt-practice-chat button:focus-visible, #svt-practice-chat a:focus-visible, #svt-practice-chat textarea:focus-visible {
	outline: 2px solid #075d77;
	outline-offset: 2px;
}

#svt-practice-chat .svt-chat__launcher {
	position: fixed;
	z-index: 2147483647;
	right: var(--svt-chat-launcher-right);
	bottom: var(--svt-chat-launcher-bottom);
	width: var(--svt-chat-launcher-size);
	height: var(--svt-chat-launcher-size);
	border-radius: 50%;
	background: var(--svt-chat-launcher-fill);
	color: #fff;
	opacity: 0;
	visibility: hidden;
}

#svt-practice-chat[data-ready]:not([data-ready="false"]) .svt-chat__launcher { opacity: 1; visibility: visible; }
#svt-practice-chat .svt-chat__launcher:hover { filter: brightness(1.065); }
#svt-practice-chat .svt-chat__launcher:active { filter: brightness(.94); }
#svt-practice-chat .svt-chat__down-icon,
#svt-practice-chat[data-open]:not([data-open="false"]) .svt-chat__chat-icon { display: none; }
#svt-practice-chat[data-open]:not([data-open="false"]) .svt-chat__down-icon { display: block; }

.svt-chat__panel {
	position: fixed;
	z-index: 2147483647;
	right: var(--svt-chat-panel-right);
	bottom: var(--svt-chat-panel-bottom);
	display: flex;
	flex-direction: column;
	width: min(var(--svt-chat-panel-width), calc(100% - var(--svt-chat-panel-right) - 12px));
	height: var(--svt-chat-panel-height);
	max-height: calc(100vh - var(--svt-chat-panel-bottom) - 20px);
	max-height: calc(var(--svt-chat-visual-height, 100dvh) - var(--svt-chat-panel-bottom) - 20px);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 19px rgba(169, 169, 169, .91);
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}

#svt-practice-chat[data-open]:not([data-open="false"]) .svt-chat__panel {
	opacity: 1;
	visibility: visible;
}

.svt-chat__head {
	position: relative;
	display: flex;
	flex: 0 0 83px;
	align-items: center;
	gap: 5px;
	padding: 0 14px 3px 15px;
	background: var(--svt-chat-gradient);
	color: #fff;
}

.svt-chat__avatar {
	display: block;
	flex: none;
	width: 50px;
	height: 50px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

#svt-practice-chat .svt-chat__title {
	position: relative;
	flex: 1;
	min-width: 0;
	margin: 0;
	color: #fff;
	font: 600 17px/24px "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: normal;
	text-transform: none;
}

.svt-chat__controls {
	position: relative;
	z-index: 1;
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
}

#svt-practice-chat .svt-chat__controls > button {
	width: 24px;
	height: 32px;
	border-radius: 4px;
	color: #fff;
}

#svt-practice-chat .svt-chat__controls > button:hover { background-color: #ffffff22; }
#svt-practice-chat .svt-chat__controls > button:focus-visible { outline-color: #fff; }

.svt-chat__wave {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	display: block;
	width: 100%;
	height: 14px;
	color: #fff;
	pointer-events: none;
}

.svt-chat__transcript {
	flex: 1;
	min-height: 0;
	padding: 25px 25px 12px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.svt-chat__message {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-width: 0;
	margin: 0 0 5px;
	padding-left: 45px;
}

.svt-chat__message img {
	position: absolute;
	bottom: 4px;
	left: 0;
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

#svt-practice-chat .svt-chat__bubble {
	max-width: 100%;
	margin: 0;
	padding: 8px 14px;
	border-radius: 3.25px 15.6px 15.6px 3.25px;
	background: rgba(216, 216, 216, .32);
	color: #3d4143;
	font: 400 13px/22px "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: normal;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

#svt-practice-chat .svt-chat__message:first-child .svt-chat__bubble { border-radius: 15.6px 15.6px 15.6px 3.25px; }
.svt-chat__message[data-from="visitor"] { justify-content: flex-end; padding-left: 18px; }
#svt-practice-chat .svt-chat__message[data-from="visitor"] .svt-chat__bubble {
	border-radius: 15.6px 3.25px 3.25px 15.6px;
	background: #b5b5b5;
	color: #fff;
}

#svt-practice-chat .svt-chat__bubble a {
	display: block;
	width: fit-content;
	font-weight: 600;
	color: #075d77;
	text-decoration: underline;
}

.svt-chat__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding: 4px 0 3px 45px;
}

#svt-practice-chat .svt-chat__choices button {
	max-width: 100%;
	min-height: 34px;
	padding: 5px 9px;
	border: 1px solid #08769a;
	border-radius: 8px;
	background: #fff;
	color: #075d77;
	font: 600 12px/18px "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#svt-practice-chat .svt-chat__choices button:enabled:hover,
#svt-practice-chat .svt-chat__choices button[data-chat-choice="send_inquiry"] { background: #007395; color: #fff; }
#svt-practice-chat .svt-chat__choices button:disabled { opacity: .55; cursor: progress; }

.svt-chat__typing {
	width: max-content;
	margin: 0 0 5px 45px;
	padding: 4px 12px;
	border-radius: 3.25px 15.6px 15.6px 3.25px;
	background: rgba(216, 216, 216, .32);
	color: #6a6c70;
	letter-spacing: 3px;
}

#svt-practice-chat :is(.svt-chat__credit, .svt-chat__menu-credit) {
	margin: 0;
	padding: 4px 10px;
	color: #ababab;
	font: 600 11px/14px "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .05em;
	text-align: center;
}

#svt-practice-chat :is(.svt-chat__credit, .svt-chat__menu-credit) a {
	color: inherit;
	text-decoration: none;
}

#svt-practice-chat .svt-chat__bolt {
	display: inline-block;
	width: 13px;
	height: 13px;
	vertical-align: -2px;
}

#svt-practice-chat :is(.svt-chat__credit, .svt-chat__menu-credit) a:is(:hover, :focus-visible) {
	color: #707070;
	text-decoration: underline;
}

.svt-chat__composer {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	min-height: 56px;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 10px 11px 10px 20px;
	border-top: 1px solid #e2e2e2;
	background: #fff;
}

#svt-practice-chat .svt-chat__composer textarea {
	flex: 1;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 6px 2px;
	border: 0;
	border-radius: 3px;
	background: #fff;
	color: #555;
	font: 400 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
	resize: none;
}

#svt-practice-chat .svt-chat__composer textarea::placeholder { color: #777; opacity: 1; }
.svt-chat__tools { display: flex; align-items: center; gap: 4px; }

#svt-practice-chat .svt-chat__composer button {
	min-width: 24px;
	min-height: 32px;
	border-radius: 4px;
	color: #8894a1;
}

#svt-practice-chat .svt-chat__composer button[type="submit"] { color: #007395; }
#svt-practice-chat .svt-chat__composer button:disabled { color: #c0c7cd; cursor: default; }
#svt-practice-chat .svt-chat__composer button:enabled:hover { background: #edf4f7; }

.svt-chat__menu {
	position: absolute;
	z-index: 3;
	inset: 0 0 0 auto;
	width: min(250px, 100%);
	padding: 50px 0 12px;
	background: #fff;
	color: #3d4143;
	box-shadow: -2px 0 12px #0002;
	visibility: hidden;
	transform: translateX(100%);
	transition: transform 500ms ease, visibility 0s 500ms;
}

.svt-chat__panel[data-menu-open] .svt-chat__menu {
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.svt-chat__emoji {
	position: absolute;
	z-index: 2;
	right: 10px;
	bottom: 100%;
	display: grid;
	grid-template-columns: repeat(6, 29px);
	gap: 2px;
	padding: 5px;
	border: 1px solid #e5e9ec;
	border-radius: 5px;
	background: #fff;
	color: #3d4143;
	box-shadow: 0 4px 12px #0002;
}

#svt-practice-chat .svt-chat__menu > button {
	position: absolute;
	top: 0;
	left: 0;
	width: 58px;
	height: 59px;
	border-radius: 4px;
	font-size: 30px;
	color: #333;
}

#svt-practice-chat .svt-chat__menu > a {
	display: block;
	width: fit-content;
	padding: 8px 16px 8px 32px;
	color: #333;
	font: 400 16px/23px "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-decoration: none;
}

#svt-practice-chat .svt-chat__menu > a:hover { text-decoration: underline; }
#svt-practice-chat .svt-chat__privacy-note {
	margin: 0 20px 0 32px;
	color: #555;
	font: 400 12px/18px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#svt-practice-chat .svt-chat__menu-credit { position: absolute; right: 0; bottom: 31px; left: 0; }
#svt-practice-chat .svt-chat__menu > button:hover { background: #edf4f7; }
#svt-practice-chat .svt-chat__emoji button { min-height: 29px; font-size: 17px; }

@media (max-width: 480px) {
	#svt-practice-chat {
		--svt-chat-panel-right: max(20px, env(safe-area-inset-right));
		--svt-chat-panel-bottom: calc(151px + env(safe-area-inset-bottom));
		--svt-chat-launcher-right: env(safe-area-inset-right);
		--svt-chat-launcher-bottom: calc(65px + env(safe-area-inset-bottom));
	}
	.svt-chat__panel { width: calc(100% - var(--svt-chat-panel-right) - max(20px, env(safe-area-inset-left))); }
	#svt-practice-chat[data-keyboard-open] .svt-chat__panel {
		bottom: calc(var(--svt-chat-keyboard, 0px) + 10px);
		max-height: calc(var(--svt-chat-visual-height, 100dvh - var(--svt-chat-keyboard, 0px)) - 30px);
	}
	#svt-practice-chat .svt-chat__composer textarea { font-size: 16px; }
	#svt-practice-chat .svt-chat__choices button { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.svt-chat__menu { transition: none; }
}
