/* ============================================================
   Kasirye Labs — Add to Cart Toast Notification
   ============================================================ */

/* ── Container ───────────────────────────────────────────────── */
#kl-toast-stack {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

@media (max-width: 480px) {
	#kl-toast-stack {
		bottom: 12px;
		right: 12px;
		left: 12px;
	}
}

/* ── Toast card ──────────────────────────────────────────────── */
.kl-toast {
	pointer-events: all;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
	width: 340px;
	max-width: 100%;
	overflow: hidden;
	font-family: 'Jost', sans-serif;

	/* Slide-in from right */
	transform: translateX(calc(100% + 32px));
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 0.25s ease;
}

.kl-toast.kl-toast--visible {
	transform: translateX(0);
	opacity: 1;
}

.kl-toast.kl-toast--leaving {
	transform: translateX(calc(100% + 32px));
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ── Inner layout ────────────────────────────────────────────── */
.kl-toast-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 14px 14px;
}

/* ── Check icon ──────────────────────────────────────────────── */
.kl-toast-icon {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: #dcfce7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.kl-toast-icon svg { color: #16a34a; }

/* ── Product thumbnail ───────────────────────────────────────── */
.kl-toast-thumb {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #f0f0f0;
	display: block;
	flex-shrink: 0;
}

.kl-toast-thumb-placeholder {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 8px;
	background: #f5f5f5;
	flex-shrink: 0;
}

/* ── Text block ──────────────────────────────────────────────── */
.kl-toast-body {
	flex: 1;
	min-width: 0;
}

.kl-toast-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #16a34a;
	display: block;
	margin-bottom: 2px;
}

.kl-toast-name {
	font-size: 13px;
	font-weight: 700;
	color: #1a2035;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	margin-bottom: 8px;
}

/* ── Actions ─────────────────────────────────────────────────── */
.kl-toast-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.kl-toast-cart-btn {
	height: 30px;
	padding: 0 14px;
	background: #ffbe00;
	color: #111;
	border: none;
	border-radius: 6px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}
.kl-toast-cart-btn:hover { background: #e6ab00; color: #111; }

/* ── Close button ────────────────────────────────────────────── */
.kl-toast-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: #f0f0f0;
	color: #888;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}
.kl-toast-close:hover { background: #fee2e2; color: #e8461e; }

/* ── Progress bar ────────────────────────────────────────────── */
.kl-toast-progress {
	height: 3px;
	background: #f0f0f0;
}

.kl-toast-progress-bar {
	height: 100%;
	background: #ffbe00;
	width: 100%;
	transform-origin: left;
	transition: transform linear;
}
