/* Fly United Complianz banner. Everything is scoped under .flyuc to avoid theme conflicts. */

.flyuc {
	--flyuc-bg: #ffffff;
	--flyuc-text: #1f2328;
	--flyuc-accent: #1f4e8c;
	--flyuc-accent-text: #ffffff;
	--flyuc-radius: 12px;
	--flyuc-line: rgba(127, 127, 127, 0.28);
}

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

.flyuc [hidden] {
	display: none !important;
}

/* ---------- Banner shell ---------- */

.flyuc-banner {
	position: fixed;
	z-index: 2147483000;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 20px 24px;
	background: var(--flyuc-bg);
	color: var(--flyuc-text);
	border-radius: var(--flyuc-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.18);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.flyuc-banner:focus {
	outline: none;
}

.flyuc--pos-bottom .flyuc-banner {
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 1080px;
	margin: 0 auto;
}

.flyuc--pos-bottom-left .flyuc-banner,
.flyuc--pos-bottom-right .flyuc-banner {
	bottom: 16px;
	width: min(440px, calc(100vw - 32px));
}

.flyuc--pos-bottom-left .flyuc-banner {
	left: 16px;
}

.flyuc--pos-bottom-right .flyuc-banner {
	right: 16px;
}

.flyuc--pos-center .flyuc-banner {
	top: 50%;
	left: 50%;
	width: min(560px, calc(100vw - 32px));
	transform: translate(-50%, -50%);
	padding: 28px;
}

.flyuc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147482999;
	background: rgba(15, 23, 42, 0.5);
}

/* One entrance moment when the banner first appears. */
.flyuc--visible .flyuc-banner {
	animation: flyuc-rise 0.24s ease-out;
}

.flyuc--pos-center.flyuc--visible .flyuc-banner {
	animation-name: flyuc-fade;
}

@keyframes flyuc-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

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

/* ---------- Text ---------- */

.flyuc .flyuc-banner__title {
	margin: 0 0 6px;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.flyuc .flyuc-banner__message {
	max-width: 72ch;
	margin: 0;
	color: inherit;
	font-size: 14px;
	line-height: 1.55;
}

.flyuc .flyuc-banner a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.flyuc .flyuc-banner__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 8px;
	font-size: 13px;
}

/* ---------- Buttons ---------- */

.flyuc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.flyuc .flyuc-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--flyuc-accent);
	border-radius: calc(var(--flyuc-radius) * 0.6);
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease;
}

/* Accept and reject share one style so neither choice is visually pushed. */
.flyuc .flyuc-btn--solid {
	background: var(--flyuc-accent);
	color: var(--flyuc-accent-text);
}

.flyuc .flyuc-btn--solid:hover {
	filter: brightness(1.1);
}

.flyuc .flyuc-btn--outline {
	background: transparent;
	color: var(--flyuc-text);
}

