/*
 * Product Gallery counter: a dark translucent pill, top-right of the gallery
 * frame, above the slides and any video player.
 */
.wc-block-product-gallery-large-image:has( > .tccc-gallery-counter ) {
	position: relative;
}

.tccc-gallery-counter {
	position: absolute;
	top: var( --wp--preset--spacing--s );
	right: var( --wp--preset--spacing--s );
	/* Above WooCommerce's slides (1), the video layer (2) and its button (3). */
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: var( --wp--preset--spacing--xxs );
	padding: var( --wp--preset--spacing--xxs ) var( --wp--preset--spacing--xs );
	border-radius: var( --wp--preset--border-radius--s );
	background: color-mix( in oklch, var( --wp--preset--color--black ) 60%, transparent );
	color: var( --wp--preset--color--white );
	font-size: var( --wp--preset--font-size--small );
	font-variant-numeric: tabular-nums;
	line-height: 1;
	pointer-events: none;
}

.tccc-gallery-counter__icon {
	flex: none;
}
