.tdfpc-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	cursor: pointer;
	font-weight: 500;
}

.tdfpc-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	accent-color: #222529;
}

.tdfpc-toolbar {
	margin: 0 0 12px;
}

/* Checkbox column (added as the first cell of every row by tdfpcLayout) */
.woocommerce-cart-form .product-select {
	width: 36px;
	padding-inline: 4px !important;
	text-align: center;
	vertical-align: middle;
}

/* Before the layout script runs (or without JS) the checkbox stays in the theme's cell */
.cart_item .product-thumbnail .tdfpc-check--item {
	position: absolute;
	top: 4px;
	inset-inline-start: 4px;
	z-index: 2;
}

.cart_item .product-select .tdfpc-check--item {
	position: static;
}

/* Unselected rows: same place, same layout, greyed out */
.tdfpc-unselected .product-thumbnail img,
.tdfpc-unselected .product-name,
.tdfpc-unselected .product-price,
.tdfpc-unselected .product-quantity,
.tdfpc-unselected .product-subtotal {
	opacity: .45;
}

.tdfpc-unselected .product-quantity {
	pointer-events: none;
}

.tdfpc-remove {
	background: none;
	border: 0;
	padding: 0 4px;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}

.tdfpc-remove:hover {
	color: #222529;
}

/* Porto: match the theme's round remove button on the thumbnail corner */
.tdfpc-unselected .product-thumbnail .tdfpc-remove {
	position: absolute;
	top: -10px;
	inset-inline-end: -10px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	font-size: 16px;
}

.tdfpc-none-selected td {
	padding: 20px 0;
	text-align: center;
	font-weight: 600;
}

.tdfpc-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s;
}

/* Checkout button: background gently darkens and fades back. A layer between the
   button background and its text, so text, size and border stay untouched. */
@keyframes tdfpc-flash {
	0%, 100% { opacity: 0; }
	50%      { opacity: .2; }
}

.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout a.btn {
	position: relative;
	isolation: isolate;
}

.wc-proceed-to-checkout a.checkout-button::after,
.wc-proceed-to-checkout a.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #000;
	opacity: 0;
	pointer-events: none;
	animation: tdfpc-flash 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wc-proceed-to-checkout a.checkout-button::after,
	.wc-proceed-to-checkout a.btn::after {
		animation: none;
	}
}
