.nvc-chat {
	--nvc-primary: #0f766e;
	--nvc-ink: #111827;
	--nvc-muted: #64748b;
	--nvc-line: #e2e8f0;
	--nvc-surface: #ffffff;
	--nvc-soft: #f8fafc;
	--nvc-admin-bubble: #111827;
	--nvc-visitor-bubble: #ffffff;
	--nvc-text: #111827;
	box-sizing: border-box;
	width: min(100%, 760px);
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--nvc-line);
	border-radius: 24px;
	background: var(--nvc-soft);
	color: var(--nvc-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

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

.nvc-chat__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px;
	background: #ffffff;
	border-bottom: 1px solid var(--nvc-line);
}

.nvc-chat__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.nvc-chat__avatar {
	display: grid;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 16px;
	background: var(--nvc-primary);
	color: #ffffff;
	font-weight: 800;
}

.nvc-chat__eyebrow,
.nvc-chat__intro p {
	margin: 0;
}

.nvc-chat__eyebrow {
	color: var(--nvc-muted);
	font-size: 13px;
	font-weight: 700;
}

.nvc-chat__title {
	margin: 2px 0 0;
	font-size: 20px;
	line-height: 1.2;
}

.nvc-chat__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 8px 10px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	font-size: 13px;
	font-weight: 800;
}

.nvc-chat__status span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
}

.nvc-chat__status--offline {
	background: #fff7ed;
	color: #c2410c;
}

.nvc-chat__intro {
	display: grid;
	gap: 8px;
	padding: 18px;
	color: #334155;
	font-size: 15px;
	line-height: 1.6;
}

.nvc-chat__contact {
	display: grid;
	gap: 12px;
	margin: 0 18px 18px;
	padding: 16px;
	border: 1px solid var(--nvc-line);
	border-radius: 18px;
	background: #ffffff;
}

.nvc-chat__contact h3 {
	margin: 0;
	font-size: 17px;
}

.nvc-chat__contact label {
	display: grid;
	gap: 6px;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
}

.nvc-chat__contact input,
.nvc-chat__composer textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	background: #ffffff;
	color: var(--nvc-ink);
	font: inherit;
}

.nvc-chat__contact input {
	min-height: 46px;
	padding: 10px 12px;
}

.nvc-chat__contact input:focus,
.nvc-chat__composer textarea:focus,
.nvc-chat__button:focus,
.nvc-chat__icon-button:focus {
	outline: 3px solid rgba(15, 118, 110, 0.24);
	outline-offset: 2px;
}

.nvc-chat__consent {
	grid-template-columns: 18px 1fr;
	align-items: start;
	font-weight: 600;
}

.nvc-chat__consent input {
	min-height: auto;
	margin-top: 2px;
}

.nvc-chat__honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nvc-chat__messages {
	display: grid;
	gap: 12px;
	min-height: 180px;
	max-height: 420px;
	overflow: auto;
	padding: 18px;
}

.nvc-chat__bubble {
	max-width: 84%;
	padding: 12px 14px;
	border-radius: 18px;
	font-size: 15px;
	line-height: 1.5;
}

.nvc-chat__bubble--admin {
	justify-self: start;
	border-bottom-left-radius: 6px;
	background: var(--nvc-ink);
	background: var(--nvc-admin-bubble);
	color: #ffffff;
}

.nvc-chat__bubble--visitor {
	justify-self: end;
	border: 1px solid var(--nvc-line);
	border-bottom-right-radius: 6px;
	background: var(--nvc-visitor-bubble);
}

.nvc-chat__composer {
	position: sticky;
	bottom: 0;
	display: grid;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid var(--nvc-line);
	background: rgba(255, 255, 255, 0.96);
}

.nvc-chat__notice {
	margin: 0 18px 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #eef2ff;
	color: #3730a3;
	font-size: 14px;
	font-weight: 700;
}

.nvc-chat__notice[data-nvc-notice-type="success"] {
	background: #ecfdf5;
	color: #047857;
}

.nvc-chat__notice[data-nvc-notice-type="error"] {
	background: #fef2f2;
	color: #b91c1c;
}

.nvc-chat__composer[hidden],
.nvc-chat__notice[hidden] {
	display: none;
}

.nvc-chat__composer[data-nvc-sending="1"] {
	opacity: 0.7;
}

.nvc-chat__button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.nvc-chat__composer textarea {
	min-height: 48px;
	max-height: 132px;
	padding: 12px 14px;
	resize: vertical;
}

.nvc-chat__audio-panel,
.nvc-chat__image-panel,
.nvc-chat__video-panel {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--nvc-line);
	border-radius: 14px;
	background: #f8fafc;
}

.nvc-chat__audio-panel[hidden],
.nvc-chat__image-panel[hidden],
.nvc-chat__video-panel[hidden] {
	display: none;
}

.nvc-chat__audio-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: #334155;
	font-size: 13px;
}

.nvc-chat__audio-status span {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.nvc-chat__audio-panel audio,
.nvc-chat__bubble audio {
	width: 100%;
	min-width: 220px;
}

.nvc-chat__audio-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nvc-chat__image-panel img {
	display: block;
	width: 100%;
	max-height: 180px;
	object-fit: cover;
	border-radius: 12px;
}

.nvc-chat__image-panel div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.nvc-chat__image-panel strong {
	overflow: hidden;
	color: #334155;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nvc-chat__video-panel label {
	color: #334155;
	font-size: 13px;
	font-weight: 800;
}

.nvc-chat__video-panel div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.nvc-chat__video-panel input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	font: inherit;
}

.nvc-chat__bubble a {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.nvc-chat__bubble img {
	display: block;
	width: min(100%, 280px);
	max-height: 260px;
	object-fit: cover;
	border-radius: 14px;
}

.nvc-chat__tools {
	display: grid;
	grid-template-columns: repeat(3, 44px) 1fr;
	gap: 8px;
}

.nvc-chat__button,
.nvc-chat__icon-button {
	min-height: 44px;
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
}

.nvc-chat__button--primary,
.nvc-chat__button--send {
	background: var(--nvc-primary);
	color: #ffffff;
}

.nvc-chat__icon-button {
	background: #eef2f7;
	color: var(--nvc-ink);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 640px) {
	.nvc-chat {
		width: 100%;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.nvc-chat__header {
		align-items: flex-start;
	}

	.nvc-chat__title {
		font-size: 18px;
	}

	.nvc-chat__status {
		padding: 7px 9px;
	}

	.nvc-chat__tools {
		grid-template-columns: repeat(3, 42px) 1fr;
	}

	.nvc-chat__image-panel div,
	.nvc-chat__video-panel div {
		grid-template-columns: 1fr;
	}
}
