/* Colour attribute rendered as buttons, matching the size buttons. */
.zestify-color-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 16px;
}

/* Spacing between size/color buttons comes from the parent's gap, not button margins. */
.zestify-product-form .variations .zestify-size-options {
	gap: 8px;
}

.zestify-product-form .variations .zestify-size-options button {
	margin: 0 !important;
}

.zestify-product-form .variations .zestify-size-options {
	margin-left: 0 !important;
	margin-inline-start: 0 !important;
}

.zestify-color-options button {
	min-width: 48px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #e2e5eb;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all .2s ease;
}

.zestify-color-options button:hover:not(:disabled),
.zestify-color-options button.is-selected {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.zestify-color-options button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.variations select[data-zestify-color-ready="1"] {
	display: none !important;
}

/* Beat the page's "keep swatches visible" rule and any swatch/select UI of the plugin. */
.zestify-product-form .variations .zestify-color-row .variable-items-wrapper,
.variations .zestify-color-row .variable-items-wrapper,
.variations .zestify-color-row .select2,
.variations .zestify-color-row .select2-container,
.variations .zestify-color-row .nice-select,
.variations .zestify-color-row select {
	display: none !important;
}

.zestify-product-form .variations select[id][data-zestify-color-ready="1"][name] {
	display: none !important;
}

/* Layout: color row above size row, label above its buttons (same as size). */
.zestify-product-form table.variations tbody {
	display: flex;
	flex-direction: column;
}

.zestify-product-form table.variations tbody tr {
	display: block !important;
	width: 100% !important;
}

.zestify-product-form table.variations tbody tr.zestify-color-row {
	display: block !important;
	width: 100% !important;
	order: -1;
	margin: 12px 0 6px !important;
}

.zestify-product-form table.variations tbody tr.zestify-color-row th.label,
.zestify-product-form table.variations tbody tr.zestify-color-row td.value {
	display: block !important;
	width: 100% !important;
}

.zestify-product-form table.variations tbody tr.zestify-color-row td.value .zestify-color-options {
	width: 100%;
}
