/* TRCC Catalog Cards: color swatches on category page cards. */
.trcc-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 6px 0 2px;
}
.trcc-swatch {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #d6d6d0;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	flex: 0 0 auto;
}
.trcc-swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(2.2);
	transform-origin: 50% 60%;
}
.trcc-swatch:hover,
.trcc-swatch:focus-visible {
	border-color: #193441;
}
.trcc-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #193441;
}
.trcc-swatch-more {
	font-size: 13px;
	color: #193441;
	text-decoration: none;
}
.trcc-swatch-count {
	font-size: 12px;
	color: #6b6b6b;
	margin-bottom: 4px;
}

/* Once a color is picked, keep the theme's hover "side view" photo from
   covering it, or the swap happens underneath and looks broken. */
@media (min-width: 993px) {
	li.product.trcc-picked .woocommerce-image__wrapper .gallery-image {
		opacity: 0 !important;
	}
	li.product.trcc-picked .woocommerce-image__wrapper img:not(.gallery-image) {
		opacity: 1 !important;
	}
}
