/* ============================================================
   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;
}

/* ── Widget outer wrapper — positioning context for the absolutely-placed expand panel ── */
.su-widget-outer {
	position: relative;
	width: 100%;
}

/* ── Expand panel (hover-revealed details) ──
   Positioned absolutely so it overlays whatever sits below the widget
   instead of pushing that content down when it opens. */
.su-expand-panel {
	position: relative;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 0;
	overflow: hidden;
	background-color: #242424;
	box-sizing: border-box;
	z-index: 100;
	/*border-bottom: 3px solid #b08d57;*/
	box-shadow: 0 8px 16px rgba( 0, 0, 0, 0.25 );
	transition: max-height 0.35s cubic-bezier( 0.4, 0, 0.2, 1 );
	pointer-events: none;
}
.su-expand-panel .su-expand-panel-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
   margin-top: 20px;
}
.su-expand-panel.is-open {
    pointer-events: auto;
}
.su-expand-panel .su-expand-panel-wrapper {
	border-top: 1px solid transparent;
}
.su-expand-panel.is-open .su-expand-panel-wrapper {
    border-top: 1px solid rgba( 255, 255, 255, 0.08 );
}


.su-expand-content {
	flex: 1;
	min-width: 0;
	padding: 16px;
	box-sizing: border-box;
}

.su-expand-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
}

.su-expand-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #cfcfcf;
}

.su-expand-nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	padding-right: 16px;
	padding-top: 10px;
}

.su-expand-nav button {
	width: 55px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 4px;
	background-color: #b08d57;
	color: #2b2b2b;
	cursor: pointer;
	padding: 0;
	transition: opacity 0.2s ease;
}
.close_update.active {
    border-bottom: 5px solid #b08d57;
}
.su-expand-nav button:hover {
	opacity: 0.85;
}

.su-expand-nav button svg {
	width: 12px;
	height: 16px;
	fill: currentColor;
}

.su-expand-nav button i {
	font-size: 12px;
}

.su-expand-nav button: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;
	}
}