/**
 * FormyChat Ultimate - Channel list styles (Card, Icon row, Chat window, Tile grid, Bubble menu,
 * Menu, Corner circle).
 *
 * FormyChat renders `.formychat-channel-host` inside the widget with `data-style`,
 * `data-position`, `--fc-launcher` and toggles `.is-open`.
 *
 * @package FormyChat Ultimate
 * @since 2.3.0
 */

/* Box: out of the widget's flow, anchored to the launcher. */
.formychat-channel-host {
	--fcu-gap: 14px;
	position: absolute;
	right: 0;
	bottom: calc(var(--fc-launcher, 60px) + var(--fcu-gap));
	z-index: 10;
	box-sizing: border-box;
	font-family: inherit;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px) scale(.97);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

.formychat-channel-host[data-position="left"] {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.formychat-channel-host.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

.formychat-channel-host *,
.formychat-channel-host *::before,
.formychat-channel-host *::after {
	box-sizing: border-box;
}

/* Shared parts. */
.formychat-channel-host button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	min-height: 0;
	min-width: 0;
	margin: 0;
	box-shadow: none;
	cursor: pointer;
}

.formychat-channel-host button:focus-visible {
	outline: 2px solid #4F46E5 !important;
	outline-offset: 2px;
}

.formychat-channel-host .fcu-icon {
	flex: none;
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
}

.formychat-channel-host .fcu-icon img {
	width: 55%;
	height: 55%;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Channel logo glyph, tinted through a CSS mask (color and mask set inline). */
.formychat-channel-host .fcu-glyph {
	display: block;
	width: 55%;
	height: 55%;
}

.formychat-channel-host .fcu-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	text-align: left;
}

.formychat-channel-host .fcu-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #111827;
}

.formychat-channel-host .fcu-sub {
	font-size: 13px;
	line-height: 1.35;
	color: #6B7280;
}

.formychat-channel-host .fcu-arrow {
	flex: none;
	width: 14px;
	height: 14px;
	color: #9CA3AF;
	transition: transform .15s ease, color .15s ease;
}

.formychat-channel-host .fcu-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.formychat-channel-host .fcu-title {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.formychat-channel-host .fcu-close {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 9999px;
	background: transparent !important;
	color: #6B7280;
}

.formychat-channel-host .fcu-close:hover {
	background: rgba(15, 23, 42, .06) !important;
}

.formychat-channel-host .fcu-close svg {
	width: 16px;
	height: 16px;
}

.formychat-channel-host .fcu-panel {
	width: 300px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, .2);
	overflow: hidden;
}

/* Card: a small panel listing the channels, above the launcher with the widget's 8px gap. */
.formychat-channel-host[data-style="card"] {
	--fcu-gap: 8px;
	transform: none;
	transform-origin: 50% 50%;
	transition: visibility 0s linear .2s;
	animation: fcu-card-out .2s ease both;
}

.formychat-channel-host[data-style="card"].is-open {
	transform: none;
	transition: visibility 0s;
	animation: fcu-card-in .2s ease both;
}

/* A pill launcher is 80% of the launcher size tall. */
.formychat-widget:has(.formychat-launcher-button--pill) .formychat-channel-host[data-style="card"] {
	bottom: calc(var(--fc-launcher, 60px) * .8 + var(--fcu-gap));
}

@keyframes fcu-card-in {
	0% {
		opacity: 0;
		transform: scale(.8) translate(5px, 20px);
	}

	60% {
		opacity: 1;
		transform: scale(1.1) translate(0);
	}

	100% {
		opacity: 1;
		transform: scale(1) translate(0);
	}
}

@keyframes fcu-card-out {
	0% {
		opacity: 1;
		transform: scale(1) translate(0);
	}

	40% {
		opacity: 1;
		transform: scale(1.1) translate(0);
	}

	100% {
		opacity: 0;
		transform: scale(.8) translate(5px, 20px);
	}
}

