/* WonderLab Points System — frontend floating notification card
 * Used by the signup-bonus and profile-bonus modules. Self-contained
 * styles (no dependency on the Migration Bonus plugin) so this keeps
 * working even if that plugin is removed.
 *
 * Markup contract:
 *   <div class="wlp-floating-card" data-card-id="signup-pre">
 *     <button class="wlp-card-dismiss" aria-label="Dismiss">×</button>
 *     <div class="wlp-card-icon"><i class="fa-solid fa-gift" aria-hidden="true"></i></div>
 *     <div class="wlp-card-body">
 *       <strong class="wlp-card-title">…</strong>
 *       <p class="wlp-card-text">…</p>
 *       <a class="wlp-card-cta" href="…">…</a>   ← optional
 *     </div>
 *   </div>
 */

.wlp-floating-card {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9990;
	max-width: 360px;
	padding: 16px 18px 16px 16px;
	background: #FFFBF1;
	color: #1f2430;
	border: 1px solid rgba(133, 22, 37, 0.15);
	border-left: 4px solid #851625;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	/* Brand font — Geologica, falling back to the system stack if the
	   theme hasn't loaded Geologica yet (which can happen on My Account
	   if Divi's font enqueue is conditional). */
	font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	animation: wlp-card-in 0.25s ease-out;
}

@keyframes wlp-card-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wlp-floating-card.is-hidden {
	display: none;
}

.wlp-card-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #851625;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.wlp-card-icon i {
	color: #fff;
	line-height: 1;
}

.wlp-card-body {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 16px;
}

.wlp-card-title {
	display: block;
	font-weight: 700;
	color: #851625;
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.3;
}

.wlp-card-text {
	margin: 0 0 8px;
	color: #2E2E2E;
	font-size: 13px;
	line-height: 1.5;
}

.wlp-card-text:last-child {
	margin-bottom: 0;
}

.wlp-card-cta {
	display: inline-block;
	margin-top: 4px;
	padding: 6px 12px;
	background: #851625;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.15s;
}

.wlp-card-cta:hover,
.wlp-card-cta:focus {
	background: #5e0f1a;
	color: #fff;
	text-decoration: none;
}

.wlp-card-dismiss {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: 0;
	font-size: 20px;
	line-height: 1;
	color: #8a8a8a;
	cursor: pointer;
	border-radius: 4px;
}

.wlp-card-dismiss:hover {
	color: #851625;
	background: rgba(133, 22, 37, 0.08);
}

/* Mobile — full-width across the bottom */
@media (max-width: 600px) {
	.wlp-floating-card {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}
