/*
 * Favourites education UI — the one-time first-save onboarding popover and the
 * empty-state block rendered by itinerary-favorites.js. Kept out of the theme
 * stylesheet so the whole favourites feature (JS + CSS) ships together behind
 * the same gc_cart_enabled() gate. Custom (not Bootstrap) because this theme
 * bundles BS5 without window.bootstrap, so the JS popover component is unusable.
 */

.gc-fav-popover {
	position: fixed;
	z-index: 1080; /* above the sticky topbar, below modals */
	width: 260px;
	max-width: calc(100vw - 16px);
	padding: 1rem 1rem .9rem;
	background: #fff;
	color: #212529;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: .5rem;
}

.gc-fav-popover::before {
	/* little pointer up towards the topbar trigger */
	content: "";
	position: absolute;
	top: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid rgba(0, 0, 0, .12);
	border-top: 1px solid rgba(0, 0, 0, .12);
}

.gc-fav-popover-body {
	margin: 0 0 .75rem;
	font-size: .9rem;
	line-height: 1.4;
}

.gc-fav-popover-close {
	position: absolute;
	top: .35rem;
	right: .5rem;
	padding: 0 .25rem;
	background: none;
	border: 0;
	font-size: 1.25rem;
	line-height: 1;
	color: #6c757d;
	cursor: pointer;
}
.gc-fav-popover-close:hover { color: #212529; }

@media (prefers-reduced-motion: no-preference) {
	.gc-fav-popover { animation: gcFavPopIn .18s ease-out; }
	@keyframes gcFavPopIn {
		from { opacity: 0; transform: translateY(-4px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}

/* Empty state inside the favourites offcanvas list. */
.gc-fav-empty .fa { opacity: .5; }
