/* WDL Cart Icon. Author: WDL (https://webdevlimited.bg)
   Enlarges the header cart icon and its badge, and gives the cart a proper
   touch target on phones.

   The selectors use the #cart id form on purpose. The theme has

       @media (max-width: 767px) { #cart > a > i, .ci_f a i { font-size: 16px } }

   at specificity (1,0,2), so a class-only selector loses on mobile and the
   icon silently stays at 16px. (1,2,0) beats it.

   Change the four values below to resize. */

:root {
	--wdl-cart-icon-size: 28px;
	--wdl-cart-icon-size-mobile: 22px;
	--wdl-cart-total-size: 12px;
	--wdl-cart-total-box: 19px;
}

#cart .cart-ancer .fa-shopping-basket {
	font-size: var(--wdl-cart-icon-size);
	vertical-align: middle;
}

#cart #cart-total {
	font-size: var(--wdl-cart-total-size);
	width: var(--wdl-cart-total-box);
	height: var(--wdl-cart-total-box);
	line-height: var(--wdl-cart-total-box);
}

@media (max-width: 767px) {
	#cart .cart-ancer .fa-shopping-basket {
		font-size: var(--wdl-cart-icon-size-mobile);
	}

	/* The anchor was 35x27, and the badge sits on top of roughly a third of
	   it, so the reliably tappable area was tiny. 44x44 is the usual minimum
	   for a touch target. The badge is inside the anchor, so tapping the
	   badge opens the cart as well. */
	#cart .cart-ancer {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
}
