:root { --sb-banner-height: 0px; }

html.sb-banner-active {
	padding-top: var(--sb-banner-height);
}

#sb-banner {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	width: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 44px 12px 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	transform: translateY(-100%);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease, top .15s ease;
}

#sb-banner.sb-visible {
	transform: translateY(0);
	opacity: 1;
}

.sb-banner-inner {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
	cursor: default;
}

a.sb-banner-inner { cursor: pointer; }

.sb-banner-title { font-weight: 700; }
.sb-banner-sep { opacity: .85; }
.sb-banner-text { font-weight: 400; }
.sb-banner-arrow {
	margin-left: 10px;
	font-weight: 700;
	display: inline-block;
	transition: transform .15s ease;
}

#sb-banner.sb-has-link:hover { filter: brightness(0.88); }
#sb-banner.sb-has-link:hover .sb-banner-arrow { transform: translateX(4px); }

.sb-banner-close {
	position: absolute;
	right: 6px;
	top: 6px;
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
	opacity: .8;
	user-select: none;
}
.sb-banner-close:hover { opacity: 1; }

.sb-reopen {
	position: fixed;
	top: 0;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 0 0 8px 8px;
	border: none;
	font-weight: 700;
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	cursor: pointer;
	z-index: 999998;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	user-select: none;
}
.sb-reopen.sb-visible { display: flex; }

.sb-banner-close:focus,
.sb-reopen:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	#sb-banner { padding: 10px 40px 10px 12px; font-size: 13px; }
	.sb-banner-arrow { margin-left: 6px; }
}
