/* ©¤©¤ Nightweeds Cart Block styles ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
/* Only loads on /cart/ via body.woocommerce-cart       */

body.woocommerce-cart .wp-block-woocommerce-cart {
	--nw-cart-black: #050505;
	--nw-cart-bone: #e8e4da;
	--nw-cart-neon: #b7ff00;
	--nw-cart-muted: rgba(232, 228, 218, 0.66);
	--nw-cart-border: rgba(232, 228, 218, 0.16);
	--nw-cart-panel: #0b0b0b;
	max-width: 1320px;
	margin-inline: auto;
	padding-top: 2rem;
	margin-bottom: 3rem;
	color: var(--nw-cart-bone);
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

body.woocommerce-cart .wc-block-cart__main {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--nw-cart-border);
	background: var(--nw-cart-panel);
	padding: 20px 24px;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--nw-cart-border);
	background: var(--nw-cart-panel);
	padding: 20px 24px;
}

/* ©¤©¤ Cart page title alignment ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wp-block-post-title {
	max-width: 1320px;
	margin-inline: auto;
}

/* ©¤©¤ Cart items table ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-items {
	width: 100%;
	border-collapse: collapse;
}

/* ©¤©¤ Table header ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-items__header th {
	padding: 0 0 0.75rem;
}

body.woocommerce-cart .wc-block-cart-items__header th {
	border-bottom: 1px solid var(--nw-cart-border);
}

body.woocommerce-cart .wc-block-cart-items__header span {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nw-cart-muted);
}

body.woocommerce-cart .wc-block-cart-items__header-image {
	width: 88px;
}

body.woocommerce-cart .wc-block-cart-items__header-total {
	text-align: right;
	width: 80px;
}

/* ©¤©¤ Product rows ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-items__row td {
	padding: 16px 0;
	vertical-align: top;
}

/* ©¤©¤ Row separator line ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-items__row:not(:last-child) td:first-child {
	position: relative;
}

body.woocommerce-cart .wc-block-cart-items__row:not(:last-child) td:first-child::after {
	content: '';
	position: absolute;
	left: -24px;
	right: 0;
	bottom: 0;
	height: 1px;
	background: rgba(232, 228, 218, 0.08);
	pointer-events: none;
}

/* ©¤©¤ Product image ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__image {
	width: 80px;
	padding-right: 16px;
}

body.woocommerce-cart .wc-block-cart-item__image a {
	display: block;
}

body.woocommerce-cart .wc-block-cart-item__image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 1px solid var(--nw-cart-border);
	display: block;
}

/* ©¤©¤ Product name ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-product-name {
	color: var(--nw-cart-bone);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: color 160ms ease;
}

body.woocommerce-cart .wc-block-components-product-name:hover,
body.woocommerce-cart .wc-block-components-product-name:focus {
	color: var(--nw-cart-neon);
}

/* ©¤©¤ Product price (unit) ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__prices {
	margin: 4px 0 6px;
}

body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--nw-cart-bone);
}

/* ©¤©¤ Spacing between image and product info ©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__wrap {
	padding-left: 16px;
}

/* ©¤©¤ Hide product description in cart ©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-product-metadata__description {
	display: none;
}

/* ©¤©¤ Quantity selector ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	height: 38px;
	border: 1px solid var(--nw-cart-border);
	border-radius: 0;
	background: transparent;
	transition: border-color 160ms ease;
}

body.woocommerce-cart .wc-block-components-quantity-selector:focus-within,
body.woocommerce-cart .wc-block-components-quantity-selector:hover {
	border-color: var(--nw-cart-neon);
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
	width: 40px;
	height: auto;
	padding: 0;
	border: 0;
	text-align: center;
	color: var(--nw-cart-bone);
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	-moz-appearance: textfield;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
body.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
	width: 32px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--nw-cart-muted);
	background: transparent;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 160ms ease;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
	color: var(--nw-cart-neon);
}

/* ©¤©¤ Remove button ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	color: var(--nw-cart-muted);
	background: transparent;
	cursor: pointer;
	transition: color 160ms ease;
	margin-left: 4px;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.woocommerce-cart .wc-block-cart-item__remove-link:focus {
	color: var(--nw-cart-neon);
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ©¤©¤ Product total (right column) ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__total {
	text-align: right;
	vertical-align: top;
	padding-top: 16px;
}

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--nw-cart-bone);
}

/* ©¤©¤ Quantity area layout ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
}

/* ©¤©¤ Cart footer spacing ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart__footer {
	margin-top: 1.5rem;
}

/* ©¤©¤ Cart totals title ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart__totals-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nw-cart-muted);
	padding: 0 0 0.75rem;
	margin: 0 0 0.75rem;
}

body.woocommerce-cart .wc-block-cart__totals-title {
	border-bottom: 1px solid var(--nw-cart-border);
}

/* ©¤©¤ Coupon panel ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
	min-height: 44px;
	padding: 0 0 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--nw-cart-border);
	border-radius: 0;
	color: var(--nw-cart-muted);
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 160ms ease;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:focus {
	color: var(--nw-cart-neon);
}

body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	transition: transform 160ms ease;
}

body.woocommerce-cart .wc-block-components-panel[aria-expanded="true"] .wc-block-components-panel__button-icon {
	transform: rotate(180deg);
}

/* ©¤©¤ Totals data rows ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-totals-wrapper {
	padding: 12px 0;
}

body.woocommerce-cart .wc-block-components-totals-wrapper:not(:last-of-type) {
	border-bottom: 1px solid rgba(232, 228, 218, 0.08);
}

body.woocommerce-cart .wc-block-components-totals-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nw-cart-muted);
}

body.woocommerce-cart .wc-block-components-totals-item__value {
	font-size: 13px;
	font-weight: 600;
	color: var(--nw-cart-bone);
	text-align: right;
	flex-shrink: 0;
}

/* ©¤©¤ Estimated total ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--nw-cart-bone);
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 17px;
	font-weight: 800;
	color: var(--nw-cart-neon);
}

body.woocommerce-cart .wc-block-components-totals-footer-item-shipping {
	font-size: 11px;
	font-weight: 500;
	color: var(--nw-cart-muted);
	margin-top: 4px;
}

/* ©¤©¤ PayPal container ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart__payment-options {
	margin-top: 16px;
	width: 100%;
}

body.woocommerce-cart .wc-block-components-express-payment__event-buttons {
	width: 100%;
}

body.woocommerce-cart .wc-block-components-express-payment__event-buttons > div {
	width: 100%;
}

/* ©¤©¤ OR separator ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-components-express-payment-continue-rule {
	font-size: 11px;
	font-weight: 600;
	color: var(--nw-cart-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 12px 0;
}

/* ©¤©¤ Proceed to Checkout ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart .wc-block-cart__submit-container {
	padding: 0;
	width: 100%;
}

body.woocommerce-cart .wc-block-cart__submit-button {
	display: flex;
	width: 100%;
	min-height: 55px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--nw-cart-neon);
	color: var(--nw-cart-black);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 160ms ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
	opacity: 0.85;
}

/* ©¤©¤ Coupon input fix ©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ */
body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon {
	background: #050505;
	color: #e8e4da;
	-webkit-text-fill-color: #e8e4da;
	caret-color: #b7ff00;
	border: 1px solid rgba(232, 228, 218, 0.28);
	border-radius: 0;
	min-height: 44px;
	outline: none;
}

