/* =============================================================================
   AMA variation swatches — functional baseline. Restyle to match your tokens.
   The native <select> lives inside .ama-swatch-select and is hidden; the
   swatches drive it. States: .is-selected (chosen), .is-disabled (unavailable).
   ========================================================================== */

.ama-swatch-select {
	display: none;
}

.ama-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
}

.ama-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: .35rem .75rem;
	font: inherit;
	line-height: 1.1;
	color: var(--ama-graphite-color, #333);
	background: var(--ama-white-color, #fff);
	border: 1px solid var(--ama-alice-blue-color, #dce3ec);
	border-radius: var(--ama-general-border-radius, .25rem);
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}

.ama-swatch:not(.is-disabled):hover,
.ama-swatch:not(.is-disabled):focus-visible {
	border-color: var(--ama-primary-color, #333);
}

.ama-swatch.is-selected {
	color: var(--ama-white-color, #fff);
	background: var(--ama-primary-color, #333);
	border-color: var(--ama-primary-color, #333);
}

.ama-swatch.is-disabled {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}
