/**
 * License Progress — the card itself.
 *
 * These are DEFAULTS, not a fixed skin. Every colour, size and spacing here is
 * also exposed as a Bricks control, and Bricks emits its output against the
 * element's #brxe-id, which outranks these class selectors — so anything set
 * in the panel wins automatically.
 *
 * The point of styling the box at all is that an unstyled element inherits the
 * page's body typography, which on a hero section meant 40px white text and no
 * padding. Shipping a sane self-contained card means the widget looks right the
 * moment it is dropped in.
 */

.bea-license-progress {
	display: block;
	box-sizing: border-box;
	padding: 20px;
	border-radius: 12px;
	background-color: #2c2c2e;
	color: #f5f5f7;
	/* Anchors the em-based sizing below, so the card doesn't inherit a hero
	   heading's font-size. */
	font-size: 15px;
	line-height: 1.5;
}

.bea-license-progress .bea-lp-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.bea-license-progress .bea-lp-title {
	color: #a1a1a6;
	font-size: 0.95em;
}

/* Pushed right rather than relying on space-between, so a badge can sit next
   to the title without landing in the middle of the row. With no badge present
   this lays out identically to space-between. */
.bea-license-progress .bea-lp-counter {
	margin-left: auto;
	color: #f5f5f7;
	font-size: 0.95em;
	/* Fixed-width digits: without this the counter visibly jitters as it ticks
	   up, because proportional "1" is narrower than the other digits. */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.bea-license-progress .bea-lp-badge {
	display: inline-block;
	flex: 0 0 auto;
	/* em-based so the badge tracks whatever font-size it inherits or is given
	   via the typography control, instead of staying fixed against scaled text. */
	font-size: 0.7em;
	line-height: 1.2;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3em 0.65em;
	border-radius: 999px;
	white-space: nowrap;
	background-color: #b3261e;
	color: #fff;
}

.bea-license-progress .bea-lp-track {
	position: relative;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background-color: #3a3a3c;
	overflow: hidden;
}

.bea-license-progress .bea-lp-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background-color: #ffd53e;
	/* Eases the bar when the live count moves it, and when it jumps to 100% on
	   sell-out. Suppressed below for reduced-motion. */
	transition: width 0.4s ease-out;
}

.bea-license-progress .bea-lp-description {
	margin-top: 12px;
	color: #a1a1a6;
	font-size: 0.9em;
}

/* A closed deal reads as past-tense rather than still-live. */
.bea-license-progress[data-bea-lp-status="sold_out"] .bea-lp-counter,
.bea-license-progress[data-bea-lp-status="ended"] .bea-lp-counter {
	opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
	.bea-license-progress .bea-lp-fill {
		transition: none;
	}
}
