/* Phoca Cart / shop only — loaded when option=com_phocacart.
   Does not apply to forums, articles or the rest of the site. */

/* Checkout cart table */
body.com_phocacart .ph-checkout-cart-box {
	width: 100%;
	overflow-x: auto;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-header,
body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-item {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-header {
	font-weight: 600;
	border-bottom: 1px solid #d0d0d0;
	padding-bottom: 0.4rem;
	margin-bottom: 0.35rem;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-item {
	border-bottom: 1px solid #ececec;
	padding: 0.55rem 0;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-header > [class*="col-"],
body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-item > [class*="col-"] {
	min-width: 0;
	max-width: none;
	flex: 1 1 0;
	padding: 0.25rem 0.45rem;
	box-sizing: border-box;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-image {
	flex: 0 0 72px !important;
	max-width: 72px !important;
	text-align: center;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-product,
body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-title {
	flex: 1 1 24% !important;
	min-width: 9rem;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-title a {
	display: inline;
	word-break: break-word;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-netto,
body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-tax,
body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-brutto {
	flex: 0 0 7.5rem !important;
	max-width: 8.5rem !important;
	text-align: right;
	white-space: nowrap;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-quantity {
	flex: 0 0 9.5rem !important;
	max-width: 10.5rem !important;
}

body.com_phocacart .ph-checkout-cart-box .phItemCartUpdateBoxForm {
	display: block;
	width: auto;
	margin: 0;
}

body.com_phocacart .ph-checkout-cart-box .phItemCartUpdateBoxForm .input-group {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	width: auto !important;
	max-width: 100%;
}

body.com_phocacart .ph-checkout-cart-box .ph-input-quantity,
body.com_phocacart .ph-checkout-cart-box .form-control.ph-input-quantity,
body.com_phocacart .ph-checkout-cart-box .phItemCartUpdateBoxForm .form-control {
	display: inline-block;
	width: 3.25rem !important;
	max-width: 3.25rem !important;
	min-width: 3.25rem !important;
	flex: 0 0 3.25rem !important;
	text-align: center;
	padding: 0.3rem 0.35rem;
}

body.com_phocacart .ph-checkout-cart-box .phItemCartUpdateBoxForm .ph-btn {
	flex: 0 0 auto;
	margin-left: 0.25rem;
}

body.com_phocacart .ph-checkout-cart-box .ph-img-cart-checkout,
body.com_phocacart .ph-checkout-cart-box .ph-row-image img {
	max-width: 56px;
	height: auto;
}

body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-subtotal > [class*="col-"] {
	padding: 0.2rem 0.45rem;
}

@media (max-width: 767px) {
	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-header {
		display: none;
	}

	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-item {
		flex-wrap: wrap;
	}

	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-row-item > [class*="col-"] {
		flex: 1 1 45% !important;
		max-width: none !important;
	}

	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-image {
		flex: 0 0 64px !important;
	}

	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-product,
	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-title {
		flex: 1 1 calc(100% - 72px) !important;
	}

	body.com_phocacart .ph-checkout-cart-box .ph-checkout-cart-quantity {
		flex: 1 1 100% !important;
		max-width: none !important;
	}
}

/* Cart module basket icon + count */
body.com_phocacart .ph-cart-module-box .ph-cart-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1;
}

body.com_phocacart .ph-cart-module-box .ph-cart-toggle-icon {
	display: inline-flex;
	align-items: center;
}

body.com_phocacart .ph-cart-module-box .ph-cart-toggle-icon .pc-si,
body.com_phocacart .ph-cart-module-box .ph-cart-toggle-icon svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: currentColor;
	vertical-align: middle;
}

body.com_phocacart .ph-cart-module-box .ph-cart-count-sup {
	display: inline-block;
	min-width: 1.35rem;
	padding: 0.15rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	vertical-align: middle;
}
