.qbitik-root {
	--qbitik-edge: 18px;
	--qbitik-bottom-base: max(24px, env(safe-area-inset-bottom, 0px));
	--qbitik-offset-y: 0px;
	position: fixed;
	right: var(--qbitik-edge);
	/* Vertical offset is user-adjustable; clamped in JS to the viewport. */
	bottom: calc(var(--qbitik-bottom-base) + var(--qbitik-offset-y));
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	width: auto;
	height: auto;
	pointer-events: none;
	font-family: "Segoe UI", system-ui, sans-serif;
	touch-action: manipulation;
	transition: bottom 0.35s ease;
}

.qbitik-root.is-patrolling {
	transition: none;
}

/* Open panel must stack above sticky header/cart (z-index 9999) so close/controls remain clickable. */
.qbitik-root.is-open {
	z-index: 10050;
}

.qbitik-root[hidden] {
	display: none;
}

.qbitik-launcher,
.qbitik-bubble,
.qbitik-panel,
.qbitik-panel button,
.qbitik-panel a,
.qbitik-form textarea {
	pointer-events: auto;
}

.qbitik-launcher {
	position: relative;
	z-index: 3;
	width: 112px;
	height: 112px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	cursor: pointer;
}

.qbitik-launcher:focus {
	outline: none;
}

.qbitik-launcher:focus-visible {
	outline: 2px solid rgba(14, 69, 104, 0.4);
	outline-offset: 6px;
}

.qbitik-stage,
.qbitik-presence,
.qbitik-float,
.qbitik-field {
	position: absolute;
	inset: 0;
}

