.sbbn-ribbon {
	width: 100%;
	box-sizing: border-box;
	background: var(--sbbn-bg, #c8102e);
	color: var(--sbbn-fg, #fff);
	font-size: 15px;
	line-height: 1.35;
}

.sbbn-slot.is-sticky,
.sbbn-ribbon.is-sticky {
	position: sticky;
	top: 0;
	z-index: 99999;
}

/* Don't slide under the WordPress admin bar. */
.admin-bar .sbbn-slot.is-sticky,
.admin-bar .sbbn-ribbon.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .sbbn-slot.is-sticky,
	.admin-bar .sbbn-ribbon.is-sticky {
		top: 46px;
	}
}

.sbbn-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
}

.sbbn-link,
.sbbn-static {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.sbbn-link:hover .sbbn-message,
.sbbn-link:focus .sbbn-message {
	text-decoration: underline;
}

.sbbn-link:hover .sbbn-arrow {
	transform: translateX(3px);
}

.sbbn-badge {
	flex: 0 0 auto;
	background: var(--sbbn-fg, #fff);
	color: var(--sbbn-bg, #c8102e);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
}

.sbbn-message {
	min-width: 0;
}

.sbbn-arrow {
	flex: 0 0 auto;
	transition: transform .15s ease;
}

/* Customizer preview only: the ribbon is written but not yet in its window. */
.sbbn-note {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 12px;
	letter-spacing: .02em;
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: 3px;
	opacity: .85;
}

.sbbn-ribbon.is-scheduled {
	opacity: .75;
}

.sbbn-dismiss {
	flex: 0 0 auto;
	margin-left: auto;
	background: none;
	border: 0;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
	opacity: .7;
}

.sbbn-dismiss:hover,
.sbbn-dismiss:focus {
	opacity: 1;
}

/*
 * Theme armour. The ribbon is injected into somebody else's design, and
 * themes reset `button` and `a` hard (loterkft.hu's reset gives every button
 * a border, padding and its own colour). These few declarations are the ones
 * that make the ribbon look broken when a theme wins them.
 */
.sbbn-ribbon .sbbn-dismiss {
	-webkit-appearance: none;
	appearance: none;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: 22px !important;
	line-height: 1 !important;
	padding: 0 4px !important;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	text-transform: none;
	letter-spacing: normal;
}

.sbbn-ribbon a.sbbn-link {
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

@media (max-width: 600px) {
	.sbbn-inner { align-items: flex-start; }
	.sbbn-link, .sbbn-static { flex-wrap: wrap; gap: 8px; }
	.sbbn-ribbon { font-size: 14px; }
	/* The arrow would wrap onto a line of its own. */
	.sbbn-arrow { display: none; }
}
