/* ==== Product variant picker ==== */

.fl-var {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 4px;
}

.fl-var__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fl-var__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.fl-var__label {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--fl-heading, #1b2b27);
}

.fl-var__chosen {
	font-size: 0.9rem;
	color: var(--fl-muted, #636b77);
}

.fl-var__chosen:not(:empty)::before {
	content: '— ';
}

.fl-var__reset {
	margin-left: auto;
	color: var(--fl-muted, #636b77);
	font-size: 0.84rem;
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}

.fl-var__reset:hover {
	color: var(--fl-primary, #397063);
}

.fl-var__opts {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
}

.fl-var-form.is-enhanced .fl-var__opts {
	display: flex;
}

.fl-var__opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--fl-border, #e6e8e6);
	border-radius: 11px;
	background: #fff;
	color: var(--fl-heading, #1b2b27);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.fl-var__opt:hover:not(:disabled) {
	border-color: var(--fl-primary, #397063);
}

.fl-var__opt.is-active {
	border-color: var(--fl-primary, #397063);
	box-shadow: inset 0 0 0 1px var(--fl-primary, #397063);
	color: var(--fl-primary-dark, #1f4d3f);
}

.fl-var__opt:focus-visible {
	outline: 2px solid var(--fl-primary, #397063);
	outline-offset: 2px;
}

.fl-var__opt.is-off {
	opacity: 0.4;
	cursor: not-allowed;
	position: relative;
}

.fl-var__opt.is-off::after {
	content: '';
	position: absolute;
	inset: 50% 6px auto;
	height: 1px;
	background: currentColor;
	transform: rotate(-14deg);
}

/* ---- Colour swatch ---- */
.fl-var__opt--swatch {
	width: 42px;
	min-height: 42px;
	padding: 0;
	border-radius: 50%;
}

.fl-var__dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(27, 43, 39, 0.14);
}

.fl-var__opt--swatch.is-active .fl-var__dot {
	width: 24px;
	height: 24px;
}

.fl-var__row--color .fl-var__opts {
	gap: 10px;
}

/* ---- Hint ---- */
.fl-var__hint {
	margin: 0 0 12px;
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--fl-muted, #636b77);
}

.fl-var__hint.is-warn {
	color: #a03427;
	font-weight: 600;
}

.fl-var__gone {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #a03427;
}

.fl-var-form.is-enhanced .fl-var__native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---- Form layout ---- */
.single-product form.variations_form.cart {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.single-product form.cart .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	grid-column: 1;
	grid-row: 2;
}

.single-product form.cart .woocommerce-variation-add-to-cart .fl-buy-now {
	grid-column: 2;
	grid-row: 2;
}

.single-product form.cart .woocommerce-variation-add-to-cart .fl-qty-row {
	grid-column: 1 / -1;
	grid-row: 1;
}

.single_variation_wrap {
	display: block;
}

.woocommerce-variation-price,
.woocommerce-variation-availability {
	display: none;
}

.woocommerce-variation-description {
	margin: 0 0 12px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--fl-muted, #636b77);
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button.wc-variation-selection-needed {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 560px) {
	.fl-var__opt {
		min-height: 40px;
	}

	.fl-var__opt--swatch {
		width: 40px;
	}
}
