.cml-notification {
	--cml-bg: #ffffff;
	--cml-text: #2c2757;
	--cml-title: #5e3fe5;
	--cml-border: #e7e4f6;
	--cml-radius: 12px;
	--cml-img-size: 48px;
	--cml-link-color: #5e3fe5;

	position: fixed;
	z-index: 999999;
	max-width: 360px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.cml-pos-bottom-left {
	left: 20px;
	bottom: 20px;
}

.cml-pos-bottom-right {
	right: 20px;
	bottom: 20px;
}

.cml-pos-top-left {
	left: 20px;
	top: 20px;
}

.cml-pos-top-right {
	right: 20px;
	top: 20px;
}

/* Flashing Tab has no on-page card — it's a pure config carrier read by
   initFlashingTab() in frontend.js, which changes document.title/favicon
   instead of rendering anything here. */
.cml-notification.cml-type-flashing_tab {
	display: none !important;
}

/* Two campaigns anchored to the same corner: JS adds this pair of classes
   so they take turns instead of rendering stacked on top of each other.
   A corner with only one campaign never gets these classes. */
.cml-notification.cml-group-managed {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cml-notification.cml-group-managed.cml-group-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Recent Activity popups */

.cml-notification.cml-type-recent_activity {
	width: 320px;
}

.cml-popup {
	display: none;
	align-items: center;
	gap: 12px;
	background: var(--cml-bg);
	color: var(--cml-text);
	border: 1px solid var(--cml-border);
	border-radius: var(--cml-radius);
	box-shadow: 0 4px 12px rgba(18, 14, 41, 0.05), 0 20px 40px rgba(18, 14, 41, 0.14);
	padding: 14px 16px;
	position: relative;
	opacity: 0;
	transform: translateY(10px) scale(0.98);
	transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.2s ease;
}

.cml-popup.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.cml-popup:has(.cml-popup-link):hover {
	transform: translateY(-2px) scale(1);
	box-shadow: 0 6px 16px rgba(18, 14, 41, 0.07), 0 26px 50px rgba(18, 14, 41, 0.18);
}

.cml-popup-img {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: var(--cml-img-size);
	height: var(--cml-img-size);
}

.cml-popup-img img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cml-border);
}

.cml-popup-pulse {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #17c997;
	border: 2px solid var(--cml-bg);
}

.cml-popup-pulse::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid #17c997;
	animation: cml-pulse-ring 1.8s ease-out infinite;
}

@keyframes cml-pulse-ring {
	0% {
		opacity: 0.6;
		transform: scale(0.7);
	}
	100% {
		opacity: 0;
		transform: scale(1.8);
	}
}

.cml-popup-map {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: var(--cml-img-size);
	height: var(--cml-img-size);
	border-radius: 30%;
	overflow: hidden;
}

.cml-popup-map-art {
	display: block;
	width: 100%;
	height: 100%;
}

.cml-popup-map-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2px 4px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--cml-text);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cml-popup-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.cml-popup-text {
	display: block;
	font-size: 13.5px;
	line-height: 1.4;
}

.cml-popup-name {
	color: var(--cml-title);
	font-weight: 700;
}

.cml-popup-time {
	display: inline-block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	opacity: 0.6;
}

.cml-popup-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cml-popup-link:hover .cml-popup-text {
	text-decoration: underline;
	text-decoration-color: var(--cml-border);
	text-underline-offset: 2px;
}

.cml-popup-close {
	position: absolute;
	top: 4px;
	right: 6px;
	background: transparent;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: #8783a6;
	cursor: pointer;
	padding: 4px;
}

.cml-popup-close:hover {
	color: var(--cml-text);
}

.cml-branding {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--cml-border);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--cml-title);
	text-decoration: none;
	opacity: 0.65;
	transition: opacity 0.15s ease;
}

.cml-branding:hover {
	opacity: 1;
}

.cml-branding-icon {
	width: 10px;
	height: 10px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Minimal skin: flat, no photo/map, small accent dot instead */

.cml-popup.cml-skin-minimal {
	box-shadow: none;
	border-left: 3px solid var(--cml-title);
	padding: 10px 14px;
}

.cml-popup.cml-skin-minimal:hover {
	box-shadow: 0 4px 12px rgba(18, 14, 41, 0.08);
}

.cml-popup-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--cml-title);
}

