/**
 * Attendant chatbot — dark theme skin.
 * Overrides the plugin's own stylesheet from the theme so plugin updates keep working.
 */

:root {
	--attendant-color: var(--va-orange, #ed7d31);
	--attendant-bg: #141414;
	--attendant-border: #2a2a2a;
	--attendant-bot-bubble: #242424;
	--attendant-bot-text: #f5f5f5;
	--attendant-launcher-size: 56px;
	--attendant-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------------------
 * Panel
 * ------------------------------------------------------------------ */

.attendant-widget {
	font-family: var(--va-font-body, "Inter", system-ui, sans-serif);
	color: var(--attendant-bot-text);
	border-color: #2a2a2a;
}

.attendant-widget__header {
	padding: 16px 18px;
	background: var(--va-orange, #ed7d31);
}

.attendant-widget__title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.attendant-widget__messages {
	padding: 18px 14px;
	background: #141414;
	gap: 12px;
}

.attendant-widget__messages::-webkit-scrollbar-thumb {
	background: #373737;
}

/* ---------------------------------------------------------------------
 * Messages
 * ------------------------------------------------------------------ */

.attendant-msg__bubble {
	padding: 11px 15px;
	font-size: 14px;
	line-height: 1.55;
}

.attendant-msg--bot .attendant-msg__bubble,
.attendant-msg--agent .attendant-msg__bubble {
	background: #242424;
	color: #f5f5f5;
	border: 1px solid #2f2f2f;
}

.attendant-msg--user .attendant-msg__bubble {
	background: var(--va-orange, #ed7d31);
	color: #ffffff;
}

.attendant-msg__bubble strong {
	color: #ffffff;
}

.attendant-msg__bubble a {
	color: var(--va-orange, #ed7d31);
}

.attendant-msg--typing .attendant-msg__bubble span {
	background: var(--va-orange, #ed7d31);
}

.attendant-divider {
	color: rgba(255, 255, 255, 0.55);
}

.attendant-divider::before,
.attendant-divider::after {
	background: #2a2a2a;
}

/* ---------------------------------------------------------------------
 * Quick-reply chips + source links
 * ------------------------------------------------------------------ */

.attendant-chip {
	padding: 7px 14px;
	background: rgba(237, 125, 49, 0.08);
	border: 1px solid rgba(237, 125, 49, 0.55);
	color: var(--va-orange, #ed7d31);
	font-weight: 500;
}

.attendant-chip:hover,
.attendant-chip:focus-visible {
	background: var(--va-orange, #ed7d31);
	border-color: var(--va-orange, #ed7d31);
	color: #ffffff;
}

.attendant-msg__sources a {
	background: rgba(237, 125, 49, 0.1);
	border-color: rgba(237, 125, 49, 0.35);
	color: var(--va-orange, #ed7d31);
}

.attendant-msg__sources a:hover {
	background: rgba(237, 125, 49, 0.2);
}

/* ---------------------------------------------------------------------
 * Input row
 * ------------------------------------------------------------------ */

.attendant-widget__footer {
	align-items: center;
	padding: 12px 14px;
	background: #141414;
	border-top: 1px solid #2a2a2a;
}

.attendant-widget__input {
	min-height: 40px;
	padding: 9px 16px;
	background: #1c1c1c;
	border: 1px solid #373737;
	border-radius: 999px;
	color: #ffffff;
}

.attendant-widget__input::placeholder {
	color: #8c8c8c;
}

.attendant-widget__input:focus {
	border-color: var(--va-orange, #ed7d31);
}

.attendant-widget__send {
	width: 40px;
	height: 40px;
}

.attendant-widget__send:hover:not(:disabled) {
	filter: none;
	background: var(--va-orange-hover, #d96d24);
}

/* ---------------------------------------------------------------------
 * History list + human hand-over
 * ------------------------------------------------------------------ */

.attendant-widget__history {
	background: #141414;
}

.attendant-widget__history-head,
.attendant-history-item {
	color: #f5f5f5;
	border-color: #2a2a2a;
}

.attendant-history-item:hover,
.attendant-history-item.is-current {
	background: #1f1f1f;
}

.attendant-history-empty,
.attendant-history-item__meta {
	color: #8c8c8c;
}

.attendant-human-offer {
	background: #1c1c1c;
	border-color: #2a2a2a;
}

.attendant-human-offer__note {
	color: #bfbfbf;
}