.formychat-channel-host .fcu-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 16px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.formychat-channel-host .fcu-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.formychat-channel-host .fcu-card-title {
	padding: 0 4px 4px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.formychat-channel-host .fcu-card-close {
	margin: -4px -4px 0 0;
}

.formychat-channel-host .fcu-card-close:hover {
	background: #F3F4F6 !important;
}

.formychat-channel-host .fcu-card-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px !important;
	border: 1px solid #F1F5F9 !important;
	border-radius: 12px;
	background: #fff !important;
	text-align: left;
	transition: background .15s ease, border-color .15s ease;
}

.formychat-channel-host .fcu-card-row:hover,
.formychat-channel-host .fcu-card-row:focus-visible {
	background: #F8FAFC !important;
	border-color: #E2E8F0 !important;
	outline: none !important;
}

.formychat-channel-host .fcu-card-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.formychat-channel-host .fcu-card-label {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.formychat-channel-host .fcu-card-sub {
	font-size: 13px;
	color: #6B7280;
}

/* Icon row: icons beside the launcher. */
.formychat-channel-host[data-style="row"] {
	bottom: 0;
	right: calc(var(--fc-launcher, 60px) + 12px);
	height: var(--fc-launcher, 60px);
	transform: translateX(10px);
	transform-origin: center right;
}

.formychat-channel-host[data-style="row"][data-position="left"] {
	right: auto;
	left: calc(var(--fc-launcher, 60px) + 12px);
	transform: translateX(-10px);
	transform-origin: center left;
}

.formychat-channel-host[data-style="row"].is-open {
	transform: none;
}

.formychat-channel-host .fcu-row {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
	height: 100%;
}

.formychat-channel-host[data-position="left"] .fcu-row {
	flex-direction: row;
}

.formychat-channel-host .fcu-row-item {
	position: relative;
	display: grid;
	place-items: center;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	opacity: 0;
	transform: scale(.6);
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
	transition-delay: calc(var(--fcu-i, 0) * 50ms);
}

.formychat-channel-host.is-open .fcu-row-item {
	opacity: 1;
	transform: none;
}

.formychat-channel-host .fcu-row-icon {
	width: calc(var(--fc-launcher, 60px) * .8);
	height: calc(var(--fc-launcher, 60px) * .8);
	box-shadow: 0 6px 18px rgba(15, 23, 42, .2);
	transition: transform .2s ease;
}

.formychat-channel-host .fcu-row-item:hover .fcu-row-icon,
.formychat-channel-host .fcu-row-item:focus-visible .fcu-row-icon {
	transform: scale(1.08);
}

.formychat-channel-host .fcu-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 5px 10px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity .15s ease, transform .15s ease;
}

.formychat-channel-host .fcu-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #111827;
}

.formychat-channel-host .fcu-row-item:hover .fcu-tip,
.formychat-channel-host .fcu-row-item:focus-visible .fcu-tip {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* The call to action beside the launcher makes room for the row. */
.formychat-widget:has(.formychat-channel-host[data-style="row"].is-open) .formychat-widget-handler-cta {
	opacity: 0;
	pointer-events: none;
}

/* Chat window. */
.formychat-channel-host .fcu-chat {
	width: 320px;
}

.formychat-channel-host .fcu-chat-head {
	padding: 16px 12px 16px 16px;
}

.formychat-channel-host .fcu-chat-head .fcu-title,
.formychat-channel-host .fcu-chat-head .fcu-close {
	color: #fff;
}

.formychat-channel-host .fcu-chat-head .fcu-close:hover {
	background: rgba(255, 255, 255, .18) !important;
}

.formychat-channel-host .fcu-chat-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.formychat-channel-host .fcu-chat-avatar svg {
	width: 20px;
	height: 20px;
}

.formychat-channel-host .fcu-chat-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: #F8FAFC;
}

.formychat-channel-host .fcu-chat-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px !important;
	border: 1px solid #EEF2F7 !important;
	border-radius: 12px;
	background: #fff !important;
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.formychat-channel-host .fcu-chat-row:hover,
.formychat-channel-host .fcu-chat-row:focus-visible {
	border-color: #E2E8F0 !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.formychat-channel-host .fcu-chat-row:hover .fcu-arrow {
	color: #475569;
	transform: translateX(2px);
}

