.flypsee-swatches-control {
	--flypsee-swatch-size: 64px;
	--flypsee-swatch-gap: 10px;
	--flypsee-selected-background: #1f1f1f;
	--flypsee-selected-color: #fff;
	--flypsee-swatch-border-color: #1f1f1f;
	--flypsee-swatch-tick-background: #fff;
	--flypsee-swatch-tick-color: #1f1f1f;
	margin: 0 0 18px;
}

.flypsee-swatches-enhanced-row > .label {
	display: none;
}

.flypsee-swatches-enhanced-row > .value {
	width: 100%;
}

.flypsee-swatches-native-select {
	height: 1px !important;
	margin: -1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	pointer-events: none !important;
	position: absolute !important;
	width: 1px !important;
}

.flypsee-swatches-heading {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.flypsee-swatches-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 10px;
}

.flypsee-swatches-current-name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.flypsee-swatches-current-name--empty {
	font-weight: 400;
	opacity: 0.65;
}

.flypsee-swatches-current-pantone {
	font-size: 0.9rem;
	line-height: 1.35;
	opacity: 0.8;
}

.flypsee-swatches-colourway-options,
.flypsee-swatches-size-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--flypsee-swatch-gap);
}

.flypsee-swatches-swatch,
.flypsee-swatches-size-button {
	appearance: none;
	background: transparent;
	border: 1px solid currentColor;
	cursor: pointer;
	font: inherit;
	margin: 0;
	position: relative;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch {
	border-color: transparent;
	box-sizing: border-box;
	display: inline-block;
	flex: 0 0 var(--flypsee-swatch-size);
	height: var(--flypsee-swatch-size);
	line-height: 0;
	margin: 0;
	max-height: var(--flypsee-swatch-size);
	max-width: var(--flypsee-swatch-size);
	min-height: var(--flypsee-swatch-size);
	min-width: var(--flypsee-swatch-size);
	padding: 0;
	position: relative;
	width: var(--flypsee-swatch-size);
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch > .flypsee-swatches-swatch-visual {
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	bottom: 3px;
	display: flex;
	height: auto;
	justify-content: center;
	left: 3px;
	margin: 0;
	max-height: none;
	max-width: none;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 3px;
	text-align: center;
	top: 3px;
	width: auto;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch > .flypsee-swatches-swatch-visual > img {
	display: block;
	height: 100%;
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	min-height: 100%;
	min-width: 100%;
	object-fit: cover;
	padding: 0;
	position: absolute;
	width: 100%;
}

.flypsee-swatches-swatch-visual--pantone {
	background: #f6f6f6;
	font-size: 0.8rem;
	font-weight: 700;
}

.flypsee-swatches-swatch-visual--text {
	background: #fff;
	font-size: 0.65rem;
	line-height: 1.1;
	overflow-wrap: anywhere;
	padding: 4px;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch:hover:not(:disabled),
form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch:active:not(:disabled) {
	background: transparent;
	background-color: transparent;
	background-image: none;
	border-color: var(--flypsee-swatch-border-color);
	box-shadow: none;
	color: inherit;
	filter: none;
	opacity: 1;
	text-decoration: none;
	transform: none;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch.is-selected {
	background: transparent;
	background-color: transparent;
	background-image: none;
	border-color: var(--flypsee-swatch-border-color);
	border-width: 2px;
	box-shadow: none;
	filter: none;
	transform: none;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch.is-selected::after {
	align-items: center;
	background: var(--flypsee-swatch-tick-background);
	border: 1px solid var(--flypsee-swatch-tick-color);
	border-radius: 50%;
	box-sizing: border-box;
	color: var(--flypsee-swatch-tick-color);
	content: "✓";
	display: flex;
	font-size: 11px;
	font-weight: 700;
	height: 18px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: -5px;
	top: -5px;
	width: 18px;
}

form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch.is-selected:hover::after,
form.variations_form .flypsee-swatches-colourway-options > button.flypsee-swatches-swatch.is-selected:active::after {
	background: var(--flypsee-swatch-tick-background);
	border-color: var(--flypsee-swatch-tick-color);
	color: var(--flypsee-swatch-tick-color);
}

.flypsee-swatches-swatch:disabled,
.flypsee-swatches-size-button:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.flypsee-swatches-swatch:disabled .flypsee-swatches-swatch-visual {
	filter: grayscale(1);
}

.flypsee-swatches-size-button {
	border-radius: 999px;
	min-height: 42px;
	min-width: 52px;
	padding: 8px 16px;
}

.flypsee-swatches-size-button:hover:not(:disabled),
.flypsee-swatches-size-button.is-selected {
	background: var(--flypsee-selected-background);
	border-color: var(--flypsee-selected-background);
	color: var(--flypsee-selected-color);
}

.flypsee-swatches-swatch:focus-visible,
.flypsee-swatches-size-button:focus-visible {
	outline: 3px solid Highlight;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.flypsee-swatches-control {
		--flypsee-swatch-size: 56px;
		--flypsee-swatch-gap: 9px;
	}

	.flypsee-swatches-size-button {
		min-height: 44px;
		padding-left: 14px;
		padding-right: 14px;
	}
}

button.flypsee-swatches-swatch {
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-radius: 0 !important;
	padding: 10px !important;
	transition: all 0.2s;
	margin-inline-start: 0px !important;
}

button.flypsee-swatches-size-button {
	border-radius: 0 !important;
	padding: 10px !important;
}

tr.flypsee-swatches-enhanced-row td {
	background-color: unset !important;
	padding: 0;
}