.cml-popup.cml-skin-minimal .cml-popup-text {
	font-size: 13px;
}

.cml-popup.cml-skin-minimal .cml-branding {
	margin-top: 4px;
	padding-top: 4px;
}

/* Toast skin: flat, low-profile, colored accent strip instead of a full border */

.cml-popup.cml-skin-toast {
	border: none;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(18, 14, 41, 0.1);
	padding: 10px 14px 10px 18px;
}

.cml-popup.cml-skin-toast::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 3px;
	background: var(--cml-title);
}

.cml-popup.cml-skin-toast:hover {
	box-shadow: 0 4px 14px rgba(18, 14, 41, 0.14);
}

/* Bold skin: solid accent-color card, inverted text */

.cml-popup.cml-skin-bold {
	background: var(--cml-title);
	border-color: var(--cml-title);
	box-shadow: 0 10px 26px rgba(18, 14, 41, 0.22);
}

.cml-popup.cml-skin-bold .cml-popup-text,
.cml-popup.cml-skin-bold .cml-popup-name,
.cml-popup.cml-skin-bold .cml-popup-time {
	color: #ffffff;
}

.cml-popup.cml-skin-bold .cml-popup-img img {
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.cml-popup.cml-skin-bold .cml-popup-close {
	color: rgba(255, 255, 255, 0.7);
}

.cml-popup.cml-skin-bold .cml-popup-close:hover {
	color: #ffffff;
}

.cml-popup.cml-skin-bold .cml-branding {
	color: #ffffff;
	border-top-color: rgba(255, 255, 255, 0.25);
}

/* Outline skin: thicker accent border, no shadow at rest */

.cml-popup.cml-skin-outline {
	border: 2px solid var(--cml-title);
	box-shadow: none;
}

.cml-popup.cml-skin-outline:hover {
	box-shadow: 0 4px 14px rgba(18, 14, 41, 0.1);
}

/* Gradient skin: soft two-tone accent wash behind the content */

.cml-popup.cml-skin-gradient {
	border-color: transparent;
	box-shadow: 0 10px 26px rgba(18, 14, 41, 0.12);
	overflow: hidden;
}

.cml-popup.cml-skin-gradient::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--cml-title), #a432fb);
	opacity: 0.08;
}

.cml-popup.cml-skin-gradient > * {
	position: relative;
}

/* Dark skin: near-black card regardless of accent color, for dark-themed sites */

