/**
 * Card-style rows for WooCommerce Measurement Price Calculator (#price_calculator).
 */

.single-product #price_calculator.wc-measurement-price-calculator-price-table {
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.25rem;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tbody {
	display: block;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row {
	display: block;
	box-sizing: border-box;
	margin: 0 0 0.75rem;
	padding: 1rem 1.125rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row:last-child {
	margin-bottom: 0;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row td {
	display: block;
	width: 100% !important;
	padding: 0.4rem 0 0;
	text-align: left !important;
	vertical-align: middle;
	border: none;
	background: transparent !important;
	background-color: transparent !important;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row td:first-child {
	padding-top: 0;
	font-weight: 600;
	color: #333;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row td label {
	display: block;
	margin: 0;
	font-weight: inherit;
	cursor: pointer;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table input.amount_needed,
.single-product #price_calculator.wc-measurement-price-calculator-price-table select.amount_needed {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 0.15rem;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table input.amount_needed:focus,
.single-product #price_calculator.wc-measurement-price-calculator-price-table select.amount_needed:focus {
	background: #fff !important;
	background-color: #fff !important;
}

.single-product #price_calculator.wc-measurement-price-calculator-price-table .wc-measurement-price-calculator-input-help {
	vertical-align: middle;
	margin-right: 0.25rem;
}

.single-product #price_calculator .product_price,
.single-product #price_calculator .wc-measurement-price-calculator-total-amount,
.single-product #price_calculator .product_price_overage {
	font-weight: 600;
	font-size: 1.05em;
	background: transparent !important;
	background-color: transparent !important;
}

/*
 * Quantity: fill only the input, not the wrapper. A white background on div.quantity
 * is rectangular and shows outside the input’s pill border-radius.
 */
.single-product div.product form.cart div.quantity {
	background-color: transparent !important;
	background-image: none !important;
	border-radius: 30px;
	overflow: hidden;
}

.single-product div.product form.cart div.quantity span {
	background-color: transparent !important;
	background-image: none !important;
}

.single-product div.product form.cart div.quantity input.input-text.qty,
.single-product div.product form.cart div.quantity input[type="number"] {
	background-color: #f2f2f5 !important;
	background-image: none !important;
	box-shadow: none !important;
	border-radius: 30px;
}

@media (min-width: 600px) {
	.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.5rem 1.25rem;
		align-items: center;
	}

	.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row td {
		padding-top: 0;
	}

	.single-product #price_calculator.wc-measurement-price-calculator-price-table tr.price-table-row td:last-child {
		text-align: right !important;
	}

	.single-product #price_calculator.wc-measurement-price-calculator-price-table input.amount_needed,
	.single-product #price_calculator.wc-measurement-price-calculator-price-table select.amount_needed {
		width: auto;
		min-width: 8rem;
		max-width: 100%;
		margin-top: 0;
		margin-left: auto;
		display: block;
	}
}
