.ben-assistant {
	--ben-green: #10b981;
	--ben-green-dark: #047857;
	--ben-ink: #102018;
	--ben-muted: #647066;
	--ben-line: #dce9e2;
	--ben-bg: #f5fbf7;
	--ben-header: #111827;
	color: var(--ben-ink);
	font-family: "Aptos", "Segoe UI", sans-serif;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	pointer-events: none;
}

.ben-launcher,
.ben-card,
.ben-backdrop {
	pointer-events: auto;
}

.ben-assistant [hidden] {
	display: none !important;
}

.ben-launcher {
	position: relative;
	z-index: 3;
}

.ben-launcher {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 999px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	color: #0f172a;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 800;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.ben-launcher:hover,
.ben-launcher:focus-visible {
	border-color: rgba(16, 185, 129, 0.42);
	box-shadow: 0 22px 52px rgba(6, 78, 59, 0.24);
	transform: translateY(-2px);
}

.ben-launcher__ai {
	align-items: center;
	background: #0f172a;
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.75rem;
	height: 30px;
	justify-content: center;
	letter-spacing: 0.04em;
	width: 30px;
}

.ben-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.28);
	backdrop-filter: blur(3px);
	z-index: 1;
}

.ben-card {
	position: fixed;
	right: 22px;
	bottom: 84px;
	width: min(430px, calc(100vw - 28px));
	max-height: min(720px, calc(100svh - 112px));
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--ben-line);
	border-radius: 16px;
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
	overflow: hidden;
	animation: ben-open 190ms ease-out;
	z-index: 2;
}