body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon:focus {
	border-color: #b7ff00;
	outline: none;
	box-shadow: 0 0 0 1px #b7ff00;
}

body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon::placeholder {
	color: rgba(232, 228, 218, 0.48);
	-webkit-text-fill-color: rgba(232, 228, 218, 0.48);
	opacity: 1;
}

body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon:-webkit-autofill,
body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon:-webkit-autofill:hover,
body.woocommerce-cart #wc-block-components-totals-coupon__input-coupon:-webkit-autofill:focus {
	-webkit-text-fill-color: #e8e4da;
	-webkit-box-shadow: 0 0 0 999px #050505 inset;
	background: #050505;
	color: #e8e4da;
}

/* ©¤©¤ Mobile: collapse to single column ©¤©¤©¤©¤©¤©¤©¤ */
@media (max-width: 782px) {
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	width: 100%;
	margin: 0;
	}

	body.woocommerce-cart .wc-block-components-sidebar-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	/* ©¤©¤ Mobile: product row 2-col grid ©¤©¤©¤©¤©¤©¤©¤©¤ */
	body.woocommerce-cart .wc-block-cart-items__row {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 4px 16px;
		align-items: start;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		grid-row: 1 / 3;
		width: 80px;
		padding: 0;
	}

	body.woocommerce-cart .wc-block-cart-item__product {
		grid-column: 2;
		grid-row: 1;
		padding: 0;
		overflow: hidden;
	}

	body.woocommerce-cart .wc-block-cart-item__total {
		display: none;
	}

	body.woocommerce-cart .wc-block-cart-item__quantity {
		grid-column: 2;
		grid-row: 3;
		margin-top: 2px;
	}

	body.woocommerce-cart .wc-block-cart-items__row td {
		padding: 0;
		vertical-align: top;
		background: none;
		border: 0;
	}

	body.woocommerce-cart .wc-block-cart-item__wrap {
		padding-left: 0;
	}

	body.woocommerce-cart .wc-block-cart-item__prices {
		margin: 2px 0 4px;
	}
}