.flyuc .flyuc-btn--link {
	margin-right: auto;
	padding-left: 2px;
	padding-right: 2px;
	border-color: transparent;
	background: transparent;
	color: var(--flyuc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.flyuc .flyuc-btn:focus-visible,
.flyuc .flyuc-manage:focus-visible,
.flyuc-switch input:focus-visible + .flyuc-switch__track {
	outline: 3px solid var(--flyuc-accent);
	outline-offset: 2px;
}

/* ---------- Preferences panel ---------- */

.flyuc-prefs {
	margin-top: 16px;
	border-top: 1px solid var(--flyuc-line);
}

.flyuc .flyuc-prefs__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flyuc .flyuc-cat {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--flyuc-line);
}

.flyuc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.flyuc .flyuc-cat__name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.flyuc-cat--functional .flyuc-cat__name {
	cursor: default;
}

.flyuc-cat__always {
	flex: none;
	color: var(--flyuc-accent);
	font-size: 13px;
	font-weight: 600;
}

.flyuc .flyuc-cat__desc {
	max-width: 72ch;
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Switch ---------- */

.flyuc-switch {
	position: relative;
	display: inline-flex;
	flex: none;
}

/* The checkbox sits invisibly on top of the track and takes the click itself,
   so tapping the switch works as well as clicking its label. */
.flyuc .flyuc-switch input {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	pointer-events: auto;
	appearance: none;
}

.flyuc-switch__track {
	position: relative;
	z-index: 1;
	pointer-events: none;
	display: block;
	width: 44px;
	height: 26px;
	border-radius: 13px;
	background: rgba(127, 127, 127, 0.5);
	transition: background-color 0.15s ease;
}

.flyuc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.flyuc-switch input:checked + .flyuc-switch__track {
	background: var(--flyuc-accent);
}

.flyuc-switch input:checked + .flyuc-switch__track::after {
	transform: translateX(18px);
}

/* ---------- Floating settings button ---------- */

.flyuc .flyuc-manage {
	position: fixed;
	bottom: 16px;
	z-index: 2147482998;
	min-height: 40px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--flyuc-line);
	border-radius: 999px;
	background: var(--flyuc-bg);
	color: var(--flyuc-text);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.flyuc-manage--bottom-left {
	left: 16px;
}

.flyuc-manage--bottom-right {
	right: 16px;
}

/* Shortcode link */
.flyuc-manage-link {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Blocked embeds ---------- */

.flyuc-embed {
	position: relative;
	display: block;
	max-width: 100%;
}

.flyuc-embed--fill {
	position: absolute;
	inset: 0;
}

.flyuc-embed--min {
	min-height: 240px;
}

.flyuc-embed > iframe[data-flyuc-src] {
	visibility: hidden;
}

.flyuc-placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 20px;
	background: var(--flyuc-ph-bg, #23272e);
	color: var(--flyuc-ph-text, #ffffff);
	border-radius: var(--flyuc-ph-radius, 8px);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.flyuc-placeholder__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 46ch;
}

.flyuc-placeholder__service {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.flyuc-placeholder__text {
	display: block;
}

.flyuc-placeholder .flyuc-placeholder__btn {
	appearance: none;
	min-height: 44px;
	margin: 4px 0 0;
	padding: 10px 18px;
	border: 0;
	border-radius: calc(var(--flyuc-ph-radius, 8px) * 0.6);
	background: var(--flyuc-ph-accent, #1f4e8c);
	color: var(--flyuc-ph-accent-text, #ffffff);
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}

.flyuc-placeholder .flyuc-placeholder__btn:hover {
	filter: brightness(1.1);
}

.flyuc-placeholder .flyuc-placeholder__link {
	appearance: none;
	margin: 0;
	padding: 4px;
	border: 0;
	background: none;
	color: inherit;
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.flyuc-placeholder button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

/* Hide placeholders for categories already allowed; the head script sets these classes. */
.flyuc-granted-preferences .flyuc-placeholder[data-flyuc-ph="preferences"],
.flyuc-granted-statistics .flyuc-placeholder[data-flyuc-ph="statistics"],
.flyuc-granted-marketing .flyuc-placeholder[data-flyuc-ph="marketing"] {
	display: none;
}

@media (max-width: 480px) {
	.flyuc-placeholder {
		padding: 12px;
		font-size: 13px;
	}
}

/* ---------- Layout variants ---------- */

@media (min-width: 900px) {
	.flyuc--pos-bottom .flyuc-banner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		column-gap: 32px;
	}

	.flyuc--pos-bottom .flyuc-banner__actions {
		grid-column: 2;
		grid-row: 1;
		flex-wrap: nowrap;
		margin-top: 0;
	}

	.flyuc--pos-bottom .flyuc-prefs {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (max-width: 600px) {
	.flyuc-banner {
		padding: 18px;
	}

	.flyuc--pos-bottom .flyuc-banner,
	.flyuc--pos-bottom-left .flyuc-banner,
	.flyuc--pos-bottom-right .flyuc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
	}

	.flyuc-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.flyuc .flyuc-btn {
		width: 100%;
	}

	.flyuc .flyuc-btn--link {
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flyuc--visible .flyuc-banner {
		animation: none;
	}

	.flyuc .flyuc-btn,
	.flyuc-switch__track,
	.flyuc-switch__track::after {
		transition: none;
	}
}