@keyframes ben-open {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ben-header {
	align-items: center;
	background: var(--ben-header);
	border-bottom: 0;
	color: #ffffff;
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr;
	min-height: 72px;
	padding: 13px 112px 13px 14px;
	position: relative;
}

.ben-reset {
	position: absolute;
	top: 13px;
	right: 52px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e5e7eb;
	cursor: pointer;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1;
	padding: 9px 10px;
}

.ben-reset:hover,
.ben-reset:focus-visible {
	border-color: rgba(255, 255, 255, 0.52);
	color: #ffffff;
}

.ben-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	font-size: 1.45rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ben-close:hover,
.ben-close:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.ben-avatar {
	align-items: center;
	background: var(--ben-green);
	border-radius: 18px;
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.ben-kicker {
	color: #d1d5db;
	font-size: 0.84rem;
	letter-spacing: 0;
	margin: 1px 0 0;
	text-transform: none;
}

.ben-header h2 {
	font-size: 1.12rem;
	line-height: 1.15;
	margin: 0;
}

.ben-service-choices,
.ben-quick-replies {
	align-self: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
	padding: 2px 0 4px;
}

.ben-quick-replies {
	animation: ben-replies-in 180ms ease-out;
}

@keyframes ben-replies-in {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ben-progress {
	background: #d9f4e9;
	bottom: 0;
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
}

.ben-progress span {
	background: var(--ben-green);
	display: block;
	height: 100%;
	transition: width 220ms ease;
	width: 10%;
}

.ben-messages {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-height: 220px;
	padding: 16px 18px 22px;
}

.ben-scroll {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	padding-bottom: 8px;
	scroll-padding-bottom: 32px;
}

.ben-message {
	border-radius: 17px;
	font-size: 0.92rem;
	line-height: 1.5;
	max-width: 82%;
	padding: 11px 13px;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: pre-wrap;
}

.ben-message.is-agent {
	align-self: flex-start;
	background: #f3f6f8;
	border: 1px solid #e6edf0;
}

.ben-message.is-user {
	align-self: flex-end;
	background: var(--ben-green);
	color: #fff;
}

.ben-message.is-typing {
	align-items: center;
	display: inline-flex;
	gap: 5px;
	min-height: 40px;
	width: fit-content;
}

.ben-message.is-typing span {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--ben-green);
	animation: ben-typing 1s ease-in-out infinite;
}

.ben-message.is-typing span:nth-child(2) {
	animation-delay: 120ms;
}

.ben-message.is-typing span:nth-child(3) {
	animation-delay: 240ms;
}

@keyframes ben-typing {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

.ben-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 14px 12px;
}

.ben-chip,
.ben-secondary,
.ben-link {
	background: #fff;
	border: 1px solid var(--ben-line);
	border-radius: 999px;
	color: var(--ben-ink);
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
	padding: 8px 11px;
}

.ben-chip:hover,
.ben-secondary:hover,
.ben-link:hover {
	border-color: var(--ben-green);
	color: var(--ben-green-dark);
}

.ben-chip {
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.ben-input {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
	padding: 12px 18px 10px;
	border-top: 1px solid #e5edf0;
	background: #ffffff;
}

.ben-input input {
	background: #fff;
	border: 1px solid #d9e2e7;
	border-radius: 13px;
	font: inherit;
	font-size: 0.95rem;
	min-width: 0;
	padding: 11px 12px;
	min-height: 46px;
}

.ben-input button,
.ben-primary {
	background: var(--ben-green);
	border: 0;
	border-radius: 16px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	min-width: 52px;
	min-height: 46px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ben-footer-note {
	color: #6b7280;
	font-size: 0.73rem;
	line-height: 1.35;
	margin: 0;
	padding: 0 18px 14px;
}

.ben-input button:hover,
.ben-primary:hover {
	background: var(--ben-green-dark);
}

.ben-input button span {
	font-size: 1.1rem;
	line-height: 1;
}

.ben-actions {
	display: flex;
	gap: 10px;
	padding: 0 14px 14px;
}

.ben-link {
	background: transparent;
	padding: 8px 0;
}

.ben-summary {
	padding: 0;
	min-width: 0;
}

.ben-summary-card {
	background: #fff;
	border: 1px solid var(--ben-line);
	border-radius: 18px;
	padding: 14px;
	overflow-wrap: anywhere;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ben-handoff-card {
	background: #ffffff;
}

.ben-handoff-copy {
	color: var(--ben-muted);
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0 0 12px;
}

.ben-summary-card h3 {
	font-size: 1.04rem;
	line-height: 1.3;
	margin: 0 0 10px;
}

.ben-row {
	align-items: center;
	border-top: 1px solid #edf4ef;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
}

.ben-row span,
.ben-row strong {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ben-row span,
.ben-note,
.ben-warning,
.ben-loading {
	color: var(--ben-muted);
}

.ben-warning {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 14px;
	color: #9a3412;
	padding: 10px;
}

.ben-note {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 14px;
	padding: 10px;
}

.ben-next-note {
	color: var(--ben-muted);
	font-size: 0.82rem;
	line-height: 1.45;
	margin: 10px 0 0;
}

.ben-summary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.ben-summary-actions button {
	min-width: 0;
}

.ben-messages,
.ben-summary {
	min-width: 0;
}

.ben-waitlist-form-wrap {
	align-self: stretch;
	max-width: 100%;
}

.ben-waitlist-form {
	background: #fff;
	border: 1px solid var(--ben-line);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	display: grid;
	gap: 10px;
	padding: 14px;
}

.ben-waitlist-form label {
	display: grid;
	gap: 6px;
}

.ben-waitlist-form label span {
	color: var(--ben-muted);
	font-size: 0.78rem;
	font-weight: 800;
}

.ben-waitlist-form input {
	background: #fff;
	border: 1px solid var(--ben-line);
	border-radius: 14px;
	font: inherit;
	min-height: 42px;
	padding: 9px 11px;
}

.ben-waitlist-error {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 12px;
	color: #9f1239;
	font-size: 0.82rem;
	padding: 9px;
}

.ben-waitlist-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 14px;
	color: var(--ben-green-dark);
	font-weight: 800;
	line-height: 1.4;
	padding: 12px;
}

.ben-secondary {
	border-radius: 16px;
}

@media (max-width: 560px) {
	.ben-assistant {
		right: 12px;
		bottom: 12px;
	}

	.ben-launcher {
		max-width: calc(100vw - 24px);
	}

	.ben-card {
		right: 12px;
		left: 12px;
		bottom: 76px;
		width: auto;
		max-height: calc(100svh - 92px);
		border-radius: 20px;
	}

	.ben-messages {
		min-height: 180px;
	}

	.ben-message {
		max-width: 92%;
	}

	.ben-summary-actions,
	.ben-summary-actions button {
		width: 100%;
	}
}
