/*
 * Site notice — floating card (spec §5.5, restyled 2026-08-11).
 *
 * Matches the booking widget's document dialog: rounded corners, a coloured
 * header band carrying the severity, a cream body underneath. Floats above
 * the page in the bottom corner rather than pushing content down, so it
 * needs no height-reservation logic.
 */

.rsdf-notice {
	position: fixed;
	right: var(--rsdf-gutter);
	bottom: var(--rsdf-gutter);
	left: auto;
	z-index: 600; /* above the booking widget's own modal (see booking-widget.css) isn't required — they don't appear together — but stays above the sticky header (490) */
	width: min(380px, calc(100vw - (var(--rsdf-gutter) * 2)));
	display: none;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	font-family: var(--rsdf-font-ui);
}

.rsdf-notice.is-active {
	display: flex;
	animation: rsdf-notice-in var(--rsdf-duration) var(--rsdf-ease);
}

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

/* Mobile: full-width strip pinned to the bottom edge, matching how the
   booking widget's own dialog goes edge-to-edge on small screens. */
@media (max-width: 600px) {
	.rsdf-notice {
		right: var(--rsdf-gutter);
		left: var(--rsdf-gutter);
		bottom: var(--rsdf-gutter);
		width: auto;
	}
}

.rsdf-notice__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	color: var(--rsdf-white);
}

.rsdf-notice--info .rsdf-notice__head { background: var(--rsdf-green-mid); }
.rsdf-notice--warning .rsdf-notice__head { background: var(--rsdf-orange); }
.rsdf-notice--urgent .rsdf-notice__head { background: var(--rsdf-red); }

.rsdf-notice__icon {
	flex-shrink: 0;
	font-size: 1.1rem;
	line-height: 1;
}

/* Colour is never the only signal (§5.5.5) — the level is spelled out. */
.rsdf-notice__label {
	flex: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.78rem;
}

.rsdf-notice__dismiss {
	appearance: none;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms var(--rsdf-ease);
}

.rsdf-notice__dismiss:hover { background: rgba(255, 255, 255, 0.16); }

.rsdf-notice__body {
	padding: 14px 16px 16px;
	background: var(--rsdf-cream);
	color: var(--rsdf-ink);
}

.rsdf-notice__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.rsdf-notice__link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: underline;
	color: inherit;
}
