.n8nsc-chat {
	--n8nsc-primary: #2563eb;
	--n8nsc-secondary: #1e40af;
	--n8nsc-header: #2563eb;
	--n8nsc-background: #fff;
	--n8nsc-text: #111827;
	--n8nsc-border: #e5e7eb;
	--n8nsc-input-background: #fff;
	--n8nsc-button: #2563eb;
	--n8nsc-user-background: #2563eb;
	--n8nsc-user-text: #fff;
	--n8nsc-bot-background: #f3f4f6;
	--n8nsc-bot-text: #111827;
	--n8nsc-launcher-background: #2563eb;
	--n8nsc-launcher-color: #fff;
	--n8nsc-radius: 18px;
	--n8nsc-window-width: 380px;
	--n8nsc-window-height: 620px;
	--n8nsc-mobile-height: 92dvh;
	--n8nsc-font-size: 15px;
	--n8nsc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--n8nsc-z-index: 999999;
	--n8nsc-desktop-inline-offset: 24px;
	--n8nsc-desktop-bottom-offset: 24px;
	--n8nsc-mobile-inline-offset: 16px;
	--n8nsc-mobile-bottom-offset: 16px;
	--n8nsc-inline-width: 100%;
	--n8nsc-inline-height: 620px;
	--n8nsc-launcher-size: clamp(52px, calc(var(--n8nsc-font-size) * 4), 68px);
	color: var(--n8nsc-text);
	font-family: var(--n8nsc-font-family);
	font-size: var(--n8nsc-font-size);
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	text-align: start;
	-webkit-font-smoothing: antialiased;
}

.n8nsc-chat,
.n8nsc-chat *,
.n8nsc-chat *::before,
.n8nsc-chat *::after {
	box-sizing: border-box;
}

.n8nsc-chat [hidden] {
	display: none !important;
}

.n8nsc-chat button,
.n8nsc-chat textarea,
.n8nsc-chat input {
	font: inherit;
}

.n8nsc-chat button,
.n8nsc-chat a,
.n8nsc-chat label {
	-webkit-tap-highlight-color: transparent;
}

.n8nsc-chat--popup {
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: var(--n8nsc-z-index);
}

.n8nsc-chat__launcher,
.n8nsc-chat--popup .n8nsc-chat__panel {
	pointer-events: auto;
	position: absolute;
}

.n8nsc-chat[data-n8nsc-position="right"] .n8nsc-chat__launcher,
.n8nsc-chat[data-n8nsc-position="right"] .n8nsc-chat__panel {
	left: auto;
	right: calc(var(--n8nsc-desktop-inline-offset) + env(safe-area-inset-right, 0px));
}

.n8nsc-chat[data-n8nsc-position="left"] .n8nsc-chat__launcher,
.n8nsc-chat[data-n8nsc-position="left"] .n8nsc-chat__panel {
	left: calc(var(--n8nsc-desktop-inline-offset) + env(safe-area-inset-left, 0px));
	right: auto;
}

