pi-copilot-widget {
	position: fixed;
	z-index: 1000;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	width: min(430px, calc(100vw - 40px));
	contain: none;
	--pi-widget-dialog-height: 700px;
	--pi-widget-color-accent: #ffcd00;
	--pi-widget-color-on-accent: #002e6d;
	--pi-widget-radius: 8px;
	--pi-widget-color-background: #f3f5f7;
	--pi-widget-color-surface: #ffffff;
	--pi-widget-color-text: #17243a;
	--pi-widget-color-border: #aeb7c4;
}

pi-copilot-widget[data-ready]:not([data-expanded]) {
	width: 64px;
	filter: drop-shadow(0 0 1.5px rgba(0, 46, 109, .7)) drop-shadow(0 6px 14px rgba(0, 46, 109, .45));
}

@media (prefers-reduced-motion: no-preference) {
	pi-copilot-widget[data-ready]:not([data-expanded])[data-attention] {
		border-radius: 50%;
		transform-origin: center;
		animation: correos-widget-attention 1.8s cubic-bezier(.22, 1, .36, 1) both;
		will-change: transform, box-shadow;
	}
}

@keyframes correos-widget-attention {
	0%, 42%, 100% {
		transform: translateY(0) rotate(0) scale(1);
		box-shadow: 0 0 0 0 rgba(0, 46, 109, .5);
	}
	12% { transform: translateY(-3px) rotate(-4deg) scale(1.04); }
	24% {
		transform: translateY(0) rotate(3deg) scale(1);
		box-shadow: 0 0 0 12px rgba(0, 46, 109, 0);
	}
	25%, 67% { box-shadow: 0 0 0 0 rgba(0, 46, 109, 0); }
	52% {
		transform: translateY(-2px) rotate(-3deg) scale(1.03);
		box-shadow: 0 0 0 0 rgba(0, 46, 109, .4);
	}
	66% {
		transform: translateY(0) rotate(2deg) scale(1);
		box-shadow: 0 0 0 14px rgba(0, 46, 109, 0);
	}
	78% { transform: translateY(0) rotate(0) scale(1); }
}
