.bcops-chat {
	--bcops-color: #1e6fd9;
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.bcops-chat--right { right: 20px; }
.bcops-chat--left { left: 20px; }

.bcops-chat__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: var(--bcops-color);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.bcops-chat__toggle:hover { transform: scale(1.06); }

.bcops-chat__panel {
	position: absolute;
	bottom: 74px;
	width: 680px;
	max-width: calc(100vw - 40px);
	height: calc(100vh - 94px);
	max-height: calc(100vh - 94px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.bcops-chat--right .bcops-chat__panel { right: 0; }
.bcops-chat--left .bcops-chat__panel { left: 0; }

.bcops-chat__panel[hidden] { display: none; }

.bcops-chat__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--bcops-color);
	color: #fff;
}

.bcops-chat__title { font-weight: 600; }

.bcops-chat__close {
	border: none;
	background: transparent;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.bcops-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f6f7f9;
}

.bcops-chat__msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.bcops-chat__msg--user {
	align-self: flex-end;
	background: var(--bcops-color);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.bcops-chat__msg--bot {
	align-self: flex-start;
	background: #fff;
	color: #222;
	border: 1px solid #e2e4e8;
	border-bottom-left-radius: 4px;
}

.bcops-chat__msg strong { font-weight: 700; }
.bcops-chat__msg em { font-style: italic; }

.bcops-chat__msg--bot a {
	color: var(--bcops-color);
	text-decoration: underline;
	font-weight: 600;
	word-break: break-word;
}

.bcops-chat__msg--bot a:hover { text-decoration: none; }

.bcops-chat__typing { opacity: 0.75; font-style: italic; }
.bcops-chat__typing-label { transition: opacity 0.2s ease; }
.bcops-chat__typing-dots {
	display: inline-block;
	margin-left: 2px;
	animation: bcops-chat-blink 1.2s steps(1) infinite;
}
@keyframes bcops-chat-blink {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

/* Sugestii de mesaje sub întâmpinare (BCO-171) */
.bcops-chat__suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-self: flex-start;
	max-width: 95%;
	margin-top: 2px;
}

.bcops-chat__suggestion {
	border: 1px solid var(--bcops-color);
	background: #fff;
	color: var(--bcops-color);
	border-radius: 16px;
	padding: 7px 13px;
	font-size: 13px;
	line-height: 1.3;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, color 0.15s ease;
}

.bcops-chat__suggestion:hover {
	background: var(--bcops-color);
	color: #fff;
}

/* Bulă proactivă lângă iconiță (BCO-171) */
.bcops-chat__teaser {
	position: absolute;
	bottom: 8px;
	display: none;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 320px;
	min-width: 200px;
	padding: 12px 16px;
	background: #fff;
	color: #222;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	font-size: 14px;
	line-height: 1.35;
	animation: bcops-teaser-in 0.25s ease;
}

.bcops-chat--right .bcops-chat__teaser { right: 66px; }
.bcops-chat--left .bcops-chat__teaser { left: 66px; }

.bcops-chat__teaser--visible { display: flex; }

.bcops-chat__teaser-text { cursor: pointer; }

.bcops-chat__teaser-close {
	border: none;
	background: transparent;
	color: #888;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	flex: 0 0 auto;
}

@keyframes bcops-teaser-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.bcops-chat__consent {
	padding: 6px 14px;
	font-size: 11px;
	color: #666;
	background: #fdfdfd;
	border-top: 1px solid #eee;
}

.bcops-chat__form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e2e4e8;
	background: #fff;
}

.bcops-chat__input {
	flex: 1;
	border: 1px solid #ccd0d5;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 15px;
	outline: none;
}

.bcops-chat__input:focus { border-color: var(--bcops-color); }

.bcops-chat__send {
	border: none;
	border-radius: 8px;
	background: var(--bcops-color);
	color: #fff;
	padding: 9px 16px;
	cursor: pointer;
	font-size: 14px;
}

.bcops-chat__send:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 720px) {
	.bcops-chat__panel {
		width: calc(100vw - 40px);
	}
}

@media (max-width: 480px) {
	.bcops-chat__msg { max-width: 92%; }
}
