/* LFR Facility Status — front end styles. Scoped and reset so themes don't break it. */

.lfrfs-root {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	clear: both;
	position: relative;
	z-index: 9990;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.lfrfs-root.lfrfs-empty { display: none !important; }

.lfrfs-root *,
.lfrfs-root *::before,
.lfrfs-root *::after { box-sizing: border-box; }

.lfrfs-root .lfrfs-notice {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--lfrfs-bg, #8a1c1c);
	color: var(--lfrfs-fg, #fff);
	font-family: inherit;
}

.lfrfs-root .lfrfs-notice__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	position: relative;
}

.lfrfs-root .lfrfs-align-center .lfrfs-notice__inner { justify-content: center; }
.lfrfs-root .lfrfs-align-center .lfrfs-notice__body { flex: 0 1 auto; }

.lfrfs-root .lfrfs-notice__badge {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 120px;
	padding: 2px 4px;
	text-align: center;
}

/* Day under the badge, e.g. OPEN / SATURDAY */
.lfrfs-root .lfrfs-badge-sub {
	display: block;
	color: var(--lfrfs-badge, currentColor);
	font-size: 0.82em;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lfrfs-root .lfrfs-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.lfrfs-root .lfrfs-notice p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	font-family: inherit;
	text-align: inherit;
	background: none;
	border: 0;
}

.lfrfs-root .lfrfs-notice p.lfrfs-notice__headline {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.005em;
}

.lfrfs-root .lfrfs-notice p.lfrfs-notice__message { margin-top: 3px; opacity: 0.95; }
.lfrfs-root .lfrfs-notice p.lfrfs-notice__note { margin-top: 3px; font-style: italic; opacity: 0.9; }

.lfrfs-root .lfrfs-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lfrfs-root .lfrfs-notice a:hover,
.lfrfs-root .lfrfs-notice a:focus { color: inherit; opacity: 0.85; }

.lfrfs-root .lfrfs-notice p.lfrfs-notice__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-top: 8px;
	font-size: 0.9em;
}

.lfrfs-root .lfrfs-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 3px 11px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	background: rgba(0, 0, 0, 0.12);
	background: color-mix(in srgb, currentColor 12%, transparent);
	font-weight: 600;
	white-space: nowrap;
}

.lfrfs-root .lfrfs-chip__label {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

/* Badges */
.lfrfs-root .lfrfs-stamp {
	display: inline-block;
	padding: 7px 13px 6px;
	border: 4px double var(--lfrfs-badge, currentColor);
	border-radius: 6px;
	color: var(--lfrfs-badge, currentColor);
	font-size: 1.15em;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(-6deg);
}

.lfrfs-root .lfrfs-pill {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 999px;
	background: var(--lfrfs-badge, #fff);
	color: var(--lfrfs-bg, #8a1c1c);
	font-size: 0.95em;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lfrfs-root .lfrfs-icon {
	display: block;
	width: 44px;
	height: 44px;
	color: var(--lfrfs-badge, currentColor);
}

.lfrfs-root img.lfrfs-badge-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 140px;
	max-height: 64px;
	margin: 0;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.lfrfs-root .lfrfs-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Dismiss button — reset hard, themes love styling <button>. */
.lfrfs-root button.lfrfs-close {
	all: unset;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.15s, background-color 0.15s;
}
.lfrfs-root button.lfrfs-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); background: color-mix(in srgb, currentColor 15%, transparent); }
.lfrfs-root button.lfrfs-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }

/* Sizes */
.lfrfs-root .lfrfs-size-compact .lfrfs-notice__inner { padding: 8px 18px; gap: 14px; font-size: 0.9em; }
.lfrfs-root .lfrfs-size-compact .lfrfs-notice__dates { margin-top: 5px; }
.lfrfs-root .lfrfs-size-compact .lfrfs-stamp { border-width: 3px; padding: 5px 10px 4px; font-size: 1em; }
.lfrfs-root .lfrfs-size-compact .lfrfs-icon { width: 34px; height: 34px; }
.lfrfs-root .lfrfs-size-compact .lfrfs-notice__badge { gap: 6px; min-width: 96px; }
.lfrfs-root .lfrfs-size-compact .lfrfs-badge-sub { font-size: 0.78em; }
.lfrfs-root .lfrfs-size-large .lfrfs-notice__inner { padding: 22px 24px; gap: 24px; font-size: 1.12em; }
.lfrfs-root .lfrfs-size-large .lfrfs-stamp { font-size: 1.35em; padding: 9px 16px 8px; }
.lfrfs-root .lfrfs-size-large .lfrfs-icon { width: 56px; height: 56px; }
.lfrfs-root .lfrfs-size-large .lfrfs-badge-sub { font-size: 0.9em; }

/* Positions */
.lfrfs-bar.lfrfs-pos-top_sticky {
	position: sticky;
	top: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99990;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.lfrfs-bar.lfrfs-pos-bottom_fixed {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

/* In-content shortcode / block */
.lfrfs-root.lfrfs-inline { z-index: auto; margin: 1.25em 0; font-size: inherit; }
.lfrfs-root.lfrfs-inline-flat { margin: 0; max-width: none; font-size: 16px; }
header .lfrfs-root.lfrfs-inline,
.wp-block-template-part .lfrfs-root.lfrfs-inline { margin-top: 0; margin-bottom: 0; }
.lfrfs-root.lfrfs-inline.alignfull { width: 100%; max-width: none; }
.lfrfs-root.lfrfs-card .lfrfs-notice { border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.lfrfs-root.lfrfs-card .lfrfs-notice__inner { padding: 18px 22px; }

/* Phones */
@media (max-width: 640px) {
	.lfrfs-root .lfrfs-notice__inner,
	.lfrfs-root .lfrfs-size-large .lfrfs-notice__inner,
	.lfrfs-root .lfrfs-size-compact .lfrfs-notice__inner {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px 14px;
		padding: 12px 16px;
	}
	.lfrfs-root .lfrfs-notice__body { flex-basis: 100%; }
	.lfrfs-root .lfrfs-notice__badge { padding: 4px 0 0; flex-direction: row; gap: 12px; min-width: 0; }
	.lfrfs-root .lfrfs-align-center .lfrfs-notice__inner { text-align: center; }
	.lfrfs-root .lfrfs-align-center .lfrfs-notice__dates { justify-content: center; }
	.lfrfs-root .lfrfs-stamp { font-size: 1em; }
	.lfrfs-root .lfrfs-chip { white-space: normal; }
	.lfrfs-root button.lfrfs-close { position: absolute; top: 6px; right: 6px; }
	.lfrfs-root .lfrfs-notice__inner:has(.lfrfs-close) { padding-right: 46px; }
}

@media print {
	.lfrfs-bar.lfrfs-pos-bottom_fixed,
	.lfrfs-bar.lfrfs-pos-top_sticky { position: static; box-shadow: none; }
	.lfrfs-root button.lfrfs-close { display: none; }
}