.qbitik-presence {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.qbitik-float {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: qbitik-float 7.5s ease-in-out infinite;
	filter: drop-shadow(0 8px 10px rgba(14, 69, 104, 0.16));
}

.qbitik-bot {
	width: 74px;
	height: 74px;
	display: block;
	overflow: hidden;
	background: transparent;
}

.qbitik-face {
	transform-box: fill-box;
	transform-origin: center;
	animation: qbitik-turn 12s ease-in-out infinite;
}

.qbitik-eye {
	transform-box: fill-box;
	transform-origin: center;
	animation: qbitik-blink 6.8s infinite;
}

.qbitik-eye-b {
	animation-delay: 0.08s;
}

.qbitik-pupil {
	transform-box: fill-box;
	transform-origin: center;
	animation: qbitik-glance 9s ease-in-out infinite;
}

.qbitik-smile {
	opacity: 0;
}

.qbitik-field {
	pointer-events: none;
}

.qbitik-sky {
	position: absolute;
	left: 0;
	right: 0;
	top: 16px;
	bottom: 2px;
	pointer-events: none;
	background: none;
	border: 0;
	transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.qbitik-nebula {
	position: absolute;
	inset: -12px;
	background:
		radial-gradient(ellipse 78% 64% at 50% 64%, rgba(92, 146, 232, 0.7), rgba(92, 146, 232, 0) 72%),
		radial-gradient(ellipse 52% 46% at 32% 72%, rgba(146, 96, 214, 0.48), rgba(146, 96, 214, 0) 70%),
		radial-gradient(ellipse 44% 40% at 72% 58%, rgba(70, 112, 206, 0.36), rgba(70, 112, 206, 0) 72%),
		radial-gradient(ellipse 30% 24% at 54% 80%, rgba(196, 164, 255, 0.34), rgba(196, 164, 255, 0) 74%);
	filter: blur(14px);
	animation: qbitik-nebula 7.5s ease-in-out infinite;
}

.qbitik-stars {
	position: absolute;
	left: 46%;
	top: 72%;
	width: 1px;
	height: 1px;
	border-radius: 50%;
	background: transparent;
	box-shadow:
		-18px 6px 0 0 rgba(255, 255, 255, 0.9),
		10px 10px 0 0.3px rgba(214, 228, 255, 0.85),
		-6px 16px 0 0 rgba(255, 255, 255, 0.7),
		22px -2px 0 0 rgba(196, 176, 255, 0.75),
		-28px 14px 0 0 rgba(255, 255, 255, 0.45),
		4px -8px 0 0 rgba(255, 255, 255, 0.55),
		16px 18px 0 0.2px rgba(180, 210, 255, 0.6),
		-12px -4px 0 0 rgba(255, 255, 255, 0.35);
	animation: qbitik-twinkle 4.8s ease-in-out infinite;
}

.qbitik-dust {
	position: absolute;
	left: 42%;
	bottom: 18%;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 6px rgba(150, 186, 255, 0.9);
	animation: qbitik-rise 7.5s ease-in infinite;
}

.qbitik-dust-b {
	left: 62%;
	bottom: 10%;
	width: 3px;
	height: 3px;
	background: rgba(214, 196, 255, 0.9);
	animation-duration: 9s;
	animation-delay: -3s;
}

.qbitik-dust-c {
	left: 30%;
	bottom: 8%;
	animation-duration: 8.2s;
	animation-delay: -5s;
}

.qbitik-dust-d {
	left: 54%;
	bottom: 22%;
	width: 2px;
	height: 2px;
	animation-duration: 6.8s;
	animation-delay: -1.5s;
}

.qbitik-root.is-arriving .qbitik-sky {
	animation: qbitik-portal-in 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.qbitik-root.is-away .qbitik-sky {
	opacity: 0;
	transform: translateY(6px);
	filter: blur(8px);
}

.qbitik-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	border-radius: 50%;
	border: 1px solid rgba(226, 74, 34, 0.45);
	box-shadow: 0 0 10px rgba(226, 74, 34, 0.18);
}

.qbitik-ring-a {
	width: 102px;
	height: 42px;
	margin: -21px 0 0 -51px;
	animation: qbitik-spin 14s linear infinite;
}

.qbitik-ring-b {
	width: 46px;
	height: 104px;
	margin: -52px 0 0 -23px;
	border-color: rgba(126, 182, 214, 0.55);
	box-shadow: 0 0 10px rgba(126, 182, 214, 0.2);
	animation: qbitik-spin 19s linear infinite reverse;
}

.qbitik-mote {
	position: absolute;
	top: 16px;
	left: 84px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 8px #e24a22;
	offset-path: ellipse(50px 24px at 56px 56px);
	animation: qbitik-mote 9s linear infinite;
}

.qbitik-mote-b {
	top: 78px;
	left: 12px;
	width: 3px;
	height: 3px;
	background: #e24a22;
	box-shadow: 0 0 8px #7eb6d6;
	offset-path: ellipse(28px 48px at 56px 56px);
	animation-duration: 13s;
	animation-direction: reverse;
}

.qbitik-mote-c {
	top: 72px;
	left: 96px;
	width: 4px;
	height: 4px;
	offset-path: ellipse(40px 40px at 56px 56px);
	animation-duration: 16s;
	animation-delay: -4s;
}

.qbitik-burst {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	opacity: 0;
}

.qbitik-burst i {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 3px;
	height: 3px;
	margin: -1.5px 0 0 -1.5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px rgba(150, 196, 255, 0.9);
}

.qbitik-burst i:nth-child(1) { --px: -22px; --py: -16px; }
.qbitik-burst i:nth-child(2) { --px: 20px; --py: -18px; background: #e7d4ff; }
.qbitik-burst i:nth-child(3) { --px: -16px; --py: 18px; }
.qbitik-burst i:nth-child(4) { --px: 18px; --py: 14px; background: #ffd7bf; }
.qbitik-burst i:nth-child(5) { --px: 2px; --py: -24px; }
.qbitik-burst i:nth-child(6) { --px: -4px; --py: 22px; width: 2px; height: 2px; }

.qbitik-root.is-away .qbitik-burst {
	opacity: 1;
}

.qbitik-root.is-away .qbitik-burst i {
	animation: qbitik-puff 0.9s ease forwards;
}

.qbitik-spark {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, #e24a22 46%, rgba(14, 69, 104, 0) 72%);
	opacity: 0;
	pointer-events: none;
}

.qbitik-root.is-hover .qbitik-float {
	animation-play-state: paused;
	transform: translateY(-4px) scale(1.06);
}

.qbitik-root.is-hover .qbitik-pupil,
.qbitik-root.is-open .qbitik-pupil {
	animation: none;
	transform: translate(var(--qx, 0px), var(--qy, 0px));
}

.qbitik-root.is-open .qbitik-face,
.qbitik-root.is-open .qbitik-float {
	animation-duration: 11s;
}

.qbitik-root.is-open .qbitik-smile {
	opacity: 1;
}

.qbitik-root.is-open .qbitik-ring,
.qbitik-root.is-open .qbitik-mote {
	opacity: 0.45;
}

.qbitik-root.is-tap .qbitik-float {
	animation: qbitik-tap 0.46s ease;
}

.qbitik-root.is-arriving .qbitik-presence {
	animation: qbitik-materialize 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.qbitik-root.is-away .qbitik-presence {
	opacity: 0;
	transform: scale(0.2);
	filter: blur(5px);
}

.qbitik-root.is-away .qbitik-spark {
	opacity: 1;
	animation: qbitik-spark 2.4s ease-in-out infinite;
}

.qbitik-root.is-paused .qbitik-float,
.qbitik-root.is-paused .qbitik-face,
.qbitik-root.is-paused .qbitik-eye,
.qbitik-root.is-paused .qbitik-pupil,
.qbitik-root.is-paused .qbitik-ring,
.qbitik-root.is-paused .qbitik-mote,
.qbitik-root.is-paused .qbitik-spark,
.qbitik-root.is-paused .qbitik-nebula,
.qbitik-root.is-paused .qbitik-galaxy,
.qbitik-root.is-paused .qbitik-stars,
.qbitik-root.is-paused .qbitik-planet-arm,
.qbitik-root.is-paused .qbitik-moon-arm,
.qbitik-root.is-paused .qbitik-dust,
.qbitik-root.is-paused .qbitik-trail {
	animation-play-state: paused;
}

.qbitik-bubble {
	position: relative;
	max-width: 240px;
	margin-right: 6px;
	padding: 12px 32px 12px 14px;
	background: #fff;
	color: #162033;
	border-radius: 16px 16px 4px 16px;
	box-shadow: 0 10px 28px rgba(16, 36, 58, 0.12);
	animation: qbitik-in 0.45s ease both;
}

.qbitik-bubble p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.4;
}

.qbitik-bubble-close,
.qbitik-panel-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5e6b7c;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.qbitik-root.is-open .qbitik-launcher {
	pointer-events: none;
}

.qbitik-panel {
	/* Keep panel composer above the floating launcher (112px) + root bottom + gap. */
	--qbitik-panel-gap: clamp(156px, 26vh, 220px);
	position: fixed;
	right: max(12px, env(safe-area-inset-right, 0px));
	bottom: var(--qbitik-panel-gap);
	z-index: 2;
	width: min(400px, calc(100vw - 24px));
	height: min(560px, calc(100dvh - var(--qbitik-panel-gap) - 24px));
	max-height: calc(100dvh - 88px);
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
	border: 1px solid rgba(14, 69, 104, 0.12);
	border-radius: 24px;
	box-shadow:
		0 22px 56px rgba(14, 40, 68, 0.18),
		0 2px 0 rgba(255, 255, 255, 0.55) inset;
	overflow: hidden;
	animation: qbitik-in 0.35s ease both;
}

.qbitik-panel[hidden] {
	display: none;
}

.qbitik-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #0e4568 0%, #16597f 58%, #1a6a8f 100%);
	color: #fff;
}

.qbitik-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #143e5c;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.qbitik-avatar svg {
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.qbitik-avatar .qbitik-eye {
	animation: qbitik-blink 7.5s infinite;
}

.qbitik-id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.qbitik-id strong {
	font-size: 15px;
}

.qbitik-id em {
	font-style: normal;
	font-size: 12px;
	color: #d5deea;
}

.qbitik-panel-close {
	position: static;
	margin-left: auto;
	color: #fff;
}

.qbitik-log {
	flex: 1;
	overflow: auto;
	padding: 16px 14px 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background:
		radial-gradient(ellipse 80% 40% at 10% 0%, rgba(255, 255, 255, 0.85), transparent 55%),
		linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
	scroll-behavior: smooth;
}

.qbitik-msg {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.qbitik-msg-body {
	margin: 0;
	padding: 12px 14px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.55;
	animation: qbitik-in 0.28s ease both;
	box-shadow: 0 1px 2px rgba(16, 36, 58, 0.04);
}

.qbitik-msg-body p {
	margin: 0;
	padding: 0;
	border-radius: 0;
	animation: none;
	background: transparent;
	color: inherit;
}

.qbitik-msg-body p + p {
	margin-top: 0.75em;
}

.qbitik-msg-heading {
	display: block;
	margin: 0 0 0.35em;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #0e4568;
}

.qbitik-msg-bot .qbitik-msg-body {
	align-self: flex-start;
	max-width: 94%;
	background: rgba(255, 255, 255, 0.96);
	color: #162033;
	border: 1px solid rgba(14, 69, 104, 0.08);
	border-bottom-left-radius: 6px;
}

.qbitik-msg-user {
	align-items: flex-end;
}

.qbitik-msg-user .qbitik-msg-body {
	max-width: 86%;
	background: linear-gradient(135deg, #0e4568, #176086);
	color: #fff;
	border-bottom-right-radius: 6px;
	box-shadow: 0 8px 18px rgba(14, 69, 104, 0.18);
}

.qbitik-msg-welcome .qbitik-msg-body {
	background: linear-gradient(160deg, #ffffff 0%, #f3f8fc 100%);
}

.qbitik-welcome-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	max-width: 94%;
}

.qbitik-welcome-chips button,
.qbitik-chip-row button {
	border: 1px solid rgba(14, 69, 104, 0.14);
	background: #fff;
	color: #0e4568;
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qbitik-welcome-chips button:hover,
.qbitik-chip-row button:hover {
	border-color: #0e4568;
	background: #eef5fa;
}

.qbitik-typing {
	width: 54px;
	height: 30px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(14, 69, 104, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.qbitik-typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #8ea0b3;
	animation: qbitik-dot 1s infinite;
}

.qbitik-typing i:nth-child(2) { animation-delay: 0.15s; }
.qbitik-typing i:nth-child(3) { animation-delay: 0.3s; }

.qbitik-products {
	display: grid;
	gap: 10px;
	margin-top: 10px;
	max-width: 100%;
}

.qbitik-products.is-compare {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qbitik-products-label {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
	font-weight: 650;
	color: #5e6b7c;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.qbitik-product-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 12px;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
	border: 1px solid rgba(14, 69, 104, 0.1);
	box-shadow: 0 8px 20px rgba(16, 36, 58, 0.06);
	overflow: hidden;
}

.qbitik-product-card h4 {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #12253b;
	font-weight: 700;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.qbitik-product-meta,
.qbitik-product-warranty,
.qbitik-product-note {
	margin: 0;
	font-size: 11px;
	color: #66768a;
	line-height: 1.35;
}

.qbitik-product-note {
	font-style: italic;
}

.qbitik-product-price {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0e4568;
	overflow-wrap: anywhere;
}

.qbitik-product-specs {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 4px 8px;
	margin: 4px 0 0;
}

.qbitik-product-specs dt,
.qbitik-product-specs dd {
	margin: 0;
	font-size: 11px;
	line-height: 1.35;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.qbitik-product-specs dt {
	color: #728193;
}

.qbitik-product-specs dd {
	color: #1a2a3d;
	font-weight: 600;
	text-align: right;
}

.qbitik-product-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 8px 10px;
	border-radius: 12px;
	background: #0e4568;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 650;
}

.qbitik-product-link:hover {
	background: #16597f;
}

.qbitik-sources {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.qbitik-sources li {
	margin: 0;
}

.qbitik-sources a {
	display: block;
	padding: 8px 10px;
	border: 1px solid rgba(14, 69, 104, 0.12);
	border-radius: 12px;
	background: #fff;
	color: #0e4568;
	text-decoration: none;
	font-size: 12px;
	line-height: 1.35;
}

.qbitik-sources a:hover {
	border-color: #0e4568;
}

.qbitik-composer {
	position: relative;
	padding: 8px 12px 12px;
	background: rgba(255, 255, 255, 0.92);
	border-top: 1px solid rgba(14, 69, 104, 0.08);
	backdrop-filter: blur(8px);
}

.qbitik-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.qbitik-tool {
	position: relative;
}

.qbitik-tool-btn {
	border: 1px solid rgba(14, 69, 104, 0.14);
	background: #f5f8fb;
	color: #0e4568;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.qbitik-tool-btn--ghost {
	background: transparent;
	color: #5e6b7c;
	font-weight: 500;
}

.qbitik-tool-btn[aria-expanded="true"] {
	border-color: #0e4568;
	background: #e8f2f8;
	color: #0e4568;
}

.qbitik-popover {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	width: min(280px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(14, 69, 104, 0.12);
	box-shadow: 0 16px 36px rgba(16, 36, 58, 0.16);
	z-index: 5;
	box-sizing: border-box;
}

.qbitik-popover--support {
	left: auto;
	right: 0;
	width: min(260px, calc(100vw - 24px));
}

.qbitik-popover[hidden] {
	display: none !important;
}

.qbitik-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #162033;
}

.qbitik-popover-close {
	border: 0;
	background: transparent;
	color: #728193;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.qbitik-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.qbitik-support-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.qbitik-support-list a {
	display: block;
	padding: 8px 10px;
	border-radius: 12px;
	background: #f5f8fb;
	color: #0e4568;
	text-decoration: none;
	font-size: 12px;
	line-height: 1.35;
}

.qbitik-support-list a:hover {
	background: #e8f2f8;
}

.qbitik-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 6px;
	border: 1px solid rgba(14, 69, 104, 0.12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 36, 58, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qbitik-form:focus-within {
	border-color: rgba(14, 69, 104, 0.45);
	box-shadow: 0 0 0 3px rgba(14, 69, 104, 0.1);
}

.qbitik-form textarea {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	max-height: 112px;
	resize: none;
	border: 0;
	outline: none;
	background: transparent;
	padding: 10px 8px 10px 10px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: #162033;
}

.qbitik-form button {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #e24a22, #d13d18);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.qbitik-form button svg {
	width: 18px;
	height: 18px;
	display: block;
}

.qbitik-form.is-busy,
.qbitik-form button:disabled,
.qbitik-form textarea:disabled {
	opacity: 0.72;
	cursor: default;
}

.qbitik-msg-error {
	align-self: flex-start;
}

.qbitik-msg-error .qbitik-msg-body {
	background: #fff;
	color: #162033;
	border: 1px solid #f0c2b6;
	border-bottom-left-radius: 6px;
}

.qbitik-retry {
	align-self: flex-start;
	margin-top: 6px;
	border: 0;
	border-radius: 999px;
	background: #e24a22;
	color: #fff;
	padding: 6px 12px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.qbitik-root--left {
	right: auto;
	left: var(--qbitik-edge);
	align-items: flex-start;
}

.qbitik-root--left .qbitik-bubble {
	border-radius: 16px 16px 16px 4px;
}

.qbitik-root--left .qbitik-panel {
	right: auto;
	left: 18px;
}

body:has(.pr_right_side_big) .qbitik-root,
body:has(.checkout_total) .qbitik-root,
body:has(.cart_right) .qbitik-root {
	right: auto;
	left: 18px;
	align-items: flex-start;
}

body:has(.pr_right_side_big) .qbitik-bubble,
body:has(.checkout_total) .qbitik-bubble,
body:has(.cart_right) .qbitik-bubble {
	border-radius: 16px 16px 16px 4px;
}

body:has(.pr_right_side_big) .qbitik-panel,
body:has(.checkout_total) .qbitik-panel,
body:has(.cart_right) .qbitik-panel {
	right: auto;
	left: 18px;
}

@keyframes qbitik-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -6px, 0); }
}

@keyframes qbitik-nebula {
	0%, 100% { opacity: 0.78; transform: translate3d(0, 1px, 0) scale(1); }
	50% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.04); }
}

@keyframes qbitik-rise {
	0% { opacity: 0; transform: translateY(6px); }
	25% { opacity: 0.85; }
	100% { opacity: 0; transform: translateY(-26px); }
}

@keyframes qbitik-twinkle {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

@keyframes qbitik-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(-2.5%, -1.5%, 0); }
}

@keyframes qbitik-pass {
	0% { transform: translate3d(-80px, 12px, 0) rotate(0deg); opacity: 0; }
	12% { opacity: 0.85; }
	100% { transform: translate3d(760px, -36px, 0) rotate(40deg); opacity: 0; }
}

@keyframes qbitik-portal-in {
	0% { opacity: 0; transform: scale(0.15); filter: blur(8px); }
	50% { opacity: 1; filter: blur(0); }
	100% { opacity: 1; transform: none; }
}

@keyframes qbitik-ring-flash {
	0% { opacity: 0; transform: scale(0.4); border-color: rgba(190, 220, 255, 0); box-shadow: 0 0 0 0 rgba(120, 180, 255, 0.4); }
	40% { opacity: 1; border-color: rgba(210, 230, 255, 0.8); box-shadow: 0 0 18px 2px rgba(140, 190, 255, 0.45); }
	100% { opacity: 0; transform: scale(1.15); }
}

@keyframes qbitik-turn {
	0%, 100% { transform: rotate(0deg); }
	35% { transform: rotate(-5deg); }
	70% { transform: rotate(4deg); }
}

@keyframes qbitik-blink {
	0%, 82%, 100% { transform: scaleY(1); }
	88%, 92% { transform: scaleY(0.12); }
}

@keyframes qbitik-glance {
	0%, 68%, 100% { transform: translate(0, 0); }
	76%, 84% { transform: translate(-1.6px, 0.4px); }
}

@keyframes qbitik-spin {
	to { transform: rotate(360deg); }
}

@keyframes qbitik-mote {
	to { offset-distance: 100%; }
}

@keyframes qbitik-materialize {
	0% { opacity: 0; transform: scale(0.28) translateY(10px); filter: blur(7px); }
	58% { opacity: 1; transform: scale(1.05) translateY(-3px); filter: blur(0); }
	100% { opacity: 1; transform: none; filter: none; }
}

@keyframes qbitik-burst {
	0% { opacity: 0; transform: scale(0.4); }
	40% { opacity: 1; }
	100% { opacity: 1; transform: none; }
}

@keyframes qbitik-dissolve {
	to { opacity: 0; transform: scale(0.18); filter: blur(5px); }
}

@keyframes qbitik-puff {
	to { opacity: 0; transform: translate(var(--px), var(--py)) scale(0.3); }
}

@keyframes qbitik-spark {
	0%, 100% { transform: scale(0.85); opacity: 0.75; }
	50% { transform: scale(1.15); opacity: 1; }
}

@keyframes qbitik-tap {
	0% { transform: scale(1); }
	40% { transform: scale(0.9) rotate(-3deg); }
	100% { transform: scale(1) rotate(0deg); }
}

@keyframes qbitik-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes qbitik-dot {
	0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-height: 820px) and (min-width: 721px) {
	.qbitik-panel {
		--qbitik-panel-gap: clamp(128px, 20vh, 168px);
		height: min(500px, calc(100dvh - var(--qbitik-panel-gap) - 16px));
	}

	.qbitik-log {
		padding: 12px 12px 8px;
		gap: 10px;
	}

	.qbitik-msg-body {
		padding: 10px 12px;
		font-size: 13px;
	}
}

@media (min-width: 1440px) {
	.qbitik-panel {
		width: min(420px, calc(100vw - 40px));
		height: min(600px, calc(100dvh - var(--qbitik-panel-gap) - 28px));
	}
}

@media (max-width: 1024px) and (min-width: 721px) {
	.qbitik-panel {
		width: min(380px, calc(100vw - 28px));
		--qbitik-panel-gap: clamp(96px, 18vh, 180px);
	}

	.qbitik-products.is-compare {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	/* On small screens keep Qbity on the right so it never covers Add to cart / Quick order. */
	.qbitik-root,
	.qbitik-root--left,
	body:has(.pr_right_side_big) .qbitik-root,
	body:has(.checkout_total) .qbitik-root,
	body:has(.cart_right) .qbitik-root {
		--qbitik-edge: max(8px, env(safe-area-inset-right, 0px));
		--qbitik-bottom-base: max(20px, env(safe-area-inset-bottom, 0px));
		right: var(--qbitik-edge);
		left: auto;
		align-items: flex-end;
		/* Lower on mobile so the bot stays clear of inputs / sticky actions. */
		bottom: calc(var(--qbitik-bottom-base) + var(--qbitik-offset-y));
		width: auto;
		height: auto;
	}

	.qbitik-sky,
	.qbitik-burst {
		display: none;
	}

	.qbitik-launcher {
		width: 74px;
		height: 74px;
	}

	.qbitik-bot {
		width: 64px;
		height: 64px;
	}

	.qbitik-space,
	.qbitik-field,
	.qbitik-spark,
	.qbitik-smile {
		display: none;
	}

	.qbitik-float,
	.qbitik-face,
	.qbitik-pupil,
	.qbitik-root.is-arriving .qbitik-presence,
	.qbitik-root.is-tap .qbitik-float {
		animation: none;
	}

	.qbitik-root.is-away .qbitik-presence {
		opacity: 1;
		transform: none;
		filter: none;
	}

	.qbitik-eye {
		animation: qbitik-blink 8s infinite;
	}

	.qbitik-bubble {
		max-width: min(230px, calc(100vw - 96px));
		max-height: min(150px, 26dvh);
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.qbitik-panel {
		position: fixed;
		top: auto;
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		height: min(85dvh, 720px);
		max-height: calc(100dvh - env(safe-area-inset-top, 0px));
		border-radius: 22px 22px 0 0;
		--qbitik-panel-gap: 0px;
	}

	.qbitik-products.is-compare {
		grid-template-columns: 1fr;
	}

	.qbitik-tools {
		flex-wrap: wrap;
	}

	.qbitik-composer {
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	}

	.qbitik-root.is-open .qbitik-launcher {
		visibility: hidden;
	}

	body:has(.pr_right_side_big) .qbitik-panel,
	body:has(.checkout_total) .qbitik-panel,
	body:has(.cart_right) .qbitik-panel,
	.qbitik-root--left .qbitik-panel {
		left: 0;
		right: 0;
	}
}

@supports (height: 100svh) {
	.qbitik-panel {
		height: min(560px, calc(100svh - var(--qbitik-panel-gap) - 24px));
		max-height: calc(100svh - 88px);
	}

	@media (max-height: 820px) and (min-width: 721px) {
		.qbitik-panel {
			height: min(520px, calc(100svh - var(--qbitik-panel-gap) - 16px));
		}
	}

	@media (max-width: 720px) {
		.qbitik-panel {
			height: min(85svh, 720px);
			max-height: calc(100svh - env(safe-area-inset-top, 0px));
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.qbitik-float,
	.qbitik-face,
	.qbitik-eye,
	.qbitik-pupil,
	.qbitik-ring,
	.qbitik-mote,
	.qbitik-spark,
	.qbitik-nebula,
	.qbitik-galaxy,
	.qbitik-stars,
	.qbitik-planet-arm,
	.qbitik-moon-arm,
	.qbitik-dust,
	.qbitik-trail,
	.qbitik-portal,
	.qbitik-space,
	.qbitik-bubble,
	.qbitik-panel,
	.qbitik-msg-body,
	.qbitik-typing i,
	.qbitik-presence,
	.qbitik-root.is-arriving .qbitik-presence,
	.qbitik-root.is-tap .qbitik-float {
		animation: none;
		transition: none;
	}

	.qbitik-root.is-away .qbitik-presence {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

@media print {
	.qbitik-root { display: none !important; }
}
