.nlcm-wrap,
.nlcm-wrap * {
	box-sizing: border-box;
}

.nlcm-wrap {
	--nlcm-row-gap: 12px;
	--nlcm-chip-gap: 12px;
	--nlcm-fade-size: 58px;
	--nlcm-toggle-offset: 16px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--nlcm-row-gap);
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	isolation: isolate;
}

.nlcm-wrap.nlcm-stretch-viewport {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

@supports (width: 100dvw) {
	.nlcm-wrap.nlcm-stretch-viewport {
		width: 100dvw;
		max-width: 100dvw;
		margin-inline: calc(50% - 50dvw);
	}
}

.nlcm-marquee {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	outline: 2px solid transparent;
	outline-offset: 3px;
}

@supports (overflow: clip) {
	.nlcm-wrap,
	.nlcm-marquee {
		overflow: clip;
	}
}

.nlcm-wrap.nlcm-edge-fade .nlcm-marquee {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 var(--nlcm-fade-size),
		#000 calc(100% - var(--nlcm-fade-size)),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 var(--nlcm-fade-size),
		#000 calc(100% - var(--nlcm-fade-size)),
		transparent 100%
	);
}

.nlcm-track {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: max-content;
	max-width: none;
	min-width: max-content;
	will-change: transform;
	animation-duration: var(--nlcm-duration, 30s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-fill-mode: both;
}

.nlcm-marquee[data-direction="left"] .nlcm-track {
	animation-name: nlcm-scroll-left;
}

.nlcm-marquee[data-direction="right"] .nlcm-track {
	animation-name: nlcm-scroll-right;
}

.nlcm-track.nlcm-is-rebuilding {
	animation: none !important;
}

.nlcm-group {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: var(--nlcm-chip-gap);
	padding-inline-end: var(--nlcm-chip-gap);
	width: max-content;
	max-width: none;
	min-width: max-content;
}

.nlcm-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: max-content;
	max-width: none;
	white-space: nowrap;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	transition-property: color, background-color, border-color, box-shadow, transform;
	transition-timing-function: ease;
	transition-duration: 0.25s;
}

.nlcm-wrap.nlcm-is-manually-paused .nlcm-track,
.nlcm-wrap.nlcm-is-outside-viewport .nlcm-track,
.nlcm-wrap.nlcm-is-page-hidden .nlcm-track {
	animation-play-state: paused;
}

.nlcm-wrap[data-pause-hover="yes"] .nlcm-marquee:hover .nlcm-track,
.nlcm-wrap[data-pause-focus="yes"] .nlcm-marquee:focus-within .nlcm-track {
	animation-play-state: paused;
}

.nlcm-toggle {
	position: absolute;
	z-index: 4;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	cursor: pointer;
	line-height: 1;
	transform: translateY(-50%);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nlcm-toggle:hover {
	transform: translateY(-50%) scale(1.04);
}

.nlcm-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.nlcm-toggle-end .nlcm-toggle {
	inset-inline-end: var(--nlcm-toggle-offset);
}

.nlcm-toggle-start .nlcm-toggle {
	inset-inline-start: var(--nlcm-toggle-offset);
}

.nlcm-toggle svg {
	display: block;
}

.nlcm-toggle__play {
	display: none;
}

.nlcm-wrap.nlcm-is-manually-paused .nlcm-toggle__pause {
	display: none;
}

.nlcm-wrap.nlcm-is-manually-paused .nlcm-toggle__play {
	display: inline-flex;
}

.nlcm-editor-empty {
	padding: 18px;
	border: 1px dashed #c7c7c7;
	background: #f7f7f7;
	color: #555;
	font-size: 14px;
	text-align: center;
}

@keyframes nlcm-scroll-left {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes nlcm-scroll-right {
	from {
		transform: translate3d(-50%, 0, 0);
	}
	to {
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlcm-wrap[data-respect-reduced-motion="yes"] .nlcm-track {
		animation: none !important;
		transform: none !important;
	}

	.nlcm-wrap[data-respect-reduced-motion="yes"] .nlcm-chip,
	.nlcm-wrap[data-respect-reduced-motion="yes"] .nlcm-toggle {
		transition-duration: 0.01ms !important;
	}
}
