/**
 * Advanced Progress Bar — Style 2: Animated Stripes
 *
 * A bold accent fill overlaid with diagonal stripes that scroll continuously,
 * giving an active "loading" feel. The track is slightly inset.
 *
 * @package captain-widgets-kit
 * @since   1.6.0
 */

.captwiki-progress.captwiki-style-2 .captwiki-progress__track {
	background: var( --captwiki-pb-track );
	box-shadow: inset 0 1px 3px rgba( 17, 24, 39, 0.12 );
}

.captwiki-progress.captwiki-style-2 .captwiki-progress__fill {
	background: var( --captwiki-pb-accent );
	background-image: linear-gradient(
		45deg,
		rgba( 255, 255, 255, 0.22 ) 25%,
		transparent 25%,
		transparent 50%,
		rgba( 255, 255, 255, 0.22 ) 50%,
		rgba( 255, 255, 255, 0.22 ) 75%,
		transparent 75%,
		transparent
	);
	background-size: 1rem 1rem;
	animation: captwiki-pb2-stripes 1s linear infinite;
}

@keyframes captwiki-pb2-stripes {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 1rem 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.captwiki-progress.captwiki-style-2 .captwiki-progress__fill {
		animation: none;
	}
}
