.xbar,
.xbar * {
	box-sizing: border-box;
}

.xbar {
	position: relative;
	z-index: 99998;
	width: 100%;
	color: var(--xbar-text, #fff);
	background: var(--xbar-bg, #111827);
	font-size: 15px;
	line-height: 1.45;
}

.xbar[hidden] {
	display: none !important;
}

.xbar--fixed-top,
.xbar--fixed-bottom {
	position: fixed;
	left: 0;
	right: 0;
}

.xbar--fixed-top {
	top: 0;
}

.xbar--fixed-bottom {
	bottom: env(safe-area-inset-bottom, 0px);
}

.admin-bar .xbar--fixed-top {
	top: 32px;
}

body.xbar-has-fixed-top {
	padding-top: calc(var(--xbar-fixed-top-height, 0px) + var(--xbar-original-padding-top, 0px)) !important;
}

body.xbar-has-fixed-bottom {
	padding-bottom: calc(var(--xbar-fixed-bottom-height, 0px) + var(--xbar-original-padding-bottom, 0px) + env(safe-area-inset-bottom, 0px)) !important;
}

.xbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(calc(100% - 32px), 1200px);
	min-height: 56px;
	margin: 0 auto;
	padding: 12px 48px;
	gap: 16px;
}

.xbar__content {
	flex: 0 1 auto;
	min-width: 0;
	color: inherit;
	text-align: center;
}

.xbar__content > :first-child {
	margin-top: 0;
}

.xbar__content > :last-child {
	margin-bottom: 0;
}

.xbar__content a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xbar__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 14px;
	border: 1px solid var(--xbar-cta-border, #fff);
	border-radius: 5px;
	color: var(--xbar-cta-text, #111827);
	background: var(--xbar-cta-bg, #fff);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.xbar__cta:hover,
.xbar__cta:focus-visible {
	color: var(--xbar-cta-text, #111827);
	background: var(--xbar-cta-bg, #fff);
	filter: brightness(.92);
}

.xbar__close {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: inherit;
	background: transparent;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
	transition: background-color .15s ease, opacity .15s ease;
}

.xbar__close:hover,
.xbar__close:focus-visible {
	background: rgba(255, 255, 255, .14);
	opacity: 1;
}

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

@media (max-width: 600px) {
	.xbar__inner {
		align-items: stretch;
		width: calc(100% - 24px);
		min-height: 0;
		padding: 12px 42px;
		gap: 10px;
	}

	.xbar__content {
		font-size: 14px;
	}

	.xbar__cta {
		align-self: center;
	}
}

@media (max-width: 420px) {
	.xbar__inner {
		flex-wrap: wrap;
	}

	.xbar__content {
		flex-basis: 100%;
	}

	.xbar__cta {
		margin-top: 2px;
	}
}