.formychat-channel-host .fcu-online {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 11px;
	height: 11px;
	border-radius: 9999px;
	background: #22C55E;
	box-shadow: 0 0 0 2px #fff;
}

/* Tile grid. */
.formychat-channel-host .fcu-grid {
	padding: 14px;
}

.formychat-channel-host .fcu-grid .fcu-head {
	margin-bottom: 12px;
	padding-left: 2px;
}

.formychat-channel-host .fcu-grid-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.formychat-channel-host .fcu-grid-tiles.is-odd > :last-child {
	grid-column: 1 / -1;
}

.formychat-channel-host .fcu-grid-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 96px;
	padding: 14px 8px !important;
	border: 1px solid transparent !important;
	border-radius: 14px;
	background: #F8FAFC !important;
	text-align: center;
	overflow: hidden;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.formychat-channel-host .fcu-grid-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--fcu-color, #25D366);
	opacity: .08;
	transition: opacity .15s ease;
}

.formychat-channel-host .fcu-grid-tile:hover,
.formychat-channel-host .fcu-grid-tile:focus-visible {
	transform: translateY(-2px);
	border-color: var(--fcu-color, #25D366) !important;
}

.formychat-channel-host .fcu-grid-tile:hover::before {
	opacity: .14;
}

.formychat-channel-host .fcu-grid-icon {
	width: 46px;
	height: 46px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .14);
}

.formychat-channel-host .fcu-grid-tile .fcu-label {
	position: relative;
	font-size: 14px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Bubble menu: speech bubble with a tail toward the launcher. */
.formychat-channel-host[data-style="bubble"] {
	transform: translateY(10px) scale(.9);
	transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .3s;
}

.formychat-channel-host[data-style="bubble"].is-open {
	transform: none;
	transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility 0s;
}

.formychat-channel-host .fcu-bubble {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 260px;
	max-width: calc(100vw - 32px);
	padding: 10px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.formychat-channel-host .fcu-bubble::after {
	content: "";
	position: absolute;
	bottom: -7px;
	right: calc(var(--fc-launcher, 60px) / 2 - 8px);
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 0 0 4px 0;
	transform: rotate(45deg);
	box-shadow: 4px 4px 8px rgba(15, 23, 42, .06);
}

.formychat-channel-host[data-position="left"] .fcu-bubble::after {
	right: auto;
	left: calc(var(--fc-launcher, 60px) / 2 - 8px);
}

.formychat-channel-host .fcu-bubble-title {
	padding: 4px 8px 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #6B7280;
}

.formychat-channel-host .fcu-bubble-item {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 14px 6px 6px !important;
	border: 0 !important;
	border-radius: 9999px;
	background: transparent !important;
	text-align: left;
	overflow: hidden;
}

.formychat-channel-host .fcu-bubble-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--fcu-color, #25D366);
	opacity: .1;
	transition: opacity .15s ease;
}

.formychat-channel-host .fcu-bubble-item:hover::before,
.formychat-channel-host .fcu-bubble-item:focus-visible::before {
	opacity: .18;
}

.formychat-channel-host .fcu-bubble-icon {
	width: 36px;
	height: 36px;
}

.formychat-channel-host .fcu-bubble-item .fcu-label {
	font-size: 14px;
}

.formychat-channel-host .fcu-bubble-item .fcu-sub {
	font-size: 12px;
}

/* Message: one muted line under the title (Card, Chat window). */
.formychat-channel-host .fcu-heading,
.formychat-channel-host .fcu-card-heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.formychat-channel-host .fcu-heading .fcu-title {
	flex: none;
}

.formychat-channel-host .fcu-card-heading {
	padding: 0 4px 4px;
}

.formychat-channel-host .fcu-card-heading .fcu-card-title {
	padding: 0;
}

.formychat-channel-host .fcu-message,
.formychat-channel-host .fcu-card-message {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: #6B7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.formychat-channel-host .fcu-chat-head .fcu-message {
	color: rgba(255, 255, 255, .82);
}

/* A light header color gets dark text. */
.formychat-channel-host .fcu-chat-head.is-light .fcu-title,
.formychat-channel-host .fcu-chat-head.is-light .fcu-close {
	color: #111827;
}

.formychat-channel-host .fcu-chat-head.is-light .fcu-message {
	color: #4B5563;
}

.formychat-channel-host .fcu-chat-head.is-light .fcu-chat-avatar {
	background: rgba(15, 23, 42, .08);
	color: #111827;
}

.formychat-channel-host .fcu-chat-head.is-light .fcu-close:hover {
	background: rgba(15, 23, 42, .08) !important;
}

/* Uploaded channel icon: the image fills the circle, no brand background. */
.formychat-channel-host .fcu-icon.has-image {
	background: transparent;
	overflow: hidden;
}

.formychat-channel-host .fcu-icon.has-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* Menu: plain white rows stacked above the launcher. */
.formychat-channel-host[data-style="menu"] {
	--fcu-gap: 10px;
	transform: none;
	transition: opacity .2s ease, visibility 0s linear .22s;
}

.formychat-channel-host[data-style="menu"].is-open {
	transition: opacity .2s ease, visibility 0s;
}

.formychat-widget:has(.formychat-launcher-button--pill) .formychat-channel-host[data-style="menu"] {
	bottom: calc(var(--fc-launcher, 60px) * .8 + var(--fcu-gap));
}

.formychat-channel-host .fcu-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: max-content;
	min-width: 190px;
	max-width: min(280px, calc(100vw - 32px));
}

