/* ============================================================
   Sliding Updates Widget — Stylesheet
   ============================================================ */

.su-container {
	display: flex;
	align-items: center;
	background-color: #2b2b2b;
	color: #e5e5e5;
	padding: 0;
	font-family: sans-serif;
	font-size: 14px;
	position: relative;
	overflow: hidden;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
}

/* ── Prefix ── */
.su-prefix {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: bold;
	white-space: nowrap;
	flex-shrink: 0;
}

.su-prefix-icon {
	display: flex;
	align-items: center;
	color: #f5a623;
}

.su-prefix-icon svg {
	width: 18px;
    height: 22px;
    fill: #f5a623;
    position: relative;
    top: 1px;
    margin-left: 3px;
}

/* ── Dots ── */
.su-dots {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
	margin: 0 8px 0 4px;
}

.su-dot {
	width: 4px;
	height: 4px;
	background-color: #666;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.su-dot:hover {
	background-color: #aaa;
	transform: scale( 1.3 );
}

.su-dot.active {
	background-color: #fff;
}

/* ── Message viewport ── */
.su-messages {
	flex: 1;
	min-width: 0; /* allows text-overflow to work inside flex */
	overflow: hidden;
	position: relative;
	/* height is set dynamically from JS */
}

.su-messages-track {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	transition: transform 0.45s cubic-bezier( 0.4, 0, 0.2, 1 );
}

.su-message-item {
	display: flex;
	align-items: center;
	gap: 20px;
	white-space: nowrap;
	overflow: hidden;
}

.su-message-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
}

a.su-message-text:hover {
	text-decoration: underline;
}

/* ── Actions (close only — arrows moved inline with message text) ── */
.su-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-left: auto;
}

.su-nav-arrows {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.su-nav-up,
.su-nav-down {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 10px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: inherit;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.su-nav-up:hover,
.su-nav-down:hover {
	opacity: 1;
}

.su-nav-up svg,
.su-nav-down svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
}

.su-nav-up i,
.su-nav-down i {
	font-size: 10px;
}

/* ── Close button ── */
.su-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: 0.5;
	transition: opacity 0.2s ease;
	margin-right: 5px;
}

.su-close:hover {
	opacity: 1;
	background-color: transparent;
}

/* ── Focus ring (accessibility) ── */
.su-container:focus-visible,
.su-dot:focus-visible,
.su-nav-up:focus-visible,
.su-nav-down:focus-visible,
.su-close:focus-visible {
	outline: 2px solid #f5a623;
	outline-offset: 2px;
}


@media(max-width: 1521px) {
	span.su-prefix-icon svg {
		width: 15px;
		height: 19px;
	}

	div.su-prefix {
		gap: 6px;
	}

	button.su-dot {
		width: 3px;
		height: 3px;
	}

	.su-messages .su-message-text {
		font-size: 12px;
	}
	div.su-nav-arrows {
		gap: 3px;
	}
}