/* Live Recycling Impact Counter — all selectors are namespaced with .elc-. */
.elc-widget,
.elc-widget * {
	box-sizing: border-box;
}

.elc-widget {
	--elc-forest: #0d3024;
	--elc-forest-deep: #08251c;
	--elc-green: #1d6b47;
	--elc-mint: #dff2d6;
	--elc-lime: #b6ef6b;
	--elc-ink: #15281e;
	--elc-muted: #708076;
	--elc-paper: #fbfcf7;
	font-family: inherit;
}

.elc-widget [hidden] {
	display: none !important;
}

.elc-launcher {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999990;
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 62px;
	padding: 9px 15px 9px 10px;
	border: 1px solid rgba(223, 242, 214, 0.16);
	border-radius: 18px;
	background: linear-gradient(125deg, #103b2a 0%, #08281e 100%);
	box-shadow: 0 12px 36px rgba(7, 32, 23, 0.25), 0 2px 7px rgba(7, 32, 23, 0.12);
	color: #f8fff4;
	font: inherit;
	text-align: left;
	cursor: grab;
	touch-action: none;
	user-select: none;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	-webkit-tap-highlight-color: transparent;
}

.elc-widget[data-elc-position="bottom-left"] .elc-launcher { left: 22px; right: auto; }
.elc-widget[data-elc-position="top-right"] .elc-launcher { top: 22px; right: 22px; bottom: auto; left: auto; }
.elc-widget[data-elc-position="top-left"] .elc-launcher { top: 22px; right: auto; bottom: auto; left: 22px; }

.elc-widget.elc-is-dragging .elc-launcher,
.elc-widget.elc-is-dragging .elc-card__header { cursor: grabbing !important; }

.elc-widget.elc-is-dragging .elc-launcher { transition: none; transform: none; }

.elc-widget[data-elc-draggable="0"] .elc-launcher { cursor: pointer; touch-action: auto; }
.elc-widget[data-elc-draggable="0"] .elc-card__header { cursor: default; touch-action: auto; }

.elc-launcher:hover,
.elc-launcher:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(182, 239, 107, 0.7);
	box-shadow: 0 16px 42px rgba(7, 32, 23, 0.3), 0 0 0 3px rgba(182, 239, 107, 0.15);
}

.elc-launcher:focus-visible,
.elc-close:focus-visible {
	outline: 2px solid var(--elc-lime);
	outline-offset: 3px;
}

.elc-launcher__icon {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--elc-lime);
	color: var(--elc-forest-deep);
}

.elc-launcher__icon img {
	width: 25px;
	height: 25px;
	display: block;
}

.elc-launcher__copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.elc-launcher__eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #b9d2c0;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.15em;
	line-height: 1.1;
}

