.cfl-linked-set-form {
	display: grid;
	gap: 16px;
	max-width: 460px;
}

.cfl-linked-set-form .cfl-field {
	display: grid;
	gap: 8px;
}

.cfl-linked-set-form label {
	font-weight: 600;
}

.cfl-linked-set-form .quantity {
	margin: 0;
}

.cfl-swatch-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 38px;
	align-items: center;
}

.cfl-swatch {
	appearance: none;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font: inherit;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cfl-swatch:hover:not(:disabled) {
	border-color: #111827;
}

.cfl-swatch.selected {
	border-color: #111827;
	box-shadow: 0 0 0 2px #111827;
}

.cfl-swatch:disabled,
.cfl-swatch.disabled {
	cursor: not-allowed;
	opacity: 0.38;
	text-decoration: line-through;
}

.cfl-swatch-size {
	min-width: 42px !important;
	height: 38px !important;
	padding: 0 12px !important;
	border-radius: 999px !important;
	font-weight: 600;
}

.cfl-swatch-color {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	border-radius: 999px !important;
	background: var(--cfl-color, #e5e7eb) !important;
	padding: 0 !important;
}

.cfl-swatch-color span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cfl-swatch-color::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, 0.65);
}

.cfl-swatch-empty {
	color: #6b7280;
	font-size: 0.92em;
}

.cfl-swatch-group.is-loading .cfl-swatch-empty::after {
	content: "...";
}

.cfl-buy-button {
	justify-self: start;
}
