.hb40-ab {
	position: relative;
	z-index: var(--hb40-ab-z-index, 99990);
	width: 100%;
	min-height: var(--hb40-ab-height-desktop, 38px);
	background: var(--hb40-ab-bg, #000);
	color: var(--hb40-ab-color, #fff);
	font-family: inherit;
	font-size: var(--hb40-ab-font-size-desktop, 13px);
	font-weight: var(--hb40-ab-font-weight, 500);
	line-height: 1;
	text-transform: var(--hb40-ab-text-transform, none);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.hb40-ab *, .hb40-ab *::before, .hb40-ab *::after { box-sizing: border-box; }
.hb40-ab__viewport { width: 100%; height: var(--hb40-ab-height-desktop, 38px); overflow: hidden; }
.hb40-ab__marquee { display: flex; width: max-content; min-width: 100%; height: 100%; will-change: transform; animation: hb40-ab-marquee var(--hb40-ab-marquee-duration, 24s) linear infinite; }
.hb40-ab__group { display: flex; flex: none; align-items: center; min-width: max-content; height: 100%; gap: 0; padding: 0; }
.hb40-ab__item { display: inline-flex; flex: none; align-items: center; white-space: nowrap; }
.hb40-ab__item::after {
	content: "•";
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	margin-inline: 16px;
	opacity: .68;
	font-size: .8em;
	line-height: 1;
}
.hb40-ab__message { display: inline-block; color: var(--hb40-ab-color, #fff) !important; white-space: nowrap; text-decoration: none; }
.hb40-ab a.hb40-ab__message,
.hb40-ab a.hb40-ab__message:link,
.hb40-ab a.hb40-ab__message:visited,
.hb40-ab a.hb40-ab__message:hover,
.hb40-ab a.hb40-ab__message:active,
.hb40-ab a.hb40-ab__message:focus,
.hb40-ab a.hb40-ab__message:focus-visible {
	color: var(--hb40-ab-color, #fff) !important;
	-webkit-text-fill-color: var(--hb40-ab-color, #fff) !important;
	text-decoration-line: underline !important;
	text-decoration-color: currentColor !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
}
.hb40-ab a.hb40-ab__message:hover,
.hb40-ab a.hb40-ab__message:focus-visible {
	text-decoration-thickness: 2px !important;
	outline: none;
}
.hb40-ab a.hb40-ab__message *,
.hb40-ab a.hb40-ab__message:visited * {
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
}
.hb40-ab.is-paused .hb40-ab__marquee { animation-play-state: paused; }
.hb40-ab.is-static .hb40-ab__marquee { animation: none; transform: none !important; }
.hb40-ab--hide-desktop { display: none; }
@keyframes hb40-ab-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-1 * var(--hb40-ab-group-width, 50%)),0,0); } }
@media (max-width: 1024px) {
	.hb40-ab { display: block; min-height: var(--hb40-ab-height-tablet, 36px); font-size: var(--hb40-ab-font-size-tablet, 12px); }
	.hb40-ab--hide-tablet { display: none; }
	.hb40-ab__viewport { height: var(--hb40-ab-height-tablet, 36px); }
	.hb40-ab__item::after { margin-inline: 14px; }
}
@media (max-width: 767px) {
	.hb40-ab { display: block; min-height: var(--hb40-ab-height-mobile, 36px); font-size: var(--hb40-ab-font-size-mobile, 12px); }
	.hb40-ab--hide-mobile { display: none; }
	.hb40-ab__viewport { height: var(--hb40-ab-height-mobile, 36px); }
	.hb40-ab__item::after { margin-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hb40-ab__marquee { animation: none; transform: none; } }

/* Barra fixa e integração segura com cabeçalhos sticky, incluindo Kadence. */
.hb40-ab__spacer {
	display: none;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	pointer-events: none;
}

.hb40-ab.is-sticky {
	position: fixed;
	top: var(--hb40-ab-sticky-top, 0px);
	right: 0;
	left: 0;
	width: 100%;
	margin: 0;
	transform: translate3d(0, 0, 0);
	transition: transform 220ms ease;
	will-change: transform;
}

.hb40-ab.is-sticky + .hb40-ab__spacer {
	display: block;
	height: var(--hb40-ab-sticky-height, 0px);
}

.hb40-ab.is-sticky.is-scroll-hidden {
	transform: translate3d(0, calc(-100% - var(--hb40-ab-sticky-top, 0px)), 0);
}

/* A classe é aplicada via JavaScript somente ao elemento fixo real do header. */
html.hb40-ab-sticky-active body.hb40-ab-offset-header-active .hb40-ab-offset-target,
html.hb40-ab-sticky-active body.hb40-ab-offset-header-active #masthead.hb40-ab-offset-target,
html.hb40-ab-sticky-active body.hb40-ab-offset-header-active #mobile-header.hb40-ab-offset-target,
html.hb40-ab-sticky-active body.hb40-ab-offset-header-active #masthead .hb40-ab-offset-target,
html.hb40-ab-sticky-active body.hb40-ab-offset-header-active #mobile-header .hb40-ab-offset-target {
	top: var(--hb40-ab-header-offset, 0px) !important;
}

html.hb40-ab-sticky-active {
	scroll-padding-top: var(--hb40-ab-header-offset, 0px);
}

@media (prefers-reduced-motion: reduce) {
	.hb40-ab.is-sticky {
		transition: none;
	}
}
