/* Vorabansicht: Checkbox im Warenkorb */

.vorabansicht-option {
	margin: 15px 0;
}

.vorabansicht-option label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

#vorabansicht {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	width: 20px;
	min-width: 20px;
	height: 20px;
	margin: 0;
	background-color: #fff;
	border: 1px solid color-mix(in srgb, currentColor 48%, transparent);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

#vorabansicht:checked {
	background-color: #8c2f3d;
	border-color: #8c2f3d;
}

/* Weißes Häkchen */
#vorabansicht:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#vorabansicht:hover {
	border-color: #8c2f3d;
}

#vorabansicht:focus-visible {
	outline: 2px solid color-mix(in srgb, #8c2f3d 40%, transparent);
	outline-offset: 2px;
}

/* Während WooCommerce aktualisiert */
#vorabansicht:disabled {
	cursor: wait;
	opacity: 0.6;
}
