﻿/*
 * Qing WooCommerce classic cart
 * Black page, products on the left and totals on the right.
 */

/* ----------------------------------------------------------------------
 * Page shell
 * ---------------------------------------------------------------------- */
body.qing-cart-page {
	margin: 0;
	color: #fff;
	background: #000;
}

body.qing-cart-page #page.site {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #000;
}

body.qing-cart-page #content.site-content {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background: #000;
}

body.qing-cart-page .content-area,
body.qing-cart-page .entry,
body.qing-cart-page .entry-content,
body.qing-cart-page .entry-content > .alignwide {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.qing-cart-page .entry {
	background: transparent;
	border: 0;
	border-radius: 0;
}

body.qing-cart-page .entry-header {
	margin: 0 0 40px;
}

body.qing-cart-page .widget-area {
	display: none;
}

body.qing-cart-page .site-header,
body.qing-cart-page .site-footer {
	color: #fff;
	background: #000;
	border-color: #272727;
}

body.qing-cart-page .site-title a,
body.qing-cart-page .site-description,
body.qing-cart-page .main-navigation a,
body.qing-cart-page .site-footer a,
body.qing-cart-page .site-info,
body.qing-cart-page .site-footer .widget,
body.qing-cart-page .site-footer .widget-title {
	color: #fff;
}

body.qing-cart-page .main-navigation li {
	border-color: #272727;
}

/* ----------------------------------------------------------------------
 * Shared typography
 * ---------------------------------------------------------------------- */
body.qing-cart-page .entry-title,
body.qing-cart-page .woocommerce,
body.qing-cart-page .woocommerce h1,
body.qing-cart-page .woocommerce h2,
body.qing-cart-page .woocommerce h3,
body.qing-cart-page .woocommerce p,
body.qing-cart-page .woocommerce label,
body.qing-cart-page .woocommerce th,
body.qing-cart-page .woocommerce td,
body.qing-cart-page .woocommerce strong,
body.qing-cart-page .woocommerce .amount {
	color: #fff;
}

body.qing-cart-page .entry-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

body.qing-cart-page .woocommerce a:not(.button):not(.remove) {
	color: #fff;
	text-underline-offset: 0.2em;
}

/* ----------------------------------------------------------------------
 * Main two-column layout
 * ---------------------------------------------------------------------- */
body.qing-cart-page .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
	align-items: start;
	column-gap: 45px;
	row-gap: 28px;
	/* The cart is rendered as a block/shortcode wrapper (.alignwide) that sits
	 * outside #content, so the page gutter must live on this element itself. */
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 50px !important;
	box-sizing: border-box;
}

body.qing-cart-page .woocommerce-notices-wrapper,
body.qing-cart-page .woocommerce-message,
body.qing-cart-page .woocommerce-info,
body.qing-cart-page .woocommerce-error,
body.qing-cart-page .return-to-shop {
	grid-column: 1 / -1;
}

body.qing-cart-page .woocommerce-cart-form {
	grid-column: 1;
	min-width: 0;
}

body.qing-cart-page .cart-collaterals {
	grid-column: 2;
	width: 100%;
	min-width: 0;
}

body.qing-cart-page .cart-collaterals .cross-sells {
	display: none;
}

body.qing-cart-page .cart-collaterals .cart_totals {
	position: sticky;
	top: 30px;
	float: none;
	width: 100%;
	margin: 0;
	padding: 28px;
	box-sizing: border-box;
	background: #0d0d0d;
	border: 1px solid #292929;
}

body.admin-bar.qing-cart-page .cart-collaterals .cart_totals {
	top: 62px;
}

body.qing-cart-page .cart_totals > h2 {
	margin: 0 0 22px;
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 600;
}

/* ----------------------------------------------------------------------
 * Product table and continuous separators
 * ---------------------------------------------------------------------- */
body.qing-cart-page .woocommerce table.shop_table,
body.qing-cart-page .woocommerce table.shop_table_responsive {
	width: 100%;
	margin: 0;
	background: transparent;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	border-radius: 0;
}

body.qing-cart-page .woocommerce-cart-form__contents thead tr,
body.qing-cart-page .woocommerce-cart-form__contents tr.cart_item {
	display: grid;
	grid-template-columns: 90px minmax(180px, 1.6fr) minmax(78px, 0.62fr) minmax(90px, 0.62fr) minmax(90px, 0.68fr) 38px;
	grid-template-areas: "thumbnail name price quantity subtotal remove";
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid #292929;
}

body.qing-cart-page .woocommerce-cart-form__contents thead th,
body.qing-cart-page .woocommerce-cart-form__contents tr.cart_item td {
	min-width: 0;
	padding: 18px 10px;
	box-sizing: border-box;
	background: transparent;
	border: 0;
	vertical-align: middle;
}