.formychat-channel-host .fcu-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 16px 7px 7px !important;
	border: 0 !important;
	border-radius: 10px;
	background: #fff !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .12) !important;
	text-align: start;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease;
}

.formychat-channel-host.is-open .fcu-menu-item {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--fcu-i, 0) * 45ms), calc(var(--fcu-i, 0) * 45ms), 0s;
}

.formychat-channel-host .fcu-menu-item:hover,
.formychat-channel-host .fcu-menu-item:focus-visible {
	box-shadow: 0 8px 22px rgba(15, 23, 42, .18) !important;
	transform: translateX(-3px);
	transition-delay: 0s;
}

.formychat-channel-host[data-position="left"] .fcu-menu-item:hover,
.formychat-channel-host[data-position="left"] .fcu-menu-item:focus-visible {
	transform: translateX(3px);
}

.formychat-channel-host .fcu-menu-icon {
	width: 32px;
	height: 32px;
}

.formychat-channel-host .fcu-menu-item .fcu-label {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Corner circle: icons fanned in a quarter circle around the launcher. */
.formychat-channel-host[data-style="corner"] {
	bottom: 0;
	width: var(--fc-launcher, 60px);
	height: var(--fc-launcher, 60px);
	transform: none;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s linear .35s;
}

.formychat-channel-host[data-style="corner"].is-open {
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s;
}

.formychat-widget:has(.formychat-launcher-button--pill) .formychat-channel-host[data-style="corner"] {
	height: calc(var(--fc-launcher, 60px) * .8);
}

.formychat-channel-host .fcu-corner {
	/* Fans out to the left of a launcher on the right, to the right of one on the left. */
	--fcu-dir: -1;
	--fcu-ur: var(--fcu-r, 1.4);
	--fcu-size: calc(var(--fc-launcher, 60px) * .8);
	--fcu-dist: calc(var(--fc-launcher, 60px) * var(--fcu-ur));
	position: absolute;
	inset: 0;
}

.formychat-channel-host[data-position="left"] .fcu-corner {
	--fcu-dir: 1;
}

.formychat-widget:has(.formychat-launcher-button--pill) .fcu-corner {
	--fcu-ur: var(--fcu-pr, 1.6);
}

.formychat-channel-host .fcu-corner-item {
	--fcu-ux: var(--fcu-dx, 0);
	--fcu-uy: var(--fcu-dy, 1);
	--fcu-k: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: var(--fcu-size);
	height: var(--fcu-size);
	padding: 0 !important;
	border: 0 !important;
	border-radius: 9999px;
	background: transparent !important;
	opacity: 0;
	pointer-events: none;
	transform:
		translate(-50%, -50%)
		translate(calc(var(--fcu-dir) * var(--fcu-ux) * var(--fcu-dist) * var(--fcu-k)), calc(-1 * var(--fcu-uy) * var(--fcu-dist) * var(--fcu-k)))
		scale(calc(.4 + .6 * var(--fcu-k)));
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}

.formychat-widget:has(.formychat-launcher-button--pill) .fcu-corner-item {
	--fcu-ux: var(--fcu-pdx, 0);
	--fcu-uy: var(--fcu-pdy, 1);
}

.formychat-channel-host.is-open .fcu-corner-item {
	--fcu-k: 1;
	opacity: 1;
	pointer-events: auto;
	transition-delay: calc(var(--fcu-i, 0) * 50ms);
}

.formychat-channel-host .fcu-corner-icon {
	width: 100%;
	height: 100%;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .2);
	transition: transform .2s ease;
}

