body.df-home-chat-active {
	--chat-accent: var(--df-accent, #087982);
	--chat-edge-right: max(16px, env(safe-area-inset-right, 0px));
	--chat-dock-right: calc(var(--chat-edge-right) + var(--chat-view-right-offset, 0px));
	--chat-dock-bottom: max(16px, env(safe-area-inset-bottom, 0px), var(--chat-bottom, 0px));
	--chat-launcher-size: 58px;
	--chat-panel-width: 408px;
	--chat-dock-gap: 10px;
}

body.df-home-chat-active #scrollUp {
	right: calc(var(--chat-dock-right) + 71px);
	bottom: var(--chat-dock-bottom);
}

/* Only the painted cookie card should receive clicks. */
body.df-home-chat-active [data-df-cookie-banner] {
	pointer-events: none;
}

body.df-home-chat-active [data-df-cookie-banner] .df-cookie-banner__inner {
	pointer-events: auto;
}

.df-home-chat {
	--chat-ink: #142c34;
	--chat-muted: #4d6269;
	--chat-line: #d3e1e3;
	position: fixed;
	right: var(--chat-dock-right);
	bottom: var(--chat-dock-bottom);
	z-index: 5000;
	display: grid;
	justify-items: end;
	gap: var(--chat-dock-gap);
	pointer-events: none;
	color: var(--chat-ink);
}

.df-home-chat[data-opened="true"] {
	z-index: 10050;
}

.df-home-chat > * {
	pointer-events: auto;
}

.df-home-chat [hidden],
.df-home-chat[hidden] {
	display: none !important;
}

.df-home-chat__launcher {
	position: relative;
	display: grid;
	width: var(--chat-launcher-size);
	height: var(--chat-launcher-size);
	place-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--chat-accent);
	color: #fff;
	box-shadow: 0 4px 18px rgb(9 39 47 / 18%);
}

.df-home-chat__launcher:hover {
	background: #07575d;
}

.df-home-chat__unread-label, .df-home-chat__unread-count {
	position: absolute;
	z-index: 1;
	border: 2px solid #fff;
	border-radius: 99px;
	background: #b01b36;
	color: #fff;
	font: 700 .875rem/1.2 system-ui, sans-serif;
	white-space: nowrap;
}

.df-home-chat__unread-label {
	right: 0;
	bottom: calc(100% + 7px);
	padding: 6px 10px;
	box-shadow: 0 3px 13px rgb(0 0 0 / 20%);
}

.df-home-chat__unread-count {
	top: -5px;
	right: -5px;
	min-width: 24px;
	padding: 2px 4px;
	text-align: center;
}

.df-home-chat__launcher--ringing::after {
	position: absolute;
	inset: -3px;
	border: 4px solid #b01b36;
	border-radius: 50%;
	content: '';
	pointer-events: none;
	animation: df-home-chat-reply-ring .85s ease-out 3 forwards;
}

@keyframes df-home-chat-reply-ring {
	from { opacity: 1; transform: scale(.94); }
	to { opacity: 0; transform: scale(1.35); }
}

.df-home-chat__notification-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.df-home-chat__launcher--ringing::after { display: none; }
}

.df-home-chat__panel {
	--chat-panel-max: 548px;
	position: relative;
	display: flex;
	box-sizing: border-box;
	width: min(var(--chat-panel-width), calc(var(--chat-view-width, 100vw) - var(--chat-edge-right) - max(12px, env(safe-area-inset-left, 0px))));
	height: min(var(--chat-panel-max), max(0px, calc(var(--chat-room, 100vh) - var(--chat-launcher-size) - var(--chat-dock-gap))));
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	margin-bottom: var(--chat-panel-lift, 0px);
	border: 1px solid #c8dbdc;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 34px rgb(9 39 47 / 18%);
	container: df7-chat / size;
	font-size: 16px;
	line-height: 1.4;
}

.df-home-chat__panel:has([data-chat-guide]:not([hidden])) {
	--chat-panel-max: 404px;
}

