/* AAG Legal push notifications — card and bell. Colours and fonts come from the theme tokens. */
.aagp-card,
.aagp-bell {
	--aagp-ink: var(--cr-text-main, #0b1f3a);
	--aagp-muted: var(--cr-text-muted, #52607a);
	--aagp-accent: var(--cr-accent, #ce8d00);
	--aagp-on-accent: var(--aag-on-accent, #14112b);
	--aagp-line: #e7e0d6;
	--aagp-radius: var(--aag-radius, 14px);
	box-sizing: border-box;
	font-family: var(--cr-font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
}
.aagp-card *, .aagp-card *::before, .aagp-card *::after { box-sizing: border-box; }

.aagp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- card ---------- */
.aagp-card {
	position: fixed;
	left: 12px;
	right: var(--aagp-right, 12px);
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 50001;
	max-width: 420px;
	margin: 0 auto;
	padding: 16px 16px 14px;
	background: #fff;
	color: var(--aagp-ink);
	border: 1px solid var(--aagp-line);
	border-radius: calc(var(--aagp-radius) + 2px);
	box-shadow: 0 18px 48px -12px rgba(11, 31, 58, 0.35);
	animation: aagp-up 0.28s ease-out;
}
@media (min-width: 760px) {
	.aagp-card { left: auto; right: var(--aagp-right, 20px); width: 400px; margin: 0; }
}
@keyframes aagp-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aagp-card { animation: none; } }

.aagp-top { display: flex; gap: 12px; align-items: flex-start; padding-right: 24px; }
.aagp-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--aagp-accent) 18%, #fff);
	color: var(--aagp-ink);
}
.aagp-copy { min-width: 0; flex: 1; }
.aagp-h {
	margin: 2px 0 4px;
	font-family: var(--cr-font-heading, "Bricolage Grotesque", "Outfit", ui-sans-serif, system-ui, sans-serif);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.3;
	color: var(--aagp-ink);
}
.aagp-p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--aagp-muted); }
.aagp-note { margin: 10px 0 0; font-size: 12px; color: var(--aagp-muted); }
.aagp-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--aagp-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.aagp-x:hover, .aagp-x:focus-visible { background: #f3efe7; color: var(--aagp-ink); }

.aagp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.aagp-chips.is-error .aagp-chip span { border-color: #c0392b; }
.aagp-chip { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.aagp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aagp-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 12px;
	border: 1.5px solid var(--aagp-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--aagp-ink);
	background: #fff;
	transition: background 0.15s, border-color 0.15s;
}
.aagp-chip span::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 4px;
	border: 1.5px solid #b9b2a6;
	background: #fff;
	flex: none;
}
.aagp-chip input:checked + span { background: color-mix(in srgb, var(--aagp-accent) 16%, #fff); border-color: var(--aagp-accent); }
.aagp-chip input:checked + span::before {
	border-color: var(--aagp-accent);
	background: var(--aagp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2314112b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.aagp-chip input:focus-visible + span { outline: 2px solid var(--aagp-ink); outline-offset: 2px; }

.aagp-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.aagp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--aagp-accent);
	color: var(--aagp-on-accent);
	font: 700 14px/1.1 var(--cr-font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
	cursor: pointer;
	text-decoration: none;
}
.aagp-btn:hover { filter: brightness(0.96); }
.aagp-btn:focus-visible { outline: 2px solid var(--aagp-ink); outline-offset: 2px; }
.aagp-btn[disabled] { opacity: 0.7; cursor: progress; }
.aagp-btn--ghost { background: transparent; color: var(--aagp-ink); border: 1.5px solid var(--aagp-line); }
.aagp-btn--ghost:hover { background: #f7f5ef; filter: none; }

/* ---------- bell ---------- */
.aagp-bell {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--aagp-line);
	background: #fff;
	color: var(--aagp-ink);
	cursor: pointer;
	box-shadow: 0 6px 18px -6px rgba(11, 31, 58, 0.35);
	transition: transform 0.15s;
}
.aagp-bell:hover { transform: translateY(-1px); }
.aagp-bell:focus-visible { outline: 2px solid var(--aagp-ink); outline-offset: 2px; }
.aagp-bell[hidden] { display: none; }
.aagp-bell--float {
	position: fixed;
	z-index: 49990;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.aagp-bell--left { left: 14px; }
.aagp-bell--right { right: 14px; }
.aagp-bell--header { width: 38px; height: 38px; box-shadow: none; margin-right: 8px; }
.aagp-dot {
	position: absolute;
	top: 8px;
	right: 9px;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--aagp-accent);
	border: 2px solid #fff;
	display: none;
}
.aagp-bell.is-on { background: var(--aagp-ink); color: #fff; border-color: var(--aagp-ink); }
.aagp-bell.is-on .aagp-dot { display: block; }
@media print { .aagp-card, .aagp-bell { display: none !important; } }

.aagp-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--cr-accent, #ce8d00);
	background: transparent;
	color: inherit;
	font-weight: 700;
	cursor: pointer;
}
