/* ==========================================================================
   زوکاکالا — اعلان‌های مشتری (موفقیت/خطا/اطلاع) + توست «افزودن به سبد».
   مستقل و مقاوم در برابر CSS قالب و استایل پیش‌فرض ووکامرس.
   ========================================================================== */

/* ظرف‌های «تاگلِ کوپن/ورود» فقط ظرف‌اند؛ قالب به آن‌ها پس‌زمینه/ارتفاعِ بزرگ
   می‌دهد و باعث جعبه‌ی غول‌پیکر می‌شود. خنثی‌شان می‌کنیم تا فقط اعلانِ داخلشان دیده شود. */
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle,
.checkout_coupon .form-row,
.woocommerce-notices-wrapper {
	min-height: 0 !important;
	height: auto !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.woocommerce-form-coupon-toggle .zk-ntc,
.woocommerce-form-login-toggle .zk-ntc { margin: 0 !important; }

/* مهارِ قاطعِ ابعاد در برابر قالب (که با !important پدینگ/ارتفاعِ بزرگ می‌دهد).
   انتخاب‌گرِ ترکیبیِ دو کلاسه + .woocommerce والد، اولویت بالاتری از قالب دارد. */
.zk-ntc.woocommerce-message,
.zk-ntc.woocommerce-info,
.zk-ntc.woocommerce-error,
.woocommerce .zk-ntc,
.woocommerce-page .zk-ntc,
.woocommerce-notices-wrapper .zk-ntc {
	display: flex !important;
	align-items: flex-start !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border-radius: 16px !important;
	border: 1px solid #e7ebf0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.85 !important;
	overflow: visible !important;
	text-indent: 0 !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05) !important;
}

.zk-ntc * { box-sizing: border-box; }
.zk-ntc .zk-ntc-ic { min-height: 0 !important; }

.zk-ntc {
	--zk-primary: #0a6cff;
	--zk-primary-600: #005ae0;
	--zk-ink: #0f172a;
	--zk-ink-2: #334155;
	--zk-muted: #64748b;
	--zk-line: #e7ebf0;
	position: relative;
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border-radius: 16px !important;
	border: 1px solid var(--zk-line) !important;
	background: #fff;
	color: var(--zk-ink);
	font-size: 14px;
	line-height: 1.85;
	list-style: none !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
	text-align: right;
	direction: rtl;
	overflow: visible;
}

.zk-ntc + .zk-ntc { margin-top: 12px !important; }

/* خنثی‌کردن آیکن/شبه‌عنصرِ پیش‌فرض ووکامرس. */
.zk-ntc::before,
.zk-ntc::after { display: none !important; content: none !important; }

.zk-ntc-ic {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin: 0;
}

.zk-ntc-ic .zk-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
	display: block;
}

.zk-ntc-main {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	margin: 0;
	align-self: center;
}

.zk-ntc-text {
	color: var(--zk-ink-2);
	margin: 0;
}

.zk-ntc-text b,
.zk-ntc-text strong { color: var(--zk-ink); }

.zk-ntc-text a:not(.button):not(.wc-forward) {
	color: var(--zk-primary);
	font-weight: 700;
	text-decoration: none;
}

.zk-ntc-list {
	margin: 0 !important;
	padding: 0 18px 0 0 !important;
	color: var(--zk-ink-2);
	list-style: disc;
}

.zk-ntc-list li { margin: 3px 0; padding: 0; background: none; border: 0; }
.zk-ntc-list li:only-child { list-style: none; margin-right: -18px; }

/* دکمه‌ی اقدام داخل پیام (مثل «مشاهده‌ی سبد») */
.zk-ntc .button,
.zk-ntc .wc-forward,
.zk-ntc a.button.wc-forward {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	width: auto !important;
	min-height: 38px;
	margin: 10px 0 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--zk-primary) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	line-height: 38px !important;
	text-decoration: none !important;
	box-shadow: none !important;
	float: none !important;
}

.zk-ntc .button:hover,
.zk-ntc .wc-forward:hover { background: var(--zk-primary-600) !important; }

/* دکمه‌ی بستن */
.zk-ntc-x {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--zk-muted);
	cursor: pointer;
	padding: 4px;
	margin: 0;
	display: inline-flex;
	border-radius: 8px;
	align-self: flex-start;
}
.zk-ntc-x:hover { background: rgba(15, 23, 42, .06); }
.zk-ntc-x .zk-icon { width: 22px; height: 22px; fill: currentColor; }

/* ---------- گونه‌ها ---------- */
.zk-ntc--success { background: #e8f7ee; border-color: #bfe8cd !important; }
.zk-ntc--success .zk-ntc-ic { background: #fff; color: #12a150; }

.zk-ntc--error { background: #fdeced; border-color: #f4c4c6 !important; }
.zk-ntc--error .zk-ntc-ic { background: #fff; color: #e5383b; }

.zk-ntc--info { background: #eef5ff; border-color: #cfe1ff !important; }
.zk-ntc--info .zk-ntc-ic { background: #fff; color: #0a6cff; }

.zk-ntc--warning { background: #fff6e0; border-color: #f3dca2 !important; }
.zk-ntc--warning .zk-ntc-ic { background: #fff; color: #c27803; }

@media (max-width: 480px) {
	.zk-ntc { padding: 12px 13px !important; gap: 10px; }
	.zk-ntc-ic { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
	.zk-ntc-ic .zk-icon { width: 20px; height: 20px; }
}

/* ==========================================================================
   توست شناور (افزودن به سبد)
   ========================================================================== */
.zk-toasts {
	position: fixed;
	z-index: 100000;
	left: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

/* اعلان‌های جابه‌جاشده به ظرف شناور */
.zk-toasts .zk-ntc,
.zk-toasts .zk-ntc.woocommerce-message,
.zk-toasts .zk-ntc.woocommerce-info,
.zk-toasts .zk-ntc.woocommerce-error {
	width: 100% !important;
	margin: 0 !important;
	pointer-events: auto;
	animation: zkToastIn .25s ease;
	transition: opacity .3s ease, transform .3s ease;
}

.zk-ntc-title {
	font-weight: 800;
	font-size: 14.5px;
	color: #0f172a;
	margin: 0 0 1px;
}

.zk-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 13px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e7ebf0;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
	direction: rtl;
	text-align: right;
	animation: zkToastIn .25s ease;
	transition: opacity .3s ease, transform .3s ease;
}

@keyframes zkToastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.zk-toast-ic {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
}
.zk-toast-ic .zk-icon { width: 20px; height: 20px; fill: currentColor; display: block; }
.zk-toast--success .zk-toast-ic { background: #e8f7ee; color: #12a150; }
.zk-toast--error .zk-toast-ic { background: #fdeced; color: #e5383b; }
.zk-toast--info .zk-toast-ic { background: #eef5ff; color: #0a6cff; }

.zk-toast-main { flex: 1 1 auto; min-width: 0; }
.zk-toast-title { font-weight: 800; font-size: 14px; color: #0f172a; }
.zk-toast-text { color: #64748b; font-size: 12.5px; margin-top: 1px; }
.zk-toast-text a { color: #0a6cff; font-weight: 700; text-decoration: none; }
.zk-toast-x {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	padding: 2px;
	display: inline-flex;
}
.zk-toast-x .zk-icon { width: 20px; height: 20px; fill: currentColor; }
