.livechatpro-lcp-widget {
	--livechatpro-lcp-primary: #102a56;
	--livechatpro-lcp-accent: #19d3c5;
	--livechatpro-lcp-text: #162033;
	--livechatpro-lcp-muted: #65758b;
	--livechatpro-lcp-line: rgba(203, 213, 225, .72);
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--livechatpro-lcp-text);
}

.livechatpro-lcp-widget.livechatpro-lcp-left {
	right: auto;
	left: 24px;
}

.livechatpro-lcp-widget * {
	box-sizing: border-box;
}

.livechatpro-lcp-widget [hidden] {
	display: none !important;
}

.livechatpro-lcp-launcher {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	margin-left: auto;
	border: 0;
	border-radius: 50%;
	color: #071a33;
	background: #1687ff;
	box-shadow: 0 14px 26px rgba(12, 91, 190, .32), 0 3px 8px rgba(7, 26, 51, .18);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	animation: none;
}

.livechatpro-lcp-left .livechatpro-lcp-launcher {
	margin-right: auto;
	margin-left: 0;
}

.livechatpro-lcp-launcher:hover {
	background: #0b76ea;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 18px 32px rgba(12, 91, 190, .38), 0 5px 12px rgba(7, 26, 51, .2);
}

.livechatpro-lcp-launcher svg {
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.livechatpro-lcp-pulse {
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(22, 135, 255, .45);
	opacity: .48;
	animation: livechatproLcpPulse 2.4s ease-out infinite;
}

.livechatpro-lcp-widget.is-open .livechatpro-lcp-pulse {
	display: none;
}

.livechatpro-lcp-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	background: #ef4444;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
}

.livechatpro-lcp-panel {
	position: absolute;
	right: 0;
	bottom: 84px;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	height: min(640px, calc(100vh - 118px));
	border: 1px solid rgba(255, 255, 255, .58);
	border-radius: 24px;
	overflow: hidden;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: blur(18px);
	box-shadow: 0 28px 80px rgba(16, 42, 86, .28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(22px) scale(.94);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .24s cubic-bezier(.18, .89, .32, 1.18);
}

.livechatpro-lcp-left .livechatpro-lcp-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

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

.livechatpro-lcp-header {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 36px;
	gap: 12px;
	align-items: center;
	padding: 18px;
	color: #fff;
	background:
		radial-gradient(circle at 82% 10%, rgba(25, 211, 197, .38), transparent 32%),
		linear-gradient(135deg, var(--livechatpro-lcp-primary), #146c94);
}

.livechatpro-lcp-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	background: linear-gradient(135deg, #fff, #dffbf6);
	color: var(--livechatpro-lcp-primary);
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.livechatpro-lcp-header strong,
.livechatpro-lcp-header span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.livechatpro-lcp-header strong {
	font-size: 17px;
}

.livechatpro-lcp-status {
	margin-top: 4px;
	color: rgba(255, 255, 255, .86);
	font-size: 12px;
}

.livechatpro-lcp-status i {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--livechatpro-lcp-accent);
	box-shadow: 0 0 0 0 rgba(25, 211, 197, .8);
	animation: livechatproLcpOnline 1.8s ease-out infinite;
}

.livechatpro-lcp-minimize {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.livechatpro-lcp-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 18px;
	background:
		linear-gradient(180deg, rgba(248, 251, 255, .9), rgba(255, 255, 255, .72)),
		#fff;
}

.livechatpro-lcp-intro {
	margin-bottom: 14px;
	padding: 14px;
	border: 1px solid var(--livechatpro-lcp-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, .75);
	box-shadow: 0 10px 30px rgba(16, 42, 86, .08);
	animation: livechatproLcpFade .35s ease both;
}

.livechatpro-lcp-intro p {
	margin: 0;
	color: var(--livechatpro-lcp-muted);
	font-size: 14px;
	line-height: 1.45;
}

.livechatpro-lcp-intro small {
	display: block;
	margin-top: 8px;
	color: var(--livechatpro-lcp-primary);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.livechatpro-lcp-start-form {
	display: grid;
	gap: 10px;
	animation: livechatproLcpSlide .28s ease both;
}

.livechatpro-lcp-start-form label span {
	display: block;
	margin-bottom: 5px;
	color: var(--livechatpro-lcp-muted);
	font-size: 12px;
	font-weight: 800;
}

.livechatpro-lcp-start-form input,
.livechatpro-lcp-message-form textarea {
	width: 100%;
	border: 1px solid var(--livechatpro-lcp-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, .92);
	color: var(--livechatpro-lcp-text);
	font: inherit;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.livechatpro-lcp-start-form input {
	min-height: 44px;
	padding: 0 13px;
}

.livechatpro-lcp-start-form input:focus,
.livechatpro-lcp-message-form textarea:focus {
	border-color: var(--livechatpro-lcp-accent);
	box-shadow: 0 0 0 4px rgba(25, 211, 197, .16);
}

.livechatpro-lcp-start-form button {
	min-height: 48px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--livechatpro-lcp-primary), #146c94);
	box-shadow: 0 14px 28px rgba(16, 42, 86, .22);
	cursor: pointer;
	font-weight: 850;
}

.livechatpro-lcp-start-form button:disabled,
.livechatpro-lcp-message-form button:disabled {
	opacity: .62;
	cursor: progress;
}

.livechatpro-lcp-hp {
	position: absolute;
	left: -9999px;
}

.livechatpro-lcp-error {
	display: none;
	padding: 10px 12px;
	border-radius: 12px;
	color: #991b1b;
	background: #fee2e2;
	font-size: 13px;
}

.livechatpro-lcp-error.is-visible {
	display: block;
}

.livechatpro-lcp-chat {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.livechatpro-lcp-messages {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding-right: 3px;
	scroll-behavior: smooth;
}

.livechatpro-lcp-message {
	max-width: 82%;
	margin: 0 0 11px;
	animation: livechatproLcpMessage .22s ease both;
}

.livechatpro-lcp-message div {
	padding: 11px 13px;
	border-radius: 17px;
	font-size: 14px;
	line-height: 1.42;
	word-wrap: break-word;
}

.livechatpro-lcp-message footer {
	margin-top: 4px;
	color: var(--livechatpro-lcp-muted);
	font-size: 11px;
}

.livechatpro-lcp-message.admin {
	margin-right: auto;
}

.livechatpro-lcp-message.admin div {
	border: 1px solid var(--livechatpro-lcp-line);
	background: #fff;
	box-shadow: 0 8px 18px rgba(16, 42, 86, .08);
}

.livechatpro-lcp-message.visitor {
	margin-left: auto;
	text-align: right;
}

.livechatpro-lcp-message.visitor div {
	color: #fff;
	background: linear-gradient(135deg, var(--livechatpro-lcp-primary), #146c94);
	box-shadow: 0 10px 24px rgba(16, 42, 86, .18);
}

.livechatpro-lcp-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	color: var(--livechatpro-lcp-muted);
	font-size: 12px;
}

.livechatpro-lcp-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--livechatpro-lcp-accent);
	animation: livechatproLcpDots 1s infinite ease-in-out;
}

.livechatpro-lcp-typing span:nth-child(2) { animation-delay: .12s; }
.livechatpro-lcp-typing span:nth-child(3) { animation-delay: .24s; }

.livechatpro-lcp-tools {
	display: grid;
	gap: 9px;
	margin-top: 10px;
}

.livechatpro-lcp-tools button {
	border: 1px solid var(--livechatpro-lcp-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	color: var(--livechatpro-lcp-primary);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.livechatpro-lcp-tools button:hover {
	border-color: var(--livechatpro-lcp-accent);
	transform: translateY(-1px);
}

.livechatpro-lcp-tools > button {
	justify-self: start;
	padding: 7px 11px;
}

.livechatpro-lcp-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	color: var(--livechatpro-lcp-muted);
	font-size: 12px;
}

.livechatpro-lcp-rating span {
	margin-right: 3px;
}

.livechatpro-lcp-rating button {
	width: 28px;
	height: 28px;
	padding: 0;
}

.livechatpro-lcp-rating button.is-selected {
	border-color: var(--livechatpro-lcp-accent);
	background: var(--livechatpro-lcp-accent);
	color: #062f3b;
}

.livechatpro-lcp-message-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48px;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid var(--livechatpro-lcp-line);
	background: rgba(255, 255, 255, .9);
}

.livechatpro-lcp-footer {
	padding: 8px 14px 10px;
	border-top: 1px solid var(--livechatpro-lcp-line);
	background: rgba(255, 255, 255, .86);
	text-align: center;
}

.livechatpro-lcp-footer a {
	color: var(--livechatpro-lcp-muted);
	font-size: 11px;
	font-weight: 750;
	text-decoration: none;
}

.livechatpro-lcp-footer a:hover {
	color: var(--livechatpro-lcp-primary);
}

.livechatpro-lcp-message-form textarea {
	min-height: 48px;
	max-height: 118px;
	padding: 13px 14px;
	resize: none;
}

.livechatpro-lcp-message-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--livechatpro-lcp-accent), #146c94);
	cursor: pointer;
	transition: transform .16s ease;
}

