/**
 * Gridowp — floating toast notifications for WooCommerce notices
 * (add-to-cart, cart updated, coupon applied/rejected, errors, etc).
 * The plain inline .woocommerce-message/-error/-info stay in the DOM
 * (hidden) for no-JS/SEO; js/toast.js clones their content into these.
 */

.gw-toast-container {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	width: min(420px, calc(100vw - 2rem));
	pointer-events: none;
}

.gw-toast {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: .65rem .75rem;
	background: rgba(33, 37, 41, .96);
	color: #fff;
	border-radius: .875rem;
	padding: .85rem 1rem;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
	font-size: .875rem;
	font-weight: 600;
	font-family: var(--gw-font, 'Cairo', system-ui, sans-serif);
	line-height: 1.5;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity .25s ease, transform .25s ease;
}

.gw-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gw-toast__icon {
	width: 20px;
	height: 20px;
	display: flex;
	color: var(--gw-primary, #7dc246);
}

.gw-toast__icon .lucide {
	width: 20px;
	height: 20px;
}

.gw-toast--error .gw-toast__icon {
	color: #ff6b6b;
}

.gw-toast--info .gw-toast__icon {
	color: #74c0fc;
}

.gw-toast__body a {
	color: inherit;
	text-decoration: underline;
}

.gw-toast__close {
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .6);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: color .15s ease;
}

.gw-toast__close:hover {
	background: transparent;
	color: #fff;
}

.gw-toast__close:focus {
	background: transparent;
	color: rgba(255, 255, 255, .6);
	outline: none;
}

@media (max-width: 480px) {
	.gw-toast-container {
		top: .75rem;
	}
}
