.ebc-chatbot-barti {
	--chatbot-barti-accent: #c82032;
	--chatbot-barti-accent-dark: #9f1727;
	--chatbot-barti-launcher-border: #d9dee7;
	--chatbot-barti-launcher-border-width: 1px;
	--chatbot-barti-option-hover-border: #d9dee7;
	--chatbot-barti-option-hover-rgb: 217, 222, 231;
	--chatbot-barti-header-icon-border-width: 0.5px;
	--chatbot-barti-text: #1f2933;
	--chatbot-barti-muted: #5f6b7a;
	--chatbot-barti-surface: #ffffff;
	--chatbot-barti-panel: #f7f5ef;
	border: 0;
	bottom: 24px;
	box-sizing: border-box;
	font-family: inherit;
	position: fixed;
	right: 24px;
	z-index: 99999;
}

.ebc-chatbot-barti *,
.ebc-chatbot-barti *::before,
.ebc-chatbot-barti *::after {
	box-sizing: border-box;
}

.ebc-chatbot-barti__launcher {
	align-items: center;
	appearance: none;
	-webkit-appearance: none;
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	height: 72px;
	justify-content: center;
	outline: 0;
	padding: 0;
	position: relative;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
	width: 72px;
	z-index: 1;
}

.ebc-chatbot-barti__launcher::after {
	border: var(--chatbot-barti-launcher-border-width) solid var(--chatbot-barti-launcher-border);
	border-radius: 999px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.ebc-chatbot-barti.has-pulse-animation:not(.is-open) .ebc-chatbot-barti__launcher::before {
	animation: ebc-chatbot-barti-pulse 2.4s infinite ease-out;
	background: var(--chatbot-barti-launcher-border);
	border-radius: 999px;
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.ebc-chatbot-barti.has-breathing-animation:not(.is-open) .ebc-chatbot-barti__launcher {
	animation: ebc-chatbot-barti-breathe 3.2s infinite ease-in-out;
}

.ebc-chatbot-barti__launcher:hover,
.ebc-chatbot-barti__launcher:focus-visible {
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32), 0 0 0 4px rgba(200, 32, 50, 0.18);
	transform: translateY(-2px);
}

.ebc-chatbot-barti__close:focus-visible,
.ebc-chatbot-barti__reset:focus-visible,
.ebc-chatbot-barti__option:focus-visible {
	outline: 3px solid rgba(200, 32, 50, 0.28);
	outline-offset: 3px;
}

.ebc-chatbot-barti__launcher-icon {
	border: 0;
	border-radius: 999px;
	display: block;
	height: calc(100% - 10px);
	object-fit: cover;
	position: relative;
	width: calc(100% - 10px);
	z-index: 1;
}

.ebc-chatbot-barti__launcher-fallback {
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.ebc-chatbot-barti__window {
	background: var(--chatbot-barti-surface);
	border: 1px solid #d9dee7;
	border-radius: 8px;
	bottom: 88px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
	display: none;
	max-height: min(620px, calc(100vh - 130px));
	overflow: hidden;
	position: absolute;
	right: 0;
	width: min(380px, calc(100vw - 32px));
}

.ebc-chatbot-barti.is-open .ebc-chatbot-barti__window {
	display: flex;
	flex-direction: column;
}

.ebc-chatbot-barti__header {
	align-items: center;
	background: #000000;
	color: #ffffff;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	min-height: 56px;
	padding: 10px 14px;
}

.ebc-chatbot-barti__header-content {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.ebc-chatbot-barti__header-icon {
	border: var(--chatbot-barti-header-icon-border-width) solid var(--chatbot-barti-launcher-border);
	border-radius: 999px;
	display: block;
	flex: 0 0 auto;
	height: 36px;
	object-fit: cover;
	width: 36px;
}

.ebc-chatbot-barti__header-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ebc-chatbot-barti__header-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ebc-chatbot-barti__header-subtitle {
	color: var(--chatbot-barti-launcher-border);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ebc-chatbot-barti__close {
	align-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 22px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 36px;
}

.ebc-chatbot-barti__close svg {
	display: block;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 18px;
}

.ebc-chatbot-barti__messages {
	background: var(--chatbot-barti-panel);
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-height: 230px;
	overflow-y: auto;
	padding: 18px;
}

.ebc-chatbot-barti__message {
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	font-size: 14px;
	line-height: 1.45;
	max-width: 82%;
	padding: 10px 13px;
	position: relative;
	white-space: pre-wrap;
	word-break: break-word;
}

.ebc-chatbot-barti__message--bot {
	align-self: flex-start;
	background: #ffffff;
	border: 1px solid #d9dee7;
	color: var(--chatbot-barti-text);
	margin-right: auto;
	border-bottom-left-radius: 5px;
}

.ebc-chatbot-barti__message--user {
	align-self: flex-end;
	background: var(--chatbot-barti-launcher-border);
	color: #ffffff;
	margin-left: auto;
	border-bottom-right-radius: 5px;
}

.ebc-chatbot-barti__message a {
	color: var(--chatbot-barti-launcher-border);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ebc-chatbot-barti__message--user a {
	color: #ffffff;
}

.ebc-chatbot-barti__message-button {
	background: var(--chatbot-barti-launcher-border);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 8px;
	padding: 9px 13px;
	text-align: center;
}

.ebc-chatbot-barti__message-button:hover,
.ebc-chatbot-barti__message-button:focus-visible {
	filter: brightness(0.94);
}

.ebc-chatbot-barti__message--user .ebc-chatbot-barti__message-button {
	background: #ffffff;
	color: var(--chatbot-barti-launcher-border);
}

.ebc-chatbot-barti__message--typing {
	min-width: 58px;
	padding-bottom: 13px;
	padding-top: 13px;
}

.ebc-chatbot-barti__message--container {
	max-width: 100%;
	width: 100%;
}

.ebc-chatbot-barti__custom-container {
	width: 100%;
}

.ebc-chatbot-barti__typing-dots {
	align-items: center;
	display: flex;
	gap: 4px;
	height: 12px;
}

.ebc-chatbot-barti__typing-dots span {
	animation: ebc-chatbot-barti-typing 1s infinite ease-in-out;
	background: #8b98a8;
	border-radius: 999px;
	display: block;
	height: 7px;
	width: 7px;
}

.ebc-chatbot-barti__typing-dots span:nth-child(2) {
	animation-delay: 150ms;
}

.ebc-chatbot-barti__typing-dots span:nth-child(3) {
	animation-delay: 300ms;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ebc-chatbot-barti__options {
	background: #ffffff;
	border-top: 1px solid #d9dee7;
	display: grid;
	gap: 8px;
	max-height: 220px;
	overflow-y: auto;
	padding: 12px;
}

.ebc-chatbot-barti__option,
.ebc-chatbot-barti__reset {
	background: #f8fafc;
	border: 1px solid #d9dee7;
	border-radius: 999px;
	color: var(--chatbot-barti-text);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	padding: 10px 13px;
	text-align: left;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
	width: 100%;
}

.ebc-chatbot-barti__option:hover,
.ebc-chatbot-barti__reset:hover {
	background: rgba(var(--chatbot-barti-option-hover-rgb), 0.14);
	border-color: var(--chatbot-barti-option-hover-border);
	color: var(--chatbot-barti-text);
}

.ebc-chatbot-barti__option:disabled,
.ebc-chatbot-barti__reset:disabled {
	cursor: wait;
	opacity: 0.58;
}

.ebc-chatbot-barti__reset {
	color: var(--chatbot-barti-muted);
	text-align: center;
}

@keyframes ebc-chatbot-barti-typing {
	0%,
	80%,
	100% {
		opacity: 0.36;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

@keyframes ebc-chatbot-barti-pulse {
	0% {
		opacity: 0.26;
		transform: scale(1);
	}

	70% {
		opacity: 0;
		transform: scale(1.75);
	}

	100% {
		opacity: 0;
		transform: scale(1.75);
	}
}

@keyframes ebc-chatbot-barti-breathe {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.08);
	}
}

@media (max-width: 480px) {
	.ebc-chatbot-barti {
		bottom: 16px;
		right: 16px;
	}

	.ebc-chatbot-barti__launcher {
		height: 64px;
		width: 64px;
	}

	.ebc-chatbot-barti__window {
		bottom: 78px;
		max-height: calc(100vh - 110px);
		width: calc(100vw - 32px);
	}
}
