@charset "UTF-8";

/**
 * Scioto Vending Virtual Assistant
 *
 * Application theme and layout for digitist.UI.Assistant.
 * Structural classes use the df-assistant namespace because the component
 * behavior is owned by Digitist Framework.
 */

.df-assistant {
	--df-assistant-primary: var(--color-primary);
	--df-assistant-primary-hover: var(--color-primary-hover);
	--df-assistant-primary-soft: var(--color-primary-soft);

	--df-assistant-silver: var(--color-silver);

	--df-assistant-heading: var(--color-heading);
	--df-assistant-text: var(--color-text);
	--df-assistant-text-light: var(--color-text-light);

	--df-assistant-border: var(--color-border);
	--df-assistant-surface: var(--color-white);
	--df-assistant-surface-muted: var(--color-bg-soft);

	--df-assistant-shadow:
		0 24px 60px rgba(15, 36, 59, 0.2),
		0 8px 24px rgba(15, 36, 59, 0.12);

	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1050;
	font-family: inherit;
}

.df-assistant-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 10px 18px 10px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--df-assistant-primary);
	color: var(--color-white);
	box-shadow: 0 12px 30px rgba(0, 69, 142, 0.3);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

.df-assistant-launcher:hover {
	background: var(--df-assistant-primary-hover);
	box-shadow: 0 16px 34px rgba(0, 69, 142, 0.36);
	transform: translateY(-2px);
}

.df-assistant-launcher:focus-visible,
.df-assistant-close:focus-visible,
.df-assistant-quick-action:focus-visible,
.df-assistant-send:focus-visible,
.df-assistant-input:focus-visible {
	outline: 2px solid var(--df-assistant-primary);
	outline-offset: 3px;
}

.df-assistant-launcher-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--color-white);
}

.df-assistant-launcher-icon svg {
	width: 24px;
	height: 24px;
}

.df-assistant-launcher-label {
	white-space: nowrap;
}

.df-assistant-panel {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	height: min(560px, calc(100vh - 48px));
	overflow: hidden;
	border: 1px solid rgba(17, 46, 78, 0.12);
	border-radius: 22px;
	background: var(--df-assistant-surface);
	box-shadow: var(--df-assistant-shadow);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transform-origin: bottom right;
	pointer-events: none;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.df-assistant-panel[hidden] {
	display: none;
}

.df-assistant.is-open .df-assistant-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.df-assistant.is-open .df-assistant-launcher {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.df-assistant-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 82px;
	padding: 18px 18px 16px;
	background:
		linear-gradient(
			135deg,
			var(--df-assistant-primary) 0%,
			var(--df-assistant-primary-hover) 100%
		);
	color: var(--color-white);
}

.df-assistant-header-identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.df-assistant-header-copy {
	min-width: 0;
}

.df-assistant-avatar {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
	background: var(--color-white);
	color: var(--df-assistant-primary);
	box-shadow: 0 4px 12px rgba(15, 36, 59, 0.14);
}

.df-assistant-avatar svg {
	width: 25px;
	height: 25px;
}

.df-assistant-title {
	margin: 0;
	color: inherit;
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.25;
}

.df-assistant-status {
	margin: 3px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.78rem;
	line-height: 1.35;
}

.df-assistant-close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	cursor: pointer;
	transition:
		background-color 140ms ease,
		border-color 140ms ease;
}

.df-assistant-close:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.2);
}

.df-assistant-close svg {
	width: 20px;
	height: 20px;
}

.df-assistant-conversation {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 20px 18px;
	background:
		linear-gradient(
			180deg,
			var(--color-white) 0%,
			var(--df-assistant-surface-muted) 100%
		);
	scrollbar-width: thin;
	scrollbar-color: #b8c3d0 transparent;
}

.df-assistant-message {
	display: flex;
	margin-bottom: 14px;
}

.df-assistant-message-bot {
	justify-content: flex-start;
}

.df-assistant-message-user {
	justify-content: flex-end;
}