.livechatpro-lcp-message-form button:hover {
	transform: translateY(-1px);
}

.livechatpro-lcp-message-form svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.livechatpro-lcp-message-form.is-sending button {
	transform: scale(.94);
}

@keyframes livechatproLcpPulse {
	0% { transform: scale(.85); opacity: .55; }
	100% { transform: scale(1.35); opacity: 0; }
}

@keyframes livechatproLcpBounce {
	0%, 80%, 100% { transform: translateY(0); }
	88% { transform: translateY(-5px); }
	94% { transform: translateY(2px); }
}

@keyframes livechatproLcpOnline {
	0% { box-shadow: 0 0 0 0 rgba(25, 211, 197, .8); }
	100% { box-shadow: 0 0 0 8px rgba(25, 211, 197, 0); }
}

@keyframes livechatproLcpFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes livechatproLcpSlide {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes livechatproLcpMessage {
	from { opacity: 0; transform: translateY(9px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes livechatproLcpDots {
	0%, 80%, 100% { transform: translateY(0); opacity: .4; }
	40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 520px) {
	.livechatpro-lcp-widget,
	.livechatpro-lcp-widget.livechatpro-lcp-left {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.livechatpro-lcp-launcher {
		width: 62px;
		height: 62px;
		margin-left: auto;
	}

	.livechatpro-lcp-panel,
	.livechatpro-lcp-left .livechatpro-lcp-panel {
		left: 0;
		right: 0;
		bottom: 78px;
		width: 100%;
		height: min(620px, calc(100vh - 96px));
		border-radius: 22px;
	}

	.livechatpro-lcp-header {
		grid-template-columns: 44px minmax(0, 1fr) 34px;
		padding: 15px;
	}

	.livechatpro-lcp-body {
		padding: 14px;
	}
}
