/* Announcement Bar Pro — Styles */

.abp-wrapper {
	width: 100%;
}

.abp-bar {
	position: relative;
	background-color: #161a17;
	border-top: 1px solid #c9a24d;
	border-bottom: 1px solid #c9a24d;
	padding: 12px 0;
	overflow: hidden;
	box-sizing: border-box;
}

.abp-bar.abp-sticky {
	position: sticky;
	top: 0;
	z-index: 9999;
}

/* ---------------- Shared item styling ---------------- */
.abp-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 40px;
	white-space: nowrap;
}

.abp-icon {
	display: inline-flex;
	align-items: center;
	color: #c9a24d;
	font-size: 13px;
	flex-shrink: 0;
}

.abp-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.abp-text {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #f0ece3;
}

a.abp-link {
	text-decoration: none;
	transition: color 0.3s ease;
}

a.abp-link:hover {
	color: #c9a24d;
}

.abp-sep {
	color: #c9a24d;
	margin-left: 40px;
	font-size: 10px;
}

/* ---------------- Marquee mode ---------------- */
.abp-marquee-track {
	display: flex;
	width: max-content;
	will-change: transform;
	transform: translateX(0);
	padding-left: 40px;
}

.abp-sequence {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
}

/* ---------------- Slide mode ---------------- */
.abp-slide-track {
	position: relative;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 50px;
}

.abp-slide {
	position: absolute;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--abp-slide-transition, 500ms) ease, transform var(--abp-slide-transition, 500ms) cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.abp-slide.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.abp-slide .abp-item {
	margin-right: 0;
}

/* ---------------- Close button ---------------- */
.abp-close {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #f0ece3;
	font-size: 13px;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.3s ease, transform 0.3s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.abp-close:hover {
	color: #c9a24d;
	transform: translateY(-50%) rotate(90deg);
}

.abp-close:focus,
.abp-close:active,
.abp-close:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ---------------- Entrance animation ---------------- */
.abp-wrapper[data-entrance="true"] .abp-bar {
	opacity: 0;
	transform: translateY(-100%);
}

.abp-wrapper[data-entrance="true"] .abp-bar.abp-in-view {
	animation-name: abpSlideDown;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

@keyframes abpSlideDown {
	from { opacity: 0; transform: translateY(-100%); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Hidden state after dismissal — collapses cleanly without a jump */
.abp-wrapper.abp-dismissed {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 600px) {
	.abp-text { font-size: 11px; letter-spacing: 1px; }
	.abp-item { margin-right: 24px; }
	.abp-sep { margin-left: 24px; }
	.abp-close { right: 12px; }
	.abp-slide-track { padding: 0 36px; }
}
