/* WP Consultant Toolkit — Proof Strip widget styles. */

.proof-strip .proof-items {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The <li> wrapper only exists for list semantics; drop it from the box
   model so .proof-item stays the direct flex/grid/marquee child. */
.proof-items > li {
	display: contents;
}

.proof-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.proof-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.proof-icon svg {
	display: block;
}

.proof-desc {
	display: block;
}

/* --- Grid mode --- */
.proof-strip--grid .proof-items {
	display: grid;
}

/* --- Flex/percentage mode --- */
.proof-strip--flex .proof-items {
	display: flex;
}

/* --- Marquee mode --- */
.proof-strip--marquee {
	overflow: hidden;
	position: relative;
}

.proof-strip--marquee .proof-items {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	animation-name: wpct-marquee;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-duration: var( --wpct-marquee-duration, 30s );
	animation-direction: var( --wpct-marquee-direction, normal );
}

.proof-strip--marquee.proof-strip--pause-on-hover:hover .proof-items {
	animation-play-state: paused;
}

.proof-strip--marquee.proof-strip--edge-fade {
	-webkit-mask-image: linear-gradient( to right, transparent, #000 5%, #000 95%, transparent );
	mask-image: linear-gradient( to right, transparent, #000 5%, #000 95%, transparent );
}

@keyframes wpct-marquee {
	from {
		transform: translate3d( 0, 0, 0 );
	}
	to {
		transform: translate3d( var( --wpct-marquee-end, -50% ), 0, 0 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.proof-strip--marquee .proof-items {
		animation: none;
	}
}
