/* G15-G19 (2026-05-03): cart page (/korzina/) UX polish.
   Goals:
   - Lowercase labels (UPPERCASE = shouty on mobile)
   - Cleaner item row spacing
   - Compact summary card
   - Hide redundant "X added to cart" banners on /cart/ itself
   - Stronger primary CTA "Перейти до оформлення"
*/

/* G16: hide success banner on /cart/ — user is ALREADY on cart */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message {
	display: none !important;
}

/* G15: tame UPPERCASE labels in WC default cart table */
body.woocommerce-cart table.shop_table thead th,
body.woocommerce-cart .product-name__label,
body.woocommerce-cart .cart_totals th {
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 500;
	font-size: 13px;
	color: #64748b;
}

/* Item row layout */
body.woocommerce-cart table.cart {
	border-radius: 12px;
	overflow: hidden;
}
body.woocommerce-cart table.cart td.product-thumbnail img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	border-radius: 8px;
}
body.woocommerce-cart table.cart td.product-quantity .quantity input.qty {
	width: 60px;
	height: 38px;
	border-radius: 8px;
	border: 1.5px solid #e5e7eb;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}
body.woocommerce-cart table.cart .product-name a {
	color: #0f172a;
	font-weight: 500;
	line-height: 1.35;
}
body.woocommerce-cart table.cart .product-remove a.remove {
	color: #94a3b8;
	font-size: 18px;
}
body.woocommerce-cart table.cart .product-remove a.remove:hover {
	color: #ef4444;
	background: transparent;
}

/* G17: cart_totals summary — softer card */
body.woocommerce-cart .cart_totals {
	background: #fafbfc;
	border: 1px solid #eef0f3;
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
body.woocommerce-cart .cart_totals h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px;
	letter-spacing: 0;
}
body.woocommerce-cart .cart_totals .shop_table {
	border: 0;
	background: transparent;
	margin-bottom: 14px;
}
body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
	padding: 8px 0;
	font-size: 14px;
	color: #475569;
	background: transparent;
	border-color: #f1f5f9;
}
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

/* G18: cart_totals shipping value — make clearer */
body.woocommerce-cart .cart_totals .shipping td {
	color: #475569;
}
body.woocommerce-cart .cart_totals .shipping .woocommerce-Price-amount {
	color: #0f172a;
	font-weight: 600;
}

/* Primary CTA prominence */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .checkout-button {
	height: 56px !important;
	border-radius: 12px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	background: #ffba00 !important;
	color: #0f172a !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: 0 1px 3px rgba(255,186,0,.25);
	transition: background .15s, transform .1s;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .checkout-button:hover {
	background: #f0a800 !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active {
	transform: scale(0.99);
}

/* Coupon row */
body.woocommerce-cart .coupon input.input-text {
	height: 44px;
	border-radius: 8px;
	border: 1.5px solid #e5e7eb;
	padding: 0 14px;
	font-size: 14px;
}
body.woocommerce-cart .coupon button[name="apply_coupon"] {
	height: 44px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

/* Mobile spacing */
@media (max-width: 768px) {
	body.woocommerce-cart .cart_totals {
		padding: 14px 16px;
		border-radius: 12px;
	}
	body.woocommerce-cart .cart_totals h2 {
		font-size: 15px;
		margin-bottom: 10px;
	}
	body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
		height: 52px !important;
		font-size: 15px !important;
	}
}
