/* Cart — ported from pimpmyacc-design/product-cart.html. Shared parts live in base.css.
   Overrides Flatsome/WooCommerce cart styles, hence the longer selectors. */

.pma-cart { max-width: 1110px; margin: 0 auto; padding: 25px 34px 40px; }

.pma-cart-title { display: flex; align-items: baseline; gap: 11px; margin-bottom: 24px; }
.pma-ui .pma-cart-title h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.8px; }
.pma-cart-count { font-size: 12px; color: var(--pma-muted); }

.pma-cart-layout {
	display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
	gap: 29px; align-items: start;
}

/* Items table */
.pma-ui table.pma-cart-table {
	width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed;
	font-size: 12px;
}
.pma-ui .pma-cart-table th {
	padding: 0 7px 13px; border: 0; border-bottom: 1px solid var(--pma-line);
	font-size: 11px; font-weight: 400; color: var(--pma-muted);
	text-align: left; text-transform: none; letter-spacing: 0;
}
.pma-ui .pma-cart-table th.product-name { width: 52%; padding-left: 0; }
.pma-ui .pma-cart-table th.product-quantity { width: 28%; }
.pma-ui .pma-cart-table :is(th, td).product-subtotal { text-align: right; padding-right: 0; }
.pma-ui .pma-cart-table td {
	padding: 20px 7px; border: 0; border-bottom: 1px solid var(--pma-line);
	vertical-align: middle; color: var(--pma-ink);
}
.pma-ui .pma-cart-table td.product-name { padding-left: 0; }
.pma-ui .pma-cart-table td.product-subtotal { font-size: 14px; font-weight: 500; }
.pma-cart-table .amount { color: inherit; font-weight: inherit; }

.pma-cart-product { display: flex; gap: 12px; align-items: center; }
.pma-thumb {
	width: 54px; height: 62px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--pma-art-bg); border-radius: 9px;
}
.pma-thumb img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.pma-cart-item { min-width: 0; }
.pma-item-name { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 5px; }
.pma-ui .pma-item-name a:hover { color: var(--pma-purple); }
.pma-item-meta { font-size: 11px; line-height: 1.6; color: var(--pma-muted); }
.pma-cart-item .variation { margin: 5px 0 0; font-size: 11px; color: var(--pma-muted); }
.pma-cart-item .variation dt,
.pma-cart-item .variation dd,
.pma-cart-item .variation p { display: inline; margin: 0; font-size: inherit; }

/* .product-remove > a is what cart.js listens to */
.pma-ui .product-remove { margin-top: 7px; }
.pma-ui .product-remove > a.remove {
	display: inline; width: auto; height: auto; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: none; opacity: 1;
	color: var(--pma-muted); font-size: 11px; font-weight: 400; line-height: 1.4;
	text-decoration: underline;
}
.pma-ui .product-remove > a.remove:hover { color: var(--pma-purple); background: none; }

/* Actions + coupon */
.pma-cart-actions {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
	gap: 15px; margin-top: 19px;
}
.pma-cart-actions .pma-link { font-size: 12px; }

.pma-coupon { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--pma-line); font-size: 12px; }
.pma-coupon summary { color: var(--pma-muted); cursor: pointer; }
.pma-coupon summary:hover { color: var(--pma-purple); }
.pma-coupon-form { display: flex; gap: 8px; margin-top: 12px; }
.pma-ui .pma-coupon-form input.input-text {
	flex: 1; min-width: 0; height: auto; min-height: 42px; margin: 0; padding: 10px 12px;
	border: 1px solid var(--pma-line); border-radius: 7px; box-shadow: none;
	background: #fff; color: var(--pma-ink); font-size: 14px;
}

/* Totals (WooCommerce's cart-totals.php) */
.pma-cart .cart-collaterals { width: auto; float: none; padding: 0; margin: 0; }
.pma-cart .cart_totals {
	width: auto; float: none;
	padding: 23px; background: var(--pma-soft);
	border: 1px solid var(--pma-line); border-radius: var(--pma-radius);
}
.pma-ui .cart_totals h2 { margin: 0 0 24px; font-size: 18px; letter-spacing: -.4px; text-transform: none; }
.pma-ui .cart_totals table { width: 100%; margin: 0; border: 0; }
.pma-ui .cart_totals :is(th, td) {
	padding: 0 0 17px; border: 0; background: none;
	font-size: 13px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0;
	vertical-align: baseline;
}
.pma-ui .cart_totals th { color: var(--pma-muted); text-align: left; }
.pma-ui .cart_totals td { color: var(--pma-ink); text-align: right; }
.pma-ui .cart_totals .amount { color: inherit; font-weight: inherit; }
.pma-ui .cart_totals tr.order-total :is(th, td) { padding-top: 19px; border-top: 1px solid #e1d9ee; }
.pma-ui .cart_totals tr.order-total td { font-size: 23px; font-weight: 500; letter-spacing: -.5px; }
.pma-ui .cart_totals tr.order-total td strong { font-weight: inherit; }
.pma-ui .cart_totals .woocommerce-remove-coupon { color: var(--pma-purple); font-size: 11px; }

.pma-cart .wc-proceed-to-checkout { margin: 12px 0 0; padding: 0; }
.pma-ui .wc-proceed-to-checkout a.checkout-button {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	width: 100%; min-height: 44px; margin: 0; padding: 12px 10px;
	background-color: var(--pma-purple) !important; /* Flatsome prints the customizer color inline */
	color: #fff; border: 0; border-radius: 7px; box-shadow: none;
	font-size: 13px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.pma-ui .wc-proceed-to-checkout a.checkout-button::after { content: "→"; }
.pma-ui .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(.93); color: #fff; }
.pma-checkout-note { font-size: 11px; color: var(--pma-muted); line-height: 1.7; margin: 12px 0 0; }

/* Empty */
.pma-cart-empty {
	text-align: center; padding: 42px 20px 50px;
	background: var(--pma-soft); border: 1px solid var(--pma-line); border-radius: var(--pma-radius);
}
.pma-cart-empty .wc-empty-cart-message,
.pma-cart-empty .cart-empty {
	margin: 0 0 10px; padding: 0; border: 0; background: none;
	font-size: 19px; font-weight: 500; letter-spacing: -.4px; color: var(--pma-ink);
}
.pma-cart-empty .cart-empty::before { display: none; }
.pma-cart-empty p { font-size: 13px; color: var(--pma-muted); line-height: 1.7; margin: 0 0 21px; }

.pma-cross-sells { margin-top: 44px; }

@media (max-width: 820px) {
	.pma-cart { padding: 24px; }
	.pma-cart-layout { grid-template-columns: 1fr; }
	.pma-ui .pma-cart-title h1 { font-size: 27px; }
}

@media (max-width: 560px) {
	.pma-cart { padding: 21px 18px 27px; }
	.pma-thumb { display: none; }
	.pma-ui .pma-cart-table th.product-name { width: 44%; }
	.pma-ui .pma-cart-table th.product-quantity { width: 34%; }
	.pma-ui .pma-cart-table td { padding: 19px 3px; }
	.pma-ui .quantity input.minus,
	.pma-ui .quantity input.plus { width: 28px; }
	.pma-ui .quantity input.qty { width: 29px; }
	.pma-ui .pma-coupon-form input.input-text { font-size: 16px; }
	.pma-cart-actions { gap: 12px; }
}

/* Empty cart message: WooCommerce prints it as an info notice. */
.pma-cart-empty .cart-empty.woocommerce-info { display: block; margin: 0 0 10px; padding: 0; background: none; border: 0; text-align: center; }
