.flo-notice {
	--fn-pink: #ef018d;
	--fn-pink-btn: #c4017a;
	--fn-pink-hover: #a30166;
	--fn-blue: #58b8e0;
	--fn-orange: #e99a24;
	--fn-green: #73b849;
	--fn-ink: #1f2233;
	--fn-text: #34374a;
	--fn-muted: #5a5d70;

	box-sizing: border-box;
	width: min(600px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--fn-text);
	box-shadow: 0 24px 60px rgba(20, 22, 38, 0.3);
	font: inherit;
	font-size: 1rem;
}

.flo-notice *,
.flo-notice *::before,
.flo-notice *::after {
	box-sizing: border-box;
}

.flo-notice::backdrop {
	background: rgba(24, 26, 40, 0.6);
}

html:has(.flo-notice[open]) {
	overflow: hidden;
}

/* Header */
.flo-notice .flo-notice__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.5rem;
	background: #fff;
}

.flo-notice .flo-notice__brand {
	display: block;
	color: var(--fn-ink);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.flo-notice .flo-notice__logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 52px;
}

.flo-notice .flo-notice__x {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 2px solid #d6d7de;
	border-radius: 50%;
	background: #fff;
	color: var(--fn-ink);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.flo-notice .flo-notice__x:hover {
	border-color: var(--fn-pink-btn);
	color: var(--fn-pink-btn);
}

.flo-notice .flo-notice__x:focus-visible {
	outline: 3px solid var(--fn-blue);
	outline-offset: 2px;
}

/* The four brand colours as one bar under the header */
.flo-notice .flo-notice__stripe {
	display: flex;
	height: 6px;
}

.flo-notice .flo-notice__stripe span {
	flex: 1 1 0;
}

.flo-notice .flo-notice__stripe span:nth-child(1) { background: var(--fn-pink); }
.flo-notice .flo-notice__stripe span:nth-child(2) { background: var(--fn-blue); }
.flo-notice .flo-notice__stripe span:nth-child(3) { background: var(--fn-orange); }
.flo-notice .flo-notice__stripe span:nth-child(4) { background: var(--fn-green); }

/* Body */
.flo-notice .flo-notice__body {
	padding: 1.6rem 1.5rem 1.75rem;
	background: #fff;
}

.flo-notice .flo-notice__title {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0 0 0.4rem;
	padding: 0;
	color: var(--fn-ink);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
}

.flo-notice .flo-notice__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	margin-top: 0.05em;
}

.flo-notice .flo-notice__updated {
	margin: 0 0 1rem;
	padding-left: calc(30px + 0.7rem);
	color: var(--fn-muted);
	font-size: 0.875rem;
}

.flo-notice .flo-notice__content {
	margin-top: 1rem;
}

.flo-notice .flo-notice__content p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	line-height: 1.6;
}

.flo-notice .flo-notice__content p:last-child {
	margin-bottom: 0;
}

.flo-notice .flo-notice__content a {
	color: var(--fn-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--fn-pink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	word-break: break-word;
}

.flo-notice .flo-notice__content a:hover {
	color: var(--fn-pink-btn);
}

/* Actions */
.flo-notice .flo-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.flo-notice .flo-notice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1.4rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* Deeper shade of the brand pink so white text passes AA contrast */
.flo-notice .flo-notice__btn--primary {
	background: var(--fn-pink-btn);
	color: #fff;
}

.flo-notice .flo-notice__btn--primary:hover {
	background: var(--fn-pink-hover);
	color: #fff;
}

.flo-notice .flo-notice__btn--ghost {
	background: #fff;
	border-color: var(--fn-ink);
	color: var(--fn-ink);
}

.flo-notice .flo-notice__btn--ghost:hover {
	background: var(--fn-ink);
	color: #fff;
}

.flo-notice .flo-notice__btn:focus-visible,
.flo-notice .flo-notice__content a:focus-visible {
	outline: 3px solid var(--fn-blue);
	outline-offset: 3px;
}

.flo-notice .flo-notice__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Opening motion: the colour bar draws in once, the panel lifts */
@media (prefers-reduced-motion: no-preference) {
	.flo-notice[open] {
		animation: flo-notice-in 0.25s ease-out;
	}

	.flo-notice[open]::backdrop {
		animation: flo-notice-fade 0.25s ease-out;
	}

	.flo-notice[open] .flo-notice__stripe span {
		transform-origin: left center;
		animation: flo-notice-bar 0.4s ease-out both;
	}

	.flo-notice[open] .flo-notice__stripe span:nth-child(2) { animation-delay: 0.06s; }
	.flo-notice[open] .flo-notice__stripe span:nth-child(3) { animation-delay: 0.12s; }
	.flo-notice[open] .flo-notice__stripe span:nth-child(4) { animation-delay: 0.18s; }
}

@keyframes flo-notice-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@keyframes flo-notice-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes flo-notice-bar {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

/* Small screens */
@media (max-width: 480px) {
	.flo-notice .flo-notice__head,
	.flo-notice .flo-notice__body {
		padding-left: 1.15rem;
		padding-right: 1.15rem;
	}

	.flo-notice .flo-notice__title {
		font-size: 1.3rem;
	}

	.flo-notice .flo-notice__updated {
		padding-left: 0;
	}

	.flo-notice .flo-notice__btn {
		width: 100%;
	}
}

@media (forced-colors: active) {
	.flo-notice {
		border: 2px solid CanvasText;
	}
}