.df-home-chat__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 13px;
	border-bottom: 2px solid #279195;
	background: #113a44;
	color: #fff;
}

.df-home-chat__who {
	min-width: 0;
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.df-home-chat__who h2 {
	margin: 0;
	color: #fff;
	font-size: 17px;
	line-height: 1.25;
}

.df-home-chat__header p {
	margin: 3px 0 0;
	color: #d5ecea;
	font-size: 12px;
}

.df-home-chat__icon {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 11px;
	background: #28606a;
	color: #d9f6f3;
}

.df-home-chat__bubble {
	position: relative;
	width: 24px;
	height: 18px;
	margin-bottom: 3px;
	border: 2px solid currentColor;
	border-radius: 6px;
}

.df-home-chat__bubble::after {
	position: absolute;
	bottom: -5px;
	left: 5px;
	width: 7px;
	height: 7px;
	transform: rotate(-45deg);
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	background: var(--bubble-bg, var(--chat-accent));
	content: "";
}

.df-home-chat__launcher:hover .df-home-chat__bubble {
	--bubble-bg: #07575d;
}

.df-home-chat__icon .df-home-chat__bubble {
	--bubble-bg: #28606a;
	transform: scale(.77);
}

.df-home-chat__minimize {
	position: relative;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
}

.df-home-chat__minimize:hover {
	background: #28606a;
}

.df-home-chat__minimize::before,
.df-home-chat__minimize::after {
	position: absolute;
	top: 21px;
	left: 13px;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	content: '';
	transform: rotate(45deg);
}

.df-home-chat__minimize::after {
	transform: rotate(-45deg);
}

.df-home-chat__move,
.df-home-chat__resize {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
}

.df-home-chat__body,
.df-home-chat__transcript {
	display: flex;
	min-height: 0;
	flex: 1 1 0;
	flex-direction: column;
}

.df-home-chat__transcript {
	flex: 1 0 32px;
	overflow: hidden;
	background: #f4f8f8;
}

.df-home-chat__guide {
	align-self: flex-start;
	max-width: 88%;
	margin: 14px 12px;
	padding: 9px 11px;
	border: 1px solid #d9e6e6;
	border-radius: 3px 12px 12px;
	background: #fff;
	color: var(--chat-ink);
	font-size: 14px;
}

.df-home-chat__recovery {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 0 12px;
}

.df-home-chat__recovery button {
	min-height: 44px;
	padding: 5px 0;
	border: 0;
	background: transparent;
	color: #095e65;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.df-home-chat__connection:not(:empty) {
	padding-inline: 12px;
}

.df-home-chat__jump {
	min-height: 34px;
	align-self: center;
	margin: 0 6px 6px;
	padding: 4px 12px;
	border: 1px solid #b8d6d6;
	border-radius: 99px;
	background: #fff;
	color: #095e65;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.df-home-chat__jump:hover {
	background: #e3f2f1;
}

.df-home-chat__typing {
	margin: 2px 12px 6px;
	color: var(--chat-muted);
	font-size: 12px;
}

.df-home-chat__log {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 9px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px;
	scrollbar-width: thin;
	outline-offset: -3px;
}

.df-home-chat__entry {
	max-width: 90%;
	flex: 0 0 auto;
	align-self: flex-start;
	padding: 7px 10px;
	border: 1px solid #d9e6e6;
	border-radius: 3px 12px 12px;
	background: #fff;
}

.df-home-chat__entry--visitor {
	align-self: flex-end;
	border-color: #cce5e3;
	border-radius: 12px 3px 12px 12px;
	background: #dbefed;
}

.df-home-chat__entry--new {
	background: #fff2f4;
	box-shadow: inset 3px 0 #b01b36;
}

.df-home-chat__entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	color: var(--chat-muted);
	font-size: 12px;
}

