html {
	scroll-padding-top: var(--fbweb-annonce-height, 0px);
}

.fbweb-annonce {
	position: sticky;
	top: var(--fbweb-annonce-top, var(--wp-admin--admin-bar--height, 0px));
	z-index: 9990;
	margin-top: var(--fbweb-annonce-offset, 0px);
	background-color: var(--fbweb-annonce-bg);
	color: var(--fbweb-annonce-text);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.fbweb-annonce--preview {
	position: static;
}

.fbweb-annonce__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.375rem 0.875rem;
	padding: 0.625rem 1rem;
	text-align: center;
}

.fbweb-annonce [hidden] {
	display: none;
}

.fbweb-annonce__tag {
	padding: 0.1875rem 0.5625rem;
	border-radius: 4px;
	background-color: var(--fbweb-annonce-tag);
	color: var(--fbweb-annonce-tag-text);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fbweb-annonce .fbweb-annonce__message {
	margin: 0;
	color: inherit;
	font-size: inherit;
	/* Some themes force the weight of every paragraph with !important. */
	font-weight: 600 !important;
}

.fbweb-annonce .fbweb-annonce__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.fbweb-annonce .fbweb-annonce__link svg {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.fbweb-annonce .fbweb-annonce__link:hover svg {
	transform: translateX(3px);
}

.fbweb-annonce .fbweb-annonce__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

.fbweb-annonce__sr-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Below this width, the WordPress admin bar scrolls with the page. */
@media (max-width: 600px) {
	.fbweb-annonce {
		top: 0;
	}

	/* Message first, then the tag and the link on one line, to keep the bar low. */
	.fbweb-annonce .fbweb-annonce__message {
		flex-basis: 100%;
		order: -1;
	}

	.fbweb-annonce .fbweb-annonce__link {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fbweb-annonce .fbweb-annonce__link svg {
		transition: none;
	}
}

@media print {
	.fbweb-annonce {
		display: none;
	}
}
