/**
 * Single product — add-to-cart success notice below cart button.
 */

body.single-product.my-obl-single-product {
	--my-obl-cart-notice-bg: #1a4d32;
	--my-obl-cart-notice-border: #133d27;
	--my-obl-cart-notice-icon-color: #ffd54f;
	--my-obl-cart-notice-icon-size: 18px;
	--my-obl-cart-notice-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Hide stray notices outside cart notice slot (Flatsome may print bare .woocommerce-message). */
body.single-product.my-obl-single-product .woocommerce-message,
body.single-product.my-obl-single-product .woocommerce-info,
body.single-product.my-obl-single-product .woocommerce-error {
	display: none !important;
}

body.single-product.my-obl-single-product .my-obl-cart-notice-slot .woocommerce-message,
body.single-product.my-obl-single-product .my-obl-cart-notice-slot .woocommerce-info,
body.single-product.my-obl-single-product .my-obl-cart-notice-slot .woocommerce-error {
	display: block !important;
}

body.single-product.my-obl-single-product .woocommerce-notices-wrapper:not(.my-obl-cart-notice-slot .woocommerce-notices-wrapper) {
	display: none !important;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot {
	width: 100%;
	margin-top: 12px;
	clear: both;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-notices-wrapper {
	margin: 0;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message {
	background: var(--my-obl-cart-notice-bg, #1a4d32);
	border: 1px solid var(--my-obl-cart-notice-border, #133d27);
	border-radius: 4px;
	padding: 12px 14px;
	margin: 0;
	color: #ffffff;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message .message-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	text-align: left;
	color: #ffffff;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message .message-container::before {
	content: '';
	flex: 0 0 var(--my-obl-cart-notice-icon-size);
	width: var(--my-obl-cart-notice-icon-size);
	height: var(--my-obl-cart-notice-icon-size);
	background-color: var(--my-obl-cart-notice-icon-color, #ffd54f);
	-webkit-mask-image: var(--my-obl-cart-notice-icon-url);
	mask-image: var(--my-obl-cart-notice-icon-url);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message .icon-checkmark,
body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message svg {
	display: none !important;
}

body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message a {
	color: #ffffff;
	text-decoration: underline;
}

/* EPO checkout — notice on its own grid row below qty + cart button. */
body.single-product.my-obl-single-product .product-info form.cart .my-obl-epo-checkout-panel {
	grid-template-rows: auto auto auto;
}

body.single-product.my-obl-single-product .product-info form.cart .my-obl-epo-checkout-panel > .my-obl-cart-notice-slot {
	grid-column: 3;
	grid-row: 3;
	justify-self: stretch;
	align-self: start;
	width: auto;
	max-width: none;
	margin-top: 0;
}

@media (max-width: 849px) {
	body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot {
		margin-top: 10px;
	}

	body.single-product.my-obl-single-product .product-info form.cart .my-obl-epo-checkout-panel > .my-obl-cart-notice-slot {
		grid-column: 1 / -1;
		grid-row: 4;
		justify-self: stretch;
	}

	body.single-product.my-obl-single-product .product-info .my-obl-cart-notice-slot .woocommerce-message {
		padding: 10px 12px;
	}
}