.cml-popup.cml-skin-dark {
	background: #16121f;
	border-color: #16121f;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.cml-popup.cml-skin-dark .cml-popup-text,
.cml-popup.cml-skin-dark .cml-popup-time {
	color: #ffffff;
}

.cml-popup.cml-skin-dark .cml-popup-close {
	color: rgba(255, 255, 255, 0.5);
}

.cml-popup.cml-skin-dark .cml-popup-close:hover {
	color: #ffffff;
}

.cml-popup.cml-skin-dark .cml-branding {
	border-top-color: rgba(255, 255, 255, 0.15);
}

/* Glass skin: frosted translucent card, sits over any page background */

.cml-popup.cml-skin-glass {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 10px 30px rgba(18, 14, 41, 0.18);
}

/* Elevated skin: big soft shadow, avatar floats above the top edge */

.cml-popup.cml-skin-elevated {
	border: none;
	border-radius: calc(var(--cml-radius) + 6px);
	box-shadow: 0 24px 48px rgba(18, 14, 41, 0.18), 0 8px 16px rgba(18, 14, 41, 0.08);
	padding-top: 18px;
}

.cml-popup.cml-skin-elevated .cml-popup-img {
	margin-top: -22px;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(18, 14, 41, 0.2);
}

.cml-popup.cml-skin-elevated .cml-popup-img img {
	border: 3px solid var(--cml-bg);
}

/* Capsule skin: full pill shape, light card, big avatar, product name on its
   own bold line beneath the "who did what" line (needs {{title}} in the
   template — parse_template() wraps it in .cml-popup-title for exactly
   this; other skins leave that span unstyled so they're unaffected). */

.cml-popup.cml-skin-capsule {
	background: var(--cml-bg);
	border: 1px solid var(--cml-border);
	border-radius: 999px;
	gap: 14px;
	padding: 8px 24px 8px 8px;
	box-shadow: 0 10px 26px rgba(18, 14, 41, 0.12);
}

.cml-popup.cml-skin-capsule .cml-popup-img {
	width: 52px;
	height: 52px;
}

.cml-popup.cml-skin-capsule .cml-popup-img img {
	border: 2px solid var(--cml-border);
}

.cml-popup.cml-skin-capsule .cml-popup-text {
	color: var(--cml-text);
	opacity: 0.75;
	font-size: 12.5px;
}

.cml-popup.cml-skin-capsule .cml-popup-name {
	color: var(--cml-title);
}

.cml-popup.cml-skin-capsule .cml-popup-title {
	display: block;
	margin-top: 3px;
	color: var(--cml-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.cml-popup.cml-skin-capsule .cml-popup-time {
	opacity: 0.55;
}

.cml-popup.cml-skin-capsule .cml-branding {
	border-top-color: var(--cml-border);
}

/* Notification Bar */

.cml-notification.cml-type-fomo_bar {
	left: 0;
	right: 0;
	max-width: none;
	width: 100%;
	display: none;
	background: var(--cml-bg);
	color: var(--cml-text);
	border-top: 1px solid var(--cml-border);
	border-bottom: 1px solid var(--cml-border);
	box-shadow: 0 4px 20px rgba(18, 14, 41, 0.1);
	opacity: 0;
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.cml-notification.cml-type-fomo_bar.cml-pos-top {
	top: 0;
	bottom: auto;
}

.cml-notification.cml-type-fomo_bar.cml-pos-bottom {
	bottom: 0;
	top: auto;
	transform: translateY(100%);
}

.cml-notification.cml-type-fomo_bar.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.cml-bar-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 56px;
	font-size: 14px;
	line-height: 1.4;
}

.cml-bar-start,
.cml-bar-center,
.cml-bar-end {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cml-bar-start {
	justify-self: start;
}

.cml-bar-center {
	justify-self: center;
	gap: 20px;
}

.cml-bar-end {
	justify-self: end;
}

.cml-bar-message {
	font-size: var(--cml-bar-msg-size, 14px);
	font-weight: 600;
	overflow: hidden;
}

.cml-bar-message.cml-anim-marquee {
	max-width: min(60vw, 480px);
	white-space: nowrap;
}

.cml-bar-message.cml-anim-marquee > span {
	display: inline-block;
	white-space: nowrap;
	padding-left: 100%;
	animation: cml-marquee 14s linear infinite;
}

@keyframes cml-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-100%);
	}
}

.cml-bar-countdown {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.cml-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 28px;
}

.cml-countdown-value {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: var(--cml-bar-countdown-size, 19px);
	line-height: 1.1;
}

.cml-countdown-label {
	margin-top: 2px;
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
}

.cml-countdown-divider {
	width: 1px;
	height: 22px;
	background: currentColor;
	opacity: 0.2;
}

.cml-bar-coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 4px 4px 4px 10px;
	border: 1px dashed var(--cml-border);
	border-radius: 6px;
}

