/**
 * Odio Soft Launcher — floating channel hub + live chat
 *
 * @package OdioSoftLauncher
 */

.odio-launcher {
	--odio-ln-navy: #0b1424;
	--odio-ln-blue: #1b6fd4;
	--odio-ln-blue-deep: #1558b0;
	--odio-ln-ink: #1a2740;
	--odio-ln-muted: rgba(26, 39, 64, 0.62);
	--odio-ln-panel: #ffffff;
	--odio-ln-line: rgba(15, 23, 42, 0.08);
	--odio-ln-shadow: 0 22px 50px rgba(11, 20, 36, 0.24);
	--odio-ln-fab: 3.6rem;
	--odio-ln-gap: 0.85rem;
	--odio-ln-z: 100050;
	--odio-ln-panel-w: min(22.5rem, calc(100vw - 1.75rem));
	--odio-ln-inset-r: max(var(--odio-ln-gap), env(safe-area-inset-right, 0px));
	--odio-ln-inset-b: max(var(--odio-ln-gap), env(safe-area-inset-bottom, 0px));
	position: fixed;
	right: var(--odio-ln-inset-r);
	bottom: var(--odio-ln-inset-b);
	z-index: var(--odio-ln-z);
	font-family: inherit;
	color: var(--odio-ln-ink);
	isolation: isolate;
	pointer-events: none;
	/* Shrink-wrap to FAB only — panel is absolute and must NOT use % of this width. */
	width: auto;
	max-width: none;
	transform: none;
	margin: 0;
	inset-inline-start: auto;
	overflow: visible;
}

.odio-launcher > * {
	pointer-events: auto;
}

.odio-launcher[hidden] {
	display: none !important;
}

/* Sticky CTA only exists <768px — never lift FAB on tablet/desktop */
@media (max-width: 767.98px) {
	body.has-sticky-cta .odio-launcher {
		bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px) + 0.55rem);
	}

	body.has-sticky-cta.odio-launcher-open .odio-launcher {
		bottom: var(--odio-ln-inset-b);
	}

	body.odio-launcher-open .odio-sticky-cta {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(110%);
		transition:
			opacity 180ms ease,
			transform 220ms ease,
			visibility 0s linear 180ms;
	}
}

/* ── Backdrop (mobile sheet) ── */
.odio-launcher__backdrop {
	display: none;
}