.n8nsc-chat__launcher {
	align-items: center;
	background: var(--n8nsc-launcher-background);
	border: 0;
	border-radius: max(var(--n8nsc-radius), 50%);
	bottom: calc(var(--n8nsc-desktop-bottom-offset) + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 14px 36px rgb(15 23 42 / 24%);
	color: var(--n8nsc-launcher-color);
	cursor: pointer;
	display: inline-flex;
	height: var(--n8nsc-launcher-size);
	justify-content: center;
	margin: 0;
	min-height: 48px;
	min-width: 48px;
	padding: 0;
	transition: box-shadow 180ms ease, transform 180ms ease;
	width: var(--n8nsc-launcher-size);
}

.n8nsc-chat__launcher:hover {
	box-shadow: 0 18px 42px rgb(15 23 42 / 30%);
	transform: translateY(-2px);
}

.n8nsc-chat__launcher:active {
	transform: translateY(0) scale(.97);
}

.n8nsc-chat__launcher--pulse::before {
	animation: n8nsc-pulse 2.2s ease-out infinite;
	border: 2px solid var(--n8nsc-launcher-background);
	border-radius: inherit;
	content: "";
	inset: -1px;
	opacity: .45;
	pointer-events: none;
	position: absolute;
}

.n8nsc-chat__icon {
	fill: none;
	height: 48%;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 48%;
}

.n8nsc-chat__launcher-image {
	border-radius: calc(var(--n8nsc-radius) * .45);
	height: 52%;
	object-fit: contain;
	width: 52%;
}

.n8nsc-chat__notification-badge {
	background: #ef4444;
	border: 2px solid #fff;
	border-radius: 50%;
	height: 13px;
	inset-block-start: 2px;
	inset-inline-end: 2px;
	position: absolute;
	width: 13px;
}

.n8nsc-chat__panel {
	background: var(--n8nsc-background);
	border: 1px solid var(--n8nsc-border);
	border-radius: var(--n8nsc-radius);
	color: var(--n8nsc-text);
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
	max-width: calc(100vw - 24px);
	overflow: hidden;
	overscroll-behavior: contain;
}

.n8nsc-chat--popup .n8nsc-chat__panel {
	bottom: calc(var(--n8nsc-desktop-bottom-offset) + env(safe-area-inset-bottom, 0px) + var(--n8nsc-launcher-size) + 14px);
	height: min(var(--n8nsc-window-height), calc(100dvh - var(--n8nsc-desktop-bottom-offset) - var(--n8nsc-launcher-size) - 42px));
	min-height: min(360px, calc(100dvh - 96px));
	width: var(--n8nsc-window-width);
}

.n8nsc-chat--inline {
	margin-block: 1rem;
	max-width: 100%;
	width: var(--n8nsc-inline-width);
}

.n8nsc-chat--inline .n8nsc-chat__panel {
	height: var(--n8nsc-inline-height);
	max-height: 100dvh;
	max-width: 100%;
	min-height: min(360px, 100dvh);
	position: relative;
	width: 100%;
}

.n8nsc-chat--shadow-none .n8nsc-chat__panel {
	box-shadow: none;
}

.n8nsc-chat--shadow-light .n8nsc-chat__panel {
	box-shadow: 0 10px 28px rgb(15 23 42 / 10%);
}

.n8nsc-chat--shadow-medium .n8nsc-chat__panel {
	box-shadow: 0 18px 50px rgb(15 23 42 / 16%);
}

.n8nsc-chat--shadow-strong .n8nsc-chat__panel {
	box-shadow: 0 24px 70px rgb(15 23 42 / 24%);
}

.n8nsc-chat__header {
	align-items: center;
	background: var(--n8nsc-header);
	color: #fff;
	display: grid;
	gap: 11px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 82px;
	padding: 15px 16px;
}

.n8nsc-chat__panel[data-header-style="gradient"] .n8nsc-chat__header {
	background: linear-gradient(135deg, var(--n8nsc-primary), var(--n8nsc-secondary));
}

.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__header {
	background: var(--n8nsc-background);
	border-block-end: 1px solid var(--n8nsc-border);
	color: var(--n8nsc-text);
}

.n8nsc-chat__avatar {
	align-items: center;
	background: rgb(255 255 255 / 18%);
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	display: flex;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	position: relative;
	width: 46px;
}

.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__avatar {
	background: color-mix(in srgb, var(--n8nsc-primary) 12%, var(--n8nsc-background));
	border-color: var(--n8nsc-border);
	color: var(--n8nsc-primary);
}

.n8nsc-chat__avatar-image {
	border-radius: 50%;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.n8nsc-chat__avatar-fallback {
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.n8nsc-chat__presence {
	background: #22c55e;
	border: 2px solid var(--n8nsc-header);
	border-radius: 50%;
	block-size: 12px;
	inset-block-end: -1px;
	inset-inline-end: -1px;
	position: absolute;
	inline-size: 12px;
}

.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__presence {
	border-color: var(--n8nsc-background);
}

.n8nsc-chat__identity {
	min-width: 0;
}

.n8nsc-chat__name,
.n8nsc-chat__subtitle,
.n8nsc-chat__online-status,
.n8nsc-chat__message p,
.n8nsc-chat__empty-state p,
.n8nsc-chat__notice {
	margin: 0;
}

.n8nsc-chat__name {
	color: inherit;
	font-size: calc(var(--n8nsc-font-size) + 2px);
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n8nsc-chat__subtitle {
	font-size: calc(var(--n8nsc-font-size) - 2px);
	opacity: .78;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n8nsc-chat__online-status {
	align-items: center;
	display: flex;
	font-size: calc(var(--n8nsc-font-size) - 3px);
	gap: 5px;
	margin-block-start: 2px;
	opacity: .88;
}

.n8nsc-chat__status-dot {
	background: #4ade80;
	border-radius: 50%;
	block-size: 7px;
	flex: 0 0 7px;
	inline-size: 7px;
}

.n8nsc-chat__header-controls {
	align-items: center;
	display: flex;
	gap: 3px;
}

.n8nsc-chat__header-contacts {
	align-items: center;
	display: flex;
	gap: 3px;
}

.n8nsc-chat__header-button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 9px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	margin: 0;
	opacity: .88;
	padding: 0;
	transition: background-color 150ms ease, opacity 150ms ease;
	width: 38px;
}

.n8nsc-chat__header-button:hover {
	background: rgb(255 255 255 / 15%);
	opacity: 1;
}

.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__header-button:hover {
	background: color-mix(in srgb, var(--n8nsc-text) 8%, transparent);
}

.n8nsc-chat__header-button svg {
	fill: none;
	height: 21px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 21px;
}

.n8nsc-chat__contact {
	flex: 0 0 auto;
	overflow: visible;
	position: relative;
	text-decoration: none;
}

.n8nsc-chat__contact::after {
	background: #111827;
	border-radius: 7px;
	box-shadow: 0 8px 20px rgb(15 23 42 / 22%);
	color: #fff;
	content: attr(data-tooltip);
	font-size: 11px;
	font-weight: 600;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	line-height: 1.3;
	max-width: min(220px, calc(var(--n8nsc-window-width) - 24px));
	opacity: 0;
	overflow-wrap: anywhere;
	padding: 6px 8px;
	pointer-events: none;
	position: absolute;
	transform: translateY(-3px);
	transition: opacity 140ms ease, transform 140ms ease;
	visibility: hidden;
	white-space: normal;
	width: max-content;
	z-index: 12;
}

.n8nsc-chat__contact:hover::after,
.n8nsc-chat__contact:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.n8nsc-chat__contact--whatsapp:hover,
.n8nsc-chat__contact--whatsapp:focus-visible {
	background: #128c4f;
	color: #fff;
	opacity: 1;
}

.n8nsc-chat__contact--phone:hover,
.n8nsc-chat__contact--phone:focus-visible {
	background: rgb(255 255 255 / 22%);
	color: inherit;
	opacity: 1;
}

.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__contact--phone:hover,
.n8nsc-chat__panel[data-header-style="minimal"] .n8nsc-chat__contact--phone:focus-visible {
	background: color-mix(in srgb, var(--n8nsc-primary) 14%, transparent);
	color: var(--n8nsc-primary);
}

.n8nsc-chat__contact-icon {
	pointer-events: none;
}

.n8nsc-chat__messages {
	background:
		radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--n8nsc-primary) 6%, transparent), transparent 30%),
		var(--n8nsc-background);
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	padding: 18px 15px;
	scrollbar-color: color-mix(in srgb, var(--n8nsc-text) 22%, transparent) transparent;
	scrollbar-width: thin;
}

.n8nsc-chat__empty-state {
	align-items: center;
	color: color-mix(in srgb, var(--n8nsc-text) 58%, transparent);
	display: flex;
	font-size: calc(var(--n8nsc-font-size) - 2px);
	gap: 7px;
	justify-content: center;
	margin-block-end: 18px;
	text-align: center;
}

.n8nsc-chat__empty-icon {
	color: var(--n8nsc-primary);
	font-size: 14px;
}

.n8nsc-chat__message {
	display: flex;
	margin-block: 10px;
	max-width: min(86%, 540px);
}

.n8nsc-chat__message--bot {
	margin-inline-end: auto;
}

.n8nsc-chat__message--user {
	margin-inline-start: auto;
}

.n8nsc-chat__bubble {
	background: var(--n8nsc-bot-background);
	border-radius: calc(var(--n8nsc-radius) * .72);
	border-start-start-radius: 5px;
	color: var(--n8nsc-bot-text);
	overflow-wrap: anywhere;
	padding: 11px 13px 8px;
}

.n8nsc-chat__message--user .n8nsc-chat__bubble {
	background: var(--n8nsc-user-background);
	border-radius: calc(var(--n8nsc-radius) * .72);
	border-start-end-radius: 5px;
	color: var(--n8nsc-user-text);
}

.n8nsc-chat__bubble time {
	display: block;
	font-size: 10px;
	margin-block-start: 5px;
	opacity: .58;
	text-align: end;
}

.n8nsc-chat__typing {
	align-items: center;
	color: color-mix(in srgb, var(--n8nsc-text) 66%, transparent);
	display: flex;
	font-size: calc(var(--n8nsc-font-size) - 2px);
	gap: 8px;
	margin-block-start: 12px;
}

.n8nsc-chat__typing-dots {
	align-items: center;
	background: var(--n8nsc-bot-background);
	border-radius: 999px;
	display: inline-flex;
	gap: 3px;
	height: 30px;
	padding-inline: 10px;
}

.n8nsc-chat__typing-dots i {
	animation: n8nsc-typing 1.25s ease-in-out infinite;
	background: var(--n8nsc-bot-text);
	border-radius: 50%;
	height: 5px;
	opacity: .45;
	width: 5px;
}

.n8nsc-chat__typing-dots i:nth-child(2) {
	animation-delay: 150ms;
}

.n8nsc-chat__typing-dots i:nth-child(3) {
	animation-delay: 300ms;
}

.n8nsc-chat__selected-image {
	align-items: center;
	background: color-mix(in srgb, var(--n8nsc-primary) 5%, var(--n8nsc-background));
	border-block-start: 1px solid var(--n8nsc-border);
	display: grid;
	gap: 9px;
	grid-template-columns: 42px minmax(0, 1fr) 34px;
	padding: 8px 12px;
}

.n8nsc-chat__selected-image img {
	background: var(--n8nsc-bot-background);
	border-radius: 8px;
	height: 42px;
	object-fit: cover;
	width: 42px;
}

.n8nsc-chat__selected-image span {
	font-size: calc(var(--n8nsc-font-size) - 2px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n8nsc-chat__selected-image button {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--n8nsc-text);
	cursor: pointer;
	font-size: 22px;
	height: 34px;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.n8nsc-chat__notice {
	border-block-start: 1px solid transparent;
	font-size: calc(var(--n8nsc-font-size) - 2px);
	padding: 8px 13px;
}

.n8nsc-chat__notice--status {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.n8nsc-chat__notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.n8nsc-chat__composer {
	align-items: end;
	background: var(--n8nsc-input-background);
	border-block-start: 1px solid var(--n8nsc-border);
	display: grid;
	gap: 8px;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	padding: 10px 11px;
}

.n8nsc-chat__file-input {
	height: 1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.n8nsc-chat__attachment-button,
.n8nsc-chat__send {
	align-items: center;
	border-radius: calc(var(--n8nsc-radius) * .55);
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
}

.n8nsc-chat__attachment-button {
	background: var(--n8nsc-bot-background);
	border: 1px solid var(--n8nsc-border);
	color: var(--n8nsc-text);
	height: 44px;
	width: 42px;
}

.n8nsc-chat__attachment-button svg {
	fill: none;
	height: 21px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 21px;
}

.n8nsc-chat__textarea {
	background: var(--n8nsc-input-background);
	border: 1px solid var(--n8nsc-border);
	border-radius: calc(var(--n8nsc-radius) * .55);
	color: var(--n8nsc-text);
	display: block;
	line-height: 1.4;
	margin: 0;
	max-height: 132px;
	min-height: 44px;
	min-width: 0;
	overflow-y: auto;
	padding: 10px 12px;
	resize: none;
	width: 100%;
}

.n8nsc-chat__textarea::placeholder {
	color: color-mix(in srgb, var(--n8nsc-text) 46%, transparent);
	opacity: 1;
}

.n8nsc-chat__send {
	background: var(--n8nsc-button);
	border: 0;
	color: #fff;
	gap: 6px;
	margin: 0;
	padding: 10px 13px;
	transition: filter 150ms ease, transform 150ms ease;
}

.n8nsc-chat__send:hover {
	filter: brightness(.94);
}

.n8nsc-chat__send:active {
	transform: scale(.98);
}

.n8nsc-chat__send svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 18px;
}

.n8nsc-chat__footer {
	align-items: center;
	background: color-mix(in srgb, var(--n8nsc-background) 96%, var(--n8nsc-text));
	border-block-start: 1px solid var(--n8nsc-border);
	color: color-mix(in srgb, var(--n8nsc-text) 60%, transparent);
	display: flex;
	font-size: calc(var(--n8nsc-font-size) - 3px);
	gap: 8px;
	justify-content: space-between;
	min-height: 32px;
	padding: 6px 12px;
}

.n8nsc-chat__branding {
	align-items: center;
	display: flex;
	gap: 6px;
	min-width: 0;
}

.n8nsc-chat__branding img {
	border-radius: 4px;
	flex: 0 0 18px;
	height: 18px;
	object-fit: contain;
	width: 18px;
}

.n8nsc-chat__branding span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n8nsc-chat__footer a {
	color: inherit;
	flex: 0 0 auto;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.n8nsc-chat__launcher:focus-visible,
.n8nsc-chat__header-button:focus-visible,
.n8nsc-chat__contact:focus-visible,
.n8nsc-chat__attachment-button:focus-within,
.n8nsc-chat__textarea:focus-visible,
.n8nsc-chat__send:focus-visible,
.n8nsc-chat__selected-image button:focus-visible,
.n8nsc-chat__footer a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--n8nsc-primary) 68%, #fff);
	outline-offset: 2px;
}

.n8nsc-chat__textarea:focus-visible {
	border-color: var(--n8nsc-primary);
}

.n8nsc-chat__visually-hidden {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__panel {
	height: auto;
	min-height: 0;
}

.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__messages,
.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__selected-image,
.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__notice,
.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__composer,
.n8nsc-chat--inline[data-n8nsc-state="minimized"] .n8nsc-chat__footer {
	display: none !important;
}

@keyframes n8nsc-pulse {
	0% {
		opacity: .45;
		transform: scale(1);
	}

	75%,
	100% {
		opacity: 0;
		transform: scale(1.42);
	}
}

@keyframes n8nsc-typing {
	0%,
	60%,
	100% {
		opacity: .35;
		transform: translateY(0);
	}

	30% {
		opacity: .9;
		transform: translateY(-3px);
	}
}

@media (max-width: 782px) {
	.n8nsc-chat[data-n8nsc-device-visibility="desktop"] {
		display: none !important;
	}

	.n8nsc-chat[data-n8nsc-position="right"] .n8nsc-chat__launcher,
	.n8nsc-chat[data-n8nsc-position="right"] .n8nsc-chat__panel {
		right: calc(var(--n8nsc-mobile-inline-offset) + env(safe-area-inset-right, 0px));
	}

	.n8nsc-chat[data-n8nsc-position="left"] .n8nsc-chat__launcher,
	.n8nsc-chat[data-n8nsc-position="left"] .n8nsc-chat__panel {
		left: calc(var(--n8nsc-mobile-inline-offset) + env(safe-area-inset-left, 0px));
	}

	.n8nsc-chat__launcher {
		bottom: calc(var(--n8nsc-mobile-bottom-offset) + env(safe-area-inset-bottom, 0px));
	}

	.n8nsc-chat--popup .n8nsc-chat__panel {
		bottom: calc(var(--n8nsc-mobile-bottom-offset) + env(safe-area-inset-bottom, 0px) + var(--n8nsc-launcher-size) + 10px);
		height: min(var(--n8nsc-mobile-height), calc(100dvh - var(--n8nsc-mobile-bottom-offset) - var(--n8nsc-launcher-size) - env(safe-area-inset-bottom, 0px) - 22px));
		max-width: none;
		min-height: min(360px, calc(100dvh - 90px));
		width: min(var(--n8nsc-window-width), calc(100% - (var(--n8nsc-mobile-inline-offset) * 2) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
	}

	.n8nsc-chat__send span {
		display: none;
	}

	.n8nsc-chat__send {
		height: 44px;
		padding: 0;
		width: 44px;
	}

	.n8nsc-chat__composer {
		padding-block-end: max(10px, env(safe-area-inset-bottom, 0px));
	}

	.n8nsc-chat__contact[data-show-mobile="0"] {
		display: none;
	}
}

@media (min-width: 783px) {
	.n8nsc-chat[data-n8nsc-device-visibility="mobile"] {
		display: none !important;
	}

	.n8nsc-chat__contact[data-show-desktop="0"] {
		display: none;
	}
}

@media (max-width: 420px) {
	.n8nsc-chat--popup .n8nsc-chat__panel {
		border-radius: min(var(--n8nsc-radius), 16px);
	}

	.n8nsc-chat__header {
		gap: 7px;
		min-height: 74px;
		padding: 12px;
	}

	.n8nsc-chat__avatar {
		flex-basis: 42px;
		height: 42px;
		width: 42px;
	}

	.n8nsc-chat__name {
		font-size: calc(var(--n8nsc-font-size) + 1px);
	}

	.n8nsc-chat__header-controls,
	.n8nsc-chat__header-contacts {
		gap: 1px;
	}

	.n8nsc-chat__header-button {
		height: 36px;
		width: 36px;
	}

	.n8nsc-chat__messages {
		padding: 14px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.n8nsc-chat *,
	.n8nsc-chat *::before,
	.n8nsc-chat *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
