/* Notification bar (inc/notification-bar.php) */

.ci-notice {
	background: var(--wp--preset--color--secondary-accent, #aefffb);
	color: var(--wp--preset--color--primary-accent, #00132d);
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* Below the cookie consent box (z-index 9999999), above the page. */
.ci-notice--bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	box-shadow: 0 -2px 12px rgba(0, 19, 45, 0.12);
}

body:has(.ci-notice--bottom) {
	padding-bottom: var(--ci-notice-height, 0);
}

.ci-notice__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size, 1376px);
	margin-inline: auto;
	padding: 0.625rem var(--wp--style--root--padding-right, 1rem) 0.625rem var(--wp--style--root--padding-left, 1rem);
	box-sizing: border-box;
}

.ci-notice--bottom .ci-notice__inner {
	padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
}

.ci-notice__text {
	flex: 1;
	margin: 0;
	text-align: center;
}

.ci-notice__link {
	margin-left: 0.25rem;
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.ci-notice__link:hover {
	text-decoration-thickness: 2px;
}

.ci-notice__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ci-notice__close:hover {
	background: rgba(0, 19, 45, 0.08);
}

.ci-notice__link:focus-visible,
.ci-notice__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.ci-notice__text {
		text-align: left;
	}
}

@media print {
	.ci-notice {
		display: none;
	}
}
