/* 5th Axis — Announcement Bar */

.axis5th-bar {
	--axis5th-bar-bg: #0d0d0d;
	--axis5th-bar-accent: #DD282833;
	--axis5th-bar-title: #ffffff;
	--axis5th-bar-muted: #8c8c8c;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 24px;
}

.axis5th-bar--sticky {
	position: sticky;
	top: 0;
	z-index: 999;
}

.axis5th-bar__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-width: 0;
	flex: 1 1 auto;
}

.axis5th-bar__eyebrow {
	font-family: var(--e-global-typography-57475c0-font-family);
	flex-shrink: 0;
	font-size: 16px;
	text-transform: uppercase;
	color: var( --e-global-color-secondary );
}

.axis5th-bar__message {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	margin-right: 12%;
}

.axis5th-bar__title {
	font-size: 16px;
	font-weight: 500;
	color: var( --axis5th-bar-title );
}

.axis5th-bar__separator {
	color: var( --axis5th-bar-muted );
	margin: 0 8px;
}

.axis5th-bar__desc {
	color: var( --axis5th-bar-muted );
	font-weight: 400;
}

.axis5th-bar__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.axis5th-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var( --axis5th-bar-accent );
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	padding: 9px 18px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.axis5th-bar__btn:hover {
	opacity: 0.85;
	color: #ffffff;
}

.axis5th-bar__close {
	background: none;
	border: none;
	color: var( --axis5th-bar-muted );
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s ease;
}

.axis5th-bar__close:hover {
	color: #ffffff;
}

@media ( max-width: 782px ) {
	.axis5th-bar {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.axis5th-bar__content {
		flex-wrap: wrap;
		gap: 8px;
	}

	.axis5th-bar__message {
		white-space: normal;
	}
}

@media ( max-width: 575px ) {
	.axis5th-bar{
		padding: 12px;
		flex-wrap: nowrap;
	}
	.axis5th-bar__separator{
		display: none;
	}
	.axis5th-bar__desc{
		display: none;
	}
	.axis5th-bar__title,
	.axis5th-bar__eyebrow{
		font-size: 12px;
	}
	.axis5th-bar__content{
		gap: 0;
	}
	.axis5th-bar__actions{
		gap: 8px;
	}
	.axis5th-bar__message{
		margin-right: 0;
	}
	.axis5th-bar__btn{
		font-size: 12px;
		gap: 6px;
		padding: 8px; 
	}

}

/* Responsive fix: bigger tap area for the close button on touch screens (was 21x28px),
   without making the bar taller (negative margin absorbs the extra padding). */
@media ( max-width: 1024px ) {
	.axis5th-bar__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
		margin: -6px -8px -6px 0;
	}
}
