/**
 * WehfiGO Saved / bookmarks page + header link
 */

/* Header Saved (desktop) */
body.wehfigo-v2 .wehfigo-saved-nav-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 40px;
	width: auto;
	height: 40px;
	margin: 0 0.35rem 0 0;
	padding: 0 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.22);
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1;
	box-sizing: border-box;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease;
}

body.wehfigo-v2 .wehfigo-saved-nav-link:hover,
body.wehfigo-v2 .wehfigo-saved-nav-link:focus-visible {
	background: rgba(214, 0, 28, 0.85);
	border-color: #fff;
	color: #fff !important;
	outline: none;
}

body.wehfigo-v2 .wehfigo-saved-nav-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	display: block;
	margin: 0;
}

@media (max-width: 1023px) {
	/* Mobile: Saved lives in bottom nav only — not the top header */
	body.wehfigo-v2 #header .wehfigo-saved-nav-link,
	body.wehfigo-v2 .mobile-nav-header .wehfigo-saved-nav-link {
		display: none !important;
	}
}

@media (min-width: 1024px) and (max-width: 1599px) {
	body.wehfigo-v2 .wehfigo-saved-nav-link {
		width: 34px !important;
		min-width: 34px !important;
		max-width: 34px !important;
		height: 34px !important;
		padding: 0 !important;
		gap: 0 !important;
		margin: 0 !important;
	}

	body.wehfigo-v2 .wehfigo-saved-nav-link__text {
		display: none !important;
	}

	body.wehfigo-v2 .wehfigo-saved-nav-link svg {
		width: 16px;
		height: 16px;
		margin: 0;
	}
}

@media (min-width: 1024px) {
	body.wehfigo-v2 .wehfigo-saved-nav-link__text {
		font-family: var(--font-family-brand, "Space Grotesk", sans-serif);
		font-size: 14px;
		font-weight: 600;
	}
}

@media (min-width: 1600px) {
	body.wehfigo-v2 .wehfigo-saved-nav-link__text {
		display: inline;
	}
}

@media (max-width: 1023px) {
	body.wehfigo-v2 .wehfigo-saved-nav-link__text {
		display: none;
	}
}

/* Saved page */
body.wehfigo-bookmarks-page .dashboard-list-box,
body.wehfigo-bookmarks-page .list-box-listing {
	background: var(--color-page-bg, #fff);
}

body.wehfigo-bookmarks-page .dashboard-list-box h4 {
	font-family: var(--font-family-brand, "Space Grotesk", sans-serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-page-heading, #111);
	margin: 0 0 1rem;
}

body.wehfigo-bookmarks-page .dashboard-list-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.wehfigo-bookmarks-page .dashboard-list-box li {
	border: 1px solid var(--color-page-border, rgba(0, 0, 0, 0.1));
	border-radius: 0.85rem;
	margin-bottom: 0.85rem;
	padding: 0.85rem;
	background: var(--color-page-bg-alt, #fafafa);
}

body.wehfigo-bookmarks-page .notification.notice {
	border-radius: 0.85rem;
	padding: 1rem 1.15rem;
	background: var(--color-page-bg-alt, #f5f5f5);
	border: 1px solid var(--color-page-border, rgba(0, 0, 0, 0.1));
}

body.wehfigo-bookmarks-page .wehfigo-bookmarks-login {
	font-size: 1.05rem;
	text-align: center;
	padding: 2rem 1rem;
}

html[data-theme="dark"] body.wehfigo-bookmarks-page .dashboard-list-box li,
html[data-theme="dark"] body.wehfigo-bookmarks-page .notification.notice {
	background: #141414;
	border-color: rgba(255, 255, 255, 0.12);
}

/* Mobile: show full bookmark flyer (no crop), keep size modest */
@media (max-width: 767px) {
	body.wehfigo-bookmarks-page .list-box-listing-img,
	body.wehfigo-bookmarks-page .list-box-listing-img a,
	body.wehfigo-bookmarks-page .list-box-listing .listing-img-container {
		height: auto !important;
		max-height: none !important;
		aspect-ratio: auto !important;
		overflow: visible !important;
	}

	body.wehfigo-bookmarks-page .list-box-listing-img img,
	body.wehfigo-bookmarks-page .list-box-listing img,
	body.wehfigo-bookmarks-page .listing-img-container img {
		width: 100% !important;
		height: auto !important;
		max-height: 220px !important;
		object-fit: contain !important;
		object-position: center !important;
		background: #f5f5f5;
		border-radius: 10px;
	}
}
