/* Affinity front-end notifications */

:root {
	--affen-navy: #14213d;
	--affen-gold: #c8a24a;
	--affen-grey: #6b6f7b;
	--affen-cream: #faf6ec;
}

/* Card (pop-up and list) */
.affen-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 36px 12px 12px;
	color: var(--affen-navy);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
}
.affen-card:hover,
.affen-card:focus {
	color: var(--affen-navy);
	text-decoration: none;
}
.affen-img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--affen-gold);
	background: var(--affen-navy);
}
.affen-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
.affen-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--affen-gold);
	font-size: 20px;
	font-weight: 700;
}
.affen-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.affen-text strong {
	font-weight: 700;
}
.affen-sub {
	margin-top: 2px;
	font-size: 12px;
	color: var(--affen-grey);
}
.affen-testimonial .affen-text {
	font-style: italic;
}

/* Pop-up, bottom right corner (Terry, 31 Oct 2026; was bottom left) */
.affen-pop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	width: 360px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 12px;
	border-left: 4px solid var(--affen-gold);
	box-shadow: 0 8px 28px rgba(20, 33, 61, 0.22);
	overflow: hidden; /* while the bubble grows or shrinks between messages */
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	transition: opacity var(--affen-anim, 350ms) ease, transform var(--affen-anim, 350ms) ease, height var(--affen-anim, 350ms) ease;
}
.affen-pop.affen-show {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
/* Scrolled to the bottom of the page: fade out so it doesn't cover the footer (6 Nov 2026) */
.affen-pop.affen-show.affen-at-bottom {
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
}
/* Logged-in members: messages fade in and out inside the bubble */
.affen-slot {
	transition: opacity var(--affen-anim, 350ms) ease;
}
.affen-slot.affen-fade {
	opacity: 0;
}
.affen-close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	color: var(--affen-grey) !important;
	font-size: 20px;
	line-height: 28px;
	cursor: pointer;
	box-shadow: none;
}
.affen-close:hover {
	color: var(--affen-navy) !important;
	background: var(--affen-cream) !important;
}

/* × menu for members: pause for 3 / 7 days, never, or this visit */
.affen-menu {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 12px 36px 12px 14px;
	font-size: 14px;
	color: var(--affen-navy);
}
.affen-menu-open .affen-slot {
	display: none;
}
.affen-menu-open .affen-menu {
	display: flex;
}
.affen-menu-open .affen-close {
	display: none;
}
.affen-menu-title {
	flex: 0 0 100%;
	font-weight: 700;
	margin-bottom: 2px;
}
.affen-menu .affen-menu-btn,
.affen-menu .affen-menu-back {
	margin: 0 !important;
	padding: 5px 10px !important;
	border: 1px solid var(--affen-gold) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--affen-navy) !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	min-height: 0 !important;
	height: auto !important;
}
.affen-menu .affen-menu-btn:hover {
	background: var(--affen-cream) !important;
}
.affen-menu .affen-menu-back {
	border-color: transparent !important;
	color: var(--affen-grey) !important;
	text-decoration: underline !important;
}

/* Phones */
@media (max-width: 767px) {
	.affen-pop {
		right: 12px;
		bottom: 12px;
		width: calc(100vw - 24px); /* full width, so most fit on two lines */
		max-width: none;
	}
	.affen-card {
		font-size: 15px;
		padding: 10px 32px 10px 10px;
		gap: 10px;
	}
	.affen-sub {
		font-size: 13px;
	}
	.affen-img {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
}

/* Very small phones: just the main line, no date / time ago (Terry, 29 Oct 2026) */
@media (max-width: 399px) {
	.affen-sub {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.affen-pop,
	.affen-slot {
		transition: none;
		transform: none;
	}
}

/* [affinity_activity] list */
.affen-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.affen-list-items li {
	margin: 0 0 8px;
	background: #fff;
	border-radius: 10px;
	border-left: 4px solid var(--affen-gold);
	box-shadow: 0 2px 10px rgba(20, 33, 61, 0.08);
}
.affen-list-items .affen-card {
	padding-right: 12px;
}
