/* InstantChat per WordPress - pulsante e barra laterale */
.ic-wp { --ic-accent: #4F46E5; --ic-warm: #FF7A45; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ic-wp-tab {
	position: fixed; top: 50%; z-index: 99998; transform: translateY(-50%);
	width: 52px; padding: 14px 0; border: none; background: var(--ic-accent); color: #FFFFFF; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	box-shadow: 0 6px 24px rgba(20, 22, 43, 0.22); font: inherit;
}
.ic-side-right .ic-wp-tab { right: 0; border-radius: 16px 0 0 16px; }
.ic-side-left .ic-wp-tab { left: 0; border-radius: 0 16px 16px 0; }
.ic-wp-tab:focus-visible, .ic-wp-bar button:focus-visible, .ic-wp-bar a:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 2px; }
.ic-wp-tab svg { width: 24px; height: 24px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-wp-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
.ic-wp-badge {
	min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: #FFFFFF; color: #3730A3;
	font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ic-wp-badge.mention { background: var(--ic-warm); color: #14162B; }
.ic-wp-badge[hidden] { display: none; }
.ic-wp-panel {
	position: fixed; top: 0; bottom: 0; z-index: 99999; width: 400px; max-width: 100vw;
	background: #F4F5FA; box-shadow: 0 0 40px rgba(20, 22, 43, 0.22); display: flex; flex-direction: column;
	transition: transform 0.22s ease;
}
.ic-side-right .ic-wp-panel { right: 0; border-left: 1px solid #E3E5EF; }
.ic-side-left .ic-wp-panel { left: 0; border-right: 1px solid #E3E5EF; }
.ic-wp-panel[hidden] { display: none; }
.ic-wp-bar { height: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; background: #1E1B4B; color: #FFFFFF; font-size: 14px; font-weight: 700; }
.ic-wp-bar span { flex: 1; }
.ic-wp-bar button, .ic-wp-bar a { width: 40px; height: 40px; border: none; border-radius: 10px; background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ic-wp-bar button:hover, .ic-wp-bar a:hover { background: rgba(255, 255, 255, 0.12); }
.ic-wp-bar svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-wp-panel iframe { flex: 1; width: 100%; border: 0; background: #F4F5FA; }
.ic-wp.is-open .ic-wp-tab { display: none; }
@media (max-width: 600px) {
	.ic-wp-panel { width: 100vw; }
	.ic-wp-tab { width: 46px; }
	.ic-no-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ic-wp-panel { transition: none; } }
.ic-wp-inline iframe { display: block; width: 100%; border: 1px solid #E3E5EF; border-radius: 16px; background: #F4F5FA; }
