.dbc-root {
	--dbc-navy: #0a2540;
	--dbc-blue: #0f5ea8;
	--dbc-blue-light: #1f8fe0;
	--dbc-bg: #f4f8fb;
	--dbc-white: #ffffff;
	--dbc-text: #16232f;
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dbc-root.dbc-bottom-right { right: 24px; }
.dbc-root.dbc-bottom-left { left: 24px; }

.dbc-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, var(--dbc-blue-light), var(--dbc-navy));
	color: #fff;
	font-size: 24px;
	box-shadow: 0 8px 24px rgba(10, 37, 64, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
.dbc-bubble:hover { transform: scale(1.06); }

.dbc-panel {
	position: absolute;
	bottom: 76px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: 72vh;
	background: var(--dbc-white);
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(10, 37, 64, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dbc-bottom-right .dbc-panel { right: 0; }
.dbc-bottom-left .dbc-panel { left: 0; }

.dbc-header {
	background: linear-gradient(135deg, var(--dbc-navy), var(--dbc-blue));
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.dbc-header-title {
	font-weight: 600;
	font-size: 15px;
}
.dbc-header-title span {
	display: block;
	font-weight: 400;
	font-size: 11px;
	opacity: 0.75;
}
.dbc-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.dbc-talk-human {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 11px;
	border-radius: 20px;
	padding: 5px 10px;
	cursor: pointer;
	white-space: nowrap;
}
.dbc-talk-human:hover { background: rgba(255, 255, 255, 0.28); }

.dbc-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
}

.dbc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: var(--dbc-bg);
	display: flex;
	flex-direction: column;
}

.dbc-row { display: flex; margin-bottom: 10px; }
.dbc-row-user { justify-content: flex-end; }
.dbc-row-assistant { justify-content: flex-start; }

.dbc-bubble-msg {
	max-width: 82%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.dbc-bubble-user {
	background: var(--dbc-blue);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.dbc-bubble-assistant {
	background: #fff;
	color: var(--dbc-text);
	border: 1px solid #e2e8ef;
	border-bottom-left-radius: 4px;
}
.dbc-bubble-link {
	background: var(--dbc-navy);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	border-bottom-left-radius: 4px;
	display: inline-block;
}
.dbc-bubble-link:hover { background: var(--dbc-blue); }

.dbc-typing span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 3px;
	border-radius: 50%;
	background: #9fb3c4;
	animation: dbc-blink 1.2s infinite ease-in-out;
}
.dbc-typing span:nth-child(2) { animation-delay: 0.2s; }
.dbc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dbc-blink {
	0%, 80%, 100% { opacity: 0.25; }
	40% { opacity: 1; }
}

.dbc-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e2e8ef;
	background: #fff;
}
.dbc-input {
	flex: 1;
	resize: none;
	border: 1px solid #dde5ec;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 13.5px;
	font-family: inherit;
	max-height: 100px;
	outline: none;
}
.dbc-input:focus { border-color: var(--dbc-blue-light); }

.dbc-send {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: none;
	background: var(--dbc-blue);
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	flex-shrink: 0;
}
.dbc-send:hover { background: var(--dbc-navy); }
.dbc-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
	.dbc-panel {
		width: calc(100vw - 24px);
		height: 70vh;
	}
}
