/* PoolPal pending fixes — staged for review before publication. */

/* Product-loop View Cart link: high contrast in every state. */
body .fl-page .fl-post-module-woo-button a.added_to_cart.wc-forward,
body .fl-page .fl-post-grid-woo-button a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart.wc-forward,
.woocommerce-page ul.products li.product a.added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce-page ul.products li.product a.added_to_cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 10px 0 0 8px !important;
	padding: 10px 16px !important;
	background: #20bce5 !important;
	border: 2px solid #ffffff !important;
	border-radius: 999px !important;
	color: #050f19 !important;
	-webkit-text-fill-color: #050f19 !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: 0 8px 22px rgba(32, 188, 229, .28) !important;
	opacity: 1 !important;
}

.woocommerce a.added_to_cart.wc-forward:hover,
.woocommerce a.added_to_cart.wc-forward:focus-visible,
.woocommerce-page a.added_to_cart.wc-forward:hover,
.woocommerce-page a.added_to_cart.wc-forward:focus-visible,
.woocommerce ul.products li.product a.added_to_cart.wc-forward:hover,
.woocommerce ul.products li.product a.added_to_cart.wc-forward:focus-visible,
.woocommerce-page ul.products li.product a.added_to_cart.wc-forward:hover,
.woocommerce-page ul.products li.product a.added_to_cart.wc-forward:focus-visible {
	background: #f3c955 !important;
	border-color: #f3c955 !important;
	color: #050f19 !important;
	-webkit-text-fill-color: #050f19 !important;
	outline: 3px solid rgba(118, 221, 244, .4) !important;
	outline-offset: 2px !important;
}

/* MailPoet popup: unmistakable close control on desktop and mobile. */
#mp_form_slide_in1 {
	isolation: isolate;
}

#mp_form_slide_in1 .poolpal-mailpoet-close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	padding: 0 !important;
	background: #20bce5 !important;
	border: 3px solid #ffffff !important;
	border-radius: 50% !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font: 800 30px/1 Arial, sans-serif !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.65) !important;
	box-shadow: 0 5px 18px rgba(0,0,0,.45) !important;
	opacity: 1 !important;
	cursor: pointer !important;
	z-index: 2147483647 !important;
}

#mp_form_slide_in1 .poolpal-mailpoet-close:hover,
#mp_form_slide_in1 .poolpal-mailpoet-close:focus-visible {
	background: #050f19 !important;
	border-color: #76ddf4 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	outline: 3px solid rgba(118,221,244,.45) !important;
	outline-offset: 2px !important;
}

/* Single-product mobile layout: gallery first, content second, tabs last. */
@media (max-width: 768px) {
	body.single-product .woocommerce div.product {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		padding: 14px !important;
		overflow: visible !important;
	}

	body.single-product .woocommerce div.product > .woocommerce-product-gallery,
	body.single-product .woocommerce div.product > div.images {
		order: 1 !important;
		display: block !important;
		float: none !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin: 0 0 24px !important;
		opacity: 1 !important;
		clear: both !important;
	}

	body.single-product .woocommerce div.product > .summary,
	body.single-product .woocommerce div.product > div.summary {
		order: 2 !important;
		display: block !important;
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 24px !important;
		clear: both !important;
	}

	body.single-product .woocommerce div.product > .woocommerce-tabs {
		order: 3 !important;
		display: block !important;
		width: 100% !important;
		clear: both !important;
	}

	body.single-product .woocommerce-product-gallery__wrapper,
	body.single-product .woocommerce-product-gallery__image,
	body.single-product .woocommerce-product-gallery__image a,
	body.single-product .woocommerce-product-gallery__image img {
		display: block !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		opacity: 1 !important;
	}

	body.single-product .flex-control-thumbs {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 8px !important;
		margin-top: 10px !important;
	}

	body.single-product .flex-control-thumbs li {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
	}

	#mp_form_slide_in1 .poolpal-mailpoet-close {
		top: 8px !important;
		right: 8px !important;
		width: 50px !important;
		height: 50px !important;
		min-width: 50px !important;
		min-height: 50px !important;
		font-size: 32px !important;
	}

	/* Beaver Builder's product template places the image column second.
	   Reverse only that first product column group on phones. */
	body.single-product .fl-builder-content.product .fl-node-junabwek1td3 {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
	}

	body.single-product .fl-builder-content.product .fl-node-6aijt3rwxzuh {
		order: 1 !important;
		display: block !important;
		float: none !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: 100% !important;
		opacity: 1 !important;
	}

	body.single-product .fl-builder-content.product .fl-node-aejzct8wosiv {
		order: 2 !important;
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.single-product .fl-module-fl-woo-product-images,
	body.single-product .fl-module-fl-woo-product-images .fl-module-content,
	body.single-product .fl-module-fl-woo-product-images .woocommerce-product-gallery {
		display: block !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: 100% !important;
		opacity: 1 !important;
	}
}

/* Existing-account checkout error: keep sign-in and reset links prominent. */
.woocommerce-checkout .woocommerce-error a.poolpal-checkout-account-link,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout a.poolpal-checkout-account-link {
	color: #76ddf4 !important;
	-webkit-text-fill-color: #76ddf4 !important;
	font-weight: 800 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.woocommerce-checkout .woocommerce-error a.poolpal-checkout-account-link:hover,
.woocommerce-checkout .woocommerce-error a.poolpal-checkout-account-link:focus-visible,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout a.poolpal-checkout-account-link:hover,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout a.poolpal-checkout-account-link:focus-visible {
	color: #f3c955 !important;
	-webkit-text-fill-color: #f3c955 !important;
	outline: 2px solid #76ddf4;
	outline-offset: 3px;
}