.df-home-chat__entry p {
	margin: 2px 0 0;
	color: var(--chat-ink);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.df-home-chat__compose {
	display: flex;
	min-height: 0;
	flex: 0 1 auto;
	flex-direction: column;
	margin: 0;
	border-top: 1px solid var(--chat-line);
	background: #fff;
}

.df-home-chat__compose-details {
	min-height: 0;
	max-height: 172px;
	/* Let the details shrink before the message controls. */
	flex: 0 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 12px;
	scrollbar-width: thin;
}

.df-home-chat__compose-bar {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: end;
	gap: 6px;
	padding: 7px 10px;
}

.df-home-chat__panel label {
	display: inline;
	margin: 0;
	font-weight: 600;
}

.df-home-chat__panel textarea,
.df-home-chat__name input,
.df-home-chat__conversation-name input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	border: 1px solid #9eb7bb;
	border-radius: 8px;
	background: #fff;
	padding: 10px;
	color: var(--chat-ink);
	font: inherit;
}

.df-home-chat__name {
	margin: 9px 0 4px;
}

.df-home-chat__name input {
	min-height: 42px;
}

.df-home-chat__conversation-delivery[hidden],
.df-home-chat__conversation-delivery [hidden] {
	display: none !important;
}

.df-home-chat__conversation-delivery {
	margin: 8px 0;
	padding: 8px;
	border: 1px solid #d3e1e3;
	border-radius: 7px;
	background: #f6f9f9;
	color: #4d6269;
	font-size: 13px;
	line-height: 1.45;
}

.df-home-chat__conversation-delivery label.df-home-chat__conversation-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: inherit;
	font-weight: 400;
}

.df-home-chat__conversation-delivery label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--df-accent, #087982);
}

.df-home-chat__conversation-delivery a {
	display: inline-block;
	margin: 3px 0 0 24px;
	color: #095e65;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.df-home-chat__conversation-name {
	margin-top: 8px;
}

.df-home-chat__conversation-name input {
	margin-top: 4px;
}

.df-home-chat__conversation-retry {
	margin: 6px 0 0;
	font-size: 12px;
}

.df-home-chat__panel textarea {
	min-height: 44px;
	max-height: 108px;
	max-height: clamp(44px, calc(100cqh - 205px), 108px);
	margin: 0;
	resize: none;
}

.df-home-chat__attach {
	display: grid;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid #d7e5e5;
	border-radius: 8px;
	background: #f2f8f7;
	color: #095e65;
}

.df-home-chat__attach:hover {
	background: #eff6f6;
}

.df-home-chat__clip {
	position: relative;
	width: 10px;
	height: 17px;
	transform: rotate(34deg);
	border: 1.5px solid currentColor;
	border-radius: 6px;
}

.df-home-chat__clip::after {
	position: absolute;
	top: -1px;
	left: 2px;
	width: 4px;
	height: 12px;
	border: 1.5px solid currentColor;
	border-top: 0;
	border-radius: 0 0 5px 5px;
	content: "";
}

.df-home-chat__file-delivery {
	margin-top: 10px;
	padding: 8px;
	border: 1px solid var(--chat-line);
	border-radius: 7px;
	background: #f6f9f9;
}

.df-home-chat__file-delivery-retry {
	margin: 6px 0 0;
	color: var(--chat-muted);
	font-size: 12px;
}

.df-home-chat__file-list,
.df-home-chat__downloads {
	display: grid;
	gap: 4px;
	margin: 5px 0 0;
	padding: 0;
	list-style: none;
}

.df-home-chat__file-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 0 2px 0 8px;
	border: 1px solid var(--chat-line);
	border-radius: 7px;
	background: #f6f9f9;
	color: var(--chat-ink);
	font-size: 13px;
}

.df-home-chat__file-list span,
.df-home-chat__downloads a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.df-home-chat__file-list span {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.df-home-chat__draft-preview {
	display: block;
	width: 46px;
	height: 40px;
	flex: 0 0 46px;
	margin-block: 3px;
	border-radius: 4px;
	background: #e7eeee;
	object-fit: contain;
}

.df-home-chat__file-list button {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #095e65;
	font: inherit;
	font-size: 21px;
}

.df-home-chat__file-list button:hover {
	background: #e3f2f1;
}

.df-home-chat__downloads a {
	color: #095e65;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.df-home-chat__preview {
	display: block;
	width: 205px;
	max-width: 100%;
	margin: 2px 0 4px;
	border-radius: 6px;
	background: #f6f9f9;
}

.df-home-chat__preview img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: inherit;
	object-fit: contain;
}

