.roham-product-messages {
	--roham-message-secondary: var(--e-global-color-secondary, #e30a58);
	--roham-message-text: var(--e-global-color-text, #050505);
	--roham-message-accent: var(--e-global-color-accent, #444444);
	--roham-message-success: var(--e-global-color-4ad75ec, #38c976);
	display: flex;
	width: 100%;
	min-height: 22px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	direction: rtl;
	color: var(--roham-message-text);
	font-family: var(--e-global-typography-primary-font-family, "iransans"), sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	text-align: center;
	box-sizing: border-box;
}

.roham-product-messages[hidden] {
	display: none !important;
}

.roham-product-messages *,
.roham-product-messages *::before,
.roham-product-messages *::after {
	box-sizing: border-box;
}

.roham-product-messages__item {
	display: inline-flex;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--roham-message-accent);
	font: inherit;
	text-align: center;
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.roham-product-messages.is-changing .roham-product-messages__item {
	opacity: 0;
	transform: translateY(4px);
}

.roham-product-messages__item.is-critical-stock,
.roham-product-messages__item.is-limited-stock,
.roham-product-messages__item.is-discount {
	color: var(--roham-message-secondary);
}

.roham-product-messages__item.is-update {
	color: var(--roham-message-success);
}

.roham-product-messages__emoji {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	font-family:
		"Apple Color Emoji",
		"Segoe UI Emoji",
		"Noto Color Emoji",
		sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
}

.roham-product-messages__text {
	min-width: 0;
}

@media (max-width: 767px) {
	.roham-product-messages {
		min-height: 19px;
		font-size: 12px;
		font-weight: 500;
	}

	.roham-product-messages__item {
		gap: 4px;
	}

	.roham-product-messages__emoji {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roham-product-messages__item {
		transition: none;
	}
}