.df-assistant-message-bubble {
	max-width: 86%;
	padding: 12px 14px;
	border-radius: 16px;
	font-size: 0.91rem;
	line-height: 1.5;
}

.df-assistant-message-bubble p {
	margin: 0;
}

.df-assistant-message-bot .df-assistant-message-bubble {
	border: 1px solid var(--df-assistant-border);
	border-bottom-left-radius: 5px;
	background: var(--df-assistant-surface);
	color: var(--df-assistant-text);
	box-shadow: 0 4px 12px rgba(27, 50, 76, 0.06);
}

.df-assistant-message-user .df-assistant-message-bubble {
	border-bottom-right-radius: 5px;
	background: var(--df-assistant-primary);
	color: var(--color-white);
}

.df-assistant-quick-actions {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.df-assistant-quick-action {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #cbd7e4;
	border-left: 4px solid var(--df-assistant-silver);
	border-radius: 11px;
	background: var(--df-assistant-surface);
	color: var(--df-assistant-primary);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 650;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 140ms ease,
		background-color 140ms ease,
		color 140ms ease,
		transform 140ms ease;
}

.df-assistant-quick-action:hover {
	border-color: var(--df-assistant-primary);
	border-left-color: var(--df-assistant-primary);
	background: var(--df-assistant-primary-soft);
	color: var(--df-assistant-primary-hover);
	transform: translateX(2px);
}

.df-assistant-composer {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 13px 14px;
	border-top: 1px solid var(--df-assistant-border);
	background: var(--df-assistant-surface);
}

.df-assistant-input {
	flex: 1 1 auto;
	min-height: 44px;
	max-height: 116px;
	resize: none;
	overflow-y: auto;
	padding: 11px 13px;
	border: 1px solid #cbd5e0;
	border-radius: 13px;
	background: var(--color-white);
	color: var(--df-assistant-text);
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.4;
}

.df-assistant-input::placeholder {
	color: var(--df-assistant-text-light);
}

.df-assistant-input:focus {
	border-color: var(--df-assistant-primary);
	box-shadow: 0 0 0 3px rgba(0, 69, 142, 0.1);
	outline: none;
}

.df-assistant-send {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 13px;
	background: var(--df-assistant-primary);
	color: var(--color-white);
	cursor: pointer;
	box-shadow: 0 5px 12px rgba(0, 69, 142, 0.2);
	transition:
		background-color 140ms ease,
		transform 140ms ease;
}

.df-assistant-send:hover {
	background: var(--df-assistant-primary-hover);
	transform: translateY(-1px);
}

.df-assistant-send svg {
	width: 21px;
	height: 21px;
}

.df-assistant-footer {
	padding: 7px 14px 9px;
	background: var(--df-assistant-surface);
	color: var(--df-assistant-text-light);
	font-size: 0.68rem;
	line-height: 1.3;
	text-align: center;
}

@media (max-width: 575.98px) {
	.df-assistant {
		right: 14px;
		bottom: 14px;
	}

	.df-assistant-launcher {
		min-height: 54px;
		padding-right: 14px;
	}

	.df-assistant-panel {
		position: fixed;
		inset: 10px;
		width: auto;
		height: auto;
		max-width: none;
		border-radius: 18px;
		transform-origin: bottom center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.df-assistant-launcher,
	.df-assistant-panel,
	.df-assistant-close,
	.df-assistant-quick-action,
	.df-assistant-send {
		transition: none;
	}
}

.df-assistant-message-link {
	color: var(--df-assistant-primary);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.df-assistant-message-link:hover {
	color: var(--df-assistant-primary-hover);
}

.df-assistant-message-link:focus-visible {
	border-radius: 3px;
	outline: 2px solid var(--df-assistant-primary);
	outline-offset: 2px;
}

.df-assistant-header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.df-assistant-restart,
.df-assistant-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		opacity 0.15s ease;
}

.df-assistant-restart:hover,
.df-assistant-close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.df-assistant-restart:focus-visible,
.df-assistant-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.df-assistant-restart svg,
.df-assistant-close svg {
	width: 1.1rem;
	height: 1.1rem;
}

