/* Badges on Eventin's ticket categories ("Only 7 left!", "Selling fast", "Ends tomorrow"). */

.bf-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 2px;
}
.bf-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.01em;
	white-space: nowrap;
}
/* Icons drawn here rather than in the text: WordPress turns emoji in the page into images, and screen readers
   read the plain words. */
.bf-badge--selling_fast::before {
	content: "🔥";
}
.bf-badge--ends_soon::before {
	content: "⏳";
}
.bf-badge--last_days::before {
	content: "⏰";
}
.bf-badge--few_left::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: bf-badge-pulse 1.6s ease-in-out infinite;
}
.bf-badge--few_left {
	background: #fdecea;
	color: #b42318;
}
.bf-badge--selling_fast {
	background: #fff1df;
	color: #9a4d00;
}
.bf-badge--ends_soon {
	background: #f4eee8;
	color: #72544a;
}
.bf-badge--last_days {
	background: #fde8d0;
	color: #8a3b00;
}

/* Event page designs often style every span in the category name with !important (BreakFree Event Page sets
   20px and brown); these selectors outrank that so the badges keep their size and colours. */
body .etn-ticket-title .bf-badges span.bf-badge[class] {
	font-size: 12px !important;
	line-height: 1.35 !important;
}
body .etn-ticket-title .bf-badges span.bf-badge--few_left[class] {
	color: #b42318 !important;
}
body .etn-ticket-title .bf-badges span.bf-badge--selling_fast[class] {
	color: #9a4d00 !important;
}
body .etn-ticket-title .bf-badges span.bf-badge--ends_soon[class] {
	color: #72544a !important;
}
body .etn-ticket-title .bf-badges span.bf-badge--last_days[class] {
	color: #8a3b00 !important;
}

@keyframes bf-badge-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.75); }
}
@media (prefers-reduced-motion: reduce) {
	.bf-badge--few_left::before {
		animation: none;
	}
}
