/**
 * GF Connect to WP Members – Newsticker (Modul 22)
 *
 * @package GF_Connect_WP_Members
 * @since   2.28.0
 */

.gfcwm-newsticker {
	--gfcwm-nt-primary: var(--gfcwm-primary, #0073aa);
	font-size: 14px;
	line-height: 1.5;
}

/* Laufband */
.gfcwm-newsticker--ticker {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.gfcwm-newsticker-label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 6px 12px;
	background: var(--gfcwm-nt-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.gfcwm-newsticker-viewport {
	flex: 1 1 auto;
	overflow: hidden;
	min-width: 0;
}

.gfcwm-newsticker-track {
	display: flex;
	width: max-content;
	animation: gfcwm-newsticker-run 30s linear infinite;
}

.gfcwm-newsticker--ticker:hover .gfcwm-newsticker-track {
	animation-play-state: paused;
}

.gfcwm-newsticker-run {
	display: flex;
	flex: 0 0 auto;
	white-space: nowrap;
}

.gfcwm-newsticker-item {
	padding: 6px 28px 6px 14px;
	border-right: 1px solid #eee;
}

.gfcwm-newsticker time {
	margin-right: 6px;
	color: #888;
	font-size: 12px;
}

.gfcwm-newsticker a {
	color: var(--gfcwm-nt-primary);
}

@keyframes gfcwm-newsticker-run {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* Anhalten / Weiter (seit 2.28.1) */
.gfcwm-newsticker-pause {
	flex: 0 0 auto;
	width: 34px;
	padding: 0;
	border: 0;
	border-left: 1px solid #eee;
	background: #fafafa;
	color: #666;
	font-size: 10px;
	cursor: pointer;
}

.gfcwm-newsticker-pause:hover,
.gfcwm-newsticker-pause:focus-visible {
	background: #f0f0f0;
	color: var(--gfcwm-nt-primary);
}

.gfcwm-newsticker--ticker.is-paused .gfcwm-newsticker-track {
	animation-play-state: paused;
}

/* Liste */
.gfcwm-newsticker--list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gfcwm-newsticker--list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.gfcwm-newsticker--list li:last-child {
	border-bottom: 0;
}
