/* Collection box tap support. Version 1.0.1-20261112.
 * Desktop already uses :hover in aisle.css. This file mirrors the POSTAGE
 * pill: hover stays on fine pointers, tap uses the existing .pp_hover class
 * on touch and coarse pointers, including widths above 991px.
 * Do not load this on Product Search. Australian Made already has hover;
 * this file does not hide it.
 */

.ios-store-popup .hm_pp_close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
}

@media (hover: none), (pointer: coarse), (max-width: 991px) {
	.ios-store-popup .hm_pp_close,
	.pp_hover .ios-store-popup .hm_pp_close,
	.pp_hover .hm_pp_close {
		display: flex;
	}

	.cls_home_sales:hover .cls_hm_pp {
		display: none;
		opacity: 0;
	}

	.pp_hover.cls_home_sales .cls_hm_pp,
	.cls_home_sales.pp_hover .cls_hm_pp {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		position: fixed !important;
		z-index: 100000 !important;
		left: 50% !important;
		right: auto !important;
		top: 16px !important;
		width: min(420px, 92%) !important;
		max-width: min(420px, 92%) !important;
		max-height: calc(100% - 32px) !important;
		transform: translateX(-50%) !important;
		height: auto !important;
		overflow: auto !important;
		padding: 15px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cls_hm_pp,
	.cls_hm_pp:hover {
		transition: none !important;
		transform: none !important;
	}
}


/* Keep the collection logo centred on the tap overlay. aisle.css otherwise
 * sends .cls_hm_pp img to the top right under 991px, which covers the title. */
@media (hover: none), (pointer: coarse), (max-width: 991px) {
	.pp_hover.cls_home_sales .cls_hm_pp img.ios-popup-logo,
	.pp_hover .ios-store-popup .ios-popup-logo {
		float: none !important;
		width: 70px !important;
		height: 70px !important;
		left: 50% !important;
		right: auto !important;
		top: -32px !important;
		transform: translateX(-50%) !important;
		padding: 6px;
		object-fit: contain;
	}
	.pp_hover .ios-store-popup .cls_hm_pp_ql {
		padding-top: 28px;
	}
}


/* While a Collection box is open on a phone or touch screen, hide the fixed My
 * Favourites tab and the back to top button so they cannot sit over the box
 * (payment icons at the bottom). They return when the box closes. The
 * body.ios-collection-open class is set by ios-collection-popup.js. */
@media (hover: none), (pointer: coarse), (max-width: 991px) {
	body.ios-collection-open .ios-my-favourites-tab,
	body.ios-collection-open .ios-back-to-top,
	body.ios-collection-open #ios-back-to-top,
	body.ios-collection-open #scrollUp {
		display: none !important;
	}
}
