/* Demo Chatbot Widget Styles — panel wysuwany z prawej */

.dcb-fab {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1e3a5f;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	transition: transform 0.2s, box-shadow 0.2s;
}
.dcb-fab:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Backdrop */
.dcb-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 9998;
}

/* Panel wysuwany z prawej */
.dcb-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 400px;
	max-width: 100vw;
	height: 100dvh;
	background: #fff;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 40px rgba(0, 0, 0, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	overflow: hidden;
}

.dcb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.25rem;
	background: #1e3a5f;
	color: #fff;
	flex-shrink: 0;
}
.dcb-header__info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.dcb-header__info strong {
	display: block;
	font-size: 0.95rem;
}
.dcb-header__info span {
	font-size: 0.72rem;
	opacity: 0.7;
}
.dcb-header__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #4ade80;
	flex-shrink: 0;
}
.dcb-close {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
	opacity: 0.7;
	display: flex;
	align-items: center;
}
.dcb-close:hover { opacity: 1; }

.dcb-messages {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	-webkit-overflow-scrolling: touch;
}

.dcb-msg { display: flex; }
.dcb-msg--user { justify-content: flex-end; }
.dcb-msg__bubble {
	max-width: 85%;
	padding: 0.65rem 1rem;
	border-radius: 14px;
	font-size: 0.875rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}
.dcb-msg--assistant .dcb-msg__bubble {
	background: #f1f5f9;
	color: #1e293b;
	border-bottom-left-radius: 4px;
}
.dcb-msg--user .dcb-msg__bubble {
	background: #1e3a5f;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.dcb-typing {
	display: flex !important;
	gap: 4px;
	padding: 0.8rem 1rem !important;
}
.dcb-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #94a3b8;
	animation: dcb-bounce 1.2s infinite;
}
.dcb-typing span:nth-child(2) { animation-delay: 0.15s; }
.dcb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dcb-bounce {
	0%, 60%, 100% { transform: translateY(0); }
	30% { transform: translateY(-6px); }
}

.dcb-suggestions {
	padding: 0 1.25rem 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	flex-shrink: 0;
}
.dcb-suggestion {
	padding: 0.35rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	background: #fff;
	font-size: 0.78rem;
	color: #1e3a5f;
	cursor: pointer;
	font-family: inherit;
}
.dcb-suggestion:hover {
	background: #f1f5f9;
	border-color: #1e3a5f;
}

.dcb-input {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	padding: 0.875rem 1.25rem;
	border-top: 1px solid #e2e8f0;
	flex-shrink: 0;
}
.dcb-input textarea {
	flex: 1;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	font-size: 0.875rem;
	font-family: inherit;
	resize: none;
	outline: none;
	line-height: 1.45;
	max-height: 100px;
}
.dcb-input textarea:focus { border-color: #1e3a5f; }
.dcb-send {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #1e3a5f;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.dcb-send:disabled { opacity: 0.4; cursor: not-allowed; }

.dcb-powered {
	text-align: center;
	padding: 0.4rem;
	font-size: 0.65rem;
	color: #94a3b8;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.dcb-panel {
		width: 100%;
		max-width: 100%;
	}
	.dcb-fab {
		bottom: 1rem;
		right: 1rem;
		width: 50px;
		height: 50px;
	}
}
