/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.rc-color-preview {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #ccc;
	margin-left: 8px;
	vertical-align: middle;
}

/* New swatch UI */
.rc-color-select-hidden {
	/* kept for graceful hide if inline style is overridden */
	position: absolute !important;
	left: -9999px !important;
}

.rc-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.rc-color-swatch {
	width: 26px;
	height: 26px;
	min-width: 26px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.2);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
	cursor: pointer;
	background: #f5f5f5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rc-color-swatch:focus-visible {
	outline: 2px solid #2271b1; /* WP blue */
	outline-offset: 2px;
}

.rc-color-swatch.is-selected {
	box-shadow: 0 0 0 2px #2271b1, inset 0 0 0 1px rgba(255,255,255,0.8);
	border-color: #2271b1;
}

.rc-color-swatch.is-disabled,
.rc-color-swatch:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rc-color-swatch.rc-color-swatch--no-color {
	font-size: 10px;
	color: #444;
	background: #fff;
}

.rc-color-legend {
	margin-top: 4px;
	font-size: 0.875rem;
	color: #444;
	display: none;
}

.rc-color-legend.is-visible {
	display: block;
}