/*
 * Phone tap targets (under 1250px, the mobile header breakpoint).
 *
 * Makes small icons, links and buttons easier to tap by enlarging an invisible
 * area around them with ::after. Nothing moves and nothing looks different.
 * Turn off: add_filter( 'mvb_phone_tap_targets_enabled', '__return_false' ).
 */

@media (max-width: 1249px) {

	/* Header icons: search, account, notifications, cart, menu, search close.
	   Each is about 34px; the extra 6px on every side brings the target to about 46px. */
	.mobile-container.navb a::after,
	.mobile-container.navb button::after,
	.mobile-search-toggle::after,
	.mobile-search-close::after,
	.mvbmn-drawer__close::after {
		content: "";
		position: absolute;
		inset: -6px;
	}

	/* Checkout text links are NOT enlarged here: their invisible tap areas covered the
	   email and ZIP fields, so a tap in those fields could open a link. Fix them separately. */

	/* Product page bundle buttons (33px tall) and their Swap buttons (18px). */
	/* !important: an existing rule in custom-product.css sets min-height:auto with !important. */
	.prod-atc.mvb-bundle-customize-btn,
	.mvb-bundle-customize-btn {
		min-height: 44px !important;
	}
	.pdp-bundle-swap-btn {
		min-width: 44px !important;
		min-height: 44px !important;
	}

	/* Quantity − / + (12 to 34px wide), Add to Cart (36px tall), review slider arrows (30px), cart close (36px). */
	/* Sideways only 4px: a wider area covered the quantity number between − and +. */
	.pdp-qbtn::after {
		content: "";
		position: absolute;
		inset: -16px -4px;
	}
	.pdp-atc,
	.add-cart-btn {
		min-height: 44px !important;
	}
	.slick-arrow::after,
	.cart-close::after,
	.mvb-bundle-lightbox-close::after {
		content: "";
		position: absolute;
		inset: -7px;
	}

	/* Homepage "Shop Best Seed Deals" button and the Photo / Auto Seeds tabs at checkout (32 to 42px). */
	a.shop-cta-btn,
	button.vault-toggle-btn {
		min-height: 44px !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}
