/* NoirMusk cart page — item rows as cards, stepper, coupon bar and totals card */

.cart-collaterals h2,
.cart_totals h2 {
	font-family: var(--theme-heading-font-family);
}

/* ---------- items table ---------- */
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents {
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 14px;
	background: transparent;
	margin: -14px 0 0;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents thead th {
	padding: 0 18px 4px;
	border: 0;
	background: transparent;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8c867c;
	text-align: left;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents thead th.product-price,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents thead th.product-quantity,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents thead th.product-subtotal {
	text-align: center;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td {
	padding: 18px 16px;
	border: 0;
	border-top: 1px solid #ece7de;
	border-bottom: 1px solid #ece7de;
	background: #fff;
	vertical-align: middle;
	text-align: center;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td:first-child {
	padding-left: 18px;
	border-left: 1px solid #ece7de;
	border-radius: 10px 0 0 10px;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td:last-child {
	border-right: 1px solid #ece7de;
	border-radius: 0 10px 10px 0;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item:hover td {
	border-color: #e2d5bd;
}

/* remove ✕ */
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-remove {
	width: 56px;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #e6dfd3;
	border-radius: 50%;
	background: #fff !important;
	color: #8c867c !important;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents a.remove::before,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents a.remove::after {
	display: none !important;
	content: none !important;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents a.remove:hover {
	background: #1a1a1a !important;
	border-color: #1a1a1a;
	color: #fff !important;
}

/* thumbnail */
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-thumbnail {
	width: 108px;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-thumbnail a {
	display: block;
	width: 84px;
	height: 84px;
	/* the theme adds padding-right: 20px to this link on desktop, which squeezed the photo and showed the frame colour */
	padding: 0 !important;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #ece7de;
	border-radius: 6px;
	background: #f3efe8;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

/* name, price, subtotal */
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-name {
	text-align: left;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-name a {
	font-family: var(--theme-heading-font-family);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1a1a1a;
	transition: color 0.2s ease;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-name a:hover {
	color: #a3703f;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-price,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-price .amount,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-subtotal,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-subtotal .amount {
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #1a1a1a;
}
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-subtotal,
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents td.product-subtotal .amount {
	font-weight: 700;
}

/* quantity stepper (same look as the product page) */
.woocommerce-cart .woocommerce .quantity {
	display: inline-flex;
	align-items: stretch;
	min-width: 116px;
	height: 46px;
	border: 1px solid #d9d2c5;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce-cart .woocommerce .quantity:hover {
	border-color: #1a1a1a;
}
.woocommerce-cart .woocommerce .quantity:focus-within {
	border-color: #a3703f;
	box-shadow: 0 0 0 3px rgba(163, 112, 63, 0.16);
}
.woocommerce-cart .woocommerce .quantity .qty-minus,
.woocommerce-cart .woocommerce .quantity .qty-plus {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: auto;
	margin: 0;
	padding: 0;
	color: #1a1a1a;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.woocommerce-cart .woocommerce .quantity .qty-minus i,
.woocommerce-cart .woocommerce .quantity .qty-plus i {
	display: none;
}
.woocommerce-cart .woocommerce .quantity .qty-minus::before,
.woocommerce-cart .woocommerce .quantity .qty-plus::before,
.woocommerce-cart .woocommerce .quantity .qty-plus::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.5px;
	margin: -0.75px 0 0 -5.5px;
	background: currentColor;
	border-radius: 1px;
}
.woocommerce-cart .woocommerce .quantity .qty-plus::after {
	transform: rotate(90deg);
}
.woocommerce-cart .woocommerce .quantity .qty-minus:hover,
.woocommerce-cart .woocommerce .quantity .qty-plus:hover {
	background: #f6f3ee;
	color: #a3703f;
}
.woocommerce-cart .woocommerce .quantity input.qty {
	flex: 0 0 44px;
	width: 44px !important;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: #1a1a1a;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.woocommerce-cart .woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart .woocommerce .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- update bar (items table) ---------- */
.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr:last-child td.actions {
	padding: 4px 0 0;
	border: 0;
	background: transparent;
	text-align: right;
}
.woocommerce-cart .woocommerce td.actions {
	display: table-cell;
}
.woocommerce-cart .woocommerce td.actions .button,
.woocommerce-cart .woocommerce td.actions button[name="update_cart"] {
	height: 50px;
	margin: 0;
	padding: 0 26px !important;
	border: 1px solid #1a1a1a !important;
	border-radius: 4px !important;
	background: transparent !important;
	color: #1a1a1a !important;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: none;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	float: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.woocommerce-cart .woocommerce td.actions button[name="update_cart"]:hover:not(:disabled) {
	background: #1a1a1a !important;
	color: #fff !important;
}
.woocommerce-cart .woocommerce td.actions button[name="update_cart"]:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---------- coupon (in the totals sidebar) ---------- */
.woocommerce-cart .woocommerce .noirmusk-coupon {
	margin: 24px 0 22px;
	padding: 22px 0 0;
	border-top: 1px solid #ece7de;
}
.woocommerce-cart .woocommerce .noirmusk-coupon__label {
	display: block;
	margin: 0 0 10px;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}
.woocommerce-cart .woocommerce .noirmusk-coupon__row {
	display: flex;
	gap: 10px;
}
.woocommerce-cart .woocommerce .noirmusk-coupon__input {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #d9d2c5;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 15px;
	color: #1a1a1a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce-cart .woocommerce .noirmusk-coupon__input:focus {
	outline: none;
	border-color: #a3703f;
	box-shadow: 0 0 0 3px rgba(163, 112, 63, 0.16);
}
.woocommerce-cart .woocommerce .noirmusk-coupon__btn {
	height: 50px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.woocommerce-cart .woocommerce .noirmusk-coupon__btn:hover {
	background: #a3703f;
	border-color: #a3703f;
}

/* ---------- totals card ---------- */
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
	padding: 30px 30px 32px;
	border: 1px solid #ece7de;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
}
.woocommerce-cart .woocommerce .cart_totals h2 {
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #ece7de;
	font-family: var(--theme-heading-font-family);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table th,
.woocommerce-cart .woocommerce .cart_totals table.shop_table td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid #f0ebe2;
	background: transparent;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	vertical-align: middle;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table th {
	font-size: 15px;
	font-weight: 500;
	color: #6b665d;
	text-align: left;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table td {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	text-align: right;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td {
	padding-top: 20px;
	border-bottom: 0;
	color: #1a1a1a;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th {
	font-size: 16px;
	font-weight: 700;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td,
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total .amount {
	font-size: 22px;
	font-weight: 700;
}
.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
	margin: 22px 0 0;
	padding: 0;
}
.woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 24px !important;
	border: 1px solid #1a1a1a !important;
	border-radius: 4px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}
.woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button:hover {
	background: #a3703f !important;
	border-color: #a3703f !important;
}

/* ---------- applied coupon row ---------- */
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount th {
	white-space: nowrap;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount th .noirmusk-coupon-code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 6px;
	padding: 4px 10px 4px 8px;
	border: 1px dashed #d8c29b;
	border-radius: 4px;
	background: #faf6ee;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	color: #a3703f;
	vertical-align: middle;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount th .noirmusk-coupon-code::before {
	content: '';
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L2 12V2h10l8.6 8.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7' cy='7' r='1.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L2 12V2h10l8.6 8.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7' cy='7' r='1.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount td {
	color: #2f7d4f;
	font-weight: 700;
	line-height: 1.3;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount td .amount {
	color: inherit;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount td .woocommerce-remove-coupon {
	display: block;
	margin-top: 4px;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #8c867c;
	transition: color 0.2s ease;
}
.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-discount td .woocommerce-remove-coupon:hover {
	color: #1a1a1a;
}

/* ---------- empty cart ---------- */
.woocommerce-cart .woocommerce .cart-empty {
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 16px;
}
.woocommerce-cart .woocommerce .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 28px !important;
	border: 1px solid #1a1a1a !important;
	border-radius: 4px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: none;
}
.woocommerce-cart .woocommerce .return-to-shop .button:hover {
	background: #000 !important;
}

/* ---------- phones: each item becomes a stacked card ---------- */
@media (max-width: 768px) {
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents,
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tbody,
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr:not(.cart_item) {
		display: block;
		width: 100%;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents {
		border-spacing: 0;
		margin: 0;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents thead {
		display: none;
	}
	/* item card: photo + name + price on top, then a quantity row and a subtotal row */
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr);
		grid-template-areas:
			"thumb name"
			"thumb price"
			"qty qty"
			"sub sub";
		column-gap: 16px;
		row-gap: 0;
		align-items: center;
		margin: 0 0 14px;
		padding: 16px;
		border: 1px solid #ece7de;
		border-radius: 10px;
		background: #fff;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td,
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td:first-child,
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td:last-child {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		min-width: 0;
		width: auto !important;
		max-width: 100%;
		padding: 0;
		border: 0;
		border-radius: 0;
		text-align: right;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-remove {
		position: absolute;
		top: 12px;
		right: 12px;
		width: auto !important;
		padding: 0;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-thumbnail {
		position: static !important;
		grid-area: thumb;
		align-self: start;
		height: auto;
		background: transparent;
		justify-content: flex-start;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-name {
		grid-area: name;
		align-self: end;
		justify-content: flex-start;
		padding: 4px 34px 0 0;
		text-align: left;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-name a {
		font-size: 17px;
		line-height: 1.3;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-price {
		grid-area: price;
		align-self: start;
		justify-content: flex-start;
		padding-top: 8px;
		text-align: left;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-quantity {
		grid-area: qty;
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid #f0eadf;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-subtotal {
		grid-area: sub;
		padding-top: 14px;
	}
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td[data-title]::before {
		content: attr(data-title);
		float: none;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: #8c867c;
	}
	/* name and price read fine without their labels once they sit beside the photo */
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-name::before,
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-price::before {
		display: none;
	}
	/* stepper on the right, in line with the subtotal amount */
	.woocommerce-cart .woocommerce table.woocommerce-cart-form__contents tr.cart_item td.product-quantity .quantity {
		margin: 0 0 0 auto;
	}
	/* the number inside the stepper: centred, full size (the theme was shrinking it and pinning it to the top) */
	.woocommerce-cart .woocommerce .quantity input.qty {
		height: 44px !important;
		font-size: 16px !important;
		line-height: 44px !important;
		color: #1a1a1a !important;
	}
	.woocommerce-cart .woocommerce td.actions {
		display: block;
	}
	.woocommerce-cart .woocommerce td.actions button[name="update_cart"] {
		float: none;
		width: 100%;
	}
	.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
		padding: 22px 20px 24px;
	}
}