.df-home-chat__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--chat-muted);
	font-size: 13px;
}

.df-home-chat__compose-details > .df-home-chat__consent {
	margin-block: 6px 2px;
}

.df-home-chat__consent label {
	font-weight: inherit;
}

.df-home-chat__consent input {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin: 2px 0 0;
	accent-color: var(--chat-accent);
}

.df-home-chat__consent a {
	color: #095e65;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.df-home-chat__submit {
	display: grid;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--chat-accent);
	border-radius: 8px;
	background: var(--chat-accent);
	color: #fff;
}

.df-home-chat__submit:hover:not(:disabled) {
	border-color: #07575d;
	background: #07575d;
}

.df-home-chat__submit:disabled {
	opacity: .65;
	cursor: wait;
}

.df-home-chat__send-icon {
	position: relative;
	width: 18px;
	height: 18px;
}

.df-home-chat__send-icon::before,
.df-home-chat__send-icon::after {
	position: absolute;
	content: '';
}

.df-home-chat__send-icon::before {
	top: 8px;
	left: 1px;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.df-home-chat__send-icon::after {
	top: 5px;
	right: 2px;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.df-home-chat__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.df-home-chat__drop-hint {
	position: absolute;
	z-index: 2;
	inset: 5px;
	display: none;
	place-items: center;
	padding: 12px;
	border: 2px dashed #087982;
	border-radius: 12px;
	background: rgb(228 246 243 / 94%);
	color: #113a44;
	font-weight: 650;
	text-align: center;
	pointer-events: none;
}

.df-home-chat__panel[data-dragging="true"] .df-home-chat__drop-hint {
	display: grid;
}

.df-home-chat :focus-visible {
	outline: 2px solid var(--chat-accent);
	outline-offset: 2px;
}

.df-home-chat__minimize:focus-visible {
	outline-color: #d9f6f3;
}

.df-home-chat__log:focus-visible {
	outline-offset: -3px;
}

.df-home-chat__status {
	margin: 0;
	color: #135e61;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.df-home-chat__status:not(:empty) {
	margin-top: 6px;
}

.df-home-chat__status[data-error="true"] {
	color: #952d25;
}

@container df7-chat (max-height: 245px) {
	.df-home-chat__header { padding-block: 3px; }
	.df-home-chat__header p { display: none; }
	.df-home-chat__transcript { flex-basis: 22px; }
	.df-home-chat__transcript:has([data-chat-guide]:not([hidden])) { flex-basis: 0; }
	.df-home-chat__guide { display: none; }
	.df-home-chat__log { padding-block: 4px; }
	.df-home-chat__compose-bar { padding-block: 5px; }
}

@container df7-chat (max-height: 159px) {
	.df-home-chat__transcript { flex-basis: 0; }
}

@media (max-width: 540px) {
	body.df-home-chat-active {
		--chat-edge-right: max(12px, env(safe-area-inset-right, 0px));
	}
}

.df-home-chat[data-chat-mobile-open] {
	--chat-mobile-padding-left: max(12px, env(safe-area-inset-left, 0px));
	--chat-mobile-padding-right: max(12px, env(safe-area-inset-right, 0px));
	--chat-mobile-bottom-inset: env(safe-area-inset-bottom, 0px);
	inset: var(--chat-mobile-top, 0px) auto auto var(--chat-mobile-left, 0px);
	z-index: 100001;
	display: block;
	width: var(--chat-mobile-width, 100vw);
	height: 100vh;
	height: var(--chat-mobile-height, 100dvh);
	pointer-events: auto;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__launcher {
	display: none;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__panel {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__header {
	gap: 10px;
	padding: max(6px, env(safe-area-inset-top, 0px)) var(--chat-mobile-padding-right) 6px var(--chat-mobile-padding-left);
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__icon {
	width: 36px;
	height: 36px;
	flex-basis: 36px;
	border-radius: 10px;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__guide {
	margin-inline: var(--chat-mobile-padding-left) var(--chat-mobile-padding-right);
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__log,
.df-home-chat[data-chat-mobile-open] .df-home-chat__compose-details,
.df-home-chat[data-chat-mobile-open] .df-home-chat__compose-bar {
	padding-left: var(--chat-mobile-padding-left);
	padding-right: var(--chat-mobile-padding-right);
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__compose {
	padding-bottom: var(--chat-mobile-bottom-inset);
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__compose-bar {
	gap: 8px;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__panel textarea,
.df-home-chat[data-chat-mobile-open] .df-home-chat__panel input[type="text"] {
	min-height: 44px;
	font-size: 16px;
}

.df-home-chat[data-chat-mobile-open] .df-home-chat__panel textarea:focus-visible,
.df-home-chat[data-chat-mobile-open] .df-home-chat__panel input[type="text"]:focus-visible {
	outline-offset: -2px;
}

.df-home-chat[data-chat-mobile-open][data-chat-keyboard-open] {
	--chat-mobile-bottom-inset: 0px;
}

.df-home-chat[data-chat-mobile-open][data-chat-keyboard-open] .df-home-chat__guide,
.df-home-chat[data-chat-mobile-open][data-chat-keyboard-open] .df-home-chat__header p {
	display: none;
}

.df-home-chat[data-chat-mobile-open][data-chat-keyboard-open] .df-home-chat__transcript:has([data-chat-guide]:not([hidden])) {
	flex-basis: 0;
}

@media (min-width: 769px) and (pointer: fine) and (hover: hover) {
	.df-home-chat__panel[data-chat-window-positioned] {
		position: fixed;
		top: var(--chat-window-top);
		right: auto;
		bottom: auto;
		left: var(--chat-window-left);
		margin-bottom: 0;
	}

	.df-home-chat__panel[data-chat-window-resized] {
		width: var(--chat-window-width);
		height: var(--chat-window-height);
	}

	.df-home-chat__header,
	.df-home-chat__header .df-home-chat__move[type="button"] {
		cursor: grab;
	}

	.df-home-chat__header {
		padding-inline-start: 28px;
	}

	.df-home-chat__move,
	.df-home-chat__resize {
		display: grid;
		place-items: center;
	}

	.df-home-chat__move {
		position: relative;
		width: 28px;
		height: 36px;
		flex: 0 0 28px;
		border-radius: 7px;
		color: #d5ecea;
	}

	.df-home-chat__move::before {
		position: absolute;
		top: 12px;
		left: 10px;
		width: 3px;
		height: 3px;
		border-radius: 50%;
		background: currentColor;
		box-shadow: 6px 0, 0 5px, 6px 5px, 0 10px, 6px 10px;
		content: '';
	}

	.df-home-chat__move:hover {
		background: #28606a;
	}

	.df-home-chat__move:focus-visible {
		outline-color: #d9f6f3;
	}

	.df-home-chat__panel .df-home-chat__resize[type="button"] {
		position: absolute;
		top: 3px;
		left: 3px;
		width: 23px;
		height: 23px;
		border-radius: 11px 4px 4px;
		color: #d5ecea;
		cursor: nwse-resize;
	}

	.df-home-chat__resize::before {
		width: 13px;
		height: 13px;
		background: linear-gradient(135deg, transparent 17%, currentColor 18% 26%, transparent 27% 41%, currentColor 42% 50%, transparent 51%);
		content: '';
	}

	.df-home-chat__resize:hover {
		background: #28606a;
	}

	.df-home-chat__resize:focus-visible {
		outline-color: #d9f6f3;
		outline-offset: -2px;
	}

	.df-home-chat[data-chat-window-gesture] .df-home-chat__panel {
		user-select: none;
	}

	.df-home-chat[data-chat-window-gesture="move"] .df-home-chat__header,
	.df-home-chat[data-chat-window-gesture="move"] .df-home-chat__move[type="button"] {
		cursor: grabbing;
	}
}

