/**
 * Compact, reader-friendly cookie information notice.
 * Kept independent so every frontend profile receives the same presentation.
 */
.phantaso-cookie-notice.phantaso-cookie-banner {
	position: fixed;
	right: auto;
	bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + var(--phantaso-cookie-ad-offset, 0px));
	left: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 10000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.85rem;
	width: 27rem;
	max-width: calc(100% - 1.5rem);
	padding: 0.9rem;
	border: 1px solid rgba(15, 118, 110, 0.22);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.97);
	color: #26352f;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
	font: 500 0.8125rem/1.5 var(--phantaso-font-body, Inter, system-ui, sans-serif);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.phantaso-cookie-notice__copy strong {
	display: block;
	margin-bottom: 0.15rem;
	color: #17231f;
	font-size: 0.875rem;
}

.phantaso-cookie-notice__copy p {
	margin: 0;
}

.phantaso-cookie-notice__copy a {
	color: #0f766e;
	font-weight: 700;
	text-underline-offset: 0.15em;
}

.phantaso-cookie-notice__dismiss {
	min-width: 5.5rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid #0f766e;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
}

.phantaso-cookie-notice__dismiss:hover {
	background: #115e59;
}

.phantaso-cookie-notice__dismiss:focus-visible,
.phantaso-cookie-notice__copy a:focus-visible {
	outline: 3px solid rgba(13, 148, 136, 0.35);
	outline-offset: 3px;
}

@media (max-width: 35rem) {
	.phantaso-cookie-notice.phantaso-cookie-banner {
		grid-template-columns: 1fr;
		gap: 0.7rem;
	}

	.phantaso-cookie-notice__dismiss {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.phantaso-cookie-notice.phantaso-cookie-banner {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Keep the mobile reading footer calm until the temporary notice is dismissed. */
body.phantaso-cookie-visible .yz-reading-toolbar--dock,
body.phantaso-cookie-visible .yz-recent-strip {
	visibility: hidden;
	pointer-events: none;
}
