/* Floating launcher — structural layout only. All colours/sizes are inline. */

#crm-launcher-wrap {
	position:    fixed;
	bottom:      24px;
	right:       24px;
	z-index:     999999;
	display:     flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none;
}

#crm-launcher-wrap > * {
	pointer-events: all;
}

/* Ensure panel stays above everything in the page. */
#crm-launcher-wrap > div:first-child {
	min-height: 60px;
}

/* Panel sizing — kept here (not inline in Launcher.jsx) specifically so the
   mobile override below can change it; everything else about the panel
   (colours/shadows/flex layout) stays inline per this file's own convention. */
#crm-launcher-wrap .stcrm-launcher-panel {
	width:         380px;
	max-height:    540px;
	margin-bottom: 16px;
	border-radius: 16px;
}

@media (max-width: 600px) {
	/* The panel header's own ✕ already closes the panel, so the round
	   trigger bubble is hidden while open rather than floating on top of
	   full-screen content (e.g. over the thread reply box). .is-open is set
	   on Launcher's own root div, nested inside #crm-launcher-wrap > #crm-launcher.
	   !important is required here — the button's display:flex is inline
	   (Launcher.jsx, needed for icon centering at every other breakpoint),
	   which no external stylesheet rule can otherwise beat. */
	#crm-launcher-wrap .is-open > button {
		display: none !important;
	}

	#crm-launcher-wrap .stcrm-launcher-panel {
		position:      fixed;
		inset:         0;
		width:         auto;
		max-height:    none;
		height:        100%;
		margin-bottom: 0;
		border-radius: 0;
	}
}
