.banner-container > .banner {
	@media (prefers-color-scheme: light) {
		--banner-link-active: #4b4b4b;
	}

	@media (prefers-color-scheme: dark) {
		--banner-link-active: #b4b4b4;
	}
	
	@include macOS-normalize-controls;

	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	
	line-height: 2.2em;
	font-size: 13.5px;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-inline-start: 1em;
	padding-inline-end: 8px;
	font-weight: 600;
	
	label[is="text-link"], .link {
		color: inherit;
		border: none;
		margin: 0;
		padding-inline: 0.5em;
	}
	
	.close-btn {
		border-radius: 4px;
		display: flex;
		
		&:hover {
			background-color: var(--color-background30);
		}
		
		.icon {
			width: 20px;
			height: 20px;
			@include svgicon("x-8", "universal", "16");
			color: inherit;
			padding-block: 4px;
			box-sizing: border-box;
		}
	}
	
	.message {
		margin-inline-end: .8em;
	}

	.spacer {
		flex: 1;
	}

	.link {
		&:active {
			color: var(--banner-link-active);
		}
	}
}

// Add drop shadow after banner that's followed by another
//
// We set a z-index in ZoteroPane.setBannerZIndexes() to make this work
.banner-container:has(~ .banner-container:not([collapsed="true"])) {
	box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
}

#post-upgrade-container, #mac-word-plugin-install-container {
	background: var(--material-background);
}

#post-upgrade-banner {
	background: var(--accent-blue30);
	color: var(--fill-primary);
	flex-wrap: wrap;
	gap: 8px;
	font-weight: normal;
	
	.link {
		color: var(--accent-blue);
		text-decoration: underline;
		cursor: pointer;
	}
	
	#post-upgrade-appver {
		font-weight: 600;
	}
	
	#post-upgrade-new-features-link {
		padding-inline: unset;
	}
	
	#post-upgrade-buttons {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-inline-start: auto;

		@media (-moz-platform: windows), (-moz-platform: linux) {
			button {
				height: 24px;
				margin: 0 !important;
			}
		}
	}
}

#retracted-items-banner {
	background: #d93425;
	color: white;

	label[is="text-link"] {
		margin-inline-start: 0.3em;
		
		&:active {
			color: #f9e8e2;
		}
	}
}

#mac-word-plugin-install-banner,
#file-renaming-banner {
	background: var(--accent-blue30);
	color: var(--fill-primary);
	font-weight: normal;
	border-bottom: #a9a9a9 .5px solid;
}

#mac-word-plugin-install-remind-later {
	margin-inline-end: .4em;
}

#sync-reminder-banner {
	background: rgb(255, 234, 80);
	border-bottom: #a9a9a9 .5px solid;
	color: black;
}

#architecture-warning-container {
	background-color: var(--accent-red);
	color: white;

	.message {
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	a {
		border: none;
		color: inherit;
		margin: 0;
		padding: 0 .5em;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
}
