.cqtd-root {
	--cqtd-brand:      #000000;
	--cqtd-brand-ink:  #000000;
	--cqtd-accent:     #009b51;
	--cqtd-surface:    #ffffff;
	--cqtd-text:       #000000;
	--cqtd-muted:      #555555;
	--cqtd-border:     #cccccc;
	--cqtd-radius:     10px;
	--cqtd-shadow:     0 6px 24px rgba(0, 0, 0, 0.12);
	--cqtd-font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	font-family: var(--cqtd-font);
}

.cqtd-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	height: 40px;
	min-width: 40px;
	padding: 0 9px;
	background: var(--cqtd-surface);
	color: var(--cqtd-brand);
	border: 1px solid var(--cqtd-border);
	border-radius: 999px;
	box-shadow: var(--cqtd-shadow);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
	opacity: 0.45;
	transition: opacity 0.2s ease;
}

.cqtd-badge:hover {
	opacity: 1;
}

.cqtd-badge:focus-visible {
	outline: 2px solid var(--cqtd-accent);
	outline-offset: 2px;
}

.cqtd-root[data-open="true"] .cqtd-badge {
	opacity: 1;
}

.cqtd-badge__icon {
	flex: 0 0 auto;
}

.cqtd-badge__label {
	overflow: hidden;
	white-space: nowrap;
	max-width: 0;
	margin-left: 0;
	transition: max-width 0.3s ease, margin-left 0.3s ease;
}

.cqtd-badge:hover .cqtd-badge__label,
.cqtd-root[data-open="true"] .cqtd-badge__label {
	max-width: 300px;
	margin-left: 7px;
}

.cqtd-panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	width: 320px;
	max-width: calc(100vw - 32px);
	background: var(--cqtd-surface);
	color: var(--cqtd-text);
	border: 1px solid var(--cqtd-border);
	border-radius: var(--cqtd-radius);
	box-shadow: var(--cqtd-shadow);
	padding: 18px 18px 20px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.cqtd-root[data-open="true"] .cqtd-panel {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.cqtd-panel__title {
	margin: 0 0 8px;
	padding-right: 22px;
	font-size: 15px;
	font-weight: 700;
	color: var(--cqtd-brand-ink);
	line-height: 1.3;
}

.cqtd-panel__body {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cqtd-muted);
}

.cqtd-panel__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right:0;
	min-height:24px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--cqtd-muted);
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.cqtd-panel__close svg {
	display: block;
}

.cqtd-panel__close:hover {
	background: #f0f0f0;
	color: var(--cqtd-accent);
}

.cqtd-panel__close:focus-visible {
	outline: 2px solid var(--cqtd-accent);
	outline-offset: 1px;
}

@media (max-width: 480px) {
	.cqtd-root { left: 12px; bottom: 12px; }
	.cqtd-badge:hover .cqtd-badge__label { max-width: 46vw; }
	.cqtd-root[data-open="true"] .cqtd-badge__label { max-width: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
	.cqtd-badge, .cqtd-panel { transition: none; }
}
