/**
 * Cart Drag and Drop Styles
 */

/* Drag handle styling */
.drag-handle {
	display: inline-block;
	margin-right: 10px;
	cursor: grab;
	color: #999;
	font-size: 18px;
	line-height: 1;
	vertical-align: middle;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.drag-handle:active {
	cursor: grabbing;
}

.drag-handle:hover {
	color: #333;
}

/* Make cart rows draggable */
.cart-items-sortable tr.cart_item {
	position: relative;
}

/* Prevent product ID 206 from being draggable */
.cart-items-sortable tr.cart_item[data-product-id="206"] {
	cursor: default;
	opacity: 1;
}

.cart-items-sortable tr.cart_item[data-product-id="206"] .drag-handle {
	display: none;
}

/* SortableJS classes */
.sortable-ghost {
	opacity: 0.4;
	background-color: #f0f0f0;
}

.sortable-chosen {
	cursor: grabbing !important;
}

.sortable-drag {
	opacity: 0.8;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Visual feedback during drag */
.cart-items-sortable tr.cart_item.sortable-ghost {
	background-color: #f9f9f9;
	border: 2px dashed #ccc;
}

/* Responsive: Hide drag handle on mobile if needed */
@media (max-width: 768px) {
	.drag-handle {
		font-size: 16px;
		margin-right: 5px;
	}
}