.elc-launcher__title {
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.elc-launcher__arrow {
	width: 18px;
	height: 18px;
	margin-left: 5px;
	color: var(--elc-lime);
}

.elc-launcher__arrow svg {
	width: 100%;
	height: 100%;
	display: block;
}

.elc-live-dot {
	position: relative;
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	display: inline-block;
	border-radius: 50%;
	background: #b6ef6b;
	box-shadow: 0 0 0 3px rgba(182, 239, 107, 0.12);
}

.elc-live-dot::after {
	position: absolute;
	inset: -3px;
	border: 1px solid rgba(182, 239, 107, 0.55);
	border-radius: 50%;
	content: "";
	animation: elc-pulse 2s ease-out infinite;
}

.elc-card {
	position: fixed;
	right: 22px;
	bottom: 99px;
	z-index: 999991;
	width: min(414px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 120px));
	overflow: auto;
	border: 1px solid rgba(26, 65, 45, 0.12);
	border-radius: 25px;
	background: var(--elc-paper);
	box-shadow: 0 26px 80px rgba(8, 32, 23, 0.28), 0 4px 14px rgba(8, 32, 23, 0.12);
	color: var(--elc-ink);
	font-family: inherit;
	-webkit-overflow-scrolling: touch;
	animation: elc-appear 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.elc-widget[data-elc-position="bottom-left"] .elc-card { left: 22px; right: auto; }
.elc-widget[data-elc-position="top-right"] .elc-card { top: 99px; right: 22px; bottom: auto; left: auto; }
.elc-widget[data-elc-position="top-left"] .elc-card { top: 99px; right: auto; bottom: auto; left: 22px; }

.elc-card__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 75px;
	padding: 16px 18px;
	overflow: hidden;
	background:
		radial-gradient(circle at 91% -20%, rgba(182, 239, 107, 0.18), transparent 34%),
		linear-gradient(125deg, #103b2a 0%, #08271e 100%);
	color: #fff;
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.elc-brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.elc-brand__icon {
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(229, 250, 216, 0.55);
	border-radius: 13px;
	background: #edf8e6;
	color: var(--elc-lime);
}

.elc-brand__icon img {
	width: 24px;
	height: 24px;
	display: block;
}

.elc-brand__copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.elc-brand__name {
	color: #f4fbf2;
	font-size: 10px;
	font-weight: 780;
	letter-spacing: 0.17em;
	line-height: 1;
}

.elc-brand__status {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #c0d7c6;
	font-size: 9px;
	font-weight: 650;
	letter-spacing: 0.11em;
	line-height: 1;
}

.elc-close {
	position: relative;
	z-index: 2;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(235, 249, 231, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	color: #e8f3e8;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.elc-close:hover {
	transform: rotate(5deg);
	background: rgba(255, 255, 255, 0.16);
}

.elc-close svg {
	width: 17px;
	height: 17px;
	display: block;
}

.elc-card__body {
	padding: 20px 20px 16px;
}

.elc-kicker {
	margin: 0 0 8px;
	color: #4c855b;
	font-size: 9px;
	font-weight: 780;
	letter-spacing: 0.16em;
	line-height: 1.2;
}

.elc-heading {
	max-width: 340px;
	margin: 0 0 18px;
	color: var(--elc-ink);
	font-family: inherit;
	font-size: 21px;
	font-weight: 670;
	letter-spacing: -0.045em;
	line-height: 1.16;
}

.elc-total-panel {
	padding: 15px 16px 14px;
	border: 1px solid #e4eae0;
	border-radius: 18px;
	background: #fff;
}

.elc-panel-label {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #718076;
	font-size: 9px;
	font-weight: 780;
	letter-spacing: 0.12em;
	line-height: 1.2;
}

.elc-panel-label__icon {
	width: 14px;
	height: 14px;
	color: #57945a;
}

.elc-panel-label__icon img {
	width: 100%;
	height: 100%;
	display: block;
}

.elc-total-value {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin-top: 6px;
	color: #163d2c;
	font-size: clamp(34px, 9vw, 42px);
	font-weight: 720;
	letter-spacing: -0.065em;
	line-height: 1.08;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.elc-total-unit {
	color: #64806c;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0;
}

.elc-period-note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 8px 0 0;
	color: #7a887d;
	font-size: 10px;
	font-weight: 520;
	line-height: 1.4;
}

.elc-separator {
	color: #9bad9c;
}

.elc-month-panel {
	margin-top: 11px;
	padding: 14px 16px 13px;
	border: 1px solid #d8e9d2;
	border-radius: 18px;
	background: linear-gradient(125deg, #eef7e8 0%, #e4f2dc 100%);
}

.elc-month-panel__top,
.elc-month-panel__label {
	display: flex;
	align-items: center;
}

.elc-month-panel__top {
	justify-content: space-between;
	gap: 10px;
}

.elc-month-panel__label {
	gap: 9px;
	color: #68806a;
	font-size: 8px;
	font-weight: 780;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.elc-month-panel__label > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.elc-month-panel__label strong {
	color: #244632;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.elc-month-mark {
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	padding: 6px 5px;
	border-radius: 9px;
	background: #d5e9cd;
}

.elc-month-mark span {
	width: 3px;
	border-radius: 4px;
	background: #40804b;
}

.elc-month-mark span:nth-child(1) { height: 7px; }
.elc-month-mark span:nth-child(2) { height: 12px; }
.elc-month-mark span:nth-child(3) { height: 9px; }

.elc-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border: 1px solid rgba(71, 126, 73, 0.15);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	color: #4d7955;
	font-size: 8px;
	font-weight: 780;
	letter-spacing: 0.1em;
	line-height: 1;
}

.elc-live-pill .elc-live-dot {
	width: 6px;
	height: 6px;
	flex-basis: 6px;
	background: #4f9a51;
	box-shadow: 0 0 0 3px rgba(79, 154, 81, 0.1);
}

.elc-live-pill .elc-live-dot::after {
	border-color: rgba(79, 154, 81, 0.45);
}

.elc-month-value {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin-top: 11px;
	color: #173c2a;
	font-size: clamp(28px, 7vw, 34px);
	font-weight: 710;
	letter-spacing: -0.055em;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.elc-month-unit {
	color: #64806c;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0;
}

.elc-card__footer {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 15px;
	color: #78847b;
}

.elc-footer-mark {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	color: #5c9561;
}

.elc-footer-mark img {
	width: 100%;
	height: 100%;
	display: block;
}

.elc-card__footer p {
	margin: 0;
	color: inherit;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.35;
}

@keyframes elc-pulse {
	0% { transform: scale(0.8); opacity: 0.8; }
	100% { transform: scale(1.85); opacity: 0; }
}

@keyframes elc-appear {
	from { opacity: 0; transform: translateY(10px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
	.elc-launcher {
		right: 12px;
		bottom: 12px;
		min-height: 57px;
		padding-right: 13px;
		border-radius: 16px;
	}

	.elc-launcher__icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		border-radius: 12px;
	}

	.elc-card {
		right: 12px;
		bottom: 82px;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 96px);
		border-radius: 22px;
	}

	.elc-widget[data-elc-position="bottom-left"] .elc-launcher { left: 12px; right: auto; bottom: 12px; top: auto; }
	.elc-widget[data-elc-position="top-right"] .elc-launcher { top: 12px; right: 12px; bottom: auto; left: auto; }
	.elc-widget[data-elc-position="top-left"] .elc-launcher { top: 12px; right: auto; bottom: auto; left: 12px; }
	.elc-widget[data-elc-position="bottom-left"] .elc-card { left: 12px; right: auto; bottom: 82px; top: auto; }
	.elc-widget[data-elc-position="top-right"] .elc-card { top: 82px; right: 12px; bottom: auto; left: auto; }
	.elc-widget[data-elc-position="top-left"] .elc-card { top: 82px; right: auto; bottom: auto; left: 12px; }

	.elc-card__body {
		padding: 17px 16px 14px;
	}

	.elc-heading {
		font-size: 20px;
	}

	.elc-total-panel {
		padding: 14px 13px 12px;
	}

	.elc-total-value {
		font-size: clamp(31px, 9vw, 39px);
	}

	.elc-month-panel {
		padding-right: 13px;
		padding-left: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elc-widget *,
	.elc-widget *::before,
	.elc-widget *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
