/* BFS Holiday Giving */
.bfs-hg-card,
.bfs-hg-bar {
	--bfs-hg-red: #c1272d;
	--bfs-hg-red-dark: #a71f24;
	--bfs-hg-ink: #2c2c2c;
	--bfs-hg-text: #555555;
	--bfs-hg-warm: #faf8f5;
	--bfs-hg-line: #e8e3db;
	box-sizing: border-box;
}
.bfs-hg-card *,
.bfs-hg-bar * {
	box-sizing: border-box;
}

/* Desktop card, bottom left */
.bfs-hg-card {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 340px;
	max-width: calc(100vw - 48px);
	background: var(--bfs-hg-warm);
	border: 1px solid var(--bfs-hg-line);
	border-top: 4px solid var(--bfs-hg-red);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.bfs-hg-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.bfs-hg-card__image {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	object-position: center 20%;
	background: var(--bfs-hg-line);
}
.bfs-hg-card__body {
	padding: 18px 22px 20px;
}
.bfs-hg-card__eyebrow {
	margin: 0 0 6px;
	font-family: 'Josefin Sans', Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--bfs-hg-red);
}
.bfs-hg-card__title {
	margin: 0 0 10px;
	font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bfs-hg-ink);
}
.bfs-hg-card__text {
	margin: 0 0 16px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bfs-hg-text);
}
.bfs-hg-card__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.bfs-hg-btn {
	display: inline-block;
	padding: 11px 20px;
	font-family: 'Josefin Sans', Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #ffffff !important;
	background: var(--bfs-hg-red);
	border: 0;
	border-radius: 2px;
	transition: background 0.2s ease;
}
.bfs-hg-btn:hover,
.bfs-hg-btn:focus {
	background: var(--bfs-hg-red-dark);
}
.bfs-hg-later {
	padding: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 13px;
	color: var(--bfs-hg-text);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}
.bfs-hg-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 20px;
	line-height: 30px;
	text-align: center;
	color: var(--bfs-hg-ink);
	background: rgba(255, 255, 255, 0.92);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.bfs-hg-close:hover,
.bfs-hg-close:focus {
	background: #ffffff;
	color: var(--bfs-hg-red);
}

/* Phones: slim bar at the bottom instead of the card */
@media (max-width: 767px) {
	.bfs-hg-card {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
	}
	.bfs-hg-card__image,
	.bfs-hg-card__text,
	.bfs-hg-later {
		display: none;
	}
	.bfs-hg-card__body {
		padding: 12px 52px 14px 16px;
	}
	.bfs-hg-card__eyebrow {
		font-size: 11px;
		margin-bottom: 4px;
	}
	.bfs-hg-card__title {
		font-size: 16px;
		margin-bottom: 10px;
	}
	.bfs-hg-btn {
		padding: 10px 16px;
		font-size: 12px;
	}
	.bfs-hg-close {
		top: 10px;
		right: 10px;
		background: transparent;
	}
}

/* Scholarship Fund page: thin ribbon fixed to the bottom of the screen */
.bfs-hg-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 12px 56px 12px 16px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
	color: #ffffff;
	background: var(--bfs-hg-red);
}
.bfs-hg-bar__link {
	font-family: 'Josefin Sans', Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #ffffff !important;
	text-decoration: underline !important;
	white-space: nowrap;
}
.bfs-hg-bar .bfs-hg-close {
	top: 50%;
	right: 8px;
	margin-top: -15px;
	color: #ffffff;
	background: transparent;
}
.bfs-hg-bar .bfs-hg-close:hover,
.bfs-hg-bar .bfs-hg-close:focus {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 767px) {
	.bfs-hg-bar {
		gap: 4px 14px;
		padding: 10px 52px 10px 16px;
		font-size: 14px;
	}
}

/* The theme's "back to top" button moves up while a bar is at the bottom */
html.bfs-hg-lift #back-to-top {
	bottom: calc(var(--bfs-hg-offset, 0px) + 16px) !important;
	transition: bottom 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
	.bfs-hg-card {
		transition: none;
	}
}