body.qing-cart-page .woocommerce-cart-form__contents thead th {
	padding-top: 0;
	padding-bottom: 14px;
	color: #939393;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-thumbnail {
	grid-area: thumbnail;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-name {
	grid-area: name;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-price {
	grid-area: price;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-quantity {
	grid-area: quantity;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-subtotal {
	grid-area: subtotal;
}

body.qing-cart-page .woocommerce-cart-form__contents .product-remove {
	grid-area: remove;
	justify-self: end;
	padding-right: 0;
	text-align: right;
}

body.qing-cart-page .woocommerce-cart-form__contents td.product-thumbnail img {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: cover;
	background: #151515;
}

body.qing-cart-page .woocommerce-cart-form__contents td.product-name a {
	font-size: clamp(0.95rem, 1.15vw, 1.1rem);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

body.qing-cart-page .woocommerce-cart-form__contents a.remove {
	display: grid !important;
	place-items: center;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #8d8d8d !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 28px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

body.qing-cart-page .woocommerce-cart-form__contents a.remove:hover,
body.qing-cart-page .woocommerce-cart-form__contents a.remove:focus-visible {
	color: #fff !important;
	background: transparent !important;
	outline: 1px solid #fff;
	outline-offset: 1px;
}

/* Quantity stepper: minus / value / plus. The buttons are injected by
 * assets/js/woocommerce-cart.js; styles here also cover the pre-JS state. */
body.qing-cart-page .woocommerce .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 42px;
	border: 1px solid #303030;
	background: #111;
}

body.qing-cart-page .woocommerce .quantity .qing-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 100%;
	padding: 0;
	margin: 0;
	color: #fff;
	background: transparent;
	border: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

body.qing-cart-page .woocommerce .quantity .qing-qty-btn:hover,
body.qing-cart-page .woocommerce .quantity .qing-qty-btn:focus-visible {
	color: #000;
	background: #fff;
	outline: none;
}

body.qing-cart-page .woocommerce .quantity .qty {
	width: 46px;
	height: 100%;
	min-height: 0;
	padding: 0 4px;
	box-sizing: border-box;
	color: #fff;
	background: transparent;
	border: 0;
	border-left: 1px solid #303030;
	border-right: 1px solid #303030;
	border-radius: 0;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Hide the native number spinners; the custom buttons replace them. */
body.qing-cart-page .woocommerce .quantity .qty::-webkit-outer-spin-button,
body.qing-cart-page .woocommerce .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.qing-cart-page .woocommerce .quantity .qty:focus {
	outline: none;
}

/* ----------------------------------------------------------------------
 * Coupon and cart actions
 * ---------------------------------------------------------------------- */
body.qing-cart-page .woocommerce-cart-form__contents tbody > tr:last-child {
	display: table-row;
	border: 0;
}

body.qing-cart-page .woocommerce-cart-form__contents td.actions {
	width: 100%;
	padding: 24px 0 0;
	border: 0;
}

body.qing-cart-page .woocommerce-cart-form__contents td.actions::after {
	content: "";
	display: table;
	clear: both;
}

body.qing-cart-page .woocommerce-cart-form td.actions .coupon {
	display: flex;
	float: left;
	gap: 8px;
}

body.qing-cart-page .woocommerce-cart-form td.actions .coupon label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.qing-cart-page .woocommerce-cart-form td.actions .input-text {
	width: 190px !important;
	height: 44px;
	min-height: 44px;
	margin: 0 !important;
	padding: 9px 12px !important;
	box-sizing: border-box;
	color: #fff !important;
	background: #111 !important;
	border: 1px solid #303030 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.qing-cart-page .woocommerce-cart-form td.actions .input-text::placeholder {
	color: #7d7d7d;
}

body.qing-cart-page .woocommerce-cart-form td.actions button.button,
body.qing-cart-page .woocommerce-cart-form td.actions input.button {
	min-height: 44px !important;
	margin: 0 !important;
	padding: 12px 20px !important;
	box-sizing: border-box;
	color: #000 !important;
	background: #fff !important;
	border: 1px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
}

body.qing-cart-page .woocommerce-cart-form td.actions > button[name="update_cart"] {
	float: right;
}

body.qing-cart-page .woocommerce-cart-form td.actions button.button:hover,
body.qing-cart-page .woocommerce-cart-form td.actions button.button:focus-visible,
body.qing-cart-page .woocommerce-cart-form td.actions input.button:hover,
body.qing-cart-page .woocommerce-cart-form td.actions input.button:focus-visible {
	color: #fff !important;
	background: #000 !important;
}

body.qing-cart-page .woocommerce-cart-form td.actions button.button:disabled,
body.qing-cart-page .woocommerce-cart-form td.actions button.button:disabled[disabled] {
	color: #737373 !important;
	background: #171717 !important;
	border-color: #303030 !important;
	cursor: not-allowed;
	opacity: 1 !important;
}

/* ----------------------------------------------------------------------
 * Totals and checkout
 * ---------------------------------------------------------------------- */
body.qing-cart-page .woocommerce .cart_totals table.shop_table th,
body.qing-cart-page .woocommerce .cart_totals table.shop_table td {
	padding: 15px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #292929;
}

body.qing-cart-page .woocommerce .cart_totals table.shop_table th {
	width: 42%;
	font-size: 12px;
	font-weight: 500;
}

body.qing-cart-page .woocommerce .cart_totals table.shop_table td {
	text-align: right;
}

body.qing-cart-page .woocommerce .cart_totals .order-total th,
body.qing-cart-page .woocommerce .cart_totals .order-total td {
	padding-top: 18px;
	border-bottom: 0;
}

body.qing-cart-page .woocommerce .cart_totals .order-total .amount {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

body.qing-cart-page .woocommerce .wc-proceed-to-checkout {
	padding: 24px 0 0;
}

body.qing-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 14px 18px !important;
	box-sizing: border-box;
	color: #000 !important;
	background: #fff !important;
	border: 1px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
}

body.qing-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
body.qing-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button:focus-visible {
	color: #fff !important;
	background: #000 !important;
}

/* PayPal's own button is rendered inside an iframe and cannot inherit theme
 * button styles, but its wrapper should align with the checkout button. */
body.qing-cart-page .woocommerce .ppc-button-wrapper,
body.qing-cart-page .woocommerce .ppcp-button-apm {
	width: 100% !important;
	max-width: none !important;
}

/* Space the PayPal / express-payment buttons away from the checkout button. */
body.qing-cart-page .woocommerce .wc-proceed-to-checkout .ppc-button-wrapper {
	margin-top: 14px !important;
}

body.qing-cart-page .woocommerce .wc-proceed-to-checkout .ppcp-messages:not(:empty) {
	margin-bottom: 14px;
}

/* ----------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */
body.qing-cart-page .woocommerce-message,
body.qing-cart-page .woocommerce-info,
body.qing-cart-page .woocommerce-error {
	margin: 0 0 22px;
	padding: 15px 18px 15px 48px;
	color: #fff;
	background: #111;
	border: 1px solid #303030;
	border-top-color: #fff;
}

body.qing-cart-page .woocommerce-message::before,
body.qing-cart-page .woocommerce-info::before,
body.qing-cart-page .woocommerce-error::before {
	color: #fff;
}

/* ----------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1000px) {
	body.qing-cart-page .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 38px;
	}

	body.qing-cart-page .woocommerce-cart-form,
	body.qing-cart-page .cart-collaterals {
		grid-column: 1;
	}

	body.qing-cart-page .cart-collaterals .cart_totals {
		position: static;
	}
}

@media (max-width: 767px) {
	body.qing-cart-page .woocommerce {
		padding: 28px 15px !important;
	}

	body.qing-cart-page .entry-header {
		margin-bottom: 26px;
	}

	body.qing-cart-page .woocommerce-cart-form__contents thead {
		display: none;
	}

	body.qing-cart-page .woocommerce-cart-form__contents tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 88px minmax(0, 1fr);
		grid-template-areas:
			"thumbnail name"
			"thumbnail price"
			"thumbnail quantity"
			"thumbnail subtotal";
		align-items: start;
		column-gap: 14px;
		padding: 18px 38px 18px 0;
	}

	body.qing-cart-page .woocommerce-cart-form__contents tr.cart_item td {
		width: auto;
		padding: 6px 0;
		border: 0;
	}

	body.qing-cart-page .woocommerce-cart-form__contents tr.cart_item td::before {
		color: #8d8d8d;
		font-size: 9px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-thumbnail {
		align-self: start;
		padding: 0;
		text-align: left !important;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-thumbnail::before,
	body.qing-cart-page .woocommerce-cart-form__contents td.product-name::before,
	body.qing-cart-page .woocommerce-cart-form__contents td.product-remove::before {
		display: none;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-thumbnail img {
		width: 88px;
		height: 88px;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-name {
		padding-top: 0;
		padding-right: 4px;
		text-align: left !important;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-price,
	body.qing-cart-page .woocommerce-cart-form__contents td.product-quantity,
	body.qing-cart-page .woocommerce-cart-form__contents td.product-subtotal {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		text-align: right !important;
	}

	body.qing-cart-page .woocommerce-cart-form__contents td.product-remove {
		position: absolute;
		top: 14px;
		right: 0;
		display: block;
		width: 30px;
		padding: 0;
	}

	body.qing-cart-page .woocommerce-cart-form__contents a.remove {
		width: 30px !important;
		height: 30px !important;
		font-size: 25px !important;
	}

	body.qing-cart-page .woocommerce-cart-form td.actions .coupon {
		float: none;
		width: 100%;
		margin-bottom: 10px;
	}

	body.qing-cart-page .woocommerce-cart-form td.actions .input-text {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
	}

	body.qing-cart-page .woocommerce-cart-form td.actions > button[name="update_cart"] {
		float: none;
		width: 100%;
	}

	body.qing-cart-page .cart-collaterals .cart_totals {
		padding: 22px 18px;
	}
}

@media (max-width: 420px) {
	body.qing-cart-page .woocommerce-cart-form td.actions .coupon {
		flex-direction: column;
	}

	body.qing-cart-page .woocommerce-cart-form td.actions .input-text,
	body.qing-cart-page .woocommerce-cart-form td.actions .coupon .button {
		width: 100% !important;
	}
}
