.ca-web-chat {
	--ca-chat-brand: #13795b;
	--ca-chat-brand-dark: #0e5d46;
	--ca-chat-ink: #17211d;
	--ca-chat-muted: #66736d;
	--ca-chat-border: #dce5e0;
	--ca-chat-surface: #fff;
	--ca-chat-viewport-top: 0px;
	--ca-chat-viewport-bottom: 0px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ca-chat-ink);
	box-sizing: border-box;
}
.ca-web-chat *, .ca-web-chat *::before, .ca-web-chat *::after { box-sizing: inherit; }
.ca-web-chat[hidden], .ca-web-chat [hidden] { display: none !important; }
.ca-web-chat button, .ca-web-chat input, .ca-web-chat textarea { font: inherit; }
.ca-web-chat .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ca-web-chat__launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ca-chat-brand);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 10px 28px rgb(16 73 55 / 20%);
	cursor: pointer;
}
.ca-web-chat__launcher:hover, .ca-web-chat__launcher:focus-visible { background: var(--ca-chat-brand-dark); }
.ca-web-chat__launcher:focus-visible, .ca-web-chat button:focus-visible, .ca-web-chat input:focus-visible, .ca-web-chat textarea:focus-visible { outline: 3px solid rgb(19 121 91 / 28%); outline-offset: 2px; }
.ca-web-chat__launcher-icon { font-size: 20px; }
/* Homepage inline mode: Fin-style bottom launcher that expands upward. */
.ca-web-chat--inline {
	position: fixed;
	left: 50%;
	bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
	z-index: 9990;
	width: 314px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	transform: translateX(-50%);
	transition: width 180ms ease;
}
.ca-web-chat--inline.is-open {
	width: min(544px, calc(100vw - 32px));
}
.ca-web-chat--inline .ca-web-chat__launcher {
	display: flex;
	width: 314px;
	height: 48px;
	min-height: 48px;
	padding: 0 7px 0 18px;
	border: 1px solid rgb(24 30 36 / 10%);
	border-radius: 999px;
	background: #fff;
	color: #767b82;
	font-weight: 500;
	box-shadow: 0 7px 22px rgb(16 24 40 / 18%);
	justify-content: space-between;
}
.ca-web-chat--inline .ca-web-chat__launcher:hover,
.ca-web-chat--inline .ca-web-chat__launcher:focus-visible {
	background: #fff;
	color: #4d5258;
}
.ca-web-chat--inline .ca-web-chat__launcher-icon {
	order: 2;
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 1px solid rgb(22 28 34 / 6%);
	border-radius: 50%;
	background: rgb(235 237 239 / 92%);
	color: #8b9097;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
	line-height: 1;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.ca-web-chat--inline .ca-web-chat__launcher:hover .ca-web-chat__launcher-icon,
.ca-web-chat--inline .ca-web-chat__launcher:focus-visible .ca-web-chat__launcher-icon {
	background: #e5e7ea;
	color: #666c73;
	transform: translateY(-1px);
}
.ca-web-chat__launcher-arrow {
	display: block;
	width: 18px;
	height: 18px;
}
.ca-web-chat--inline.is-open .ca-web-chat__launcher {
	width: 100%;
	visibility: hidden;
	pointer-events: none;
}
.ca-web-chat--inline .ca-web-chat__panel {
	position: absolute;
	left: 50%;
	bottom: 60px;
	width: min(544px, calc(100vw - 32px));
	height: 470px;
	max-height: min(470px, calc(var(--ca-chat-viewport-height, 100dvh) - 112px - env(safe-area-inset-bottom)));
	margin: 0;
	border: 1px solid rgb(255 255 255 / 13%);
	border-radius: 22px;
	background: rgb(20 21 24 / 76%);
	-webkit-backdrop-filter: blur(22px) saturate(125%);
	backdrop-filter: blur(22px) saturate(125%);
	box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
	color: #f7f7f8;
	text-align: left;
	transform: translateX(-50%);
	overflow: visible;
}
.ca-web-chat--inline .ca-web-chat__header,
.ca-web-chat--inline .ca-web-chat__body {
	position: relative;
	z-index: 1;
}
.ca-web-chat--inline .ca-web-chat__header {
	border-color: rgb(255 255 255 / 10%);
	border-radius: 22px 22px 0 0;
	background: rgb(14 15 18 / 24%);
	color: #fff;
	overflow: hidden;
}
.ca-web-chat--inline .ca-web-chat__header small { color: rgb(255 255 255 / 66%); }
.ca-web-chat--inline .ca-web-chat__body {
	min-height: 0;
	border-radius: 0 0 22px 22px;
	background: transparent;
	color: #f7f7f8;
	overflow: auto;
}
.ca-web-chat--inline .ca-web-chat__message--assistant {
	background: rgb(255 255 255 / 10%);
	color: #fff;
}
.ca-web-chat--inline .ca-web-chat__message--customer {
	background: rgb(255 255 255 / 16%);
	color: #fff;
}
.ca-web-chat--inline .ca-web-chat__message--greeting {
	border-color: rgb(255 255 255 / 12%);
	background: rgb(255 255 255 / 8%);
	color: #fff;
}
.ca-web-chat--inline .ca-web-chat__suggestions button {
	border-color: rgb(255 255 255 / 12%);
	background: rgb(255 255 255 / 10%);
	color: #fff;
}
.ca-web-chat--inline .ca-web-chat__suggestions button:hover {
	border-color: rgb(255 255 255 / 22%);
	background: rgb(255 255 255 / 16%);
}
.ca-web-chat--inline .ca-web-chat__composer {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	width: 100%;
	height: 48px;
	padding: 3px 5px 3px 15px;
	border: 1px solid rgb(24 30 36 / 10%);
	border-radius: 999px;
	background: rgb(255 255 255 / 92%);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 8px 24px rgb(16 24 40 / 18%);
}
.ca-web-chat--inline .ca-web-chat__composer form {
	height: 40px;
	align-items: center;
}
.ca-web-chat--inline .ca-web-chat__composer textarea[data-ca-chat-input] {
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	padding: 9px 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	resize: none;
	box-shadow: none !important;
	outline: 0 !important;
	appearance: none;
}
.ca-web-chat--inline .ca-web-chat__composer textarea[data-ca-chat-input]:focus,
.ca-web-chat--inline .ca-web-chat__composer textarea[data-ca-chat-input]:focus-visible {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}
.ca-web-chat--inline .ca-web-chat__composer form button {
	position: relative;
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	line-height: 1;
	border: 1px solid rgb(22 27 33 / 6%);
	border-radius: 999px !important;
	background: #eef0f2;
	color: #697078;
	box-shadow: none;
	font-size: 0;
}
.ca-web-chat--inline .ca-web-chat__composer form button:hover {
	background: #e7eaed;
	color: #42484f;
}
.ca-web-chat--inline .ca-web-chat__composer form button::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 9px;
	width: 2px;
	height: 15px;
	border-radius: 999px;
	background: currentColor;
	transform: translateX(-50%);
}
.ca-web-chat--inline .ca-web-chat__composer form button::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 9px;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateX(-50%) rotate(45deg);
}
.ca-web-chat--inline .ca-web-chat__close {
	position: relative;
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	line-height: 1;
	border: 1px solid rgb(255 255 255 / 7%);
	border-radius: 999px !important;
	background: rgb(255 255 255 / 7%);
	color: rgb(255 255 255 / 78%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
	font-size: 0;
}
.ca-web-chat--inline .ca-web-chat__close:hover {
	background: rgb(255 255 255 / 12%);
	color: #fff;
}
.ca-web-chat--inline .ca-web-chat__close::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	transform: translate(-50%, -65%) rotate(45deg);
}
/* Keep secondary lead/status controls available without increasing the 48px composer bar. */
.ca-web-chat--inline .ca-web-chat__lead-toggle {
	position: absolute;
	left: 16px;
	bottom: 64px;
	z-index: 3;
	margin: 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 4px 14px rgb(16 24 40 / 10%);
}
.ca-web-chat--inline .ca-web-chat__lead-toggle[hidden] { display: none !important; }
.ca-web-chat--inline .ca-web-chat__status {
	position: absolute;
	right: 12px;
	bottom: 58px;
	z-index: 3;
	min-height: 0;
	margin: 0;
	font-size: 11px;
}
.ca-web-chat--inline .ca-web-chat__lead:not([hidden]) {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	z-index: 1;
	max-height: none;
	overflow: visible;
	margin: 14px 0 4px;
	box-shadow: 0 10px 30px rgb(16 24 40 / 14%);
}
.ca-web-chat--floating { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(var(--ca-chat-bottom-offset, 20px), env(safe-area-inset-bottom)); z-index: 9990; }
.ca-web-chat--floating .ca-web-chat__launcher { float: right; }
.ca-web-chat__panel {
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	max-height: min(680px, calc(var(--ca-chat-viewport-height, 100dvh) - 40px - env(safe-area-inset-bottom)));
	border: 1px solid var(--ca-chat-border);
	border-radius: 18px;
	background: var(--ca-chat-surface);
	box-shadow: 0 20px 60px rgb(23 33 29 / 22%);
	overflow: hidden;
}
.ca-web-chat--floating .ca-web-chat__panel { position: absolute; right: 0; bottom: 62px; }
.ca-web-chat__header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--ca-chat-border); background: #f6faf8; }
.ca-web-chat__header div { display: grid; }
.ca-web-chat__header strong { font-size: 16px; }
.ca-web-chat__header small { color: var(--ca-chat-muted); font-size: 12px; }
.ca-web-chat__close, .ca-web-chat__lead-heading button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ca-chat-muted); font-size: 24px; cursor: pointer; }
.ca-web-chat__body { flex: 1 1 auto; min-height: 230px; padding: 16px; overflow: auto; overscroll-behavior: contain; background: #fff; }
.ca-web-chat__messages { display: grid; gap: 10px; }
.ca-web-chat__message { max-width: 88%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ca-web-chat__message--assistant { justify-self: start; border-bottom-left-radius: 4px; background: #eef4f1; }
.ca-web-chat__message--customer { justify-self: end; border-bottom-right-radius: 4px; background: var(--ca-chat-brand); color: #fff; }
.ca-web-chat__message--greeting { border: 1px solid var(--ca-chat-border); background: #fff; }
.ca-web-chat__suggestions { display: grid; gap: 8px; margin-top: 14px; }
.ca-web-chat__suggestions button { padding: 10px 12px; border: 1px solid var(--ca-chat-border); border-radius: 12px; background: #fff; color: var(--ca-chat-brand-dark); text-align: left; cursor: pointer; }
.ca-web-chat__suggestions button:hover { border-color: var(--ca-chat-brand); background: #f6faf8; }
.ca-web-chat__lead { margin-top: 16px; padding: 13px; border: 1px solid var(--ca-chat-border); border-radius: 14px; background: #f8fbfa; }
.ca-web-chat__lead-heading { display: flex; align-items: center; justify-content: space-between; }
.ca-web-chat__lead p { margin: 3px 0 10px; color: var(--ca-chat-muted); font-size: 13px; }
.ca-web-chat__lead form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ca-web-chat__lead label { display: grid; gap: 3px; color: var(--ca-chat-muted); font-size: 12px; }
.ca-web-chat__lead input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--ca-chat-border); border-radius: 9px; background: #fff; color: var(--ca-chat-ink); }
.ca-web-chat__lead form > button { grid-column: 1 / -1; min-height: 40px; border: 0; border-radius: 9px; background: var(--ca-chat-brand); color: #fff; font-weight: 700; cursor: pointer; }
.ca-web-chat__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.ca-web-chat__composer { flex: 0 0 auto; padding: 11px 13px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ca-chat-border); background: #fff; }
.ca-web-chat__composer form { display: flex; align-items: flex-end; gap: 8px; }
.ca-web-chat .ca-web-chat__composer textarea[data-ca-chat-input] { flex: 1; width: auto; min-height: 42px !important; height: 42px; max-height: 110px !important; resize: none; overflow-y: auto; padding: 9px 11px; border: 1px solid var(--ca-chat-border); border-radius: 12px; background: #fff; color: var(--ca-chat-ink); }
.ca-web-chat__composer form button { min-width: 58px; min-height: 42px; padding: 8px 11px; border: 0; border-radius: 11px; background: var(--ca-chat-brand); color: #fff; font-weight: 700; cursor: pointer; }
.ca-web-chat__composer button:disabled { opacity: .55; cursor: wait; }
.ca-web-chat__lead-toggle { margin: 0 0 7px; padding: 0; border: 0; background: transparent; color: var(--ca-chat-brand-dark); font-size: 12px; cursor: pointer; }
.ca-web-chat__status { min-height: 18px; margin: 5px 2px 0; color: var(--ca-chat-muted); font-size: 12px; }

/* Non-homepage floating mode: compact glass launcher and upward-opening chat panel. */
.ca-web-chat--floating {
	right: max(24px, env(safe-area-inset-right));
	bottom: max(var(--ca-chat-bottom-offset, 24px), env(safe-area-inset-bottom));
}
.ca-web-chat--floating .ca-web-chat__launcher {
	float: none;
	display: inline-grid;
	place-items: center;
	width: 54px;
	height: 54px;
	min-width: 54px;
	min-height: 54px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 46%);
	border-radius: 50%;
	background: rgb(88 90 95 / 66%);
	-webkit-backdrop-filter: blur(18px) saturate(120%);
	backdrop-filter: blur(18px) saturate(120%);
	color: rgb(255 255 255 / 94%);
	box-shadow: 0 12px 30px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 16%);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.ca-web-chat--floating .ca-web-chat__launcher:hover,
.ca-web-chat--floating .ca-web-chat__launcher:focus-visible {
	background: rgb(108 110 116 / 74%);
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgb(0 0 0 / 20%), inset 0 1px 0 rgb(255 255 255 / 20%);
}
.ca-web-chat--floating .ca-web-chat__launcher > span:last-child { display: none; }
.ca-web-chat--floating .ca-web-chat__launcher-icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	font-size: 0;
}
.ca-web-chat--floating .ca-web-chat__launcher-icon svg { width: 22px; height: 22px; display: block; }
.ca-web-chat--floating .ca-web-chat__panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: min(390px, calc(100vw - 32px));
	height: min(560px, calc(var(--ca-chat-viewport-height, 100dvh) - 108px - env(safe-area-inset-bottom)));
	max-height: none;
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 24px;
	background: rgb(19 20 23 / 78%);
	-webkit-backdrop-filter: blur(22px) saturate(125%);
	backdrop-filter: blur(22px) saturate(125%);
	box-shadow: 0 24px 70px rgb(0 0 0 / 30%);
	color: #f7f7f8;
	overflow: hidden;
}
.ca-web-chat--floating .ca-web-chat__header {
	padding: 16px 18px;
	border-color: rgb(255 255 255 / 10%);
	background: rgb(12 13 15 / 24%);
	color: #fff;
}
.ca-web-chat--floating .ca-web-chat__header small { color: rgb(255 255 255 / 62%); }
.ca-web-chat--floating .ca-web-chat__close {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	background: rgb(255 255 255 / 5%);
	color: rgb(255 255 255 / 72%);
	font-size: 0;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.ca-web-chat--floating .ca-web-chat__close svg { width: 14px; height: 14px; display: block; }
.ca-web-chat--floating .ca-web-chat__close:hover,
.ca-web-chat--floating .ca-web-chat__close:focus-visible {
	background: rgb(255 255 255 / 9%);
	border-color: rgb(255 255 255 / 14%);
	color: rgb(255 255 255 / 94%);
}
.ca-web-chat--floating .ca-web-chat__body {
	min-height: 0;
	padding: 16px;
	background: transparent;
	color: #f7f7f8;
}
.ca-web-chat--floating .ca-web-chat__message--assistant,
.ca-web-chat--floating .ca-web-chat__message--greeting {
	border-color: rgb(255 255 255 / 10%);
	background: rgb(255 255 255 / 10%);
	color: #fff;
}
.ca-web-chat--floating .ca-web-chat__message--customer {
	background: rgb(255 255 255 / 17%);
	color: #fff;
}
.ca-web-chat--floating .ca-web-chat__suggestions button {
	border-color: rgb(255 255 255 / 11%);
	background: rgb(255 255 255 / 9%);
	color: #fff;
}
.ca-web-chat--floating .ca-web-chat__suggestions button:hover {
	border-color: rgb(255 255 255 / 20%);
	background: rgb(255 255 255 / 14%);
}
.ca-web-chat--floating .ca-web-chat__composer {
	padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
	border-color: rgb(255 255 255 / 8%);
	background: rgb(12 13 15 / 24%);
}
.ca-web-chat--floating .ca-web-chat__composer form {
	align-items: center;
	padding: 3px 5px 3px 12px;
	border: 1px solid rgb(255 255 255 / 13%);
	border-radius: 999px;
	background: rgb(255 255 255 / 9%);
}
.ca-web-chat--floating .ca-web-chat__composer textarea[data-ca-chat-input] {
	height: 40px !important;
	min-height: 40px !important;
	max-height: 96px !important;
	padding: 9px 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: 0 !important;
}
.ca-web-chat--floating .ca-web-chat__composer textarea[data-ca-chat-input]::placeholder { color: rgb(255 255 255 / 58%); }
.ca-web-chat--floating .ca-web-chat__composer form button {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 8%);
	border-radius: 50%;
	background: rgb(255 255 255 / 10%);
	color: rgb(255 255 255 / 78%);
	font-size: 0;
}
.ca-web-chat--floating .ca-web-chat__composer form button::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 9px;
	width: 2px;
	height: 15px;
	border-radius: 999px;
	background: currentColor;
	transform: translateX(-50%);
}
.ca-web-chat--floating .ca-web-chat__composer form button::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 9px;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateX(-50%) rotate(45deg);
}
.ca-web-chat--floating .ca-web-chat__lead-toggle { color: rgb(255 255 255 / 72%); }
.ca-web-chat--floating .ca-web-chat__status { color: rgb(255 255 255 / 60%); }
.ca-web-chat--floating .ca-web-chat__lead {
	border-color: rgb(255 255 255 / 12%);
	background: rgb(28 30 34 / 92%);
	color: #fff;
}
.ca-web-chat--floating .ca-web-chat__lead p,
.ca-web-chat--floating .ca-web-chat__lead label { color: rgb(255 255 255 / 68%); }

body.admin-bar .ca-web-chat--floating .ca-web-chat__panel { max-height: min(680px, calc(var(--ca-chat-viewport-height, 100dvh) - 76px - env(safe-area-inset-bottom))); }
.ca-web-chat--floating.is-viewport-constrained .ca-web-chat__panel {
	position: fixed;
	top: calc(var(--ca-chat-viewport-top) + 8px);
	right: max(8px, env(safe-area-inset-right));
	bottom: calc(var(--ca-chat-viewport-bottom) + max(8px, env(safe-area-inset-bottom)));
	width: min(390px, calc(100vw - 16px));
	max-height: none;
}
.ca-web-chat--floating.is-viewport-constrained .ca-web-chat__launcher { visibility: hidden; }
.ca-web-chat--floating.is-viewport-constrained .ca-web-chat__body { min-height: 0; }
.ca-web-chat--inline.is-viewport-constrained .ca-web-chat__panel {
	position: fixed;
	top: calc(var(--ca-chat-viewport-top) + 8px);
	left: 50%;
	bottom: calc(var(--ca-chat-viewport-bottom) + 64px);
	height: auto;
	max-height: none;
	transform: translateX(-50%);
}
.ca-web-chat--inline.is-viewport-constrained .ca-web-chat__composer {
	top: calc(100% + 8px);
}
@media (max-width: 600px) {
	.ca-web-chat--inline { width: min(314px, calc(100vw - 24px)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
	.ca-web-chat--inline.is-open { width: calc(100vw - 16px); }
	.ca-web-chat--inline .ca-web-chat__panel { width: calc(100vw - 16px); height: min(470px, calc(var(--ca-chat-viewport-height, 100dvh) - 92px)); max-height: none; }
	.ca-web-chat--floating { right: max(10px, env(safe-area-inset-right)); bottom: max(var(--ca-chat-bottom-offset, 10px), env(safe-area-inset-bottom)); }
	.ca-web-chat--floating .ca-web-chat__panel { position: fixed; inset: calc(var(--ca-chat-viewport-top) + 8px) 8px calc(var(--ca-chat-viewport-bottom) + max(8px, env(safe-area-inset-bottom))) 8px; width: auto; max-height: none; border-radius: 16px; }
	.ca-web-chat--floating.is-open .ca-web-chat__launcher { visibility: hidden; }
	.ca-web-chat__body { min-height: 0; }
	.ca-web-chat__lead form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ca-web-chat * { scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
	.ca-web-chat--floating .ca-web-chat__panel,
	.ca-web-chat--floating.is-viewport-constrained .ca-web-chat__panel {
		height: auto;
	}
	.ca-web-chat--floating .ca-web-chat__launcher {
		width: 52px;
		height: 52px;
		min-width: 52px;
		min-height: 52px;
	}
}


/* Floating chat v2: tighten launcher/close controls and keep lead capture out of the default composer. */
.ca-web-chat--floating .ca-web-chat__launcher {
	box-sizing: border-box;
	flex: 0 0 54px;
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	min-height: 54px !important;
	max-width: 54px !important;
	max-height: 54px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	border-radius: 50% !important;
	line-height: 1 !important;
	color: rgb(255 255 255 / 94%);
}
.ca-web-chat--floating .ca-web-chat__launcher-icon,
.ca-web-chat--floating .ca-web-chat__launcher-icon svg {
	width: 24px;
	height: 24px;
}
.ca-web-chat--floating .ca-web-chat__launcher-icon svg {
	filter: drop-shadow(0 1px 1px rgb(0 0 0 / 22%));
}
.ca-web-chat--floating .ca-web-chat__close {
	box-sizing: border-box;
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	border-radius: 50% !important;
	line-height: 1 !important;
}
.ca-web-chat--floating .ca-web-chat__lead-toggle {
	display: none !important;
}
.ca-web-chat--floating .ca-web-chat__composer {
	padding-top: 10px;
}


/* Shared inline/floating AI typing indicator. */
.ca-web-chat__typing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: auto;
	min-width: 54px;
	min-height: 36px;
	padding: 10px 13px;
}
.ca-web-chat__typing span {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: .35;
	animation: ca-web-chat-typing-dot 1.15s ease-in-out infinite;
}
.ca-web-chat__typing span:nth-child(2) { animation-delay: .16s; }
.ca-web-chat__typing span:nth-child(3) { animation-delay: .32s; }
@keyframes ca-web-chat-typing-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: .28; }
	30% { transform: translateY(-3px); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
	.ca-web-chat__typing span { animation: none; opacity: .65; }
}

/* Homepage pre-conversation guidance: rotate the launcher prompt, then reveal suggested questions before the full chat. */
.ca-web-chat--inline .ca-web-chat__launcher > span[data-ca-chat-launcher-label] {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: opacity 140ms ease, transform 140ms ease;
}
.ca-web-chat--inline .ca-web-chat__launcher > span[data-ca-chat-launcher-label].is-changing {
	opacity: 0;
	transform: translateY(-3px);
}
.ca-web-chat--inline.is-prechat .ca-web-chat__panel {
	height: auto;
	min-height: 0;
	max-height: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	overflow: visible;
}
.ca-web-chat--inline.is-prechat .ca-web-chat__header,
.ca-web-chat--inline.is-prechat .ca-web-chat__messages,
.ca-web-chat--inline.is-prechat .ca-web-chat__lead,
.ca-web-chat--inline.is-prechat .ca-web-chat__status {
	display: none !important;
}
.ca-web-chat--inline.is-prechat .ca-web-chat__body {
	overflow: visible;
	min-height: 0;
	padding: 0 0 8px;
	background: transparent;
}
.ca-web-chat--inline.is-prechat .ca-web-chat__suggestions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.ca-web-chat--inline.is-prechat .ca-web-chat__suggestions button {
	width: auto;
	max-width: min(100%, 420px);
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: rgb(93 93 93 / 68%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 10px rgb(0 0 0 / 8%);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}
.ca-web-chat--inline.is-prechat .ca-web-chat__suggestions button:hover,
.ca-web-chat--inline.is-prechat .ca-web-chat__suggestions button:focus-visible {
	background: rgb(78 78 78 / 78%);
}
.ca-web-chat--inline.is-prechat .ca-web-chat__composer {
	top: calc(100% + 8px);
}
@media (max-width: 600px) {
	.ca-web-chat--inline.is-prechat .ca-web-chat__suggestions button {
		max-width: calc(100vw - 48px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ca-web-chat--inline .ca-web-chat__launcher > span[data-ca-chat-launcher-label] { transition: none; }
}

/* Guided-answer CTA and Fin-like lower shadow refinement. */
.ca-web-chat--inline .ca-web-chat__launcher,
.ca-web-chat--inline .ca-web-chat__composer {
	box-shadow:
		0 14px 34px rgb(15 23 42 / 24%),
		0 4px 12px rgb(15 23 42 / 12%),
		0 1px 2px rgb(15 23 42 / 8%);
}
.ca-web-chat__message--preset {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.ca-web-chat__preset-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 13px;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 999px;
	background: rgb(255 255 255 / 13%);
	color: inherit;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.25;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ca-web-chat__preset-cta:hover,
.ca-web-chat__preset-cta:focus-visible {
	border-color: rgb(255 255 255 / 28%);
	background: rgb(255 255 255 / 20%);
	color: inherit;
	transform: translateY(-1px);
}

/* Answer-level source links and dynamic follow-ups; intentionally additive to the confirmed chat UI. */
.ca-web-chat__citations {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 8px 0 0 6px;
	vertical-align: baseline;
}
.ca-web-chat__citations a {
	color: inherit;
	font-size: 11px;
	font-weight: 650;
	line-height: 1;
	opacity: .72;
	text-decoration: none;
}
.ca-web-chat__citations a:hover,
.ca-web-chat__citations a:focus-visible {
	opacity: 1;
	text-decoration: underline;
}
.ca-web-chat__follow-ups {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-self: start;
	max-width: min(88%, 430px);
	margin-top: -2px;
}
.ca-web-chat__follow-ups button {
	max-width: 100%;
	padding: 7px 11px;
	border: 1px solid var(--ca-chat-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.ca-web-chat__follow-ups button:hover,
.ca-web-chat__follow-ups button:focus-visible {
	border-color: var(--ca-chat-brand);
	background: rgba(255, 255, 255, .09);
	outline: none;
}
