/* Root container (same placement + pointer-events pattern as proof) */
#swa-intake-streak-root {
	* {
		font-family: Raleway, Helvetica, Arial, sans-serif;
		white-space: nowrap;
	}

	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 2147483647;
	width: min-content;
	max-width: min(480px, calc(100vw - 36px));
	pointer-events: none;
}

/* Reuse proof card styling */
#swa-intake-streak-root .swa-proof-card {
	position: relative;
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 12px;

	padding: 10px 36px 10px 10px;
	border-radius: 108px;
	background: #ffffff;

	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

#swa-intake-streak-root .swa-proof-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

#swa-intake-streak-root .swa-proof-card:hover .swa-proof-close,
#swa-intake-streak-root .swa-proof-card:focus-within .swa-proof-close {
	opacity: 1;
	transform: translateY(0);
}

/* make close button always visible on mobile */
@media (max-width: 480px) {
	#swa-intake-streak-root {
		display: none;
	}
	#swa-intake-streak-root .swa-proof-card .swa-proof-close {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Avatar: fire icon (no background image) */
#swa-intake-streak-root .swa-proof-avatar {
	width: 60px;
	height: 60px;
	min-height: 60px;
	min-width: 60px;
	border-radius: 999px;
	position: relative;
	overflow: hidden;

	display: flex;
	align-items: center;
	justify-content: center;

	/* matches proof's "icon in a circle" feel */
	background: #f6725226;
	color: #4a57d8;
}

#swa-intake-streak-root .swa-proof-avatar svg {
	margin-bottom: 0;
	height: 36px;
	width: auto;
}

/* Text block */
#swa-intake-streak-root .swa-proof-text {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

#swa-intake-streak-root .swa-proof-title {
	font-size: 16px;
	line-height: 1.15;
	font-weight: 500;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--brand_heading);
}

#swa-intake-streak-root .swa-proof-title strong {
	font-weight: 700 !important;
}

#swa-intake-streak-root .swa-proof-sub {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.25;
	color: var(--brand_heading);

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* <div class="swa-proof-meta">
	        <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="m344-60-76-128-144-32 14-148-98-112 98-112-14-148 144-32 76-128 136 58 136-58 76 128 144 32-14 148 98 112-98 112 14 148-144 32-76 128-136-58-136 58Zm94-278 226-226-56-58-170 170-86-84-56 56 142 142Z"/></svg>
            <span>Verified live data</span>
        </div */

#swa-intake-streak-root .swa-proof-meta {
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #4a57d8;
	font-weight: 600;
}

/* Close button (copied behavior) */
#swa-intake-streak-root .swa-proof-close {
	position: absolute;
	top: 0px;
	right: 0px;

	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 0;
	padding: 0;

	display: grid;
	place-items: center;

	background: rgba(255, 255, 255, 1);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;

	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0.18s ease, transform 0.18s ease;

	color: #023037;
}

#swa-intake-streak-root .swa-proof-close:focus-visible {
	outline: 2px solid rgba(2, 48, 55, 0.35);
	outline-offset: 2px;
}

#swa-intake-streak-root .swa-proof-close svg {
	display: block;
	fill: currentColor;
}

/* Small screens */
@media (max-width: 420px) {
	#swa-intake-streak-root {
		left: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		max-width: 100%;
	}

	#swa-intake-streak-root .swa-proof-card {
		border-radius: 16px;
		padding: 12px 14px;
		width: 100%;
		max-width: 100%;
	}

	#swa-intake-streak-root .swa-proof-avatar {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	#swa-intake-streak-root .swa-proof-title {
		font-size: 15px;
	}

	#swa-intake-streak-root .swa-proof-sub {
		font-size: 13px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	#swa-intake-streak-root .swa-proof-card {
		transition: none;
		transform: none;
	}

	#swa-intake-streak-root .swa-proof-card.is-visible {
		transform: none;
	}
}
