/**
 * Nellava promo quota progress styling.
 *
 * Product card styling note:
 * Adjust spacing, font size, or max-width in this file if your WooCommerce
 * product card or Elementor widget needs a tighter layout. The shortcode root
 * class is .nellava-quota-progress.
 */

.nellava-quota-progress {
	--nellava-quota-navy: #333a73;
	--nellava-quota-gold: #c9a44c;
	--nellava-quota-gold-soft: #f4e7bd;
	--nellava-quota-ink: #20243f;
	--nellava-quota-muted: #6f7287;
	box-sizing: border-box;
	width: 100%;
	margin: 10px 0;
	padding: 12px;
	border: 1px solid rgba(51, 58, 115, 0.14);
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
	box-shadow: 0 8px 22px rgba(32, 36, 63, 0.06);
	color: var(--nellava-quota-ink);
	font-size: 13px;
	line-height: 1.35;
}

.nellava-quota-progress *,
.nellava-quota-progress *::before,
.nellava-quota-progress *::after {
	box-sizing: border-box;
}

.nellava-quota-progress__top,
.nellava-quota-progress__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.nellava-quota-progress__label {
	color: var(--nellava-quota-navy);
	font-weight: 700;
}

.nellava-quota-progress__claimed,
.nellava-quota-progress__bottom {
	color: var(--nellava-quota-muted);
	font-weight: 600;
}

.nellava-quota-progress__track {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 9px;
	margin: 9px 0 8px;
	border-radius: 999px;
	background: #e8eaf4;
}

.nellava-quota-progress__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--nellava-quota-navy) 0%, var(--nellava-quota-gold) 100%);
	transition: width 220ms ease;
}

.nellava-quota-progress__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 4px 8px;
	border: 1px solid rgba(201, 164, 76, 0.45);
	border-radius: 999px;
	background: var(--nellava-quota-gold-soft);
	color: #7a560d;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
	white-space: normal;
	text-align: center;
}

.nellava-quota-custom-text {
	box-sizing: border-box;
	width: 100%;
	margin: 10px 0;
	padding: 12px;
	border: 1px solid rgba(51, 58, 115, 0.25);
	border-radius: 8px;
	background: #eef0f7;
	color: #333a73;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.nellava-quota-progress[data-status="sold_out"] .nellava-quota-progress__fill {
	background: linear-gradient(90deg, #8a8fa8 0%, var(--nellava-quota-gold) 100%);
}

@media (max-width: 480px) {
	.nellava-quota-progress {
		padding: 10px;
		font-size: 12px;
	}

	.nellava-quota-progress__top {
		align-items: flex-start;
		flex-direction: column;
	}

	.nellava-quota-progress__bottom {
		display: block;
	}
}
