/**
 * Webland Banner styles.
 *
 * Rendered in the normal document flow so it is present on first paint,
 * avoiding layout shift (CLS).
 */

.webland-banner {
	display: flex;
	align-items: center;
	gap: 1rem;
	box-sizing: border-box;
	width: 100%;
	padding: 0.625rem clamp(1rem, 4vw, 2.5rem);
	background-color: #1c1d45;
	color: #fff;
}

.webland-banner[hidden] {
	display: none;
}

.webland-banner__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}

.webland-banner .webland-banner__text a {
	color: inherit;
	text-decoration: underline;
}

.webland-banner .webland-banner__text a:hover,
.webland-banner .webland-banner__text a:focus-visible {
	text-decoration: none;
	color: inherit;
}

.webland-banner .webland-banner__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 4px;
	transition: opacity 0.2s ease;
}

.webland-banner .webland-banner__close:hover,
.webland-banner .webland-banner__close:focus {
	background: transparent;
	color: inherit;
	border: 0;
	border-radius: 4px;
	opacity: 0.75;
}

.webland-banner .webland-banner__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	opacity: 1;
}

/* Small screens: keep the close button aligned to the top-right of taller text. */
@media (max-width: 600px) {
	.webland-banner {
		align-items: flex-start;
		gap: 0.5rem;
		padding-inline: 1rem;
	}

	.webland-banner__text {
		text-align: left;
	}
}
