/* MobiGear Sales Pop — frontend styles
 * Clean, low-visual-weight card. One accent color, subtle shadow,
 * fast/quiet transitions. Mobile-first, safe-area aware.
 */

.mgsp-container {
	position: fixed;
	z-index: 999999;
	bottom: 16px;
	left: 16px;
	right: 16px;
	max-width: 340px;
	pointer-events: none;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mgsp-container.mgsp-pos-bottom-right {
	left: auto;
	right: 16px;
}

.mgsp-container.mgsp-pos-bottom-left {
	right: auto;
	left: 16px;
}

@media (min-width: 480px) {
	.mgsp-container {
		right: auto;
		left: 16px;
	}
	.mgsp-container.mgsp-pos-bottom-right {
		left: auto;
		right: 16px;
	}
}

.mgsp-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
	padding: 12px 14px;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: auto;
	max-width: 340px;
}

.mgsp-card.mgsp-show {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.mgsp-thumb {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
}

.mgsp-body {
	min-width: 0;
	flex: 1;
}

.mgsp-title {
	font-size: 13.5px;
	line-height: 1.35;
	color: #0f172a;
	font-weight: 600;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mgsp-subtitle {
	font-size: 12px;
	line-height: 1.35;
	color: #64748b;
	margin: 2px 0 0;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.mgsp-dot {
	color: #cbd5e1;
}

.mgsp-cod {
	color: var(--mgsp-accent, #059669);
	font-weight: 600;
}

.mgsp-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--mgsp-accent, #059669);
}

.mgsp-badge svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.mgsp-close {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0f172a;
	color: #fff;
	border: 2px solid #fff;
	font-size: 12px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.85;
	padding: 0;
}

.mgsp-close:hover {
	opacity: 1;
}

.mgsp-card-wrap {
	position: relative;
}

@media (prefers-reduced-motion: reduce) {
	.mgsp-card {
		transition: opacity 0.2s linear;
		transform: none !important;
	}
}
