.roboroom-robot-widget {
	--robot-width: 100px;
	position: fixed;
	left: 32px;
	bottom: 120px;
	z-index: 9998;
	width: var(--robot-width);
	display: flex;
	justify-content: center;
	align-items: flex-end;
	transform: translateZ(0);
	opacity: 1;
	margin-left: 0;
	transition: transform 0.6s ease, opacity 0.6s ease, left 0.45s ease, margin-left 0.45s ease;
}

.roboroom-robot-widget--initial {
	opacity: 0;
	transform: translateY(-60px);
}

.roboroom-robot-widget.is-entering {
	animation: roboroom-robot-drop 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.roboroom-robot-widget.is-ready {
	opacity: 1;
	transform: translateY(0);
}

.roboroom-robot-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
	animation: roboroom-robot-float 7.2s ease-in-out infinite;
}

.roboroom-robot-image-wrapper {
	width: 100%;
	max-width: var(--robot-width);
	background: none;
	border-radius: 18px;
	box-shadow: none;
	padding: 0;
	position: relative;
	overflow: visible;
}

.roboroom-robot-image-wrapper::after {
	content: '';
	position: absolute;
	top: 32%;
	right: 6%;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(45% 45% at 50% 50%, rgba(255, 255, 255, 0.85) 0%, rgba(155, 207, 255, 0.65) 45%, rgba(18, 28, 48, 0) 100%);
	box-shadow: 0 0 12px rgba(135, 190, 255, 0.45);
	opacity: 0;
	transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg);
	pointer-events: none;
}

.roboroom-robot-image {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
	transition: transform 0.4s ease, filter 0.4s ease;
}

.roboroom-robot-widget.is-wiggling .roboroom-robot-image {
	animation: roboroom-robot-wiggle 1.2s ease-in-out;
}

.roboroom-robot-widget.is-peeking .roboroom-robot-image {
	animation: roboroom-robot-peek 1.1s ease-in-out;
}

.roboroom-robot-widget.is-bouncing .roboroom-robot-image {
	animation: roboroom-robot-bounce 1.05s ease-in-out;
}

.roboroom-robot-widget.is-glowing .roboroom-robot-image {
	animation: roboroom-robot-glow 1.6s ease-in-out;
}

.roboroom-robot-widget.is-wave .roboroom-robot-image {
	animation: roboroom-robot-wave 1.3s ease-in-out;
}

.roboroom-robot-widget.is-sparkling .roboroom-robot-image-wrapper::after {
	opacity: 1;
	animation: roboroom-robot-sparkle 1.4s ease-out;
}

.roboroom-robot-widget::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 26px;
	background: radial-gradient(50% 50% at 50% 50%, rgba(16, 22, 34, 0.32) 0%, rgba(16, 22, 34, 0) 72%);
	opacity: 0.22;
	filter: blur(0.4px);
	transition: opacity 0.3s ease;
	animation: roboroom-robot-shadow 7.2s ease-in-out infinite;
	pointer-events: none;
}

.roboroom-robot-widget.is-wiggling::after,
.roboroom-robot-widget.is-bouncing::after {
	opacity: 0.34;
}

.roboroom-robot-panel {
	--roboroom-panel-base-bottom: 10px;
	--roboroom-panel-offset: 0px;
	position: absolute;
	left: calc(100% + 18px);
	bottom: calc(var(--roboroom-panel-base-bottom) + var(--roboroom-panel-offset));
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 220px;
	padding: 18px;
	background: rgba(18, 28, 48, 0.94);
	color: #f2f4f8;
	border-radius: 16px;
	box-shadow: 0 14px 32px rgba(15, 26, 46, 0.28);
	transform: translateX(-12px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.roboroom-robot-widget[data-has-panel="1"].is-panel-open .roboroom-robot-panel,
.roboroom-robot-widget[data-has-panel="1"]:hover .roboroom-robot-panel,
.roboroom-robot-widget[data-has-panel="1"]:focus-within .roboroom-robot-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

.roboroom-robot-panel::before {
	content: '';
	position: absolute;
	right: 100%;
	bottom: 26px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 12px 10px 0;
	border-color: transparent rgba(18, 28, 48, 0.94) transparent transparent;
}

.roboroom-robot-panel-title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #9fb6ff;
}

.roboroom-robot-phone-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
}

.roboroom-robot-phone-link::before {
	content: '☎';
	font-size: 14px;
}

.roboroom-robot-phone-link:hover,
.roboroom-robot-phone-link:focus {
	color: #9fb6ff;
}

.roboroom-robot-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.roboroom-robot-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #101622;
	background: #f2f4f8;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.roboroom-robot-social-link:hover,
.roboroom-robot-social-link:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(5, 10, 25, 0.25);
}

.roboroom-robot-social-link--facebook {
	background: #1877f2;
	color: #fff;
}

