/* FirmaJet InfoBar — clean top strip (no legacy conflicts) */

.fj-infobar {
	display: block !important;
	width: 100%;
	position: relative;
	z-index: 1200;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	box-sizing: border-box;
}

.fj-infobar *,
.fj-infobar *::before,
.fj-infobar *::after {
	box-sizing: border-box;
}

.fj-infobar--dark {
	--fj-ib-bg: #0b1628;
	--fj-ib-fg: #ffffff;
	--fj-ib-muted: rgba(255, 255, 255, 0.85);
	--fj-ib-line: rgba(255, 255, 255, 0.12);
	--fj-ib-chip: rgba(255, 255, 255, 0.08);
}

.fj-infobar--primary {
	--fj-ib-bg: #0a3d6e;
	--fj-ib-fg: #ffffff;
	--fj-ib-muted: rgba(255, 255, 255, 0.9);
	--fj-ib-line: rgba(255, 255, 255, 0.16);
	--fj-ib-chip: rgba(255, 255, 255, 0.1);
}

.fj-infobar--light {
	--fj-ib-bg: #f1f5f9;
	--fj-ib-fg: #0f172a;
	--fj-ib-muted: #334155;
	--fj-ib-line: #dbe3ee;
	--fj-ib-chip: rgba(15, 23, 42, 0.06);
}

.fj-infobar {
	background: var(--fj-ib-bg);
	color: var(--fj-ib-muted);
	border-bottom: 1px solid var(--fj-ib-line);
}

.fj-infobar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.fj-infobar__left {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.fj-infobar__msg {
	margin: 0;
	color: var(--fj-ib-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fj-infobar__marquee {
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.fj-infobar__marquee-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: max-content;
	animation: fjInfobarScroll 32s linear infinite;
}

.fj-infobar__marquee:hover .fj-infobar__marquee-inner {
	animation-play-state: paused;
}

.fj-infobar__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	color: var(--fj-ib-muted);
}

.fj-infobar__chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fj-color-primary, #e33030);
	flex-shrink: 0;
}

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

.fj-infobar__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.fj-infobar__a {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 8px;
	color: var(--fj-ib-fg) !important;
	text-decoration: none !important;
	font-weight: 600;
	background: transparent;
}

.fj-infobar__a:hover {
	background: var(--fj-ib-chip);
	color: var(--fj-ib-fg) !important;
}

.fj-infobar__a svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: currentColor;
}

.fj-infobar__socials {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 4px;
	padding-left: 10px;
	border-left: 1px solid var(--fj-ib-line);
}

.fj-infobar__socials a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--fj-ib-chip);
	color: var(--fj-ib-fg) !important;
	text-decoration: none !important;
}

.fj-infobar__socials a:hover {
	opacity: 0.9;
}

.fj-infobar__socials svg {
	width: 14px;
	height: 14px;
	color: currentColor;
}

@media (max-width: 767px) {
	.fj-infobar__row {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	/* Hide WhatsApp / mail icons on mobile top bar */
	.fj-infobar__a--contact {
		display: none !important;
	}

	.fj-infobar__right {
		justify-content: flex-end;
		flex-wrap: nowrap;
		margin-left: auto;
	}

	.fj-infobar__socials {
		border-left: 0;
		padding-left: 0;
		margin-left: 0;
	}

	.fj-infobar__marquee-inner {
		animation-duration: 22s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fj-infobar__marquee-inner {
		animation: none;
		flex-wrap: wrap;
		width: auto;
		gap: 12px;
	}
}

body.fj-auth-page .fj-infobar,
body.fj-crm-page .fj-infobar {
	display: none !important;
}

/* Hide any leftover legacy top bars */
.fj-tbar,
.fj-topbar,
.fj-topbar--v2,
.fj-site-topbar {
	display: none !important;
}
