@charset "utf-8";
/* =========================================================================
   Unified flash toasts (NOTIF1) — the single transient-message system,
   shared across every shell: public, checkout, account, the writer portal
   (work/_base.html) and the admin shell (manage/base.html). Server-rendered
   by content/_partials/_messages.html (no Alpine dependency); dismissable,
   brand-token driven.

   Loaded standalone (not inside style.css) so the writer + admin shells —
   which do not load the big marketing stylesheet — get the same toasts. Uses
   a --nav-height fallback because the admin shell sizes its header
   independently of the public nav.
   ========================================================================= */
.bpr-toasts {
	position: fixed;
	top: calc(var(--nav-height, 64px) + 1rem);
	right: 1rem;
	z-index: 1080;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: min(380px, calc(100vw - 2rem));
	pointer-events: none;
}
.bpr-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0.95rem 0.85rem 0.9rem;
	background: #fff;
	border: 1px solid var(--brand-paper-200);
	border-left: 4px solid var(--brand-charcoal-500, #6b6257);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-3);
	font-family: var(--font-body);
	color: var(--brand-ink-900);
	font-size: 0.9375rem;
	line-height: 1.45;
	animation: bpr-toast-in 0.18s ease-out;
}
@keyframes bpr-toast-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.bpr-toast__icon { margin-top: 0.1rem; font-size: 1rem; flex: 0 0 auto; }
.bpr-toast__text { flex: 1 1 auto; }
.bpr-toast__close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--brand-charcoal-500, #6b6257);
	font-size: 1.25rem;
	line-height: 1;
	padding: 0 0.15rem;
	cursor: pointer;
	border-radius: var(--radius-sm);
}
.bpr-toast__close:hover { color: var(--brand-ink-900); }

/* Variants — left accent + icon colour per Django message level. */
.bpr-toast--success { border-left-color: var(--brand-green-700); }
.bpr-toast--success .bpr-toast__icon { color: var(--brand-green-700); }
.bpr-toast--error   { border-left-color: #B3261E; }
.bpr-toast--error   .bpr-toast__icon { color: #B3261E; }
.bpr-toast--warning { border-left-color: #B45309; }
.bpr-toast--warning .bpr-toast__icon { color: #B45309; }
.bpr-toast--info    { border-left-color: var(--brand-green-700); }
.bpr-toast--info    .bpr-toast__icon { color: var(--brand-green-700); }

@media (max-width: 768px) {
	.bpr-toasts {
		top: calc(var(--nav-height, 64px) + 0.5rem);
		left: 0.75rem;
		right: 0.75rem;
		width: auto;
	}
}
