/**
 * NexaShop Product Live Activity & Visitor Ticker Widget Styles
 * Matching media_1789930095775.png
 */

.nexashop-product-activity-ticker {
	width: 100%;
	direction: rtl;
	box-sizing: border-box;
	margin: 8px 0;
	position: relative;
	user-select: none;
	display: block;
}

.nexashop-ticker-inner {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	position: relative;
	max-width: 100%;
	min-height: 36px;
	overflow: hidden;
	background: #f8fafc;
	padding: 6px 14px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nexashop-ticker-inner:hover {
	background: #f1f5f9;
}

/* CSS Grid layout prevents 0px container collapse */
.nexashop-ticker-track {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	align-items: center;
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Ticker Item - sharing grid cell 1 / 1 allows natural width calculation */
.nexashop-ticker-item {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
	box-sizing: border-box;
	line-height: 1.5;
}

/* Slide Up Effect */
.nexashop-product-activity-ticker[data-effect="slide_up"] .nexashop-ticker-item {
	transform: translateY(100%);
}

.nexashop-product-activity-ticker[data-effect="slide_up"] .nexashop-ticker-item.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.nexashop-product-activity-ticker[data-effect="slide_up"] .nexashop-ticker-item.is-prev {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-100%);
}

/* Fade Effect */
.nexashop-product-activity-ticker[data-effect="fade"] .nexashop-ticker-item {
	transform: none;
}

.nexashop-product-activity-ticker[data-effect="fade"] .nexashop-ticker-item.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nexashop-product-activity-ticker[data-effect="fade"] .nexashop-ticker-item.is-prev {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Icon / Emoji */
.nexashop-ticker-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 17px;
	flex-shrink: 0;
}

.nexashop-ticker-emoji {
	display: inline-block;
	line-height: 1;
	transform: translateY(-0.5px);
}

.nexashop-ticker-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

/* Text & Number */
.nexashop-ticker-text {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.5;
	letter-spacing: -0.2px;
}

.nexashop-ticker-number {
	font-weight: 800;
	color: #ef4444;
	margin: 0 4px;
	font-size: 14.5px;
}

/* Mobile responsive rules */
@media (max-width: 768px) {
	.nexashop-ticker-inner {
		min-height: 34px;
		padding: 5px 12px;
	}
	.nexashop-ticker-text {
		font-size: 13px;
	}
	.nexashop-ticker-number {
		font-size: 14px;
	}
	.nexashop-ticker-icon {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.nexashop-product-activity-ticker {
		width: 100%;
	}
	.nexashop-ticker-inner {
		width: 100%;
		justify-content: flex-start;
		min-height: 32px;
		padding: 5px 10px;
	}
	.nexashop-ticker-item {
		width: 100%;
		gap: 6px;
	}
	.nexashop-ticker-text {
		font-size: 12px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.nexashop-ticker-number {
		font-size: 13px;
	}
	.nexashop-ticker-icon {
		font-size: 15px;
	}
}
