.notice {
	background-color: var(--blue-light);
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: center;
	justify-content: center;
	-ms-flex-wrap: wrap-reverse;
	flex-wrap: wrap-reverse;
	gap: 1rem;
	position: relative;
	transition: all 0.2s ease-in-out;
	line-height: 2;
}

.notice p {
	color: inherit;
	margin: 0;
	transition: all 0.1s ease-in-out;
}

.notice a {
	color: var(--blue);
}

.notice > .container-fluid {
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}

/* Text wrapper */
.notice__text-wrapper {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: start;
	justify-content: flex-start;
	gap: 16px;
	padding-block: 22px;
	padding-right: 2rem;
	transition: all 0.2s ease-in-out;
}

.notice--compact .notice__text-wrapper {
	height: 1lh;
}

@media (min-width: 768px) {
	.notice__text-wrapper {
		gap: 10px;
		padding-right: 1.5rem;
	}
}

/* Icon */
.notice__icon {
	-ms-flex: 0 0 1.5rem;
	flex: 0 0 1.5rem;
	display: -ms-flexbox;
	display: flex;
	margin-top: .05lh;
	margin-bottom: auto;
	-ms-flex-align: flex-start;
	align-items: flex-start;
	-ms-flex-pack: center;
	justify-content: center;
}

.notice__icon svg {
	width: 1.5rem;
	height: 1.5rem;
	transition: all 0.2s ease-in-out;
}

.notice__description a svg {
	margin-left: 0.1rem;
}

/* Close button */
.notice__close {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	position: absolute;
	top: 50%;
	right: 0;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #122d66;
	box-shadow: none;
	cursor: pointer;
	outline: 1px solid transparent;
	transform: translateY(-50%);
	transition: all 0.2s ease-in-out;
}

.notice:not(.notice--compact) .closed {
	display: none;
}

.notice.notice--compact .open {
	display: none;
}

.notice__heading {
	font-weight: bold;
	display: block;
	transition: all 0.2s ease-in-out;
}

.notice__close:active,
.notice__close:focus,
.notice__close:hover {
	background-color: #122d66;
	color: #fff;
}

.notice__close svg {
	width: 1.5rem;
	height: 1.5rem;
	transform: rotate(-180deg);
	transition: all 0.2s ease-in-out;
}

p.notice__description {
	line-height: 1.7;
}

/* Compact state */

.notice--compact p.notice__description {
	position: absolute;
}

.notice--compact p.notice__description,
.notice--compact a {
	color: transparent;
	pointer-events: none;
}

.notice--compact a {
	-webkit-text-decoration-color: transparent;
	text-decoration-color: transparent;
	transition: all 0.2s ease-in-out;
}

.notice--compact .notice__text-wrapper {
	padding-block: 0.35rem;
}

.notice--compact .notice__icon svg {
	width: 1rem;
	height: 1rem;
}

.notice--compact .notice__close svg {
	width: 0.9rem;
	transform: rotate(0);
}
