.dbv-wa {
	--dbv-wa-green: #25d366;
	--dbv-wa-navy: #0b0e4f;
	--dbv-wa-muted: #555b6e;
	position: fixed;
	bottom: 24px;
	z-index: 9990;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dbv-wa--rechts { right: 24px; align-items: flex-end; }
.dbv-wa--links { left: 24px; align-items: flex-start; }
.dbv-wa[hidden] { display: none; }

.dbv-wa__fab {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--dbv-wa-green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(11, 14, 79, .22);
	transition: transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
}
.dbv-wa__fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 14, 79, .28); }
.dbv-wa__fab:focus-visible, .dbv-wa__start:focus-visible, .dbv-wa__close:focus-visible { outline: 3px solid var(--dbv-wa-navy); outline-offset: 3px; }
.dbv-wa__fab svg { width: 32px; height: 32px; }
.dbv-wa--offline .dbv-wa__fab { background: #7d8394; }
.dbv-wa__dot {
	position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
	background: #fff; box-shadow: inset 0 0 0 3px var(--dbv-wa-green);
}

/* direct mode label */
.dbv-wa--direct { flex-direction: row; align-items: center; }
.dbv-wa--direct.dbv-wa--rechts { flex-direction: row-reverse; }
.dbv-wa__label {
	background: #fff; color: var(--dbv-wa-navy); font-size: 14px; font-weight: 500; line-height: 1.3;
	padding: 8px 14px; border-radius: 8px; box-shadow: 0 4px 16px rgba(11, 14, 79, .14);
}
.dbv-wa__label small { display: block; font-weight: 400; color: var(--dbv-wa-muted); font-size: 12px; }

/* card mode */
.dbv-wa__panel {
	position: relative;
	width: 300px;
	max-width: calc(100vw - 48px);
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 12px 40px rgba(11, 14, 79, .22);
	color: #2c2c2c;
	font-size: 15px;
	line-height: 1.45;
}
.dbv-wa__panel[hidden] { display: none; }
.dbv-wa__close {
	position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1;
	color: var(--dbv-wa-muted); cursor: pointer; padding: 4px;
}
.dbv-wa__intro { margin: 0 0 14px; font-size: 13px; color: var(--dbv-wa-muted); padding-right: 24px; }
.dbv-wa__person { display: flex; gap: 12px; align-items: center; }
.dbv-wa__person strong { display: block; color: var(--dbv-wa-navy); font-weight: 500; font-size: 16px; }
.dbv-wa__person span { display: block; font-size: 13px; color: var(--dbv-wa-muted); }
.dbv-wa__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dbv-wa__avatar--init {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--dbv-wa-navy); color: #fff; font-weight: 500; font-size: 20px;
}
.dbv-wa__state { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; margin-top: 4px; color: var(--dbv-wa-muted); }
.dbv-wa__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0ae; }
.dbv-wa__state--on::before { background: var(--dbv-wa-green); }
.dbv-wa__closed { margin: 0; color: var(--dbv-wa-navy); }
.dbv-wa__closed .dbv-wa__state { display: flex; margin: 0 0 6px; }
.dbv-wa__next { margin: 10px 0 0; font-weight: 500; color: var(--dbv-wa-navy); }
.dbv-wa__panel:focus { outline: none; }
.dbv-wa__start {
	margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--dbv-wa-green); color: #fff !important; text-decoration: none !important;
	font-weight: 500; padding: 11px 16px; border-radius: 8px;
}
.dbv-wa__start:hover { filter: brightness(.95); }
.dbv-wa__start svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
	.dbv-wa { bottom: 16px; }
	.dbv-wa--rechts { right: 16px; }
	.dbv-wa--links { left: 16px; }
	.dbv-wa__fab { width: 54px; height: 54px; }
	.dbv-wa__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.dbv-wa__fab { transition: none; }
}
@media print { .dbv-wa { display: none !important; } }
