/* Shared sections (amouriq-shared-sections.php). Colours and fonts come from the Elementor templates themselves. */

/* Ticker. Each message carries its own trailing space (not flex gap), so the track is exactly two equal halves and
   sliding it by -50% loops without a jump. */
.amq-ticker.is-moving {
	justify-content: center !important;
	overflow: hidden;
}
/* As in the demo: the black bar stays full width, the words move only in a 400px window in the middle and fade out
   at its ends. */
.amq-ticker__window {
	width: 100%;
	max-width: 400px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
}
.amq-ticker__track {
	display: flex;
	flex: none;
	width: max-content;
	gap: 0;
	animation: amq-ticker var(--amq-ticker-duration, 30s) linear infinite;
}
.amq-ticker__track > * {
	flex: none;
	margin-inline-end: var(--amq-ticker-gap, 48px) !important;
	white-space: nowrap;
}
.amq-ticker:hover .amq-ticker__track,
.amq-ticker:focus-within .amq-ticker__track {
	animation-play-state: paused;
}
@keyframes amq-ticker {
	to { transform: translateX(-50%); }
}

/* Reduced motion: still, and on narrow screens the messages wrap instead of being cut off. */
.amq-ticker.is-static {
	flex-wrap: wrap !important;
	row-gap: 4px !important;
	text-align: center;
}
@media (prefers-reduced-motion: reduce) {
	.amq-ticker__track { animation: none; }
}
