.bulgaro-chatbot {
	--bulgaro-accent: #12395c;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: #1d2430;
}

.bulgaro-chatbot,
.bulgaro-chatbot * {
	box-sizing: border-box;
}

.bulgaro-chatbot button,
.bulgaro-chatbot textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

:where(.bulgaro-chatbot button) {
	appearance: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
	color: inherit;
}

.bulgaro-chatbot {
	--bulgaro-size: 58px;
	--bulgaro-lift: 0px;
	--bulgaro-offset: 0px;
	--bulgaro-offset-x: 0px;
}

.bulgaro-launcher {
	position: fixed;
	bottom: calc(20px + var(--bulgaro-offset) + var(--bulgaro-lift));
	z-index: 100000;
	width: var(--bulgaro-size);
	height: var(--bulgaro-size);
	border-radius: 50%;
	background: var(--bulgaro-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(8, 20, 40, 0.28);
}

.bulgaro-chatbot.is-left .bulgaro-launcher,
.bulgaro-chatbot.is-left .bulgaro-panel-wrap {
	left: calc(20px + var(--bulgaro-offset-x));
	right: auto;
}

.bulgaro-chatbot.is-right .bulgaro-launcher,
.bulgaro-chatbot.is-right .bulgaro-panel-wrap {
	right: calc(20px + var(--bulgaro-offset-x));
	left: auto;
}

.bulgaro-launcher svg:not(.bulgaro-robot) {
	width: calc(var(--bulgaro-size) * 0.48);
	height: calc(var(--bulgaro-size) * 0.48);
}

.bulgaro-chatbot.is-shape-square .bulgaro-launcher {
	border-radius: calc(var(--bulgaro-size) * 0.26);
}

.bulgaro-chatbot.is-shape-robot .bulgaro-launcher {
	background: transparent;
	color: var(--bulgaro-accent);
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 8px 12px rgba(8, 20, 40, 0.3));
}

.bulgaro-chatbot.is-shape-robot .bulgaro-launcher:hover {
	filter: drop-shadow(0 8px 12px rgba(8, 20, 40, 0.3)) brightness(0.95);
}

.bulgaro-robot {
	display: block;
	width: 100%;
	height: 100%;
}

.bulgaro-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: inherit;
}

.bulgaro-chatbot.has-logo:not(.is-shape-robot) .bulgaro-launcher {
	background: var(--bulgaro-accent);
	border: 0;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 8px 22px rgba(0, 0, 0, 0.28);
}

.bulgaro-chatbot.has-logo:not(.is-shape-robot) .bulgaro-logo {
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.bulgaro-logo-plate {
	position: absolute;
	left: 25%;
	top: 34.4%;
	width: 50%;
	height: 40.6%;
	display: block;
	background: #fff;
	border-radius: 28%;
	overflow: hidden;
	padding: 4%;
}

.bulgaro-chatbot.is-left.has-lift {
	--bulgaro-lift: 56px;
}

.bulgaro-chatbot.has-offset.has-lift {
	--bulgaro-lift: 0px;
}

.bulgaro-panel-wrap {
	position: fixed;
	bottom: calc(32px + var(--bulgaro-size) + var(--bulgaro-offset) + var(--bulgaro-lift));
	z-index: 100000;
	width: min(340px, calc(100vw - 24px));
}

.bulgaro-panel-wrap[hidden] {
	display: none !important;
}

.bulgaro-chatbot .bulgaro-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: min(560px, calc(100vh - 120px));
	background: #fff;
	opacity: 1;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 50px rgba(8, 20, 40, 0.28);
}

.bulgaro-close {
	position: absolute;
	top: -8px;
	left: -8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	color: #e2a100;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.bulgaro-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 12px 10px 16px;
}

.bulgaro-title {
	font-size: 16px;
	font-weight: 700;
	color: #1d2430;
}

.bulgaro-subtitle {
	margin-top: 2px;
	font-size: 13px;
	color: #667085;
}

.bulgaro-head__actions {
	display: flex;
	gap: 2px;
}

.bulgaro-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	color: #98a2b3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bulgaro-icon:hover,
.bulgaro-close:hover,
.bulgaro-launcher:hover {
	filter: brightness(0.95);
}

.bulgaro-icon:hover {
	color: #475467;
	background: #f2f4f7;
	filter: none;
}

.bulgaro-thread {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 150px;
	padding-bottom: 8px;
}

.bulgaro-msg {
	margin: 8px 12px;
	padding: 10px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.bulgaro-msg.is-bot {
	background: #f3f4f6;
	color: #1f2933;
}

.bulgaro-msg.is-user {
	margin-left: 48px;
	background: var(--bulgaro-accent);
	color: #fff;
}

.bulgaro-msg.is-error {
	background: #fdecec;
	color: #8a2424;
}

.bulgaro-msg.is-pending {
	color: #667085;
}

.bulgaro-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 12px 8px;
}

.bulgaro-card {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px;
	border: 1px solid #e6e8ec;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.bulgaro-card:hover {
	border-color: #c5cad3;
}

.bulgaro-card img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	background: #f2f4f7;
	flex: 0 0 auto;
}

.bulgaro-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bulgaro-card__name {
	font-weight: 600;
}

.bulgaro-card__sku,
.bulgaro-card__meta {
	font-size: 12px;
	color: #667085;
}

.bulgaro-form {
	position: relative;
	padding: 8px 12px 0;
}

.bulgaro-form textarea {
	display: block;
	width: 100%;
	min-height: 58px;
	max-height: 120px;
	resize: none;
	margin: 0;
	padding: 8px 42px 8px 10px;
	border: 1px solid #d5d8de;
	border-radius: 10px;
	background: #fff;
	color: #1d2430;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
}

.bulgaro-form textarea:disabled {
	background: #f8f9fb;
}

.bulgaro-send {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--bulgaro-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bulgaro-send:disabled {
	opacity: 0.55;
	cursor: default;
}

.bulgaro-status {
	min-height: 0;
	font-size: 12px;
	color: #8a2424;
}

.bulgaro-status:empty {
	display: none;
}

.bulgaro-hint {
	margin: 8px 0 0;
	padding: 0 12px 12px;
	font-size: 12px;
	line-height: 1.4;
	color: #667085;
}

.bulgaro-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bulgaro-chatbot button:focus-visible,
.bulgaro-chatbot textarea:focus-visible,
.bulgaro-chatbot a:focus-visible {
	outline: 2px solid var(--bulgaro-accent);
	outline-offset: 2px;
}

.bulgaro-chatbot .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 480px) {
	.bulgaro-panel-wrap {
		left: 12px !important;
		right: 12px !important;
		width: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.bulgaro-panel {
		animation: bulgaro-in 120ms ease-out;
	}
}

@keyframes bulgaro-in {
	from {
		transform: translateY(6px);
	}
	to {
		transform: none;
	}
}

/* Само логото, без кръг/рамка/сянка */
.bulgaro-chatbot.has-logo.is-plain:not(.is-shape-robot) .bulgaro-launcher {
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.bulgaro-chatbot.has-logo.is-plain:not(.is-shape-robot) .bulgaro-logo {
	object-fit: contain;
	border-radius: 0;
	filter: none;
}
