/* Tidio chat UI (ks-chat): the spinner bubble while Tidio loads, and the "we're online" dot on .open-chat. */
#tidio-fake-loader {
	position: fixed;
	right: 25px;
	bottom: 25px;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--ks-color-strawberry, #F85383);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
	cursor: wait;
	transition: opacity .3s ease;
}
#tidio-fake-loader.is-done {
	opacity: 0;
}
#tidio-fake-loader .tidio-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255, 255, 255, .3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ks-chat-spin 1s ease-in-out infinite;
}
@keyframes ks-chat-spin {
	to { transform: rotate(360deg); }
}

/* Live dot: shown during support hours, before the label. */
.open-chat.is-live {
	display: inline-flex;
	align-items: center;
	gap: .5em;
}
.open-chat.is-live::before {
	content: "";
	flex: none;
	width: .5em;
	height: .5em;
	border-radius: 50%;
	background: var(--ks-color-strawberry, #F85383);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--ks-color-strawberry, #F85383) 60%, transparent);
	animation: ks-chat-pulse 1.8s ease-out infinite;
}
@keyframes ks-chat-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ks-color-strawberry, #F85383) 60%, transparent); }
	70% { box-shadow: 0 0 0 .55em color-mix(in srgb, var(--ks-color-strawberry, #F85383) 0%, transparent); }
	100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ks-color-strawberry, #F85383) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
	.open-chat.is-live::before { animation: none; }
	#tidio-fake-loader .tidio-spinner { animation-duration: 2s; }
}
