.wccm-campaign {
	border: 1px solid var(--wccm-primary-color, #e11d48);
	background: rgba(225, 29, 72, 0.08);
	border-radius: 12px;
	padding: 18px;
	margin: 20px 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wccm-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wccm-primary-color, #e11d48);
	color: #fff;
	font-size: 0.8rem;
	margin-bottom: 12px;
}

.wccm-title {
	font-size: 1.1rem;
	margin: 10px 0 8px;
	color: #111;
}

.wccm-message {
	font-size: 0.97rem;
	color: #333;
	line-height: 1.6;
}

.wccm-message p {
	margin: 0 0 10px;
}

.wccm-message p:last-child {
	margin-bottom: 0;
}

.wccm-message a {
	color: var(--wccm-primary-color, #e11d48);
	text-decoration: underline;
	font-weight: 600;
}

@media (max-width: 768px) {
	.wccm-campaign {
		padding: 14px;
	}

	.wccm-badge {
		display: block;
		text-align: center;
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
	}
}

.wccm-close {
	position: absolute;
	top: 8px;
	inset-inline-end: 10px;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 4px;
}

.wccm-close:hover {
	opacity: 1;
}

.wccm-countdown {
	margin-top: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
	color: var(--wccm-primary-color, #e11d48);
}

.wccm-countdown-ended {
	display: none;
}

/* Banner: full-width, centered, prominent */
.wccm-style-banner {
	text-align: center;
	border-radius: 0;
	border-width: 0 0 3px 0;
	background: rgba(225, 29, 72, 0.06);
}

.wccm-style-banner .wccm-message {
	max-width: 720px;
	margin: 0 auto;
}

/* Sticky bar: fixed to the bottom of the viewport */
.wccm-style-sticky_bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	margin: 0;
	border-radius: 0;
	border-width: 3px 0 0 0;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}

.wccm-style-sticky_bar.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.wccm-style-sticky_bar .wccm-title {
	margin: 0;
}

.wccm-style-sticky_bar .wccm-message {
	margin: 0;
}

/* Popup: centered modal with a dimmed overlay */
.wccm-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(17, 17, 17, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.wccm-popup-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.wccm-popup-overlay .wccm-style-popup {
	position: relative;
	max-width: 480px;
	width: 100%;
	margin: 0;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.wccm-popup-overlay.is-visible .wccm-style-popup {
	transform: scale(1);
}

@media (max-width: 768px) {
	.wccm-style-sticky_bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}