/* ── FAB ── */
.odio-launcher__fab {
	position: relative;
	width: var(--odio-ln-fab);
	height: var(--odio-ln-fab);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(145deg, #3b8af0 0%, var(--odio-ln-blue-deep) 100%);
	box-shadow:
		0 12px 30px rgba(21, 88, 176, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.14) inset;
	transition: transform 180ms ease, box-shadow 180ms ease, opacity 160ms ease;
	-webkit-tap-highlight-color: transparent;
	z-index: 2;
}

.odio-launcher__badge {
	position: absolute;
	top: -0.15rem;
	right: -0.1rem;
	z-index: 3;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: #e11d48;
	border: 2px solid #fff;
	box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
	pointer-events: none;
}

.odio-launcher__badge[hidden] {
	display: none !important;
}

.odio-launcher__toast {
	position: absolute;
	right: 0;
	bottom: calc(var(--odio-ln-fab) + 0.85rem);
	z-index: 3;
	max-width: min(16rem, calc(100vw - 2rem));
	padding: 0.7rem 0.9rem;
	border-radius: 0.9rem;
	background: #0b1424;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 14px 30px rgba(11, 20, 36, 0.28);
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
	pointer-events: auto;
}

.odio-launcher__toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.odio-launcher__toast[hidden] {
	display: none !important;
}

.odio-launcher__fab::before {
	content: "";
	position: absolute;
	inset: -0.35rem;
	border-radius: inherit;
	border: 2px solid rgba(43, 125, 233, 0.35);
	animation: odioLnPulse 2.4s ease-out infinite;
	pointer-events: none;
}

.odio-launcher.is-open .odio-launcher__fab::before {
	animation: none;
	opacity: 0;
}

@keyframes odioLnPulse {
	0% {
		transform: scale(0.92);
		opacity: 0.7;
	}
	70% {
		transform: scale(1.18);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.odio-launcher__fab:hover,
.odio-launcher__fab:focus-visible {
	transform: translateY(-2px) scale(1.04);
	outline: none;
	box-shadow:
		0 16px 36px rgba(21, 88, 176, 0.46),
		0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.odio-launcher__fab:active {
	transform: scale(0.97);
}

.odio-launcher__fab svg {
	width: 1.45rem;
	height: 1.45rem;
	display: block;
}

.odio-launcher.is-open .odio-launcher__fab-icon--open {
	display: none;
}

.odio-launcher:not(.is-open) .odio-launcher__fab-icon--close {
	display: none;
}

/* ── Panel ── */
.odio-launcher__panel {
	position: absolute;
	right: 0;
	bottom: calc(var(--odio-ln-fab) + 0.7rem);
	/* Use vw — parent .odio-launcher is only FAB-wide (absolute children don't expand it). */
	width: var(--odio-ln-panel-w);
	min-width: min(18rem, calc(100vw - 1.75rem));
	max-width: var(--odio-ln-panel-w);
	max-height: min(36rem, calc(100dvh - 7rem));
	display: flex;
	flex-direction: column;
	border-radius: 1.3rem;
	background: var(--odio-ln-panel);
	box-shadow: var(--odio-ln-shadow);
	border: 1px solid rgba(27, 111, 212, 0.14);
	overflow: hidden;
	overflow-x: hidden;
	transform-origin: bottom right;
	animation: odioLnPop 200ms ease;
	z-index: 1;
	box-sizing: border-box;
}

@keyframes odioLnPop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.odio-launcher__panel[hidden] {
	display: none !important;
}

.odio-launcher__sheet-handle {
	display: none;
}

.odio-launcher__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: 0.9rem 0.95rem 0.9rem 1rem;
	background:
		radial-gradient(130% 120% at 0% 0%, rgba(27, 111, 212, 0.22), transparent 52%),
		linear-gradient(135deg, #0f2744 0%, #1558b0 58%, #1b6fd4 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.odio-launcher__brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.odio-launcher__logo {
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 0.85rem;
	object-fit: cover;
	background: #fff;
	box-shadow:
		0 8px 18px rgba(7, 24, 48, 0.28),
		0 0 0 2px rgba(255, 255, 255, 0.22);
	flex-shrink: 0;
}

.odio-launcher__logo-fallback {
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 0.85rem;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #1558b0;
	background: linear-gradient(160deg, #fff 0%, #e8f1fc 100%);
	box-shadow:
		0 8px 18px rgba(7, 24, 48, 0.28),
		0 0 0 2px rgba(255, 255, 255, 0.22);
}

.odio-launcher__head-copy {
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.odio-launcher__brand-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem 0.55rem;
	margin: 0 0 0.18rem;
}

.odio-launcher__brand-name {
	display: block;
	font-size: 0.98rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.odio-launcher__status {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	padding: 0.14rem 0.48rem 0.14rem 0.36rem;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.18);
	border: 1px solid rgba(110, 231, 183, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.odio-launcher__status[hidden] {
	display: none !important;
}

.odio-launcher__status-dot {
	width: 0.48rem;
	height: 0.48rem;
	border-radius: 999px;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
	animation: odioLnOnline 1.8s ease-in-out infinite;
}

@keyframes odioLnOnline {
	0%,
	100% {
		box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
	}
	50% {
		box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08);
	}
}

.odio-launcher__status-text {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #d1fae5;
	line-height: 1;
}

.odio-launcher__head-title {
	display: block;
	font-size: 0.78rem;
	line-height: 1.35;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.odio-launcher__close {
	flex-shrink: 0;
	width: 2.1rem;
	height: 2.1rem;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
	padding: 0;
	transition: background 140ms ease, color 140ms ease;
}

.odio-launcher__close:hover,
.odio-launcher__close:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
	outline: none;
}

/* ── Channels ── */
.odio-launcher__channels {
	display: grid;
	gap: 0.5rem;
	padding: 0.9rem;
	overflow: auto;
	overscroll-behavior: contain;
}

.odio-launcher__channel {
	display: grid;
	grid-template-columns: 2.65rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 3.45rem;
	padding: 0.75rem 0.85rem;
	border-radius: 1rem;
	border: 1px solid var(--odio-ln-line);
	background: linear-gradient(180deg, #fff 0%, #fafcfe 100%);
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
	transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
	-webkit-tap-highlight-color: transparent;
}

.odio-launcher__channel:hover,
.odio-launcher__channel:focus-visible {
	background: #f3f8ff;
	border-color: rgba(27, 111, 212, 0.32);
	box-shadow: 0 10px 22px -14px rgba(21, 88, 176, 0.5);
	outline: none;
	transform: translateY(-1px);
}

.odio-launcher__channel:active {
	transform: none;
}

.odio-launcher__channel-ico {
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 0.85rem;
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: 0 8px 16px -8px rgba(11, 20, 36, 0.5);
}

.odio-launcher__channel-ico svg {
	width: 1.2rem;
	height: 1.2rem;
	display: block;
}

.odio-launcher__channel-ico--ig {
	background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 78%, #515bd4);
}
.odio-launcher__channel-ico--wa {
	background: linear-gradient(145deg, #34e07a, #128c7e);
}
.odio-launcher__channel-ico--chat {
	background: linear-gradient(145deg, #3b88e8, var(--odio-ln-blue-deep));
}
.odio-launcher__channel-ico--mail {
	background: linear-gradient(145deg, #73849c, #465570);
}
.odio-launcher__channel-ico--loc {
	background: linear-gradient(145deg, #ff7a45, #d9480f);
}

.odio-launcher__channel-copy {
	min-width: 0;
}

.odio-launcher__channel strong {
	display: block;
	font-size: 0.93rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: var(--odio-ln-navy);
	overflow-wrap: anywhere;
}

.odio-launcher__channel em {
	display: block;
	font-style: normal;
	font-size: 0.76rem;
	line-height: 1.35;
	color: var(--odio-ln-muted);
	margin-top: 0.12rem;
	overflow-wrap: anywhere;
}

.odio-launcher__channel-chevron {
	width: 1rem;
	height: 1rem;
	color: rgba(26, 39, 64, 0.32);
	flex-shrink: 0;
}

/* ── Chat / form ── */
.odio-launcher__chat {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: 0;
	flex: 1;
	height: min(28rem, calc(100dvh - 8.5rem));
}

.odio-launcher__chat[hidden],
.odio-launcher__form[hidden],
.odio-launcher__channels[hidden] {
	display: none !important;
}

.odio-launcher__form,
.odio-launcher__thread-wrap {
	padding: 0.95rem 1rem 1.05rem;
	overflow: auto;
	overflow-x: hidden;
	min-height: 0;
	min-width: 0;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.odio-launcher__chat,
.odio-launcher__channels,
.odio-launcher__form {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.odio-launcher__field {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.odio-launcher__field label {
	font-size: 0.76rem;
	font-weight: 700;
	color: rgba(21, 88, 176, 0.9);
}

.odio-launcher__field input,
.odio-launcher__field select,
.odio-launcher__composer textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid rgba(27, 111, 212, 0.18);
	border-radius: 0.8rem;
	padding: 0.72rem 0.85rem;
	font: inherit;
	font-size: 0.92rem;
	color: var(--odio-ln-ink);
	background: #fff;
	box-sizing: border-box;
	resize: none;
	min-width: 0;
}

.odio-launcher__field input:focus,
.odio-launcher__field select:focus,
.odio-launcher__composer textarea:focus {
	outline: none;
	border-color: rgba(27, 111, 212, 0.55);
	box-shadow: 0 0 0 3px rgba(27, 111, 212, 0.12);
}

.odio-launcher__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.9rem;
	border: 0;
	border-radius: 0.85rem;
	padding: 0.75rem 0.95rem;
	font: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(145deg, #2b7de9 0%, var(--odio-ln-blue-deep) 100%);
	box-shadow: 0 10px 22px rgba(21, 88, 176, 0.28);
}

.odio-launcher__btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

.odio-launcher__hint {
	margin: 0 0 0.9rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--odio-ln-muted);
	text-wrap: pretty;
}

.odio-launcher__error {
	margin: 0 0 0.7rem;
	font-size: 0.8rem;
	color: #b42318;
}

.odio-launcher__thread {
	display: grid;
	gap: 0.7rem;
	align-content: start;
}

.odio-launcher__bubble {
	max-width: min(86%, 18rem);
	width: fit-content;
	padding: 0.62rem 0.88rem 0.72rem;
	border-radius: 1.05rem;
	font-size: 0.88rem;
	line-height: 1.45;
	background: #eef2f7;
	color: var(--odio-ln-ink);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	overflow-wrap: break-word;
	word-break: normal;
	box-sizing: border-box;
}

.odio-launcher__bubble--visitor {
	justify-self: end;
	background: linear-gradient(160deg, #e8f1fc 0%, #d7e8fb 100%);
	border-bottom-right-radius: 0.28rem;
}

.odio-launcher__bubble--operator,
.odio-launcher__bubble--system {
	justify-self: start;
	border-bottom-left-radius: 0.28rem;
}

.odio-launcher__bubble--system {
	justify-self: center;
	max-width: 92%;
	background: rgba(15, 23, 42, 0.06);
	color: #5b6b7c;
	font-size: 0.78rem;
	text-align: center;
	border-radius: 0.75rem;
}

.odio-launcher__end {
	display: block;
	width: calc(100% - 1.5rem);
	margin: 0 0.75rem 0.35rem;
	padding: 0.45rem 0.65rem;
	border: 0;
	border-radius: 0.65rem;
	background: transparent;
	color: #8a3b3b;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 650;
	cursor: pointer;
	text-align: center;
	transition: background 140ms ease, color 140ms ease;
}

.odio-launcher__end:hover,
.odio-launcher__end:focus-visible {
	background: rgba(180, 50, 50, 0.08);
	color: #9b1c1c;
	outline: none;
}

.odio-launcher__end[hidden],
.odio-launcher__ended[hidden] {
	display: none !important;
}

.odio-launcher__ended {
	display: grid;
	gap: 0.45rem;
	padding: 0.75rem 0.9rem 0.95rem;
	border-top: 1px solid var(--odio-ln-line);
	background: #f7f9fb;
	text-align: center;
}

.odio-launcher__ended-title {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 750;
	color: var(--odio-ln-ink);
}

.odio-launcher__ended-hint {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.4;
	color: #667788;
}

.odio-launcher__btn--ghost {
	background: #fff !important;
	color: var(--odio-ln-ink) !important;
	border: 1px solid var(--odio-ln-line) !important;
	box-shadow: none !important;
}

.odio-launcher__status.is-ended .odio-launcher__status-dot {
	background: #94a3b8;
	box-shadow: none;
}

.odio-launcher__status.is-ended .odio-launcher__status-text {
	opacity: 0.85;
}

.odio-launcher__bubble-name {
	display: block;
	margin: 0 0 0.28rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	opacity: 0.62;
	line-height: 1.2;
}

.odio-launcher__bubble-text {
	display: block;
}

/* ── Composer ── */
.odio-launcher__composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 2.75rem;
	align-items: end;
	gap: 0.5rem;
	padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--odio-ln-line);
	background: linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
}

.odio-launcher__composer textarea {
	min-height: 2.75rem;
	max-height: 6.5rem;
	padding: 0.7rem 0.8rem;
	line-height: 1.4;
}

.odio-launcher__composer button {
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(145deg, #2b7de9 0%, var(--odio-ln-blue-deep) 100%);
	box-shadow: 0 8px 18px rgba(21, 88, 176, 0.3);
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.odio-launcher__composer button:hover,
.odio-launcher__composer button:focus-visible {
	transform: translateY(-1px);
	outline: none;
	box-shadow: 0 12px 22px rgba(21, 88, 176, 0.36);
}

.odio-launcher__composer button svg {
	width: 1.1rem;
	height: 1.1rem;
	display: block;
}

/* ── Mobile / phablet: bottom sheet ── */
@media (max-width: 767.98px) {
	html.odio-launcher-open,
	body.odio-launcher-open {
		overflow: hidden !important;
		overflow-x: hidden !important;
		overscroll-behavior: none;
		touch-action: manipulation;
		width: 100%;
		max-width: 100%;
	}

	body.odio-launcher-open {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
	}

	.odio-launcher {
		right: max(0.7rem, env(safe-area-inset-right, 0px));
		left: auto;
		width: auto;
		max-width: none;
		overflow: visible;
	}

	.odio-launcher.is-open {
		inset: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
		pointer-events: none;
		touch-action: none;
	}

	.odio-launcher.is-open > * {
		pointer-events: auto;
	}

	.odio-launcher__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 0;
		border: 0;
		padding: 0;
		margin: 0;
		width: 100%;
		max-width: 100%;
		background: rgba(11, 20, 36, 0.42);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		animation: odioLnFade 180ms ease;
		cursor: pointer;
		touch-action: none;
	}

	.odio-launcher__backdrop[hidden] {
		display: none !important;
	}

	@keyframes odioLnFade {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}

	.odio-launcher.is-open .odio-launcher__fab {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: scale(0.85);
	}

	.odio-launcher__toast {
		position: fixed;
		right: max(0.7rem, env(safe-area-inset-right, 0px));
		bottom: calc(var(--odio-ln-fab) + 1.1rem + env(safe-area-inset-bottom, 0px));
		left: auto;
	}

	.odio-launcher__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: min(90dvh, 42rem);
		border-radius: 1.4rem 1.4rem 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		transform: none;
		transform-origin: bottom center;
		animation: odioLnSheet 220ms ease;
		z-index: 1;
		overflow: hidden;
		overflow-x: hidden;
		overscroll-behavior: contain;
		touch-action: pan-y;
		box-sizing: border-box;
	}

	@keyframes odioLnSheet {
		from {
			opacity: 0.55;
			transform: translateY(24px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.odio-launcher__sheet-handle {
		display: block;
		width: 2.5rem;
		height: 0.28rem;
		margin: 0.55rem auto 0.15rem;
		border-radius: 999px;
		background: rgba(15, 23, 42, 0.16);
		flex-shrink: 0;
	}

	.odio-launcher__head,
	.odio-launcher__channels,
	.odio-launcher__form,
	.odio-launcher__chat,
	.odio-launcher__composer,
	.odio-launcher__thread-wrap {
		max-width: 100%;
		width: 100%;
		min-width: 0;
		overflow-x: hidden;
		box-sizing: border-box;
	}

	.odio-launcher__thread-wrap {
		touch-action: pan-y;
		overscroll-behavior: contain;
	}

	.odio-launcher__bubble {
		max-width: min(86%, calc(100% - 0.5rem));
	}

	.odio-launcher__chat {
		height: auto;
		max-height: none;
		min-height: min(18rem, 48dvh);
	}

	.odio-launcher__channels {
		max-height: min(50dvh, 22rem);
	}

	.odio-launcher__fab {
		width: 3.35rem;
		height: 3.35rem;
	}
}

/* Short viewports / landscape phones */
@media (max-height: 520px) {
	.odio-launcher__panel {
		max-height: calc(100dvh - 1rem);
	}

	.odio-launcher__chat {
		min-height: 12rem;
		height: auto;
	}

	.odio-launcher__fab::before {
		display: none;
	}
}

@media (max-width: 380px) {
	.odio-launcher__brand-name {
		font-size: 0.9rem;
	}

	.odio-launcher__head-title {
		font-size: 0.74rem;
	}

	.odio-launcher__channel {
		min-height: 3.25rem;
		padding: 0.65rem 0.7rem;
		gap: 0.6rem;
	}

	.odio-launcher__channel strong {
		font-size: 0.88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.odio-launcher__panel,
	.odio-launcher__fab,
	.odio-launcher__fab::before,
	.odio-launcher__channel,
	.odio-launcher__composer button,
	.odio-launcher__backdrop,
	.odio-launcher__status-dot,
	body.odio-launcher-open .odio-sticky-cta {
		animation: none !important;
		transition: none !important;
	}
}
