/* Cookie consent card ---------------------------------------------------------
   Styles for the card app/view/common/CookieConsent.js injects. It replaced the
   cookieconsent@3 CDN stylesheet, which knew nothing of this product's palette.

   Every colour is written as var(--pa-*, light-value): the light :root defines
   only a few of these tokens, so the fallback IS the light theme, and dark.css
   [data-theme="dark"] token block restyles the card without a single rule here
   naming dark. Keep it that way — a literal colour with no token wrapper is a
   colour dark mode cannot reach.

   The card floats above everything, so it carries its own elevation shadow
   (stronger than --pa-shadow, which is for in-flow panels) and a rounder radius
   than --pa-radius, which is sized for inline cards, not floating surfaces. */

.pa-cookie-card {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	width: min(400px, calc(100vw - 40px));
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	row-gap: 14px;
	padding: 18px 20px 16px;
	background: var(--pa-surface, #FFFFFF);
	color: var(--pa-ink, #18181B);
	border: 1px solid var(--pa-border, rgba(24, 24, 27, 0.12));
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.10);
	font-family: var(--pa-font-sans, 'SourceSansPro', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif);
	animation: pa-cookie-in 240ms ease-out;
}

.pa-cookie-card--leaving {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 200ms ease-in, transform 200ms ease-in;
}

@keyframes pa-cookie-in {
	from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
	.pa-cookie-card { animation: none; }
	.pa-cookie-card--leaving { transition: none; }
}

.pa-cookie-card__icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--pa-accent-orange, #AD5022);
	/* A 12% wash of the light accent reads as a warm chip on both themes. */
	background: rgba(173, 80, 34, 0.12);
}

.pa-cookie-card__icon svg {
	width: 22px;
	height: 22px;
}

.pa-cookie-card__body {
	align-self: center;
	min-width: 0;
}

.pa-cookie-card__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pa-ink, #18181B);
}

.pa-cookie-card__text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--pa-ink-label, #52525B);
}

.pa-cookie-card__text a {
	color: var(--pa-link, #006ACC);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pa-cookie-card__text a:hover {
	color: var(--pa-link-hover, #24785D);
}

.pa-cookie-card__actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.pa-cookie-card__btn {
	appearance: none;
	margin: 0;
	padding: 8px 18px;
	border-radius: var(--pa-radius-btn, 8px);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.pa-cookie-card__btn:focus-visible {
	outline: 2px solid var(--pa-focus-ring, #0A84FF);
	outline-offset: 2px;
}

.pa-cookie-card__btn--primary {
	background: var(--pa-btn-primary-bg, #337AB7);
	border: 1px solid var(--pa-btn-primary-border, #2E6DA4);
	color: #FFFFFF;
}

.pa-cookie-card__btn--primary:hover {
	background: var(--pa-btn-primary-bg-hover, #2E6DA4);
	border-color: var(--pa-btn-primary-border-hover, #285F8C);
}

.pa-cookie-card__btn--quiet {
	background: transparent;
	border: 1px solid var(--pa-border-control, #C6C4BD);
	color: var(--pa-ink-control, #3F3F46);
}

.pa-cookie-card__btn--quiet:hover {
	background: var(--pa-control-active-bg, #EEEDE7);
	border-color: var(--pa-border-control-hover, #A9A79F);
}
