
#live_chat_box {
	overflow: visible;
	display: block;
	z-index: 9999999;
	position: fixed;
	bottom: -126px;
	font-size: 13px;
	line-height: 1.35;
	/* Shadow on the floating card, not a colored halo */
	box-shadow: none;
}

#live_chat_box.chatright {
	right: 16px;
}

#live_chat_box.chatleft {
	left: 16px;
}

.live_chat_panel {
	position: relative;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #ffffff;
	border-radius: 16px;
	box-shadow:
		0 4px 6px -1px rgba(15, 23, 42, 0.08),
		0 12px 24px -4px rgba(15, 23, 42, 0.14);
}

/* Open invitation card */
#live_chat_opened.live_chat_panel--opened {
	width: min(320px, calc(100vw - 32px));
	min-height: 0;
	padding: 14px 14px 12px;
}

.live_chat_opened_main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-right: 28px;
}

.live_chat_icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.04);
}

.live_chat_icon svg {
	display: block;
}

.live_chat_inner {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

.live_chat_title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #1e293b;
	margin: 0;
}

.live_chat_text {
	font-size: 13px;
	color: #64748b;
	margin: 6px 0 0;
	padding: 0;
}

.live_chat_opened_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.live_chat_close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	line-height: 30px;
	text-align: center;
	font-size: 22px;
	font-weight: 400;
	color: #94a3b8;
	text-decoration: none;
	border-radius: 10px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.live_chat_close:hover {
	text-decoration: none;
	color: #475569;
	background: rgba(15, 23, 42, 0.06);
}

.live_chat_powered {
	position: static;
	font-size: 10px;
	color: #94a3b8;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.live_chat_powered:hover {
	text-decoration: underline;
	color: #64748b;
}

.live_chat_btn_ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 8px;
	vertical-align: middle;
}

.live_chat_btn_ico svg {
	display: block;
}

.live_chat_btn_label {
	vertical-align: middle;
}

.live_chat_start,
.live_chat_expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 16px 0 12px;
	font-size: 14px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.live_chat_start:hover,
.live_chat_expand:hover {
	text-decoration: none;
	filter: brightness(1.06);
}

.live_chat_start:active,
.live_chat_expand:active {
	transform: scale(0.98);
}

/* Collapsed strip */
#live_chat_closed.live_chat_panel--closed {
	width: min(300px, calc(100vw - 32px));
	min-height: 0;
	height: auto;
	padding: 8px 10px;
}

.live_chat_closed_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.live_chat_panel--closed .live_chat_powered {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.3;
}

.live_chat_panel--closed .live_chat_expand {
	flex: 0 0 auto;
	padding-left: 10px;
	padding-right: 14px;
	min-height: 36px;
	font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Compact launcher (collapsed = circle FAB). #live_chat_box.live_chat--compact */
/* ------------------------------------------------------------------ */

#live_chat_box.live_chat--compact #live_chat_closed.live_chat_panel--fab {
	width: auto;
	max-width: none;
	padding: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.live_chat_expand--fab {
	width: 56px;
	height: 56px;
	min-height: 56px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	box-shadow:
		0 4px 6px -1px rgba(15, 23, 42, 0.12),
		0 10px 20px -5px rgba(15, 23, 42, 0.15);
	transition: filter 0.15s ease, transform 0.1s ease;
}

.live_chat_expand--fab:hover {
	text-decoration: none !important;
	filter: brightness(1.08);
}

.live_chat_expand--fab:active {
	transform: scale(0.96);
}

.live_chat_expand--fab:focus {
	outline: 2px solid rgba(15, 23, 42, 0.35);
	outline-offset: 3px;
}

.live_chat_fab_ico {
	display: flex;
	align-items: center;
	justify-content: center;
}

.live_chat_fab_ico svg {
	display: block;
}

.live_chat_powered--fab {
	font-size: 9px;
	color: #94a3b8;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	max-width: 88px;
	opacity: 0.88;
}

.live_chat_powered--fab:hover {
	color: #64748b;
	text-decoration: underline;
}