.formychat-channel-host .fcu-corner-item:hover .fcu-corner-icon,
.formychat-channel-host .fcu-corner-item:focus-visible .fcu-corner-icon {
	transform: scale(1.08);
}

/* Name tooltip on the side toward the screen centre. */
.formychat-channel-host .fcu-corner-item .fcu-tip {
	top: 50%;
	right: calc(100% + 10px);
	bottom: auto;
	left: auto;
	transform: translate(4px, -50%);
}

.formychat-channel-host .fcu-corner-item .fcu-tip::after {
	top: 50%;
	left: 100%;
	margin: -5px 0 0;
	border-color: transparent;
	border-left-color: #111827;
}

.formychat-channel-host[data-position="left"] .fcu-corner-item .fcu-tip {
	right: auto;
	left: calc(100% + 10px);
	transform: translate(-4px, -50%);
}

.formychat-channel-host[data-position="left"] .fcu-corner-item .fcu-tip::after {
	left: auto;
	right: 100%;
	border-left-color: transparent;
	border-right-color: #111827;
}

.formychat-channel-host .fcu-corner-item:hover .fcu-tip,
.formychat-channel-host .fcu-corner-item:focus-visible .fcu-tip {
	opacity: 1;
	transform: translate(0, -50%);
}

/* The call to action beside the launcher makes room for the fan. */
.formychat-widget:has(.formychat-channel-host[data-style="corner"].is-open) .formychat-widget-handler-cta {
	opacity: 0;
	pointer-events: none;
}

/* Phones: panels become a bottom sheet. */
@media (max-width: 480px) {
	.formychat-channel-host[data-style="chat"],
	.formychat-channel-host[data-style="grid"] {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2147483000;
		transform: translateY(24px);
	}

	.formychat-channel-host[data-style="chat"].is-open,
	.formychat-channel-host[data-style="grid"].is-open {
		transform: none;
	}

	.formychat-channel-host[data-style="chat"] .fcu-panel,
	.formychat-channel-host[data-style="grid"] .fcu-panel {
		width: 100%;
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -10px 40px rgba(15, 23, 42, .22);
	}

	.formychat-channel-host[data-style="chat"] .fcu-chat-body,
	.formychat-channel-host[data-style="grid"] .fcu-panel {
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
	}

	.formychat-channel-host[data-style="grid"] .fcu-grid-tile {
		min-height: 104px;
	}

	.formychat-channel-host .fcu-bubble {
		width: min(260px, calc(100vw - 32px));
	}

	/* Card: a bottom sheet. */
	.formychat-channel-host[data-style="card"],
	.formychat-widget:has(.formychat-launcher-button--pill) .formychat-channel-host[data-style="card"] {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2147483000;
	}

	.formychat-channel-host[data-style="card"] .fcu-card {
		width: 100%;
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.formychat-channel-host,
	.formychat-channel-host .fcu-row-item,
	.formychat-channel-host .fcu-grid-tile {
		transition: opacity .15s ease, visibility 0s !important;
		transform: none !important;
	}

	.formychat-channel-host .fcu-menu-item {
		transition: opacity .15s ease, box-shadow .15s ease !important;
		transform: none !important;
	}

	/* Corner circle: icons stay in place and fade. */
	.formychat-channel-host .fcu-corner-item {
		--fcu-k: 1;
		transition: opacity .15s ease !important;
	}
}
