/**
 * WooCommerce notices: the action in them is a button.
 *
 * The theme styles every link inside a notice as `color: inherit` with an
 * underline, so "View cart" on the green added-to-cart band read as a
 * stray underlined word rather than the one thing to click (Atif,
 * 14 October 2026). The band itself is the theme's and is left alone.
 *
 * Loaded on WooCommerce pages by Shop\Assets.
 */

/* The band is the theme's forest; its text was inheriting the page's ink,
   which on that ground is all but unreadable (Atif, 14 Oct 2026). */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message a:not(.button) {
	color: #ffffff !important;
}

.woocommerce-notices-wrapper .woocommerce-message a:not(.button) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	display: inline-flex;
	align-items: center;
	margin-left: 14px;
	padding: 7px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--zf-amber, #ffbf00) !important;
	color: #1c2e15 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: none !important;
	transition: background-color .15s ease;
}

.woocommerce-message .button:hover,
.woocommerce-message .button:focus-visible,
.woocommerce-info .button:hover,
.woocommerce-info .button:focus-visible,
.woocommerce-error .button:hover,
.woocommerce-error .button:focus-visible {
	background: #ffd34d !important;
	color: #1c2e15 !important;
	text-decoration: none !important;
}

@media (max-width: 575px) {

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button {
		margin: 8px 0 0;
	}
}

/* ---- the same notice, as a card in the corner ---------------------------

   On a product page the band printed over the header, away from the button
   that had just been pressed (Atif, 14 Oct 2026). The notice is moved into
   this card; it carries WooCommerce's own words, adds Checkout beside View
   cart, and takes itself away after a few seconds. */

.zf-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1200;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 380px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: var(--zf-f, #2a491d);
	box-shadow: 0 10px 30px rgba(28, 46, 21, .28);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .25s ease, transform .25s ease;
}

.zf-toast.is-in {
	opacity: 1;
	transform: none;
}

.zf-toast .woocommerce-message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.zf-toast .woocommerce-message::before {
	position: static !important;
	margin: 0 4px 0 0 !important;
	color: var(--zf-amber, #ffbf00) !important;
}

.zf-toast .woocommerce-message .button {
	margin: 0 !important;
}

.zf-toast__checkout {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.zf-toast__checkout:hover,
.zf-toast__checkout:focus-visible {
	background: rgba(255, 255, 255, .12);
}

.zf-toast__close {
	flex: none;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.zf-toast__close:hover,
.zf-toast__close:focus-visible {
	background: rgba(255, 255, 255, .22);
}

@media (max-width: 575px) {

	.zf-toast {
		right: 12px;
		left: 12px;
		bottom: 12px;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.zf-toast {
		transition: none;
	}
}
