:root {
	--qcl-red: #e6332a;
	--qcl-red-hover: #c92b24;
	--qcl-green: #67c13d;
	--qcl-ink: #293242;
	--qcl-surface: #ffffff;
	--qcl-shadow: 0 18px 45px rgba(41, 50, 66, 0.18);
	--qcl-button-shadow: 0 10px 24px rgba(41, 50, 66, 0.18);
}

.qualis-contact-launcher {
	position: fixed;
	right: 44px;
	bottom: 40px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	max-width: calc(100vw - 32px);
}

.qualis-contact-launcher__panel[hidden] {
	display: none;
}

.qualis-contact-launcher__panel {
	width: min(320px, calc(100vw - 32px));
	border-radius: 18px;
	overflow: hidden;
	background: var(--qcl-surface);
	box-shadow: var(--qcl-shadow);
}

.qualis-contact-launcher__topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 18px 18px 16px;
	background: var(--qcl-red);
	color: #fff;
}

.qualis-contact-launcher__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.qualis-contact-launcher__brand-logo {
	display: block;
	width: 36px;
	min-width: 36px;
	height: 36px;
	max-height: 36px;
	height: auto;
	position: relative;
	z-index: 2;
	object-fit: contain;
}

.qualis-contact-launcher__brand-copy {
	display: flex;
	flex-direction: column;
}

.qualis-contact-launcher__eyebrow,
.qualis-contact-launcher__subtitle,
.qualis-contact-launcher__bubble-title,
.qualis-contact-launcher__bubble-body,
.qualis-contact-launcher__cta {
	margin: 0;
}

.qualis-contact-launcher__eyebrow {
	font: 700 16px/1.3 "Roboto Slab", serif;
	color: #fff;
}

.qualis-contact-launcher__subtitle {
	margin-top: 5px;
	font: 700 14px/1.3 "Roboto Slab", serif;
	color: rgba(255, 255, 255, 0.92);
	opacity: 1;
}

.qualis-contact-launcher__close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.qualis-contact-launcher__bubble {
	padding: 18px;
	background: #fff;
}

.qualis-contact-launcher__bubble-title {
	color: var(--qcl-ink);
	font: 700 16px/1.3 "Roboto Slab", serif;
}

.qualis-contact-launcher__bubble-body {
	margin-top: 8px;
	color: var(--qcl-ink);
	font-size: 15px;
	line-height: 1.6;
	white-space: normal;
}

.qualis-contact-launcher__content {
	padding: 0 18px 20px;
	background: #fff;
}

.qualis-contact-launcher__cta {
	color: var(--qcl-ink);
	font: 700 16px/1.3 "Roboto Slab", serif;
}

.qualis-contact-launcher__actions {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.qualis-contact-launcher__action,
.qualis-contact-launcher__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--qcl-red);
	color: #fff;
	box-shadow: var(--qcl-button-shadow);
	cursor: pointer;
	text-decoration: none;
}

.qualis-contact-launcher__action {
	width: 54px;
	height: 54px;
	min-height: 54px;
	padding: 0;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(41, 50, 66, 0.12);
	font-size: 0;
	transition: transform 0.2s ease, background 0.2s ease;
}

.qualis-contact-launcher__action:hover,
.qualis-contact-launcher__toggle:hover {
	background: var(--qcl-red-hover);
}

.qualis-contact-launcher__action:hover {
	transform: translateY(-1px);
	animation: qcl-action-push 0.3s linear 1;
}

.qualis-contact-launcher__action:hover,
.qualis-contact-launcher__action:focus,
.qualis-contact-launcher__action:hover svg,
.qualis-contact-launcher__action:focus svg {
	color: #fff;
	fill: #fff;
}

@keyframes qcl-action-push {
	50% {
		transform: translateY(-1px) scale(0.8);
	}

	100% {
		transform: translateY(-1px) scale(1);
	}
}

.qualis-contact-launcher__action svg,
.qualis-contact-launcher__toggle svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.qualis-contact-launcher__action svg {
	position: static;
	width: 22px;
	height: 22px;
	transform: none;
}

.qualis-contact-launcher__toggle {
	width: 56px;
	height: 56px;
	outline: 0;
	border: 0;
	box-shadow: 0 10px 24px rgba(41, 50, 66, 0.18);
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.qualis-contact-launcher__toggle[aria-expanded="true"] {
	transform: scale(0.98);
}

.qualis-contact-launcher__star {
	position: absolute;
	top: -10px;
	right: -4px;
	color: var(--qcl-green);
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
	opacity: 0;
	transform: scale(0.2) rotate(-18deg);
	text-shadow: 0 0 0 rgba(103, 193, 61, 0), 0 0 14px rgba(103, 193, 61, 0.45), 0 0 28px rgba(103, 193, 61, 0.28);
	pointer-events: none;
}

.qualis-contact-launcher--star-visible .qualis-contact-launcher__star {
	opacity: 1;
	animation: qcl-star-pop 0.35s ease forwards, qcl-star-pulse 1.05s ease-in-out 0.35s infinite;
}

@keyframes qcl-star-pop {
	0% {
		opacity: 0;
		transform: scale(0.2) rotate(-18deg);
	}

	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes qcl-star-pulse {
	0%,
	100% {
		transform: scale(1);
		text-shadow: 0 0 0 rgba(103, 193, 61, 0), 0 0 12px rgba(103, 193, 61, 0.42), 0 0 22px rgba(103, 193, 61, 0.24);
	}

	35% {
		transform: scale(1.22) rotate(-6deg);
		text-shadow: 0 0 10px rgba(103, 193, 61, 0.45), 0 0 22px rgba(103, 193, 61, 0.55), 0 0 42px rgba(103, 193, 61, 0.38);
	}

	65% {
		transform: scale(0.96) rotate(4deg);
		text-shadow: 0 0 6px rgba(103, 193, 61, 0.35), 0 0 14px rgba(103, 193, 61, 0.45), 0 0 28px rgba(103, 193, 61, 0.25);
	}
}

@media (max-width: 767px) {
	.qualis-contact-launcher {
		right: 24px;
		bottom: 22px;
		max-width: calc(100vw - 24px);
	}

	.qualis-contact-launcher__panel {
		width: min(320px, calc(100vw - 24px));
	}

	.qualis-contact-launcher__toggle {
		width: 44px;
		height: 44px;
	}

	.qualis-contact-launcher__toggle svg {
		width: 20px;
		height: 20px;
	}

	.qualis-contact-launcher__star {
		top: -13px;
		right: -2px;
		font-size: 32px;
		text-shadow: 0 0 10px rgba(103, 193, 61, 0.46), 0 0 22px rgba(103, 193, 61, 0.62), 0 0 40px rgba(103, 193, 61, 0.38);
	}
}
