/* Kitchenu — compact ATC toast (chic, not loud) */

.ku-atc-toast {
	position: fixed;
	top: max(16px, env(safe-area-inset-top, 0px));
	left: 50%;
	transform: translateX(-50%) translateY(-12px);
	z-index: 1000005;
	width: min(420px, calc(100vw - 24px));
	opacity: 0;
	pointer-events: none;
	direction: rtl;
	transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ku-atc-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.ku-atc-toast__card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	padding: 12px 12px 12px 10px;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	box-shadow:
		0 14px 36px rgba(15, 23, 42, 0.12),
		0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.ku-atc-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
	border: 1px solid #a7f3d0;
	color: #047857;
	flex: 0 0 44px;
}

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

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

.ku-atc-toast__title {
	margin: 0;
	color: #0f172a;
	font-size: 13.5px;
	font-weight: 850;
	line-height: 1.35;
}

.ku-atc-toast__name {
	margin: 3px 0 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ku-atc-toast__actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.ku-atc-toast__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	border: 0;
	background: linear-gradient(145deg, #0f766e 0%, #0d9488 46%, #10b981 100%);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(13, 148, 136, 0.22);
}

.ku-atc-toast__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #64748b;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.ku-atc-toast__close:hover {
	border-color: #fecaca;
	color: #dc2626;
	background: #fef2f2;
}

/* 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 {
		top: auto;
		bottom: calc(64px + env(safe-area-inset-bottom, 0px));
		transform: translateX(-50%) translateY(10px);
	}
	.ku-atc-toast.is-visible {
		transform: translateX(-50%) translateY(0);
	}
	.ku-atc-toast__card {
		grid-template-columns: 40px minmax(0, 1fr) auto;
		padding: 10px;
		border-radius: 14px;
	}
	.ku-atc-toast__icon {
		width: 40px;
		height: 40px;
	}
}
