/*
 * tq-feed save toast (SAVE-1911 T4, flag feed_save_toast): one bar, bottom centre, above the phone quick bar.
 * SAVEFIX-1911: the surface is the theme's own toast look (.bookmark-notification-inner: --solid-white surface, round-7,
 * shadow 0 4px 30px --shadow-12) through our tokens, so light and dark follow Theme Options; plus a 1px line so the bar
 * stays apart from a dark page (dark --solid-white is close to the dark body). This file depends on tq-core-tokens
 * (Hooks loads it on every page that loads the toast: before, pages without our cards had no tokens and the bar was
 * transparent). Tokens only (brand blue = --tq-accent), no forced overrides. Logical properties: RTL first.
 */
.tq-save-toast {
	position: fixed;
	inset-inline: 16px;
	inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	max-inline-size: 520px;
	margin-inline: auto;
	padding: 12px 16px;
	border: 1px solid var(--tq-line);
	border-radius: var(--tq-radius);
	background-color: var(--tq-surface);
	color: var(--tq-text);
	box-shadow: 0 4px 30px var(--tq-shade);
	font: 600 14px/1.5 var(--tq-font-meta, inherit);
	animation: tq-save-toast-in 0.2s ease-out;
}

.tq-save-toast__text {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.tq-save-toast__btn {
	display: inline-flex;
	align-items: center;
	min-block-size: 36px;
	padding-inline: 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--tq-accent);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.tq-save-toast__btn:hover {
	text-decoration: underline;
}

.tq-save-toast__btn:focus-visible {
	outline: 2px solid var(--tq-accent);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.tq-save-toast {
		inset-block-end: calc(76px + env(safe-area-inset-bottom, 0px));
	}
}

@keyframes tq-save-toast-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tq-save-toast {
		animation: none;
	}
}
