/* Announcement bar: fixed over the top of the header, so nothing below moves. */
.oc-abar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 52px;
	box-sizing: border-box;
	background: var(--oc-abar-bg, #706964);
	color: var(--oc-abar-fg, #fff);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.oc-abar[hidden] {
	display: none;
}

.oc-abar.is-visible {
	opacity: 1;
}

.admin-bar .oc-abar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .oc-abar {
		top: 46px;
	}

	.oc-abar {
		font-size: 13px;
		padding: 8px 48px 8px 16px;
	}
}

.oc-abar .oc-abar__msg {
	margin: 0;
	color: inherit;
	font: inherit;
	text-decoration: none;
}

/* Whole bar is the link; the close button sits above it. */
.oc-abar a.oc-abar__msg::after {
	content: "";
	position: absolute;
	inset: 0;
}

.oc-abar a.oc-abar__msg:hover,
.oc-abar a.oc-abar__msg:focus-visible {
	color: inherit;
	text-decoration: underline;
}

.oc-abar .oc-abar__close {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	z-index: 1;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: 400 24px/1 sans-serif;
	cursor: pointer;
}

.oc-abar .oc-abar__close:hover,
.oc-abar .oc-abar__close:focus-visible {
	background: rgba(0, 0, 0, 0.15);
	color: inherit;
}

.oc-abar a.oc-abar__msg:focus-visible,
.oc-abar .oc-abar__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.oc-abar {
		transition: none;
	}
}
