/* Printbox Concierge — lansator + widget public. Culori solide (fără gradient):
   navy #1f2d3d, hover #3b5bdb, verde #27ae60. Mobile-first: panou full-screen. */

#pbcg-launcher {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99980;
	width: 54px;
	height: 54px;
	border: none;
	border-radius: 50%;
	background: #1f2d3d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(31, 45, 61, 0.35);
	transition: background 0.15s ease, transform 0.15s ease;
}
#pbcg-launcher:hover { background: #3b5bdb; transform: translateY(-1px); }
#pbcg-launcher svg { width: 26px; height: 26px; fill: #fff; }
#pbcg-launcher.pbcg-loading { opacity: 0.6; cursor: wait; }

#pbcg-panel {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99990;
	width: 390px;
	max-width: calc(100vw - 36px);
	height: 600px;
	max-height: calc(100dvh - 60px);
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(31, 45, 61, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: #1f2d3d;
}
#pbcg-panel[hidden] { display: none; }

.pbcg-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	background: #1f2d3d;
	color: #fff;
	flex: 0 0 auto;
}
.pbcg-title { font-weight: 700; }
.pbcg-title::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #27ae60;
	margin-right: 7px;
}
.pbcg-sub { font-size: 11px; opacity: 0.75; }
.pbcg-close {
	margin-left: auto;
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 8px;
	border-radius: 6px;
}
.pbcg-close:hover { background: rgba(255, 255, 255, 0.15); }

.pbcg-thread { flex: 1 1 auto; overflow-y: auto; padding: 14px; }
.pbcg-msg { display: flex; margin: 8px 0; }
.pbcg-msg--user { justify-content: flex-end; }
.pbcg-msg--bot { justify-content: flex-start; }
.pbcg-bubble {
	max-width: 88%;
	padding: 10px 13px;
	border-radius: 13px;
}
.pbcg-msg--user .pbcg-bubble { background: #1f2d3d; color: #fff; border-bottom-right-radius: 4px; }
.pbcg-msg--bot .pbcg-bubble { background: #f4f6f8; border: 1px solid #e8eaee; border-bottom-left-radius: 4px; }
.pbcg-bubble p { margin: 4px 0; }
.pbcg-bubble a { color: #3b5bdb; }
.pbcg-li { margin: 2px 0 2px 4px; }

.pbcg-wa {
	display: inline-block;
	margin-top: 8px;
	background: #27ae60;
	color: #fff !important;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 9px;
	font-weight: 600;
}
.pbcg-wa:hover { background: #1e8449; }

.pbcg-cards {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 2px 8px;
	margin: 4px 0;
}
.pbcg-card {
	flex: 0 0 150px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #1f2d3d;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.pbcg-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.pbcg-card-name { font-size: 12px; font-weight: 600; padding: 6px 8px 0; line-height: 1.3; }
.pbcg-card-price { font-size: 12px; color: #1e8449; font-weight: 700; padding: 2px 8px; }
.pbcg-card-cta {
	margin: 6px 8px 8px;
	background: #1f2d3d;
	color: #fff;
	text-align: center;
	border-radius: 7px;
	padding: 6px 0;
	font-size: 12px;
	font-weight: 600;
}
.pbcg-card:hover .pbcg-card-cta { background: #3b5bdb; }

.pbcg-rate { display: block; margin-top: 6px; }
.pbcg-rate-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	opacity: 0.45;
	padding: 0 4px 0 0;
}
.pbcg-rate-btn:hover { opacity: 1; }
.pbcg-rated { font-size: 11px; color: #8a8f98; }

.pbcg-thinking .pbcg-bubble { color: #8a8f98; }
.pbcg-dots span { animation: pbcgBlink 1.2s infinite; font-size: 8px; }
.pbcg-dots span:nth-child(2) { animation-delay: 0.2s; }
.pbcg-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pbcgBlink {
	0%, 60%, 100% { opacity: 0.25; }
	30% { opacity: 1; }
}

.pbcg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 6px; flex: 0 0 auto; }
.pbcg-chips:empty { display: none; }
.pbcg-chip {
	border: 1px solid #dcdfe3;
	background: #f4f6f8;
	border-radius: 15px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 13px;
	color: #1f2d3d;
}
.pbcg-chip:hover { border-color: #3b5bdb; color: #3b5bdb; background: #fff; }

.pbcg-inputrow {
	display: flex;
	gap: 8px;
	padding: 10px 14px 6px;
	border-top: 1px solid #eef0f2;
	align-items: flex-end;
	flex: 0 0 auto;
}
.pbcg-inputrow textarea {
	flex: 1;
	border: 1px solid #dcdfe3;
	border-radius: 9px;
	padding: 9px 11px;
	resize: none;
	font-size: 14px;
	line-height: 1.4;
	min-height: 38px;
	max-height: 90px;
	box-sizing: border-box;
	font-family: inherit;
}
.pbcg-inputrow textarea:focus { border-color: #3b5bdb; box-shadow: 0 0 0 1px #3b5bdb; outline: none; }
.pbcg-send {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 9px;
	background: #1f2d3d;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	flex: 0 0 auto;
}
.pbcg-send:hover { background: #3b5bdb; }
.pbcg-send:disabled { opacity: 0.5; cursor: default; }

.pbcg-foot {
	padding: 4px 14px 10px;
	font-size: 10px;
	color: #8a8f98;
	flex: 0 0 auto;
}

/* Mobil: full-screen (100dvh + safe-area), tastatura gestionată din JS (VisualViewport) */
@media (max-width: 600px) {
	#pbcg-panel {
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
		border: none;
		padding-bottom: env(safe-area-inset-bottom);
	}
	#pbcg-launcher { right: 14px; bottom: 14px; }
}