.cml-bar-coupon-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.cml-bar-coupon-copy {
	background: var(--cml-border);
	color: var(--cml-text);
	border: none;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cml-bar-coupon-copy:hover {
	background: var(--cml-title);
	color: #ffffff;
}

.cml-bar-cta {
	flex-shrink: 0;
	background: var(--cml-title);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: var(--cml-bar-btn-size, 13.5px);
	padding: 10px 24px;
	border-radius: 999px;
	white-space: nowrap;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.cml-bar-cta:hover {
	opacity: 0.9;
	color: #ffffff;
	transform: translateY(-1px);
}

.cml-bar-close {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	font-size: 18px;
	line-height: 1;
	color: var(--cml-text);
	opacity: 0.5;
	cursor: pointer;
	padding: 4px;
}

.cml-bar-close:hover {
	opacity: 1;
}

/* Announcement skin: icon badge next to the message */

.cml-bar-icon {
	flex-shrink: 0;
	width: var(--cml-bar-icon-size, 20px);
	height: var(--cml-bar-icon-size, 20px);
	fill: var(--cml-title);
}

/* Urgency skin: solid accent bar, inverted text, pulsing dot */

.cml-notification.cml-skin-urgency {
	background: var(--cml-title);
	border-color: var(--cml-title);
}

.cml-notification.cml-skin-urgency .cml-bar-message {
	color: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-bar-cta {
	background: #ffffff;
	color: var(--cml-title);
}

.cml-notification.cml-skin-urgency .cml-bar-cta:hover {
	color: var(--cml-title);
}

.cml-notification.cml-skin-urgency .cml-bar-close {
	color: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-countdown-value,
.cml-notification.cml-skin-urgency .cml-countdown-label {
	color: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-countdown-divider {
	background: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-bar-coupon {
	border-color: rgba(255, 255, 255, 0.5);
}

.cml-notification.cml-skin-urgency .cml-bar-coupon-code {
	color: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-bar-coupon-copy {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.cml-notification.cml-skin-urgency .cml-bar-coupon-copy:hover {
	background: #ffffff;
	color: var(--cml-title);
}

/* Entrance animation variants */

.cml-notification.cml-type-fomo_bar.cml-anim-fade {
	transform: none;
}

.cml-notification.cml-type-fomo_bar.cml-anim-fade.cml-pos-bottom {
	transform: none;
}

.cml-notification.cml-type-fomo_bar.cml-anim-bounce.is-visible {
	animation: cml-bar-bounce-down 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cml-notification.cml-type-fomo_bar.cml-anim-bounce.cml-pos-bottom.is-visible {
	animation-name: cml-bar-bounce-up;
}

@keyframes cml-bar-bounce-down {
	0% {
		opacity: 0;
		transform: translateY(-100%);
	}
	60% {
		opacity: 1;
		transform: translateY(8px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cml-bar-bounce-up {
	0% {
		opacity: 0;
		transform: translateY(100%);
	}
	60% {
		opacity: 1;
		transform: translateY(-8px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.cml-bar-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	animation: cml-pulse 1.6s ease-in-out infinite;
}

/* Gradient skin: brand two-tone gradient bar, inverted text */

.cml-notification.cml-skin-gradient {
	background: linear-gradient(115deg, var(--cml-title), #a432fb);
	border-color: transparent;
}

.cml-notification.cml-skin-gradient .cml-bar-message {
	color: #ffffff;
}

.cml-notification.cml-skin-gradient .cml-bar-cta {
	background: #ffffff;
	color: var(--cml-title);
}

.cml-notification.cml-skin-gradient .cml-bar-cta:hover {
	color: var(--cml-title);
}

.cml-notification.cml-skin-gradient .cml-bar-close,
.cml-notification.cml-skin-gradient .cml-countdown-value,
.cml-notification.cml-skin-gradient .cml-countdown-label {
	color: #ffffff;
}

.cml-notification.cml-skin-gradient .cml-countdown-divider {
	background: #ffffff;
}

.cml-notification.cml-skin-gradient .cml-bar-coupon {
	border-color: rgba(255, 255, 255, 0.5);
}

.cml-notification.cml-skin-gradient .cml-bar-coupon-code {
	color: #ffffff;
}

/* Outline skin: transparent, bottom border only, ghost button */

.cml-notification.cml-skin-outline {
	background: transparent;
	border-top: none;
	border-bottom: 2px solid var(--cml-title);
	box-shadow: none;
}

.cml-notification.cml-skin-outline .cml-bar-cta {
	background: transparent;
	border: 1.5px solid var(--cml-title);
	color: var(--cml-title);
}

.cml-notification.cml-skin-outline .cml-bar-cta:hover {
	background: var(--cml-title);
	color: #ffffff;
}

/* Dark skin: near-black bar regardless of accent color */

.cml-notification.cml-skin-dark {
	background: #16121f;
	border-color: #16121f;
}

.cml-notification.cml-skin-dark .cml-bar-message,
.cml-notification.cml-skin-dark .cml-countdown-value,
.cml-notification.cml-skin-dark .cml-countdown-label,
.cml-notification.cml-skin-dark .cml-bar-close {
	color: #ffffff;
}

.cml-notification.cml-skin-dark .cml-countdown-divider {
	background: #ffffff;
}

.cml-notification.cml-skin-dark .cml-bar-cta {
	background: var(--cml-title);
	color: #ffffff;
}

.cml-notification.cml-skin-dark .cml-bar-coupon {
	border-color: rgba(255, 255, 255, 0.3);
}

.cml-notification.cml-skin-dark .cml-bar-coupon-code {
	color: #ffffff;
}

/* Floating skin: inset rounded pill instead of an edge-to-edge strip */

.cml-notification.cml-skin-floating {
	left: 16px;
	right: 16px;
	width: auto;
	max-width: 1000px;
	margin: 0 auto;
	border: 1px solid var(--cml-border);
	border-radius: 14px;
	box-shadow: 0 16px 36px rgba(18, 14, 41, 0.18);
}

.cml-notification.cml-skin-floating.cml-pos-top {
	top: 14px;
}

.cml-notification.cml-skin-floating.cml-pos-bottom {
	bottom: 14px;
}

/* Split skin: message sits in a colored badge, rest of the bar stays neutral */

.cml-notification.cml-skin-split .cml-bar-start {
	padding: 6px 16px;
	background: var(--cml-title);
	border-radius: 999px;
}

.cml-notification.cml-skin-split .cml-bar-message {
	color: #ffffff;
}

.cml-notification.cml-skin-split .cml-bar-icon {
	fill: #ffffff;
}

/* Bordered skin: thick accent stripe along the top edge */

.cml-notification.cml-skin-bordered {
	border-top: 4px solid var(--cml-title);
	border-bottom: none;
	box-shadow: 0 6px 20px rgba(18, 14, 41, 0.08);
}

.cml-notification.cml-skin-bordered.cml-pos-bottom {
	border-top: none;
	border-bottom: 4px solid var(--cml-title);
}

/* Playful skin: dashed border, boxed countdown, a little tilt on the CTA */

.cml-notification.cml-skin-playful {
	border-style: dashed;
	border-width: 0 0 2px;
}

.cml-notification.cml-skin-playful .cml-bar-cta {
	transform: rotate(-1deg);
}

.cml-notification.cml-skin-playful .cml-bar-cta:hover {
	transform: rotate(0deg) translateY(-1px);
}

.cml-notification.cml-skin-playful .cml-countdown-unit {
	padding: 3px 8px;
	background: var(--cml-border);
	border-radius: 8px;
}

.cml-notification.cml-skin-playful .cml-countdown-divider {
	display: none;
}

@media (max-width: 720px) {
	.cml-bar-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 10px;
		padding: 14px 40px;
		font-size: 13px;
	}

	.cml-bar-start,
	.cml-bar-center,
	.cml-bar-end {
		justify-self: center;
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* Conversion / Visitor counters */

.cml-counter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	background: var(--cml-bg);
	color: var(--cml-text);
	border: 1px solid var(--cml-border);
	border-radius: var(--cml-radius);
	padding: 10px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
}

.cml-notification .cml-counter {
	display: flex;
}

.cml-counter-value {
	font-weight: 700;
	font-size: 18px;
	color: var(--cml-title);
}

/* Pill skin (default): title + message flow inline right after the value,
   same as the original single-layout markup — this wrapper is transparent
   to layout so pill never regresses when other skins were added. */
.cml-counter-label {
	display: contents;
}

/* Card skin: boxed vertical stat */

.cml-counter-skin-card {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 16px 18px;
	box-shadow: 0 4px 12px rgba(18, 14, 41, 0.05), 0 20px 40px rgba(18, 14, 41, 0.1);
}

.cml-counter-skin-card .cml-counter-value {
	font-size: 30px;
	line-height: 1;
}

.cml-counter-skin-card .cml-counter-label {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cml-counter-skin-card .cml-counter-title {
	font-weight: 700;
	font-size: 13px;
}

.cml-counter-skin-card .cml-counter-message {
	font-size: 12px;
	opacity: 0.65;
}

/* Badge skin: compact rounded chip, number-forward, message dropped */

.cml-counter-skin-badge {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	padding: 10px 16px;
	border-radius: 999px;
}

.cml-counter-skin-badge .cml-counter-value {
	font-size: 20px;
	line-height: 1.15;
}

.cml-counter-skin-badge .cml-counter-label {
	display: block;
}

.cml-counter-skin-badge .cml-counter-title {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.cml-counter-skin-badge .cml-counter-message {
	display: none;
}

/* Minimal skin: no chrome at all, just bold value + label text */

.cml-counter-skin-minimal {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Outline skin: bordered, no shadow */

.cml-counter-skin-outline {
	border: 2px solid var(--cml-title);
	box-shadow: none;
}

/* Gradient skin: brand two-tone gradient fill, inverted text */

.cml-counter-skin-gradient {
	background: linear-gradient(115deg, var(--cml-title), #a432fb);
	border-color: transparent;
}

.cml-counter-skin-gradient .cml-counter-value,
.cml-counter-skin-gradient .cml-counter-title,
.cml-counter-skin-gradient .cml-counter-message {
	color: #ffffff;
}

/* Dark skin: near-black pill regardless of accent color */

.cml-counter-skin-dark {
	background: #16121f;
	border-color: #16121f;
}

.cml-counter-skin-dark .cml-counter-title,
.cml-counter-skin-dark .cml-counter-message {
	color: #ffffff;
}

/* Glass skin: frosted translucent pill, sits over any page background */

.cml-counter-skin-glass {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 10px 26px rgba(18, 14, 41, 0.14);
}

/* Ribbon skin: solid accent flag/tag shape with a notched right edge */

.cml-counter-skin-ribbon {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	padding: 10px 22px 10px 16px;
	background: var(--cml-title);
	border: none;
	border-radius: 4px 0 0 4px;
	clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}

.cml-counter-skin-ribbon .cml-counter-value,
.cml-counter-skin-ribbon .cml-counter-title,
.cml-counter-skin-ribbon .cml-counter-message {
	color: #ffffff;
}

.cml-counter-skin-ribbon .cml-counter-label {
	display: block;
}

.cml-counter-skin-ribbon .cml-counter-value {
	font-size: 20px;
	line-height: 1.15;
}

.cml-counter-skin-ribbon .cml-counter-title {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.cml-counter-skin-ribbon .cml-counter-message {
	display: none;
}

/* Bordered skin: boxed vertical stat with a thick accent stripe on top */

.cml-counter-skin-bordered {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 18px 16px;
	border: 1px solid var(--cml-border);
	border-top: 4px solid var(--cml-title);
	box-shadow: 0 4px 12px rgba(18, 14, 41, 0.05), 0 20px 40px rgba(18, 14, 41, 0.1);
}

.cml-counter-skin-bordered .cml-counter-value {
	font-size: 28px;
	line-height: 1;
}

.cml-counter-skin-bordered .cml-counter-label {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cml-counter-skin-bordered .cml-counter-title {
	font-weight: 700;
	font-size: 13px;
}

.cml-counter-skin-bordered .cml-counter-message {
	font-size: 12px;
	opacity: 0.65;
}

.cml-type-visitor_count .cml-counter-title::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #17c997;
	margin-right: 6px;
	animation: cml-pulse 1.6s ease-in-out infinite;
	vertical-align: middle;
}

@keyframes cml-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.4;
		transform: scale(0.7);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cml-popup,
	.cml-popup.is-visible,
	.cml-notification.cml-type-fomo_bar,
	.cml-notification.cml-group-managed,
	.cml-bar-message.cml-anim-marquee > span,
	.cml-type-visitor_count .cml-counter-title::before {
		animation: none;
		transition: none;
	}

	.cml-bar-message.cml-anim-marquee {
		overflow: auto;
		text-overflow: ellipsis;
	}
}

@media (max-width: 480px) {
	.cml-notification.cml-type-recent_activity {
		width: calc(100vw - 32px);
		max-width: 320px;
	}
}