.roboroom-robot-social-link--instagram {
	background: linear-gradient(135deg, #feda75, #fa7e1e 40%, #d62976 70%, #962fbf, #4f5bd5);
	color: #fff;
}

.roboroom-robot-social-link--youtube {
	background: #ff0000;
	color: #fff;
}

.roboroom-robot-inner:hover .roboroom-robot-image,
.roboroom-robot-inner:focus-within .roboroom-robot-image {
	transform: translateY(-6px) scale(1.02);
	filter: drop-shadow(0 16px 26px rgba(15, 26, 46, 0.35));
}

@keyframes roboroom-robot-wiggle {
	0%,
	100% {
		transform: translateY(0) rotate(0);
	}
	15% {
		transform: translateY(-6px) rotate(-1.5deg);
	}
	30% {
		transform: translateY(3px) rotate(1.2deg);
	}
	45% {
		transform: translateY(-4px) rotate(-0.8deg);
	}
	60% {
		transform: translateY(2px) rotate(0.5deg);
	}
	75% {
		transform: translateY(-2px) rotate(-0.3deg);
	}
}

@keyframes roboroom-robot-peek {
	0%,
	100% {
		transform: translateY(0) rotate(0);
	}
	20% {
		transform: translateY(-4px) rotate(3deg);
	}
	45% {
		transform: translateY(2px) rotate(-2deg);
	}
	70% {
		transform: translateY(-1px) rotate(1.2deg);
	}
}

@keyframes roboroom-robot-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	30% {
		transform: translateY(-12px);
	}
	55% {
		transform: translateY(4px);
	}
	75% {
		transform: translateY(-3px);
	}
}

@keyframes roboroom-robot-wave {
	0%,
	100% {
		transform: translateY(0) rotate(0);
	}
	20% {
		transform: translateY(-3px) rotate(4deg);
	}
	45% {
		transform: translateY(1px) rotate(-3deg);
	}
	65% {
		transform: translateY(-2px) rotate(2deg);
	}
	82% {
		transform: translateY(0) rotate(-1deg);
	}
}

@keyframes roboroom-robot-glow {
	0%,
	100% {
		filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
		transform: translateY(0) scale(1);
	}
	35% {
		filter: drop-shadow(0 18px 28px rgba(88, 160, 255, 0.25));
		transform: translateY(-4px) scale(1.02);
	}
	65% {
		filter: drop-shadow(0 10px 20px rgba(140, 195, 255, 0.35));
		transform: translateY(2px) scale(0.995);
	}
}

@keyframes roboroom-robot-sparkle {
	0% {
		opacity: 0;
		transform: translate3d(4px, 0, 0) scale(0.25) rotate(-12deg);
	}
	18% {
		opacity: 0.85;
		transform: translate3d(0, -6px, 0) scale(0.8) rotate(6deg);
	}
	46% {
		opacity: 1;
		transform: translate3d(-4px, -12px, 0) scale(1.05) rotate(-4deg);
	}
	72% {
		opacity: 0.6;
		transform: translate3d(0, -18px, 0) scale(0.75) rotate(8deg);
	}
	100% {
		opacity: 0;
		transform: translate3d(-2px, -22px, 0) scale(0.5) rotate(16deg);
	}
}

@keyframes roboroom-robot-shadow {
	0%,
	100% {
		transform: translateX(-50%) scaleX(1);
		opacity: 0.22;
	}
	45% {
		transform: translateX(-50%) scaleX(0.88);
		opacity: 0.3;
	}
}

@keyframes roboroom-robot-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

@keyframes roboroom-robot-drop {
	0% {
		opacity: 0;
		transform: translateY(-120vh) scale(0.92);
	}
	60% {
		opacity: 1;
		transform: translateY(12px);
	}
	78% {
		transform: translateY(-8px);
	}
	92% {
		transform: translateY(4px);
	}
	100% {
		transform: translateY(0);
	}
}

@media (max-width: 782px) {
	.roboroom-robot-widget {
		left: 18px;
		bottom: 64px;
		--robot-width: 88px;
		width: var(--robot-width);
		margin-left: 0;
	}

	.roboroom-robot-panel {
		--roboroom-panel-base-bottom: calc(122px + env(safe-area-inset-bottom, 0px));
		position: fixed;
		left: 50%;
		right: auto;
		top: auto;
		transform: translate(-50%, 0);
		width: min(92vw, 360px);
		max-width: 92vw;
		padding: 16px 20px 18px;
		text-align: center;
		z-index: 10000;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
	}

	.roboroom-robot-widget[data-has-panel="1"].is-panel-open .roboroom-robot-panel,
	.roboroom-robot-widget[data-has-panel="1"]:hover .roboroom-robot-panel,
	.roboroom-robot-widget[data-has-panel="1"]:focus-within .roboroom-robot-panel {
		transform: translate(-50%, 0);
	}

	.roboroom-robot-widget.is-panel-open {
		left: 50%;
		margin-left: calc(-0.5 * var(--robot-width));
	}

	.roboroom-robot-panel::before {
		display: none;
	}

	.roboroom-robot-panel-title {
		font-size: 13px;
	}

	.roboroom-robot-phone-link {
		font-size: 16px;
		justify-content: center;
	}

	.roboroom-robot-social-links {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
		gap: 12px;
		justify-content: center;
	}

	.roboroom-robot-social-link {
		flex: none;
		width: 100%;
		min-width: 0;
		padding: 10px 14px;
		font-size: 15px;
		justify-content: center;
	}
}


@media (max-width: 480px) {
	.roboroom-robot-widget {
		left: 14px;
		bottom: 52px;
		--robot-width: 74px;
		width: var(--robot-width);
	}

	.roboroom-robot-panel {
		--roboroom-panel-base-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
		width: min(94vw, 300px);
		padding: 15px 16px 17px;
		gap: 10px;
	}

	.roboroom-robot-social-links {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.roboroom-robot-social-link {
		padding: 10px 14px;
		font-size: 15px;
	}

	.roboroom-robot-widget.is-panel-open {
		margin-left: calc(-0.5 * var(--robot-width));
	}
}

@media (prefers-reduced-motion: reduce) {
	.roboroom-robot-widget,
	.roboroom-robot-widget--initial,
	.roboroom-robot-inner,
	.roboroom-robot-image,
	.roboroom-robot-panel,
	.roboroom-robot-widget::after {
		animation: none !important;
		transition: none !important;
	}
}


