/* Kitchenu — ATC popup toast (2s) */

.ku-atc-toast {
	position: fixed;
	inset: 0;
	z-index: 1000005;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
	background: rgba(15, 23, 42, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	direction: rtl;
	transition: opacity 0.2s ease;
}

.ku-atc-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.ku-atc-toast__card {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	width: min(360px, calc(100vw - 32px));
	padding: 16px 18px;
	border: 1px solid rgba(167, 243, 208, 0.85);
	border-radius: 18px;
	background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
	box-shadow:
		0 18px 48px rgba(15, 23, 42, 0.18),
		0 1px 0 rgba(255, 255, 255, 0.95) inset;
	transform: translateY(10px) scale(0.96);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ku-atc-toast.is-visible .ku-atc-toast__card {
	transform: translateY(0) scale(1);
}

.ku-atc-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(145deg, #0f766e 0%, #10b981 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	flex: 0 0 52px;
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

.ku-atc-toast__icon svg {
	width: 26px;
	height: 26px;
}

.ku-atc-toast__body {
	min-width: 0;
}

.ku-atc-toast__title {
	margin: 0;
	color: #065f46;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.45;
}

.ku-atc-toast__name {
	margin: 4px 0 0;
	color: #0f172a;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Hide default Woo success notice when toast is active */
body.ku-atc-ready .woocommerce-notices-wrapper .woocommerce-message,
body.ku-atc-ready a.added_to_cart.wc-forward {
	display: none !important;
}

@media (max-width: 549px) {
	.ku-atc-toast {
		align-items: flex-end;
		padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	}
	.ku-atc-toast__card {
		width: min(100%, 420px);
	}
}
