/**
 * PEWC Swatch Display – default styles.
 * Override any of these in your theme / Bricks custom CSS.
 * (If you change the shortcode's class="" attribute, copy these rules
 *  and swap the .pewc-swatches base for your own class.)
 */

.pewc-swatches {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
}

.pewc-swatches__label {
	font-size: 1.6rem;
	font-weight: 500;
	color: #151515;
	line-height: 1.2;
}

.pewc-swatches__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pewc-swatches__item {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pewc-swatches__item:hover {
	transform: scale(1.08);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.pewc-swatches__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pewc-swatches__color {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--hex, #ccc);
}
