/**
 * NexaShop Floating WooCommerce Notices & Toasts Styling
 * Pixel-perfect match for media_1790958768634.png
 */

.nexashop-floating-notices-wrap {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999999;
	width: auto;
	max-width: 92%;
	min-width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	pointer-events: none;
	direction: rtl;
	box-sizing: border-box;
}

/* Single Floating Notice Card */
.nexashop-floating-toast {
	position: relative;
	pointer-events: auto;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	padding: 8px 16px 8px 12px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12), 0 3px 8px -2px rgba(0, 0, 0, 0.05);
	animation: nexashopToastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-sizing: border-box;
	max-width: 500px;
	width: auto;
	direction: rtl;
}

@keyframes nexashopToastSlideDown {
	0% {
		opacity: 0;
		transform: translateY(-24px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.nexashop-floating-toast.is-hiding {
	opacity: 0;
	transform: translateY(-16px) scale(0.96);
}

/* Toast Message Body (Right side in RTL: text + close ✕) */
.nexashop-toast-right {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.nexashop-toast-text {
	font-size: 14.5px;
	font-weight: 800;
	color: #15803d; /* Digikala bold green matching media_1790958768634.png */
	line-height: 1.3;
	white-space: nowrap;
}

/* Type Colors */
.toast-success .nexashop-toast-text {
	color: #15803d;
}

.toast-error .nexashop-toast-text {
	color: #dc2626;
}

.toast-info .nexashop-toast-text {
	color: #2563eb;
}

/* Close Button (✕) on the far right */
.nexashop-toast-close {
	background: none;
	border: none;
	padding: 4px;
	margin: 0;
	color: #374151;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color 0.15s ease, background-color 0.15s ease;
	line-height: 1;
	flex-shrink: 0;
}

.nexashop-toast-close:hover {
	color: #111827;
	background-color: #f3f4f6;
}

.nexashop-toast-close svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}

/* Action Button Pill (Left side in RTL: [ ‹  برو به سبد خرید ]) */
.nexashop-toast-action-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: #f1f2f4;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
	border: none;
	box-shadow: none;
}

.nexashop-toast-action-btn:hover {
	background-color: #e5e7eb;
	color: #111827;
	transform: translateY(-1px);
}

.nexashop-toast-chevron {
	width: 14px;
	height: 14px;
	stroke: #1f2937;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.nexashop-toast-action-btn:hover .nexashop-toast-chevron {
	transform: translateX(-2px);
}

.nexashop-toast-spacer {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.nexashop-floating-notices-wrap {
		top: 14px;
		width: 95%;
	}

	.nexashop-floating-toast {
		width: 100%;
		padding: 8px 12px 8px 8px;
		gap: 10px;
	}

	.nexashop-toast-text {
		font-size: 13.5px;
	}

	.nexashop-toast-action-btn {
		padding: 6px 12px;
		font-size: 12px;
	}
}
