/**
 * Dude Products — product editor admin styles.
 */

.wpdude-dc-gallery-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.wpdude-dc-gallery-list li {
	position: relative;
	margin: 0;
	border: 1px solid #c3c4c7;
	background: #fff;
	line-height: 0;
}

.wpdude-dc-gallery-list li img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.wpdude-dc-gallery-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #d63638;
	color: #fff !important;
	text-decoration: none;
	line-height: 16px;
	text-align: center;
	font-size: 14px;
	padding: 0;
}

.wpdude-dc-option-row {
	margin-bottom: 8px;
}

.wpdude-dc-option-values {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	max-width: 480px;
}

.wpdude-dc-option-value-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.wpdude-dc-option-value-row .wpdude-dc-option-value-label {
	flex: 1 1 160px;
	min-width: 120px;
}

.wpdude-dc-combinations-table input.small-text {
	width: 5.5em;
}

.wpdude-dc-combo-defaults {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #c3c4c7;
}

.wpdude-dc-combo-defaults__fields,
.wpdude-dc-combo-defaults__sku {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: flex-end;
	margin: 0.5rem 0 0;
}

.wpdude-dc-combo-defaults__fields label,
.wpdude-dc-combo-defaults__sku label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
}

.wpdude-dc-combo-defaults__check {
	flex-direction: row !important;
	align-items: center;
	gap: 0.35rem !important;
	padding-bottom: 0.35rem;
}

.wpdude-dc-combo-defaults__actions {
	margin: 0.75rem 0 0;
}

.wpdude-dc-combo-image-cell .wpdude-dc-combo-image-preview {
	display: inline-block;
	min-width: 40px;
	margin-right: 6px;
	vertical-align: middle;
}

.wpdude-dc-combo-image-cell .wpdude-dc-combo-image-preview img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	vertical-align: middle;
}
